@triveria/wallet 0.0.10 → 0.0.12
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 +120 -120
- package/api.js +223 -223
- package/package.json +1 -1
package/api.js
CHANGED
|
@@ -67,14 +67,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
67
67
|
return {
|
|
68
68
|
/**
|
|
69
69
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
70
|
-
* @param {string}
|
|
70
|
+
* @param {string} walletId
|
|
71
71
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
72
72
|
* @param {*} [options] Override http request option.
|
|
73
73
|
* @throws {RequiredError}
|
|
74
74
|
*/
|
|
75
|
-
credentialCreate: (
|
|
76
|
-
// verify required parameter '
|
|
77
|
-
(0, common_1.assertParamExists)('credentialCreate', '
|
|
75
|
+
credentialCreate: (walletId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
77
|
+
(0, common_1.assertParamExists)('credentialCreate', 'walletId', walletId);
|
|
78
78
|
const localVarPath = `/credentials`;
|
|
79
79
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
80
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -88,8 +88,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
88
88
|
// authentication accessToken required
|
|
89
89
|
// http bearer authentication required
|
|
90
90
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
91
|
-
if (
|
|
92
|
-
localVarHeaderParameter['
|
|
91
|
+
if (walletId != null) {
|
|
92
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
93
93
|
}
|
|
94
94
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
95
95
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -104,15 +104,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
/**
|
|
105
105
|
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
106
106
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
107
|
-
* @param {string}
|
|
107
|
+
* @param {string} walletId
|
|
108
108
|
* @param {*} [options] Override http request option.
|
|
109
109
|
* @throws {RequiredError}
|
|
110
110
|
*/
|
|
111
|
-
credentialGet: (credentialId,
|
|
111
|
+
credentialGet: (credentialId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
112
112
|
// verify required parameter 'credentialId' is not null or undefined
|
|
113
113
|
(0, common_1.assertParamExists)('credentialGet', 'credentialId', credentialId);
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('credentialGet', '
|
|
114
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('credentialGet', 'walletId', walletId);
|
|
116
116
|
const localVarPath = `/credentials/{credential_id}`
|
|
117
117
|
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
118
118
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -127,8 +127,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
127
127
|
// authentication accessToken required
|
|
128
128
|
// http bearer authentication required
|
|
129
129
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
130
|
-
if (
|
|
131
|
-
localVarHeaderParameter['
|
|
130
|
+
if (walletId != null) {
|
|
131
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
132
132
|
}
|
|
133
133
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
134
134
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -141,15 +141,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
141
141
|
/**
|
|
142
142
|
*
|
|
143
143
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
144
|
-
* @param {string}
|
|
144
|
+
* @param {string} walletId
|
|
145
145
|
* @param {*} [options] Override http request option.
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
*/
|
|
148
|
-
credentialIssue: (credentialId,
|
|
148
|
+
credentialIssue: (credentialId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
149
149
|
// verify required parameter 'credentialId' is not null or undefined
|
|
150
150
|
(0, common_1.assertParamExists)('credentialIssue', 'credentialId', credentialId);
|
|
151
|
-
// verify required parameter '
|
|
152
|
-
(0, common_1.assertParamExists)('credentialIssue', '
|
|
151
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
152
|
+
(0, common_1.assertParamExists)('credentialIssue', 'walletId', walletId);
|
|
153
153
|
const localVarPath = `/credentials/{credential_id}/issue`
|
|
154
154
|
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
155
155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -164,8 +164,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
164
164
|
// authentication accessToken required
|
|
165
165
|
// http bearer authentication required
|
|
166
166
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
167
|
-
if (
|
|
168
|
-
localVarHeaderParameter['
|
|
167
|
+
if (walletId != null) {
|
|
168
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
169
169
|
}
|
|
170
170
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
171
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -177,13 +177,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
177
177
|
}),
|
|
178
178
|
/**
|
|
179
179
|
* Retrieves a list of credentials.
|
|
180
|
-
* @param {string}
|
|
180
|
+
* @param {string} walletId
|
|
181
181
|
* @param {*} [options] Override http request option.
|
|
182
182
|
* @throws {RequiredError}
|
|
183
183
|
*/
|
|
184
|
-
credentialList: (
|
|
185
|
-
// verify required parameter '
|
|
186
|
-
(0, common_1.assertParamExists)('credentialList', '
|
|
184
|
+
credentialList: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
186
|
+
(0, common_1.assertParamExists)('credentialList', 'walletId', walletId);
|
|
187
187
|
const localVarPath = `/credentials`;
|
|
188
188
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
189
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -197,8 +197,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
// authentication accessToken required
|
|
198
198
|
// http bearer authentication required
|
|
199
199
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
200
|
-
if (
|
|
201
|
-
localVarHeaderParameter['
|
|
200
|
+
if (walletId != null) {
|
|
201
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
202
202
|
}
|
|
203
203
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
204
204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -211,16 +211,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
/**
|
|
212
212
|
*
|
|
213
213
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
214
|
-
* @param {string}
|
|
214
|
+
* @param {string} walletId
|
|
215
215
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
216
216
|
* @param {*} [options] Override http request option.
|
|
217
217
|
* @throws {RequiredError}
|
|
218
218
|
*/
|
|
219
|
-
credentialUpdate: (credentialId,
|
|
219
|
+
credentialUpdate: (credentialId, walletId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
220
220
|
// verify required parameter 'credentialId' is not null or undefined
|
|
221
221
|
(0, common_1.assertParamExists)('credentialUpdate', 'credentialId', credentialId);
|
|
222
|
-
// verify required parameter '
|
|
223
|
-
(0, common_1.assertParamExists)('credentialUpdate', '
|
|
222
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
223
|
+
(0, common_1.assertParamExists)('credentialUpdate', 'walletId', walletId);
|
|
224
224
|
const localVarPath = `/credentials/{credential_id}`
|
|
225
225
|
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
226
226
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -232,8 +232,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
232
232
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
233
233
|
const localVarHeaderParameter = {};
|
|
234
234
|
const localVarQueryParameter = {};
|
|
235
|
-
if (
|
|
236
|
-
localVarHeaderParameter['
|
|
235
|
+
if (walletId != null) {
|
|
236
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
237
237
|
}
|
|
238
238
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
239
239
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -248,15 +248,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
248
248
|
/**
|
|
249
249
|
*
|
|
250
250
|
* @param {string} deferredId Deferred token
|
|
251
|
-
* @param {string}
|
|
251
|
+
* @param {string} walletId
|
|
252
252
|
* @param {*} [options] Override http request option.
|
|
253
253
|
* @throws {RequiredError}
|
|
254
254
|
*/
|
|
255
|
-
deferredStatus: (deferredId,
|
|
255
|
+
deferredStatus: (deferredId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
256
256
|
// verify required parameter 'deferredId' is not null or undefined
|
|
257
257
|
(0, common_1.assertParamExists)('deferredStatus', 'deferredId', deferredId);
|
|
258
|
-
// verify required parameter '
|
|
259
|
-
(0, common_1.assertParamExists)('deferredStatus', '
|
|
258
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
259
|
+
(0, common_1.assertParamExists)('deferredStatus', 'walletId', walletId);
|
|
260
260
|
const localVarPath = `/deferred/{deferred_id}`
|
|
261
261
|
.replace(`{${"deferred_id"}}`, encodeURIComponent(String(deferredId)));
|
|
262
262
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -271,8 +271,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
271
271
|
// authentication accessToken required
|
|
272
272
|
// http bearer authentication required
|
|
273
273
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
274
|
-
if (
|
|
275
|
-
localVarHeaderParameter['
|
|
274
|
+
if (walletId != null) {
|
|
275
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
276
276
|
}
|
|
277
277
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
278
278
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -284,13 +284,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
284
284
|
}),
|
|
285
285
|
/**
|
|
286
286
|
*
|
|
287
|
-
* @param {string}
|
|
287
|
+
* @param {string} walletId
|
|
288
288
|
* @param {*} [options] Override http request option.
|
|
289
289
|
* @throws {RequiredError}
|
|
290
290
|
*/
|
|
291
|
-
getCurrentDid: (
|
|
292
|
-
// verify required parameter '
|
|
293
|
-
(0, common_1.assertParamExists)('getCurrentDid', '
|
|
291
|
+
getCurrentDid: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
293
|
+
(0, common_1.assertParamExists)('getCurrentDid', 'walletId', walletId);
|
|
294
294
|
const localVarPath = `/did`;
|
|
295
295
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
296
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -304,8 +304,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
304
304
|
// authentication accessToken required
|
|
305
305
|
// http bearer authentication required
|
|
306
306
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
307
|
-
if (
|
|
308
|
-
localVarHeaderParameter['
|
|
307
|
+
if (walletId != null) {
|
|
308
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
309
309
|
}
|
|
310
310
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
311
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -341,14 +341,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
341
341
|
}),
|
|
342
342
|
/**
|
|
343
343
|
* 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
|
-
* @param {string}
|
|
344
|
+
* @param {string} walletId
|
|
345
345
|
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
346
346
|
* @param {*} [options] Override http request option.
|
|
347
347
|
* @throws {RequiredError}
|
|
348
348
|
*/
|
|
349
|
-
holderCreateAuthOffer: (
|
|
350
|
-
// verify required parameter '
|
|
351
|
-
(0, common_1.assertParamExists)('holderCreateAuthOffer', '
|
|
349
|
+
holderCreateAuthOffer: (walletId, holderAuthOfferCreationReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
351
|
+
(0, common_1.assertParamExists)('holderCreateAuthOffer', 'walletId', walletId);
|
|
352
352
|
const localVarPath = `/offer/create/intime`;
|
|
353
353
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
354
354
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -362,8 +362,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
362
362
|
// authentication accessToken required
|
|
363
363
|
// http bearer authentication required
|
|
364
364
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
365
|
-
if (
|
|
366
|
-
localVarHeaderParameter['
|
|
365
|
+
if (walletId != null) {
|
|
366
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
367
367
|
}
|
|
368
368
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
369
369
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -407,14 +407,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
407
407
|
}),
|
|
408
408
|
/**
|
|
409
409
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
410
|
-
* @param {string}
|
|
410
|
+
* @param {string} walletId
|
|
411
411
|
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
412
412
|
* @param {*} [options] Override http request option.
|
|
413
413
|
* @throws {RequiredError}
|
|
414
414
|
*/
|
|
415
|
-
oidcAcceptOffer: (
|
|
416
|
-
// verify required parameter '
|
|
417
|
-
(0, common_1.assertParamExists)('oidcAcceptOffer', '
|
|
415
|
+
oidcAcceptOffer: (walletId, vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
416
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
417
|
+
(0, common_1.assertParamExists)('oidcAcceptOffer', 'walletId', walletId);
|
|
418
418
|
const localVarPath = `/offer/accept`;
|
|
419
419
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
420
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -428,8 +428,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
428
428
|
// authentication accessToken required
|
|
429
429
|
// http bearer authentication required
|
|
430
430
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
431
|
-
if (
|
|
432
|
-
localVarHeaderParameter['
|
|
431
|
+
if (walletId != null) {
|
|
432
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
433
433
|
}
|
|
434
434
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
435
435
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -444,16 +444,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
444
444
|
/**
|
|
445
445
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
446
446
|
* @param {string} credentialId
|
|
447
|
-
* @param {string}
|
|
447
|
+
* @param {string} walletId
|
|
448
448
|
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
449
449
|
* @param {*} [options] Override http request option.
|
|
450
450
|
* @throws {RequiredError}
|
|
451
451
|
*/
|
|
452
|
-
oidcAddCredToIssuanceQueue: (credentialId,
|
|
452
|
+
oidcAddCredToIssuanceQueue: (credentialId, walletId, issuanceQueueCredAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
453
453
|
// verify required parameter 'credentialId' is not null or undefined
|
|
454
454
|
(0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
|
|
455
|
-
// verify required parameter '
|
|
456
|
-
(0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', '
|
|
455
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
456
|
+
(0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'walletId', walletId);
|
|
457
457
|
const localVarPath = `/credentials/{credential_id}/add`
|
|
458
458
|
.replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
|
|
459
459
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -468,8 +468,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
468
468
|
// authentication accessToken required
|
|
469
469
|
// http bearer authentication required
|
|
470
470
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
471
|
-
if (
|
|
472
|
-
localVarHeaderParameter['
|
|
471
|
+
if (walletId != null) {
|
|
472
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
473
473
|
}
|
|
474
474
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
475
475
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -483,14 +483,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
483
483
|
}),
|
|
484
484
|
/**
|
|
485
485
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
486
|
-
* @param {string}
|
|
486
|
+
* @param {string} walletId
|
|
487
487
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
488
488
|
* @param {*} [options] Override http request option.
|
|
489
489
|
* @throws {RequiredError}
|
|
490
490
|
*/
|
|
491
|
-
oidcInitiateDeferred: (
|
|
492
|
-
// verify required parameter '
|
|
493
|
-
(0, common_1.assertParamExists)('oidcInitiateDeferred', '
|
|
491
|
+
oidcInitiateDeferred: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
493
|
+
(0, common_1.assertParamExists)('oidcInitiateDeferred', 'walletId', walletId);
|
|
494
494
|
const localVarPath = `/issuer/initiate/deferred`;
|
|
495
495
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
496
496
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -504,8 +504,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
504
504
|
// authentication accessToken required
|
|
505
505
|
// http bearer authentication required
|
|
506
506
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
507
|
-
if (
|
|
508
|
-
localVarHeaderParameter['
|
|
507
|
+
if (walletId != null) {
|
|
508
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
509
509
|
}
|
|
510
510
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
511
511
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -519,14 +519,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
519
519
|
}),
|
|
520
520
|
/**
|
|
521
521
|
* Initiates issuing of the verifiable credential using authorized flow.
|
|
522
|
-
* @param {string}
|
|
522
|
+
* @param {string} walletId
|
|
523
523
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
524
524
|
* @param {*} [options] Override http request option.
|
|
525
525
|
* @throws {RequiredError}
|
|
526
526
|
*/
|
|
527
|
-
oidcInitiateIntime: (
|
|
528
|
-
// verify required parameter '
|
|
529
|
-
(0, common_1.assertParamExists)('oidcInitiateIntime', '
|
|
527
|
+
oidcInitiateIntime: (walletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
528
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
529
|
+
(0, common_1.assertParamExists)('oidcInitiateIntime', 'walletId', walletId);
|
|
530
530
|
const localVarPath = `/issuer/initiate/intime`;
|
|
531
531
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
532
532
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -540,8 +540,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
540
540
|
// authentication accessToken required
|
|
541
541
|
// http bearer authentication required
|
|
542
542
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
543
|
-
if (
|
|
544
|
-
localVarHeaderParameter['
|
|
543
|
+
if (walletId != null) {
|
|
544
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
545
545
|
}
|
|
546
546
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
547
547
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -555,14 +555,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
555
555
|
}),
|
|
556
556
|
/**
|
|
557
557
|
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
558
|
-
* @param {string}
|
|
558
|
+
* @param {string} walletId
|
|
559
559
|
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
560
560
|
* @param {*} [options] Override http request option.
|
|
561
561
|
* @throws {RequiredError}
|
|
562
562
|
*/
|
|
563
|
-
oidcInitiatePreauth: (
|
|
564
|
-
// verify required parameter '
|
|
565
|
-
(0, common_1.assertParamExists)('oidcInitiatePreauth', '
|
|
563
|
+
oidcInitiatePreauth: (walletId, initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
565
|
+
(0, common_1.assertParamExists)('oidcInitiatePreauth', 'walletId', walletId);
|
|
566
566
|
const localVarPath = `/issuer/initiate/preauth`;
|
|
567
567
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
568
568
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -576,8 +576,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
576
576
|
// authentication accessToken required
|
|
577
577
|
// http bearer authentication required
|
|
578
578
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
579
|
-
if (
|
|
580
|
-
localVarHeaderParameter['
|
|
579
|
+
if (walletId != null) {
|
|
580
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
581
581
|
}
|
|
582
582
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
583
583
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -591,13 +591,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
591
591
|
}),
|
|
592
592
|
/**
|
|
593
593
|
* Provides wallet details
|
|
594
|
-
* @param {string}
|
|
594
|
+
* @param {string} walletId
|
|
595
595
|
* @param {*} [options] Override http request option.
|
|
596
596
|
* @throws {RequiredError}
|
|
597
597
|
*/
|
|
598
|
-
walletGet: (
|
|
599
|
-
// verify required parameter '
|
|
600
|
-
(0, common_1.assertParamExists)('walletGet', '
|
|
598
|
+
walletGet: (walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
599
|
+
// verify required parameter 'walletId' is not null or undefined
|
|
600
|
+
(0, common_1.assertParamExists)('walletGet', 'walletId', walletId);
|
|
601
601
|
const localVarPath = `/wallets/current`;
|
|
602
602
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
603
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -611,8 +611,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
611
611
|
// authentication accessToken required
|
|
612
612
|
// http bearer authentication required
|
|
613
613
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
614
|
-
if (
|
|
615
|
-
localVarHeaderParameter['
|
|
614
|
+
if (walletId != null) {
|
|
615
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
616
616
|
}
|
|
617
617
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
618
618
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -651,12 +651,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
651
651
|
}),
|
|
652
652
|
/**
|
|
653
653
|
* 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
|
-
* @param {string} [
|
|
654
|
+
* @param {string} [walletId] Has to be provided for updates.
|
|
655
655
|
* @param {Wallet} [wallet]
|
|
656
656
|
* @param {*} [options] Override http request option.
|
|
657
657
|
* @throws {RequiredError}
|
|
658
658
|
*/
|
|
659
|
-
walletSave: (
|
|
659
|
+
walletSave: (walletId, wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
660
660
|
const localVarPath = `/wallets`;
|
|
661
661
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
662
662
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -670,8 +670,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
670
670
|
// authentication accessToken required
|
|
671
671
|
// http bearer authentication required
|
|
672
672
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
673
|
-
if (
|
|
674
|
-
localVarHeaderParameter['
|
|
673
|
+
if (walletId != null) {
|
|
674
|
+
localVarHeaderParameter['wallet-id'] = String(walletId);
|
|
675
675
|
}
|
|
676
676
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
677
677
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -695,15 +695,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
695
695
|
return {
|
|
696
696
|
/**
|
|
697
697
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
698
|
-
* @param {string}
|
|
698
|
+
* @param {string} walletId
|
|
699
699
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
700
700
|
* @param {*} [options] Override http request option.
|
|
701
701
|
* @throws {RequiredError}
|
|
702
702
|
*/
|
|
703
|
-
credentialCreate(
|
|
703
|
+
credentialCreate(walletId, credential, options) {
|
|
704
704
|
var _a, _b, _c;
|
|
705
705
|
return __awaiter(this, void 0, void 0, function* () {
|
|
706
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(
|
|
706
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credential, options);
|
|
707
707
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
708
708
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialCreate']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
709
709
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -712,14 +712,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
712
712
|
/**
|
|
713
713
|
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
714
714
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
715
|
-
* @param {string}
|
|
715
|
+
* @param {string} walletId
|
|
716
716
|
* @param {*} [options] Override http request option.
|
|
717
717
|
* @throws {RequiredError}
|
|
718
718
|
*/
|
|
719
|
-
credentialGet(credentialId,
|
|
719
|
+
credentialGet(credentialId, walletId, options) {
|
|
720
720
|
var _a, _b, _c;
|
|
721
721
|
return __awaiter(this, void 0, void 0, function* () {
|
|
722
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId,
|
|
722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, walletId, options);
|
|
723
723
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
724
724
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialGet']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
725
725
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -728,14 +728,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
728
728
|
/**
|
|
729
729
|
*
|
|
730
730
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
731
|
-
* @param {string}
|
|
731
|
+
* @param {string} walletId
|
|
732
732
|
* @param {*} [options] Override http request option.
|
|
733
733
|
* @throws {RequiredError}
|
|
734
734
|
*/
|
|
735
|
-
credentialIssue(credentialId,
|
|
735
|
+
credentialIssue(credentialId, walletId, options) {
|
|
736
736
|
var _a, _b, _c;
|
|
737
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
738
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId,
|
|
738
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, walletId, options);
|
|
739
739
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
740
740
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialIssue']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
741
741
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -743,14 +743,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
743
743
|
},
|
|
744
744
|
/**
|
|
745
745
|
* Retrieves a list of credentials.
|
|
746
|
-
* @param {string}
|
|
746
|
+
* @param {string} walletId
|
|
747
747
|
* @param {*} [options] Override http request option.
|
|
748
748
|
* @throws {RequiredError}
|
|
749
749
|
*/
|
|
750
|
-
credentialList(
|
|
750
|
+
credentialList(walletId, options) {
|
|
751
751
|
var _a, _b, _c;
|
|
752
752
|
return __awaiter(this, void 0, void 0, function* () {
|
|
753
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(
|
|
753
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, options);
|
|
754
754
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
755
755
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
756
756
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -759,15 +759,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
759
759
|
/**
|
|
760
760
|
*
|
|
761
761
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
762
|
-
* @param {string}
|
|
762
|
+
* @param {string} walletId
|
|
763
763
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
764
764
|
* @param {*} [options] Override http request option.
|
|
765
765
|
* @throws {RequiredError}
|
|
766
766
|
*/
|
|
767
|
-
credentialUpdate(credentialId,
|
|
767
|
+
credentialUpdate(credentialId, walletId, credential, options) {
|
|
768
768
|
var _a, _b, _c;
|
|
769
769
|
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId,
|
|
770
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, walletId, credential, options);
|
|
771
771
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
772
772
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.credentialUpdate']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
773
773
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -776,14 +776,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
776
776
|
/**
|
|
777
777
|
*
|
|
778
778
|
* @param {string} deferredId Deferred token
|
|
779
|
-
* @param {string}
|
|
779
|
+
* @param {string} walletId
|
|
780
780
|
* @param {*} [options] Override http request option.
|
|
781
781
|
* @throws {RequiredError}
|
|
782
782
|
*/
|
|
783
|
-
deferredStatus(deferredId,
|
|
783
|
+
deferredStatus(deferredId, walletId, options) {
|
|
784
784
|
var _a, _b, _c;
|
|
785
785
|
return __awaiter(this, void 0, void 0, function* () {
|
|
786
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId,
|
|
786
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, walletId, options);
|
|
787
787
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
788
788
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.deferredStatus']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
789
789
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -791,14 +791,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
791
791
|
},
|
|
792
792
|
/**
|
|
793
793
|
*
|
|
794
|
-
* @param {string}
|
|
794
|
+
* @param {string} walletId
|
|
795
795
|
* @param {*} [options] Override http request option.
|
|
796
796
|
* @throws {RequiredError}
|
|
797
797
|
*/
|
|
798
|
-
getCurrentDid(
|
|
798
|
+
getCurrentDid(walletId, options) {
|
|
799
799
|
var _a, _b, _c;
|
|
800
800
|
return __awaiter(this, void 0, void 0, function* () {
|
|
801
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(
|
|
801
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(walletId, options);
|
|
802
802
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
803
803
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.getCurrentDid']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
804
804
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -820,15 +820,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
820
820
|
},
|
|
821
821
|
/**
|
|
822
822
|
* 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.
|
|
823
|
-
* @param {string}
|
|
823
|
+
* @param {string} walletId
|
|
824
824
|
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
825
825
|
* @param {*} [options] Override http request option.
|
|
826
826
|
* @throws {RequiredError}
|
|
827
827
|
*/
|
|
828
|
-
holderCreateAuthOffer(
|
|
828
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
|
|
829
829
|
var _a, _b, _c;
|
|
830
830
|
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(
|
|
831
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options);
|
|
832
832
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
833
833
|
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;
|
|
834
834
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -851,15 +851,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
851
851
|
},
|
|
852
852
|
/**
|
|
853
853
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
854
|
-
* @param {string}
|
|
854
|
+
* @param {string} walletId
|
|
855
855
|
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
856
856
|
* @param {*} [options] Override http request option.
|
|
857
857
|
* @throws {RequiredError}
|
|
858
858
|
*/
|
|
859
|
-
oidcAcceptOffer(
|
|
859
|
+
oidcAcceptOffer(walletId, vcOffer, options) {
|
|
860
860
|
var _a, _b, _c;
|
|
861
861
|
return __awaiter(this, void 0, void 0, function* () {
|
|
862
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(
|
|
862
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(walletId, vcOffer, options);
|
|
863
863
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
864
864
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcAcceptOffer']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
865
865
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -868,15 +868,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
868
868
|
/**
|
|
869
869
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
870
870
|
* @param {string} credentialId
|
|
871
|
-
* @param {string}
|
|
871
|
+
* @param {string} walletId
|
|
872
872
|
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
873
873
|
* @param {*} [options] Override http request option.
|
|
874
874
|
* @throws {RequiredError}
|
|
875
875
|
*/
|
|
876
|
-
oidcAddCredToIssuanceQueue(credentialId,
|
|
876
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
|
|
877
877
|
var _a, _b, _c;
|
|
878
878
|
return __awaiter(this, void 0, void 0, function* () {
|
|
879
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId,
|
|
879
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options);
|
|
880
880
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
881
881
|
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;
|
|
882
882
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -884,15 +884,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
884
884
|
},
|
|
885
885
|
/**
|
|
886
886
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
887
|
-
* @param {string}
|
|
887
|
+
* @param {string} walletId
|
|
888
888
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
889
889
|
* @param {*} [options] Override http request option.
|
|
890
890
|
* @throws {RequiredError}
|
|
891
891
|
*/
|
|
892
|
-
oidcInitiateDeferred(
|
|
892
|
+
oidcInitiateDeferred(walletId, initAuthOffer, options) {
|
|
893
893
|
var _a, _b, _c;
|
|
894
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(
|
|
895
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(walletId, initAuthOffer, options);
|
|
896
896
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
897
897
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiateDeferred']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
898
898
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -900,15 +900,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
900
900
|
},
|
|
901
901
|
/**
|
|
902
902
|
* Initiates issuing of the verifiable credential using authorized flow.
|
|
903
|
-
* @param {string}
|
|
903
|
+
* @param {string} walletId
|
|
904
904
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
905
905
|
* @param {*} [options] Override http request option.
|
|
906
906
|
* @throws {RequiredError}
|
|
907
907
|
*/
|
|
908
|
-
oidcInitiateIntime(
|
|
908
|
+
oidcInitiateIntime(walletId, initAuthOffer, options) {
|
|
909
909
|
var _a, _b, _c;
|
|
910
910
|
return __awaiter(this, void 0, void 0, function* () {
|
|
911
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(
|
|
911
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(walletId, initAuthOffer, options);
|
|
912
912
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
913
913
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiateIntime']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
914
914
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -916,15 +916,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
916
916
|
},
|
|
917
917
|
/**
|
|
918
918
|
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
919
|
-
* @param {string}
|
|
919
|
+
* @param {string} walletId
|
|
920
920
|
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
921
921
|
* @param {*} [options] Override http request option.
|
|
922
922
|
* @throws {RequiredError}
|
|
923
923
|
*/
|
|
924
|
-
oidcInitiatePreauth(
|
|
924
|
+
oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
|
|
925
925
|
var _a, _b, _c;
|
|
926
926
|
return __awaiter(this, void 0, void 0, function* () {
|
|
927
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(
|
|
927
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(walletId, initPreAuthOffer, options);
|
|
928
928
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
929
929
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.oidcInitiatePreauth']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
930
930
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -932,14 +932,14 @@ const DefaultApiFp = function (configuration) {
|
|
|
932
932
|
},
|
|
933
933
|
/**
|
|
934
934
|
* Provides wallet details
|
|
935
|
-
* @param {string}
|
|
935
|
+
* @param {string} walletId
|
|
936
936
|
* @param {*} [options] Override http request option.
|
|
937
937
|
* @throws {RequiredError}
|
|
938
938
|
*/
|
|
939
|
-
walletGet(
|
|
939
|
+
walletGet(walletId, options) {
|
|
940
940
|
var _a, _b, _c;
|
|
941
941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
942
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletGet(
|
|
942
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletGet(walletId, options);
|
|
943
943
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
944
944
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletGet']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
945
945
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -961,15 +961,15 @@ const DefaultApiFp = function (configuration) {
|
|
|
961
961
|
},
|
|
962
962
|
/**
|
|
963
963
|
* 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
|
-
* @param {string} [
|
|
964
|
+
* @param {string} [walletId] Has to be provided for updates.
|
|
965
965
|
* @param {Wallet} [wallet]
|
|
966
966
|
* @param {*} [options] Override http request option.
|
|
967
967
|
* @throws {RequiredError}
|
|
968
968
|
*/
|
|
969
|
-
walletSave(
|
|
969
|
+
walletSave(walletId, wallet, options) {
|
|
970
970
|
var _a, _b, _c;
|
|
971
971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
972
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletSave(
|
|
972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.walletSave(walletId, wallet, options);
|
|
973
973
|
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
974
974
|
const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletSave']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
975
975
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
@@ -987,72 +987,72 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
987
987
|
return {
|
|
988
988
|
/**
|
|
989
989
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
990
|
-
* @param {string}
|
|
990
|
+
* @param {string} walletId
|
|
991
991
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
992
992
|
* @param {*} [options] Override http request option.
|
|
993
993
|
* @throws {RequiredError}
|
|
994
994
|
*/
|
|
995
|
-
credentialCreate(
|
|
996
|
-
return localVarFp.credentialCreate(
|
|
995
|
+
credentialCreate(walletId, credential, options) {
|
|
996
|
+
return localVarFp.credentialCreate(walletId, credential, options).then((request) => request(axios, basePath));
|
|
997
997
|
},
|
|
998
998
|
/**
|
|
999
999
|
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1000
1000
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1001
|
-
* @param {string}
|
|
1001
|
+
* @param {string} walletId
|
|
1002
1002
|
* @param {*} [options] Override http request option.
|
|
1003
1003
|
* @throws {RequiredError}
|
|
1004
1004
|
*/
|
|
1005
|
-
credentialGet(credentialId,
|
|
1006
|
-
return localVarFp.credentialGet(credentialId,
|
|
1005
|
+
credentialGet(credentialId, walletId, options) {
|
|
1006
|
+
return localVarFp.credentialGet(credentialId, walletId, options).then((request) => request(axios, basePath));
|
|
1007
1007
|
},
|
|
1008
1008
|
/**
|
|
1009
1009
|
*
|
|
1010
1010
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1011
|
-
* @param {string}
|
|
1011
|
+
* @param {string} walletId
|
|
1012
1012
|
* @param {*} [options] Override http request option.
|
|
1013
1013
|
* @throws {RequiredError}
|
|
1014
1014
|
*/
|
|
1015
|
-
credentialIssue(credentialId,
|
|
1016
|
-
return localVarFp.credentialIssue(credentialId,
|
|
1015
|
+
credentialIssue(credentialId, walletId, options) {
|
|
1016
|
+
return localVarFp.credentialIssue(credentialId, walletId, options).then((request) => request(axios, basePath));
|
|
1017
1017
|
},
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Retrieves a list of credentials.
|
|
1020
|
-
* @param {string}
|
|
1020
|
+
* @param {string} walletId
|
|
1021
1021
|
* @param {*} [options] Override http request option.
|
|
1022
1022
|
* @throws {RequiredError}
|
|
1023
1023
|
*/
|
|
1024
|
-
credentialList(
|
|
1025
|
-
return localVarFp.credentialList(
|
|
1024
|
+
credentialList(walletId, options) {
|
|
1025
|
+
return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
|
|
1026
1026
|
},
|
|
1027
1027
|
/**
|
|
1028
1028
|
*
|
|
1029
1029
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1030
|
-
* @param {string}
|
|
1030
|
+
* @param {string} walletId
|
|
1031
1031
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
1032
1032
|
* @param {*} [options] Override http request option.
|
|
1033
1033
|
* @throws {RequiredError}
|
|
1034
1034
|
*/
|
|
1035
|
-
credentialUpdate(credentialId,
|
|
1036
|
-
return localVarFp.credentialUpdate(credentialId,
|
|
1035
|
+
credentialUpdate(credentialId, walletId, credential, options) {
|
|
1036
|
+
return localVarFp.credentialUpdate(credentialId, walletId, credential, options).then((request) => request(axios, basePath));
|
|
1037
1037
|
},
|
|
1038
1038
|
/**
|
|
1039
1039
|
*
|
|
1040
1040
|
* @param {string} deferredId Deferred token
|
|
1041
|
-
* @param {string}
|
|
1041
|
+
* @param {string} walletId
|
|
1042
1042
|
* @param {*} [options] Override http request option.
|
|
1043
1043
|
* @throws {RequiredError}
|
|
1044
1044
|
*/
|
|
1045
|
-
deferredStatus(deferredId,
|
|
1046
|
-
return localVarFp.deferredStatus(deferredId,
|
|
1045
|
+
deferredStatus(deferredId, walletId, options) {
|
|
1046
|
+
return localVarFp.deferredStatus(deferredId, walletId, options).then((request) => request(axios, basePath));
|
|
1047
1047
|
},
|
|
1048
1048
|
/**
|
|
1049
1049
|
*
|
|
1050
|
-
* @param {string}
|
|
1050
|
+
* @param {string} walletId
|
|
1051
1051
|
* @param {*} [options] Override http request option.
|
|
1052
1052
|
* @throws {RequiredError}
|
|
1053
1053
|
*/
|
|
1054
|
-
getCurrentDid(
|
|
1055
|
-
return localVarFp.getCurrentDid(
|
|
1054
|
+
getCurrentDid(walletId, options) {
|
|
1055
|
+
return localVarFp.getCurrentDid(walletId, options).then((request) => request(axios, basePath));
|
|
1056
1056
|
},
|
|
1057
1057
|
/**
|
|
1058
1058
|
*
|
|
@@ -1064,13 +1064,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1064
1064
|
},
|
|
1065
1065
|
/**
|
|
1066
1066
|
* 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.
|
|
1067
|
-
* @param {string}
|
|
1067
|
+
* @param {string} walletId
|
|
1068
1068
|
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
1069
1069
|
* @param {*} [options] Override http request option.
|
|
1070
1070
|
* @throws {RequiredError}
|
|
1071
1071
|
*/
|
|
1072
|
-
holderCreateAuthOffer(
|
|
1073
|
-
return localVarFp.holderCreateAuthOffer(
|
|
1072
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
|
|
1073
|
+
return localVarFp.holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
|
|
1074
1074
|
},
|
|
1075
1075
|
/**
|
|
1076
1076
|
* 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)
|
|
@@ -1083,63 +1083,63 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1083
1083
|
},
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1086
|
-
* @param {string}
|
|
1086
|
+
* @param {string} walletId
|
|
1087
1087
|
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
1088
1088
|
* @param {*} [options] Override http request option.
|
|
1089
1089
|
* @throws {RequiredError}
|
|
1090
1090
|
*/
|
|
1091
|
-
oidcAcceptOffer(
|
|
1092
|
-
return localVarFp.oidcAcceptOffer(
|
|
1091
|
+
oidcAcceptOffer(walletId, vcOffer, options) {
|
|
1092
|
+
return localVarFp.oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(axios, basePath));
|
|
1093
1093
|
},
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1096
1096
|
* @param {string} credentialId
|
|
1097
|
-
* @param {string}
|
|
1097
|
+
* @param {string} walletId
|
|
1098
1098
|
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
1099
1099
|
* @param {*} [options] Override http request option.
|
|
1100
1100
|
* @throws {RequiredError}
|
|
1101
1101
|
*/
|
|
1102
|
-
oidcAddCredToIssuanceQueue(credentialId,
|
|
1103
|
-
return localVarFp.oidcAddCredToIssuanceQueue(credentialId,
|
|
1102
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
|
|
1103
|
+
return localVarFp.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
|
|
1104
1104
|
},
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1107
|
-
* @param {string}
|
|
1107
|
+
* @param {string} walletId
|
|
1108
1108
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
1109
1109
|
* @param {*} [options] Override http request option.
|
|
1110
1110
|
* @throws {RequiredError}
|
|
1111
1111
|
*/
|
|
1112
|
-
oidcInitiateDeferred(
|
|
1113
|
-
return localVarFp.oidcInitiateDeferred(
|
|
1112
|
+
oidcInitiateDeferred(walletId, initAuthOffer, options) {
|
|
1113
|
+
return localVarFp.oidcInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
1114
1114
|
},
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Initiates issuing of the verifiable credential using authorized flow.
|
|
1117
|
-
* @param {string}
|
|
1117
|
+
* @param {string} walletId
|
|
1118
1118
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
1119
1119
|
* @param {*} [options] Override http request option.
|
|
1120
1120
|
* @throws {RequiredError}
|
|
1121
1121
|
*/
|
|
1122
|
-
oidcInitiateIntime(
|
|
1123
|
-
return localVarFp.oidcInitiateIntime(
|
|
1122
|
+
oidcInitiateIntime(walletId, initAuthOffer, options) {
|
|
1123
|
+
return localVarFp.oidcInitiateIntime(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
|
|
1124
1124
|
},
|
|
1125
1125
|
/**
|
|
1126
1126
|
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
1127
|
-
* @param {string}
|
|
1127
|
+
* @param {string} walletId
|
|
1128
1128
|
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
1129
1129
|
* @param {*} [options] Override http request option.
|
|
1130
1130
|
* @throws {RequiredError}
|
|
1131
1131
|
*/
|
|
1132
|
-
oidcInitiatePreauth(
|
|
1133
|
-
return localVarFp.oidcInitiatePreauth(
|
|
1132
|
+
oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
|
|
1133
|
+
return localVarFp.oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
|
|
1134
1134
|
},
|
|
1135
1135
|
/**
|
|
1136
1136
|
* Provides wallet details
|
|
1137
|
-
* @param {string}
|
|
1137
|
+
* @param {string} walletId
|
|
1138
1138
|
* @param {*} [options] Override http request option.
|
|
1139
1139
|
* @throws {RequiredError}
|
|
1140
1140
|
*/
|
|
1141
|
-
walletGet(
|
|
1142
|
-
return localVarFp.walletGet(
|
|
1141
|
+
walletGet(walletId, options) {
|
|
1142
|
+
return localVarFp.walletGet(walletId, options).then((request) => request(axios, basePath));
|
|
1143
1143
|
},
|
|
1144
1144
|
/**
|
|
1145
1145
|
* Provides list of wallets owned by the authenticated client.
|
|
@@ -1151,13 +1151,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1151
1151
|
},
|
|
1152
1152
|
/**
|
|
1153
1153
|
* 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
|
-
* @param {string} [
|
|
1154
|
+
* @param {string} [walletId] Has to be provided for updates.
|
|
1155
1155
|
* @param {Wallet} [wallet]
|
|
1156
1156
|
* @param {*} [options] Override http request option.
|
|
1157
1157
|
* @throws {RequiredError}
|
|
1158
1158
|
*/
|
|
1159
|
-
walletSave(
|
|
1160
|
-
return localVarFp.walletSave(
|
|
1159
|
+
walletSave(walletId, wallet, options) {
|
|
1160
|
+
return localVarFp.walletSave(walletId, wallet, options).then((request) => request(axios, basePath));
|
|
1161
1161
|
},
|
|
1162
1162
|
};
|
|
1163
1163
|
};
|
|
@@ -1171,79 +1171,79 @@ exports.DefaultApiFactory = DefaultApiFactory;
|
|
|
1171
1171
|
class DefaultApi extends base_1.BaseAPI {
|
|
1172
1172
|
/**
|
|
1173
1173
|
* Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
|
|
1174
|
-
* @param {string}
|
|
1174
|
+
* @param {string} walletId
|
|
1175
1175
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
1176
1176
|
* @param {*} [options] Override http request option.
|
|
1177
1177
|
* @throws {RequiredError}
|
|
1178
1178
|
* @memberof DefaultApi
|
|
1179
1179
|
*/
|
|
1180
|
-
credentialCreate(
|
|
1181
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(
|
|
1180
|
+
credentialCreate(walletId, credential, options) {
|
|
1181
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credential, options).then((request) => request(this.axios, this.basePath));
|
|
1182
1182
|
}
|
|
1183
1183
|
/**
|
|
1184
1184
|
* Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
|
|
1185
1185
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1186
|
-
* @param {string}
|
|
1186
|
+
* @param {string} walletId
|
|
1187
1187
|
* @param {*} [options] Override http request option.
|
|
1188
1188
|
* @throws {RequiredError}
|
|
1189
1189
|
* @memberof DefaultApi
|
|
1190
1190
|
*/
|
|
1191
|
-
credentialGet(credentialId,
|
|
1192
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId,
|
|
1191
|
+
credentialGet(credentialId, walletId, options) {
|
|
1192
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1193
1193
|
}
|
|
1194
1194
|
/**
|
|
1195
1195
|
*
|
|
1196
1196
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1197
|
-
* @param {string}
|
|
1197
|
+
* @param {string} walletId
|
|
1198
1198
|
* @param {*} [options] Override http request option.
|
|
1199
1199
|
* @throws {RequiredError}
|
|
1200
1200
|
* @memberof DefaultApi
|
|
1201
1201
|
*/
|
|
1202
|
-
credentialIssue(credentialId,
|
|
1203
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId,
|
|
1202
|
+
credentialIssue(credentialId, walletId, options) {
|
|
1203
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1204
1204
|
}
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Retrieves a list of credentials.
|
|
1207
|
-
* @param {string}
|
|
1207
|
+
* @param {string} walletId
|
|
1208
1208
|
* @param {*} [options] Override http request option.
|
|
1209
1209
|
* @throws {RequiredError}
|
|
1210
1210
|
* @memberof DefaultApi
|
|
1211
1211
|
*/
|
|
1212
|
-
credentialList(
|
|
1213
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialList(
|
|
1212
|
+
credentialList(walletId, options) {
|
|
1213
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1214
1214
|
}
|
|
1215
1215
|
/**
|
|
1216
1216
|
*
|
|
1217
1217
|
* @param {string} credentialId Verifiable Credential Identifier
|
|
1218
|
-
* @param {string}
|
|
1218
|
+
* @param {string} walletId
|
|
1219
1219
|
* @param {Credential} [credential] Verifiable Credential in JSON format
|
|
1220
1220
|
* @param {*} [options] Override http request option.
|
|
1221
1221
|
* @throws {RequiredError}
|
|
1222
1222
|
* @memberof DefaultApi
|
|
1223
1223
|
*/
|
|
1224
|
-
credentialUpdate(credentialId,
|
|
1225
|
-
return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId,
|
|
1224
|
+
credentialUpdate(credentialId, walletId, credential, options) {
|
|
1225
|
+
return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, walletId, credential, options).then((request) => request(this.axios, this.basePath));
|
|
1226
1226
|
}
|
|
1227
1227
|
/**
|
|
1228
1228
|
*
|
|
1229
1229
|
* @param {string} deferredId Deferred token
|
|
1230
|
-
* @param {string}
|
|
1230
|
+
* @param {string} walletId
|
|
1231
1231
|
* @param {*} [options] Override http request option.
|
|
1232
1232
|
* @throws {RequiredError}
|
|
1233
1233
|
* @memberof DefaultApi
|
|
1234
1234
|
*/
|
|
1235
|
-
deferredStatus(deferredId,
|
|
1236
|
-
return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId,
|
|
1235
|
+
deferredStatus(deferredId, walletId, options) {
|
|
1236
|
+
return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1237
1237
|
}
|
|
1238
1238
|
/**
|
|
1239
1239
|
*
|
|
1240
|
-
* @param {string}
|
|
1240
|
+
* @param {string} walletId
|
|
1241
1241
|
* @param {*} [options] Override http request option.
|
|
1242
1242
|
* @throws {RequiredError}
|
|
1243
1243
|
* @memberof DefaultApi
|
|
1244
1244
|
*/
|
|
1245
|
-
getCurrentDid(
|
|
1246
|
-
return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(
|
|
1245
|
+
getCurrentDid(walletId, options) {
|
|
1246
|
+
return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1247
1247
|
}
|
|
1248
1248
|
/**
|
|
1249
1249
|
*
|
|
@@ -1256,14 +1256,14 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
/**
|
|
1258
1258
|
* 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.
|
|
1259
|
-
* @param {string}
|
|
1259
|
+
* @param {string} walletId
|
|
1260
1260
|
* @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
|
|
1261
1261
|
* @param {*} [options] Override http request option.
|
|
1262
1262
|
* @throws {RequiredError}
|
|
1263
1263
|
* @memberof DefaultApi
|
|
1264
1264
|
*/
|
|
1265
|
-
holderCreateAuthOffer(
|
|
1266
|
-
return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(
|
|
1265
|
+
holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
|
|
1266
|
+
return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
|
|
1267
1267
|
}
|
|
1268
1268
|
/**
|
|
1269
1269
|
* 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)
|
|
@@ -1277,69 +1277,69 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Issue verifiable credential using OIDC4VCI offer acceptance
|
|
1280
|
-
* @param {string}
|
|
1280
|
+
* @param {string} walletId
|
|
1281
1281
|
* @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
|
|
1282
1282
|
* @param {*} [options] Override http request option.
|
|
1283
1283
|
* @throws {RequiredError}
|
|
1284
1284
|
* @memberof DefaultApi
|
|
1285
1285
|
*/
|
|
1286
|
-
oidcAcceptOffer(
|
|
1287
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(
|
|
1286
|
+
oidcAcceptOffer(walletId, vcOffer, options) {
|
|
1287
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1288
1288
|
}
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
|
|
1291
1291
|
* @param {string} credentialId
|
|
1292
|
-
* @param {string}
|
|
1292
|
+
* @param {string} walletId
|
|
1293
1293
|
* @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
|
|
1294
1294
|
* @param {*} [options] Override http request option.
|
|
1295
1295
|
* @throws {RequiredError}
|
|
1296
1296
|
* @memberof DefaultApi
|
|
1297
1297
|
*/
|
|
1298
|
-
oidcAddCredToIssuanceQueue(credentialId,
|
|
1299
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId,
|
|
1298
|
+
oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
|
|
1299
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
|
|
1300
1300
|
}
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
|
|
1303
|
-
* @param {string}
|
|
1303
|
+
* @param {string} walletId
|
|
1304
1304
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
1305
1305
|
* @param {*} [options] Override http request option.
|
|
1306
1306
|
* @throws {RequiredError}
|
|
1307
1307
|
* @memberof DefaultApi
|
|
1308
1308
|
*/
|
|
1309
|
-
oidcInitiateDeferred(
|
|
1310
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(
|
|
1309
|
+
oidcInitiateDeferred(walletId, initAuthOffer, options) {
|
|
1310
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1311
1311
|
}
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Initiates issuing of the verifiable credential using authorized flow.
|
|
1314
|
-
* @param {string}
|
|
1314
|
+
* @param {string} walletId
|
|
1315
1315
|
* @param {InitAuthOffer} [initAuthOffer]
|
|
1316
1316
|
* @param {*} [options] Override http request option.
|
|
1317
1317
|
* @throws {RequiredError}
|
|
1318
1318
|
* @memberof DefaultApi
|
|
1319
1319
|
*/
|
|
1320
|
-
oidcInitiateIntime(
|
|
1321
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(
|
|
1320
|
+
oidcInitiateIntime(walletId, initAuthOffer, options) {
|
|
1321
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1322
1322
|
}
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Initiates issuing of the verifiable credential using pre-authorized flow.
|
|
1325
|
-
* @param {string}
|
|
1325
|
+
* @param {string} walletId
|
|
1326
1326
|
* @param {InitPreAuthOffer} [initPreAuthOffer]
|
|
1327
1327
|
* @param {*} [options] Override http request option.
|
|
1328
1328
|
* @throws {RequiredError}
|
|
1329
1329
|
* @memberof DefaultApi
|
|
1330
1330
|
*/
|
|
1331
|
-
oidcInitiatePreauth(
|
|
1332
|
-
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(
|
|
1331
|
+
oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
|
|
1332
|
+
return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
|
|
1333
1333
|
}
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Provides wallet details
|
|
1336
|
-
* @param {string}
|
|
1336
|
+
* @param {string} walletId
|
|
1337
1337
|
* @param {*} [options] Override http request option.
|
|
1338
1338
|
* @throws {RequiredError}
|
|
1339
1339
|
* @memberof DefaultApi
|
|
1340
1340
|
*/
|
|
1341
|
-
walletGet(
|
|
1342
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletGet(
|
|
1341
|
+
walletGet(walletId, options) {
|
|
1342
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletGet(walletId, options).then((request) => request(this.axios, this.basePath));
|
|
1343
1343
|
}
|
|
1344
1344
|
/**
|
|
1345
1345
|
* Provides list of wallets owned by the authenticated client.
|
|
@@ -1352,14 +1352,14 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
/**
|
|
1354
1354
|
* 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
|
-
* @param {string} [
|
|
1355
|
+
* @param {string} [walletId] Has to be provided for updates.
|
|
1356
1356
|
* @param {Wallet} [wallet]
|
|
1357
1357
|
* @param {*} [options] Override http request option.
|
|
1358
1358
|
* @throws {RequiredError}
|
|
1359
1359
|
* @memberof DefaultApi
|
|
1360
1360
|
*/
|
|
1361
|
-
walletSave(
|
|
1362
|
-
return (0, exports.DefaultApiFp)(this.configuration).walletSave(
|
|
1361
|
+
walletSave(walletId, wallet, options) {
|
|
1362
|
+
return (0, exports.DefaultApiFp)(this.configuration).walletSave(walletId, wallet, options).then((request) => request(this.axios, this.basePath));
|
|
1363
1363
|
}
|
|
1364
1364
|
}
|
|
1365
1365
|
exports.DefaultApi = DefaultApi;
|