@triveria/wallet 0.0.9 → 0.0.11

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.
Files changed (3) hide show
  1. package/api.d.ts +121 -61
  2. package/api.js +238 -105
  3. package/package.json +1 -1
package/api.js CHANGED
@@ -67,11 +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} walletId
70
71
  * @param {Credential} [credential] Verifiable Credential in JSON format
71
72
  * @param {*} [options] Override http request option.
72
73
  * @throws {RequiredError}
73
74
  */
74
- credentialCreate: (credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
75
78
  const localVarPath = `/credentials`;
76
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
80
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -85,6 +88,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
85
88
  // authentication accessToken required
86
89
  // http bearer authentication required
87
90
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
91
+ if (walletId != null) {
92
+ localVarHeaderParameter['wallet-id'] = String(walletId);
93
+ }
88
94
  localVarHeaderParameter['Content-Type'] = 'application/json';
89
95
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
90
96
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -98,12 +104,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
98
104
  /**
99
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.
100
106
  * @param {string} credentialId Verifiable Credential Identifier
107
+ * @param {string} walletId
101
108
  * @param {*} [options] Override http request option.
102
109
  * @throws {RequiredError}
103
110
  */
104
- credentialGet: (credentialId, options = {}) => __awaiter(this, void 0, void 0, function* () {
111
+ credentialGet: (credentialId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
105
112
  // verify required parameter 'credentialId' is not null or undefined
106
113
  (0, common_1.assertParamExists)('credentialGet', 'credentialId', credentialId);
114
+ // verify required parameter 'walletId' is not null or undefined
115
+ (0, common_1.assertParamExists)('credentialGet', 'walletId', walletId);
107
116
  const localVarPath = `/credentials/{credential_id}`
108
117
  .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
109
118
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -118,6 +127,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
118
127
  // authentication accessToken required
119
128
  // http bearer authentication required
120
129
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
130
+ if (walletId != null) {
131
+ localVarHeaderParameter['wallet-id'] = String(walletId);
132
+ }
121
133
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
122
134
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
135
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -129,12 +141,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
129
141
  /**
130
142
  *
131
143
  * @param {string} credentialId Verifiable Credential Identifier
144
+ * @param {string} walletId
132
145
  * @param {*} [options] Override http request option.
133
146
  * @throws {RequiredError}
134
147
  */
135
- credentialIssue: (credentialId, options = {}) => __awaiter(this, void 0, void 0, function* () {
148
+ credentialIssue: (credentialId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
136
149
  // verify required parameter 'credentialId' is not null or undefined
137
150
  (0, common_1.assertParamExists)('credentialIssue', 'credentialId', credentialId);
151
+ // verify required parameter 'walletId' is not null or undefined
152
+ (0, common_1.assertParamExists)('credentialIssue', 'walletId', walletId);
138
153
  const localVarPath = `/credentials/{credential_id}/issue`
139
154
  .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
140
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -149,6 +164,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
149
164
  // authentication accessToken required
150
165
  // http bearer authentication required
151
166
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
167
+ if (walletId != null) {
168
+ localVarHeaderParameter['wallet-id'] = String(walletId);
169
+ }
152
170
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
171
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
172
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -159,10 +177,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
159
177
  }),
160
178
  /**
161
179
  * Retrieves a list of credentials.
180
+ * @param {string} walletId
162
181
  * @param {*} [options] Override http request option.
163
182
  * @throws {RequiredError}
164
183
  */
165
- credentialList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
166
187
  const localVarPath = `/credentials`;
167
188
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
189
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -176,6 +197,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
176
197
  // authentication accessToken required
177
198
  // http bearer authentication required
178
199
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
200
+ if (walletId != null) {
201
+ localVarHeaderParameter['wallet-id'] = String(walletId);
202
+ }
179
203
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
204
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
205
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -187,13 +211,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
187
211
  /**
188
212
  *
189
213
  * @param {string} credentialId Verifiable Credential Identifier
214
+ * @param {string} walletId
190
215
  * @param {Credential} [credential] Verifiable Credential in JSON format
191
216
  * @param {*} [options] Override http request option.
192
217
  * @throws {RequiredError}
193
218
  */
194
- credentialUpdate: (credentialId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
219
+ credentialUpdate: (credentialId, walletId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
195
220
  // verify required parameter 'credentialId' is not null or undefined
196
221
  (0, common_1.assertParamExists)('credentialUpdate', 'credentialId', credentialId);
222
+ // verify required parameter 'walletId' is not null or undefined
223
+ (0, common_1.assertParamExists)('credentialUpdate', 'walletId', walletId);
197
224
  const localVarPath = `/credentials/{credential_id}`
198
225
  .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
199
226
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -205,6 +232,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
205
232
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
206
233
  const localVarHeaderParameter = {};
207
234
  const localVarQueryParameter = {};
235
+ if (walletId != null) {
236
+ localVarHeaderParameter['wallet-id'] = String(walletId);
237
+ }
208
238
  localVarHeaderParameter['Content-Type'] = 'application/json';
209
239
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
210
240
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -218,12 +248,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
218
248
  /**
219
249
  *
220
250
  * @param {string} deferredId Deferred token
251
+ * @param {string} walletId
221
252
  * @param {*} [options] Override http request option.
222
253
  * @throws {RequiredError}
223
254
  */
224
- deferredStatus: (deferredId, options = {}) => __awaiter(this, void 0, void 0, function* () {
255
+ deferredStatus: (deferredId, walletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
225
256
  // verify required parameter 'deferredId' is not null or undefined
226
257
  (0, common_1.assertParamExists)('deferredStatus', 'deferredId', deferredId);
258
+ // verify required parameter 'walletId' is not null or undefined
259
+ (0, common_1.assertParamExists)('deferredStatus', 'walletId', walletId);
227
260
  const localVarPath = `/deferred/{deferred_id}`
228
261
  .replace(`{${"deferred_id"}}`, encodeURIComponent(String(deferredId)));
229
262
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -238,6 +271,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
238
271
  // authentication accessToken required
239
272
  // http bearer authentication required
240
273
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
274
+ if (walletId != null) {
275
+ localVarHeaderParameter['wallet-id'] = String(walletId);
276
+ }
241
277
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
242
278
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
279
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -248,10 +284,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
248
284
  }),
249
285
  /**
250
286
  *
287
+ * @param {string} walletId
251
288
  * @param {*} [options] Override http request option.
252
289
  * @throws {RequiredError}
253
290
  */
254
- getCurrentDid: (options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
255
294
  const localVarPath = `/did`;
256
295
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
296
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -265,6 +304,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
265
304
  // authentication accessToken required
266
305
  // http bearer authentication required
267
306
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
307
+ if (walletId != null) {
308
+ localVarHeaderParameter['wallet-id'] = String(walletId);
309
+ }
268
310
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
269
311
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
270
312
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -299,11 +341,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
299
341
  }),
300
342
  /**
301
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} walletId
302
345
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
303
346
  * @param {*} [options] Override http request option.
304
347
  * @throws {RequiredError}
305
348
  */
306
- holderCreateAuthOffer: (holderAuthOfferCreationReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
307
352
  const localVarPath = `/offer/create/intime`;
308
353
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
309
354
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -317,6 +362,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
317
362
  // authentication accessToken required
318
363
  // http bearer authentication required
319
364
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
365
+ if (walletId != null) {
366
+ localVarHeaderParameter['wallet-id'] = String(walletId);
367
+ }
320
368
  localVarHeaderParameter['Content-Type'] = 'application/json';
321
369
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
322
370
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -359,11 +407,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
359
407
  }),
360
408
  /**
361
409
  * Issue verifiable credential using OIDC4VCI offer acceptance
410
+ * @param {string} walletId
362
411
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
363
412
  * @param {*} [options] Override http request option.
364
413
  * @throws {RequiredError}
365
414
  */
366
- oidcAcceptOffer: (vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
367
418
  const localVarPath = `/offer/accept`;
368
419
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
369
420
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -377,6 +428,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
377
428
  // authentication accessToken required
378
429
  // http bearer authentication required
379
430
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
431
+ if (walletId != null) {
432
+ localVarHeaderParameter['wallet-id'] = String(walletId);
433
+ }
380
434
  localVarHeaderParameter['Content-Type'] = 'application/json';
381
435
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
436
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -390,13 +444,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
390
444
  /**
391
445
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
392
446
  * @param {string} credentialId
447
+ * @param {string} walletId
393
448
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
394
449
  * @param {*} [options] Override http request option.
395
450
  * @throws {RequiredError}
396
451
  */
397
- oidcAddCredToIssuanceQueue: (credentialId, issuanceQueueCredAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
452
+ oidcAddCredToIssuanceQueue: (credentialId, walletId, issuanceQueueCredAdd, options = {}) => __awaiter(this, void 0, void 0, function* () {
398
453
  // verify required parameter 'credentialId' is not null or undefined
399
454
  (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'credentialId', credentialId);
455
+ // verify required parameter 'walletId' is not null or undefined
456
+ (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'walletId', walletId);
400
457
  const localVarPath = `/credentials/{credential_id}/add`
401
458
  .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
402
459
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -411,6 +468,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
411
468
  // authentication accessToken required
412
469
  // http bearer authentication required
413
470
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
471
+ if (walletId != null) {
472
+ localVarHeaderParameter['wallet-id'] = String(walletId);
473
+ }
414
474
  localVarHeaderParameter['Content-Type'] = 'application/json';
415
475
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
416
476
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -423,11 +483,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
423
483
  }),
424
484
  /**
425
485
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
486
+ * @param {string} walletId
426
487
  * @param {InitAuthOffer} [initAuthOffer]
427
488
  * @param {*} [options] Override http request option.
428
489
  * @throws {RequiredError}
429
490
  */
430
- oidcInitiateDeferred: (initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
431
494
  const localVarPath = `/issuer/initiate/deferred`;
432
495
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
496
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -441,6 +504,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
441
504
  // authentication accessToken required
442
505
  // http bearer authentication required
443
506
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
507
+ if (walletId != null) {
508
+ localVarHeaderParameter['wallet-id'] = String(walletId);
509
+ }
444
510
  localVarHeaderParameter['Content-Type'] = 'application/json';
445
511
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
512
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -453,11 +519,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
453
519
  }),
454
520
  /**
455
521
  * Initiates issuing of the verifiable credential using authorized flow.
522
+ * @param {string} walletId
456
523
  * @param {InitAuthOffer} [initAuthOffer]
457
524
  * @param {*} [options] Override http request option.
458
525
  * @throws {RequiredError}
459
526
  */
460
- oidcInitiateIntime: (initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
461
530
  const localVarPath = `/issuer/initiate/intime`;
462
531
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
463
532
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -471,6 +540,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
471
540
  // authentication accessToken required
472
541
  // http bearer authentication required
473
542
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
543
+ if (walletId != null) {
544
+ localVarHeaderParameter['wallet-id'] = String(walletId);
545
+ }
474
546
  localVarHeaderParameter['Content-Type'] = 'application/json';
475
547
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
476
548
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -483,11 +555,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
483
555
  }),
484
556
  /**
485
557
  * Initiates issuing of the verifiable credential using pre-authorized flow.
558
+ * @param {string} walletId
486
559
  * @param {InitPreAuthOffer} [initPreAuthOffer]
487
560
  * @param {*} [options] Override http request option.
488
561
  * @throws {RequiredError}
489
562
  */
490
- oidcInitiatePreauth: (initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
491
566
  const localVarPath = `/issuer/initiate/preauth`;
492
567
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
493
568
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -501,6 +576,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
501
576
  // authentication accessToken required
502
577
  // http bearer authentication required
503
578
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
579
+ if (walletId != null) {
580
+ localVarHeaderParameter['wallet-id'] = String(walletId);
581
+ }
504
582
  localVarHeaderParameter['Content-Type'] = 'application/json';
505
583
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
506
584
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -513,10 +591,13 @@ const DefaultApiAxiosParamCreator = function (configuration) {
513
591
  }),
514
592
  /**
515
593
  * Provides wallet details
594
+ * @param {string} walletId
516
595
  * @param {*} [options] Override http request option.
517
596
  * @throws {RequiredError}
518
597
  */
519
- walletGet: (options = {}) => __awaiter(this, void 0, void 0, function* () {
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);
520
601
  const localVarPath = `/wallets/current`;
521
602
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
522
603
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -530,6 +611,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
530
611
  // authentication accessToken required
531
612
  // http bearer authentication required
532
613
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
614
+ if (walletId != null) {
615
+ localVarHeaderParameter['wallet-id'] = String(walletId);
616
+ }
533
617
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
534
618
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
535
619
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -567,11 +651,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
567
651
  }),
568
652
  /**
569
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} [walletId] Has to be provided for updates.
570
655
  * @param {Wallet} [wallet]
571
656
  * @param {*} [options] Override http request option.
572
657
  * @throws {RequiredError}
573
658
  */
574
- walletSave: (wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
659
+ walletSave: (walletId, wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
575
660
  const localVarPath = `/wallets`;
576
661
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
577
662
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -585,6 +670,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
585
670
  // authentication accessToken required
586
671
  // http bearer authentication required
587
672
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
673
+ if (walletId != null) {
674
+ localVarHeaderParameter['wallet-id'] = String(walletId);
675
+ }
588
676
  localVarHeaderParameter['Content-Type'] = 'application/json';
589
677
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
590
678
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -607,14 +695,15 @@ const DefaultApiFp = function (configuration) {
607
695
  return {
608
696
  /**
609
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} walletId
610
699
  * @param {Credential} [credential] Verifiable Credential in JSON format
611
700
  * @param {*} [options] Override http request option.
612
701
  * @throws {RequiredError}
613
702
  */
614
- credentialCreate(credential, options) {
703
+ credentialCreate(walletId, credential, options) {
615
704
  var _a, _b, _c;
616
705
  return __awaiter(this, void 0, void 0, function* () {
617
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(credential, options);
706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(walletId, credential, options);
618
707
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
619
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;
620
709
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -623,13 +712,14 @@ const DefaultApiFp = function (configuration) {
623
712
  /**
624
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.
625
714
  * @param {string} credentialId Verifiable Credential Identifier
715
+ * @param {string} walletId
626
716
  * @param {*} [options] Override http request option.
627
717
  * @throws {RequiredError}
628
718
  */
629
- credentialGet(credentialId, options) {
719
+ credentialGet(credentialId, walletId, options) {
630
720
  var _a, _b, _c;
631
721
  return __awaiter(this, void 0, void 0, function* () {
632
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, options);
722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, walletId, options);
633
723
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
634
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;
635
725
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -638,13 +728,14 @@ const DefaultApiFp = function (configuration) {
638
728
  /**
639
729
  *
640
730
  * @param {string} credentialId Verifiable Credential Identifier
731
+ * @param {string} walletId
641
732
  * @param {*} [options] Override http request option.
642
733
  * @throws {RequiredError}
643
734
  */
644
- credentialIssue(credentialId, options) {
735
+ credentialIssue(credentialId, walletId, options) {
645
736
  var _a, _b, _c;
646
737
  return __awaiter(this, void 0, void 0, function* () {
647
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, options);
738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, walletId, options);
648
739
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
649
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;
650
741
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -652,13 +743,14 @@ const DefaultApiFp = function (configuration) {
652
743
  },
653
744
  /**
654
745
  * Retrieves a list of credentials.
746
+ * @param {string} walletId
655
747
  * @param {*} [options] Override http request option.
656
748
  * @throws {RequiredError}
657
749
  */
658
- credentialList(options) {
750
+ credentialList(walletId, options) {
659
751
  var _a, _b, _c;
660
752
  return __awaiter(this, void 0, void 0, function* () {
661
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(options);
753
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(walletId, options);
662
754
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
663
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;
664
756
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -667,14 +759,15 @@ const DefaultApiFp = function (configuration) {
667
759
  /**
668
760
  *
669
761
  * @param {string} credentialId Verifiable Credential Identifier
762
+ * @param {string} walletId
670
763
  * @param {Credential} [credential] Verifiable Credential in JSON format
671
764
  * @param {*} [options] Override http request option.
672
765
  * @throws {RequiredError}
673
766
  */
674
- credentialUpdate(credentialId, credential, options) {
767
+ credentialUpdate(credentialId, walletId, credential, options) {
675
768
  var _a, _b, _c;
676
769
  return __awaiter(this, void 0, void 0, function* () {
677
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, credential, options);
770
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, walletId, credential, options);
678
771
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
679
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;
680
773
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -683,13 +776,14 @@ const DefaultApiFp = function (configuration) {
683
776
  /**
684
777
  *
685
778
  * @param {string} deferredId Deferred token
779
+ * @param {string} walletId
686
780
  * @param {*} [options] Override http request option.
687
781
  * @throws {RequiredError}
688
782
  */
689
- deferredStatus(deferredId, options) {
783
+ deferredStatus(deferredId, walletId, options) {
690
784
  var _a, _b, _c;
691
785
  return __awaiter(this, void 0, void 0, function* () {
692
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, options);
786
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, walletId, options);
693
787
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
694
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;
695
789
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -697,13 +791,14 @@ const DefaultApiFp = function (configuration) {
697
791
  },
698
792
  /**
699
793
  *
794
+ * @param {string} walletId
700
795
  * @param {*} [options] Override http request option.
701
796
  * @throws {RequiredError}
702
797
  */
703
- getCurrentDid(options) {
798
+ getCurrentDid(walletId, options) {
704
799
  var _a, _b, _c;
705
800
  return __awaiter(this, void 0, void 0, function* () {
706
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(options);
801
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(walletId, options);
707
802
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
708
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;
709
804
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -725,14 +820,15 @@ const DefaultApiFp = function (configuration) {
725
820
  },
726
821
  /**
727
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} walletId
728
824
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
729
825
  * @param {*} [options] Override http request option.
730
826
  * @throws {RequiredError}
731
827
  */
732
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
828
+ holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
733
829
  var _a, _b, _c;
734
830
  return __awaiter(this, void 0, void 0, function* () {
735
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(holderAuthOfferCreationReq, options);
831
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options);
736
832
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
737
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;
738
834
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -755,14 +851,15 @@ const DefaultApiFp = function (configuration) {
755
851
  },
756
852
  /**
757
853
  * Issue verifiable credential using OIDC4VCI offer acceptance
854
+ * @param {string} walletId
758
855
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
759
856
  * @param {*} [options] Override http request option.
760
857
  * @throws {RequiredError}
761
858
  */
762
- oidcAcceptOffer(vcOffer, options) {
859
+ oidcAcceptOffer(walletId, vcOffer, options) {
763
860
  var _a, _b, _c;
764
861
  return __awaiter(this, void 0, void 0, function* () {
765
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(vcOffer, options);
862
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(walletId, vcOffer, options);
766
863
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
767
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;
768
865
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -771,14 +868,15 @@ const DefaultApiFp = function (configuration) {
771
868
  /**
772
869
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
773
870
  * @param {string} credentialId
871
+ * @param {string} walletId
774
872
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
775
873
  * @param {*} [options] Override http request option.
776
874
  * @throws {RequiredError}
777
875
  */
778
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
876
+ oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
779
877
  var _a, _b, _c;
780
878
  return __awaiter(this, void 0, void 0, function* () {
781
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options);
879
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options);
782
880
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
783
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;
784
882
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -786,14 +884,15 @@ const DefaultApiFp = function (configuration) {
786
884
  },
787
885
  /**
788
886
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
887
+ * @param {string} walletId
789
888
  * @param {InitAuthOffer} [initAuthOffer]
790
889
  * @param {*} [options] Override http request option.
791
890
  * @throws {RequiredError}
792
891
  */
793
- oidcInitiateDeferred(initAuthOffer, options) {
892
+ oidcInitiateDeferred(walletId, initAuthOffer, options) {
794
893
  var _a, _b, _c;
795
894
  return __awaiter(this, void 0, void 0, function* () {
796
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(initAuthOffer, options);
895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(walletId, initAuthOffer, options);
797
896
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
798
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;
799
898
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -801,14 +900,15 @@ const DefaultApiFp = function (configuration) {
801
900
  },
802
901
  /**
803
902
  * Initiates issuing of the verifiable credential using authorized flow.
903
+ * @param {string} walletId
804
904
  * @param {InitAuthOffer} [initAuthOffer]
805
905
  * @param {*} [options] Override http request option.
806
906
  * @throws {RequiredError}
807
907
  */
808
- oidcInitiateIntime(initAuthOffer, options) {
908
+ oidcInitiateIntime(walletId, initAuthOffer, options) {
809
909
  var _a, _b, _c;
810
910
  return __awaiter(this, void 0, void 0, function* () {
811
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(initAuthOffer, options);
911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(walletId, initAuthOffer, options);
812
912
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
813
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;
814
914
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -816,14 +916,15 @@ const DefaultApiFp = function (configuration) {
816
916
  },
817
917
  /**
818
918
  * Initiates issuing of the verifiable credential using pre-authorized flow.
919
+ * @param {string} walletId
819
920
  * @param {InitPreAuthOffer} [initPreAuthOffer]
820
921
  * @param {*} [options] Override http request option.
821
922
  * @throws {RequiredError}
822
923
  */
823
- oidcInitiatePreauth(initPreAuthOffer, options) {
924
+ oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
824
925
  var _a, _b, _c;
825
926
  return __awaiter(this, void 0, void 0, function* () {
826
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(initPreAuthOffer, options);
927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(walletId, initPreAuthOffer, options);
827
928
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
828
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;
829
930
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -831,13 +932,14 @@ const DefaultApiFp = function (configuration) {
831
932
  },
832
933
  /**
833
934
  * Provides wallet details
935
+ * @param {string} walletId
834
936
  * @param {*} [options] Override http request option.
835
937
  * @throws {RequiredError}
836
938
  */
837
- walletGet(options) {
939
+ walletGet(walletId, options) {
838
940
  var _a, _b, _c;
839
941
  return __awaiter(this, void 0, void 0, function* () {
840
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletGet(options);
942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletGet(walletId, options);
841
943
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
842
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;
843
945
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -859,14 +961,15 @@ const DefaultApiFp = function (configuration) {
859
961
  },
860
962
  /**
861
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} [walletId] Has to be provided for updates.
862
965
  * @param {Wallet} [wallet]
863
966
  * @param {*} [options] Override http request option.
864
967
  * @throws {RequiredError}
865
968
  */
866
- walletSave(wallet, options) {
969
+ walletSave(walletId, wallet, options) {
867
970
  var _a, _b, _c;
868
971
  return __awaiter(this, void 0, void 0, function* () {
869
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletSave(wallet, options);
972
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletSave(walletId, wallet, options);
870
973
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
871
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;
872
975
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -884,65 +987,72 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
884
987
  return {
885
988
  /**
886
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} walletId
887
991
  * @param {Credential} [credential] Verifiable Credential in JSON format
888
992
  * @param {*} [options] Override http request option.
889
993
  * @throws {RequiredError}
890
994
  */
891
- credentialCreate(credential, options) {
892
- return localVarFp.credentialCreate(credential, options).then((request) => request(axios, basePath));
995
+ credentialCreate(walletId, credential, options) {
996
+ return localVarFp.credentialCreate(walletId, credential, options).then((request) => request(axios, basePath));
893
997
  },
894
998
  /**
895
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.
896
1000
  * @param {string} credentialId Verifiable Credential Identifier
1001
+ * @param {string} walletId
897
1002
  * @param {*} [options] Override http request option.
898
1003
  * @throws {RequiredError}
899
1004
  */
900
- credentialGet(credentialId, options) {
901
- return localVarFp.credentialGet(credentialId, options).then((request) => request(axios, basePath));
1005
+ credentialGet(credentialId, walletId, options) {
1006
+ return localVarFp.credentialGet(credentialId, walletId, options).then((request) => request(axios, basePath));
902
1007
  },
903
1008
  /**
904
1009
  *
905
1010
  * @param {string} credentialId Verifiable Credential Identifier
1011
+ * @param {string} walletId
906
1012
  * @param {*} [options] Override http request option.
907
1013
  * @throws {RequiredError}
908
1014
  */
909
- credentialIssue(credentialId, options) {
910
- return localVarFp.credentialIssue(credentialId, options).then((request) => request(axios, basePath));
1015
+ credentialIssue(credentialId, walletId, options) {
1016
+ return localVarFp.credentialIssue(credentialId, walletId, options).then((request) => request(axios, basePath));
911
1017
  },
912
1018
  /**
913
1019
  * Retrieves a list of credentials.
1020
+ * @param {string} walletId
914
1021
  * @param {*} [options] Override http request option.
915
1022
  * @throws {RequiredError}
916
1023
  */
917
- credentialList(options) {
918
- return localVarFp.credentialList(options).then((request) => request(axios, basePath));
1024
+ credentialList(walletId, options) {
1025
+ return localVarFp.credentialList(walletId, options).then((request) => request(axios, basePath));
919
1026
  },
920
1027
  /**
921
1028
  *
922
1029
  * @param {string} credentialId Verifiable Credential Identifier
1030
+ * @param {string} walletId
923
1031
  * @param {Credential} [credential] Verifiable Credential in JSON format
924
1032
  * @param {*} [options] Override http request option.
925
1033
  * @throws {RequiredError}
926
1034
  */
927
- credentialUpdate(credentialId, credential, options) {
928
- return localVarFp.credentialUpdate(credentialId, credential, options).then((request) => request(axios, basePath));
1035
+ credentialUpdate(credentialId, walletId, credential, options) {
1036
+ return localVarFp.credentialUpdate(credentialId, walletId, credential, options).then((request) => request(axios, basePath));
929
1037
  },
930
1038
  /**
931
1039
  *
932
1040
  * @param {string} deferredId Deferred token
1041
+ * @param {string} walletId
933
1042
  * @param {*} [options] Override http request option.
934
1043
  * @throws {RequiredError}
935
1044
  */
936
- deferredStatus(deferredId, options) {
937
- return localVarFp.deferredStatus(deferredId, options).then((request) => request(axios, basePath));
1045
+ deferredStatus(deferredId, walletId, options) {
1046
+ return localVarFp.deferredStatus(deferredId, walletId, options).then((request) => request(axios, basePath));
938
1047
  },
939
1048
  /**
940
1049
  *
1050
+ * @param {string} walletId
941
1051
  * @param {*} [options] Override http request option.
942
1052
  * @throws {RequiredError}
943
1053
  */
944
- getCurrentDid(options) {
945
- return localVarFp.getCurrentDid(options).then((request) => request(axios, basePath));
1054
+ getCurrentDid(walletId, options) {
1055
+ return localVarFp.getCurrentDid(walletId, options).then((request) => request(axios, basePath));
946
1056
  },
947
1057
  /**
948
1058
  *
@@ -954,12 +1064,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
954
1064
  },
955
1065
  /**
956
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} walletId
957
1068
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
958
1069
  * @param {*} [options] Override http request option.
959
1070
  * @throws {RequiredError}
960
1071
  */
961
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
962
- return localVarFp.holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
1072
+ holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
1073
+ return localVarFp.holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
963
1074
  },
964
1075
  /**
965
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)
@@ -972,57 +1083,63 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
972
1083
  },
973
1084
  /**
974
1085
  * Issue verifiable credential using OIDC4VCI offer acceptance
1086
+ * @param {string} walletId
975
1087
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
976
1088
  * @param {*} [options] Override http request option.
977
1089
  * @throws {RequiredError}
978
1090
  */
979
- oidcAcceptOffer(vcOffer, options) {
980
- return localVarFp.oidcAcceptOffer(vcOffer, options).then((request) => request(axios, basePath));
1091
+ oidcAcceptOffer(walletId, vcOffer, options) {
1092
+ return localVarFp.oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(axios, basePath));
981
1093
  },
982
1094
  /**
983
1095
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
984
1096
  * @param {string} credentialId
1097
+ * @param {string} walletId
985
1098
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
986
1099
  * @param {*} [options] Override http request option.
987
1100
  * @throws {RequiredError}
988
1101
  */
989
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
990
- return localVarFp.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
1102
+ oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options) {
1103
+ return localVarFp.oidcAddCredToIssuanceQueue(credentialId, walletId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
991
1104
  },
992
1105
  /**
993
1106
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1107
+ * @param {string} walletId
994
1108
  * @param {InitAuthOffer} [initAuthOffer]
995
1109
  * @param {*} [options] Override http request option.
996
1110
  * @throws {RequiredError}
997
1111
  */
998
- oidcInitiateDeferred(initAuthOffer, options) {
999
- return localVarFp.oidcInitiateDeferred(initAuthOffer, options).then((request) => request(axios, basePath));
1112
+ oidcInitiateDeferred(walletId, initAuthOffer, options) {
1113
+ return localVarFp.oidcInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
1000
1114
  },
1001
1115
  /**
1002
1116
  * Initiates issuing of the verifiable credential using authorized flow.
1117
+ * @param {string} walletId
1003
1118
  * @param {InitAuthOffer} [initAuthOffer]
1004
1119
  * @param {*} [options] Override http request option.
1005
1120
  * @throws {RequiredError}
1006
1121
  */
1007
- oidcInitiateIntime(initAuthOffer, options) {
1008
- return localVarFp.oidcInitiateIntime(initAuthOffer, options).then((request) => request(axios, basePath));
1122
+ oidcInitiateIntime(walletId, initAuthOffer, options) {
1123
+ return localVarFp.oidcInitiateIntime(walletId, initAuthOffer, options).then((request) => request(axios, basePath));
1009
1124
  },
1010
1125
  /**
1011
1126
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1127
+ * @param {string} walletId
1012
1128
  * @param {InitPreAuthOffer} [initPreAuthOffer]
1013
1129
  * @param {*} [options] Override http request option.
1014
1130
  * @throws {RequiredError}
1015
1131
  */
1016
- oidcInitiatePreauth(initPreAuthOffer, options) {
1017
- return localVarFp.oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(axios, basePath));
1132
+ oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
1133
+ return localVarFp.oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
1018
1134
  },
1019
1135
  /**
1020
1136
  * Provides wallet details
1137
+ * @param {string} walletId
1021
1138
  * @param {*} [options] Override http request option.
1022
1139
  * @throws {RequiredError}
1023
1140
  */
1024
- walletGet(options) {
1025
- return localVarFp.walletGet(options).then((request) => request(axios, basePath));
1141
+ walletGet(walletId, options) {
1142
+ return localVarFp.walletGet(walletId, options).then((request) => request(axios, basePath));
1026
1143
  },
1027
1144
  /**
1028
1145
  * Provides list of wallets owned by the authenticated client.
@@ -1034,12 +1151,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1034
1151
  },
1035
1152
  /**
1036
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} [walletId] Has to be provided for updates.
1037
1155
  * @param {Wallet} [wallet]
1038
1156
  * @param {*} [options] Override http request option.
1039
1157
  * @throws {RequiredError}
1040
1158
  */
1041
- walletSave(wallet, options) {
1042
- return localVarFp.walletSave(wallet, options).then((request) => request(axios, basePath));
1159
+ walletSave(walletId, wallet, options) {
1160
+ return localVarFp.walletSave(walletId, wallet, options).then((request) => request(axios, basePath));
1043
1161
  },
1044
1162
  };
1045
1163
  };
@@ -1053,72 +1171,79 @@ exports.DefaultApiFactory = DefaultApiFactory;
1053
1171
  class DefaultApi extends base_1.BaseAPI {
1054
1172
  /**
1055
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} walletId
1056
1175
  * @param {Credential} [credential] Verifiable Credential in JSON format
1057
1176
  * @param {*} [options] Override http request option.
1058
1177
  * @throws {RequiredError}
1059
1178
  * @memberof DefaultApi
1060
1179
  */
1061
- credentialCreate(credential, options) {
1062
- return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(credential, options).then((request) => request(this.axios, this.basePath));
1180
+ credentialCreate(walletId, credential, options) {
1181
+ return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credential, options).then((request) => request(this.axios, this.basePath));
1063
1182
  }
1064
1183
  /**
1065
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.
1066
1185
  * @param {string} credentialId Verifiable Credential Identifier
1186
+ * @param {string} walletId
1067
1187
  * @param {*} [options] Override http request option.
1068
1188
  * @throws {RequiredError}
1069
1189
  * @memberof DefaultApi
1070
1190
  */
1071
- credentialGet(credentialId, options) {
1072
- return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, options).then((request) => request(this.axios, this.basePath));
1191
+ credentialGet(credentialId, walletId, options) {
1192
+ return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
1073
1193
  }
1074
1194
  /**
1075
1195
  *
1076
1196
  * @param {string} credentialId Verifiable Credential Identifier
1197
+ * @param {string} walletId
1077
1198
  * @param {*} [options] Override http request option.
1078
1199
  * @throws {RequiredError}
1079
1200
  * @memberof DefaultApi
1080
1201
  */
1081
- credentialIssue(credentialId, options) {
1082
- return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, options).then((request) => request(this.axios, this.basePath));
1202
+ credentialIssue(credentialId, walletId, options) {
1203
+ return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, walletId, options).then((request) => request(this.axios, this.basePath));
1083
1204
  }
1084
1205
  /**
1085
1206
  * Retrieves a list of credentials.
1207
+ * @param {string} walletId
1086
1208
  * @param {*} [options] Override http request option.
1087
1209
  * @throws {RequiredError}
1088
1210
  * @memberof DefaultApi
1089
1211
  */
1090
- credentialList(options) {
1091
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(options).then((request) => request(this.axios, this.basePath));
1212
+ credentialList(walletId, options) {
1213
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, options).then((request) => request(this.axios, this.basePath));
1092
1214
  }
1093
1215
  /**
1094
1216
  *
1095
1217
  * @param {string} credentialId Verifiable Credential Identifier
1218
+ * @param {string} walletId
1096
1219
  * @param {Credential} [credential] Verifiable Credential in JSON format
1097
1220
  * @param {*} [options] Override http request option.
1098
1221
  * @throws {RequiredError}
1099
1222
  * @memberof DefaultApi
1100
1223
  */
1101
- credentialUpdate(credentialId, credential, options) {
1102
- return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, credential, options).then((request) => request(this.axios, this.basePath));
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));
1103
1226
  }
1104
1227
  /**
1105
1228
  *
1106
1229
  * @param {string} deferredId Deferred token
1230
+ * @param {string} walletId
1107
1231
  * @param {*} [options] Override http request option.
1108
1232
  * @throws {RequiredError}
1109
1233
  * @memberof DefaultApi
1110
1234
  */
1111
- deferredStatus(deferredId, options) {
1112
- return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, options).then((request) => request(this.axios, this.basePath));
1235
+ deferredStatus(deferredId, walletId, options) {
1236
+ return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, walletId, options).then((request) => request(this.axios, this.basePath));
1113
1237
  }
1114
1238
  /**
1115
1239
  *
1240
+ * @param {string} walletId
1116
1241
  * @param {*} [options] Override http request option.
1117
1242
  * @throws {RequiredError}
1118
1243
  * @memberof DefaultApi
1119
1244
  */
1120
- getCurrentDid(options) {
1121
- return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(options).then((request) => request(this.axios, this.basePath));
1245
+ getCurrentDid(walletId, options) {
1246
+ return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(walletId, options).then((request) => request(this.axios, this.basePath));
1122
1247
  }
1123
1248
  /**
1124
1249
  *
@@ -1131,13 +1256,14 @@ class DefaultApi extends base_1.BaseAPI {
1131
1256
  }
1132
1257
  /**
1133
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} walletId
1134
1260
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
1135
1261
  * @param {*} [options] Override http request option.
1136
1262
  * @throws {RequiredError}
1137
1263
  * @memberof DefaultApi
1138
1264
  */
1139
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
1140
- return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
1265
+ holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options) {
1266
+ return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(walletId, holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
1141
1267
  }
1142
1268
  /**
1143
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)
@@ -1151,63 +1277,69 @@ class DefaultApi extends base_1.BaseAPI {
1151
1277
  }
1152
1278
  /**
1153
1279
  * Issue verifiable credential using OIDC4VCI offer acceptance
1280
+ * @param {string} walletId
1154
1281
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1155
1282
  * @param {*} [options] Override http request option.
1156
1283
  * @throws {RequiredError}
1157
1284
  * @memberof DefaultApi
1158
1285
  */
1159
- oidcAcceptOffer(vcOffer, options) {
1160
- return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(vcOffer, options).then((request) => request(this.axios, this.basePath));
1286
+ oidcAcceptOffer(walletId, vcOffer, options) {
1287
+ return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(walletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
1161
1288
  }
1162
1289
  /**
1163
1290
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1164
1291
  * @param {string} credentialId
1292
+ * @param {string} walletId
1165
1293
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
1166
1294
  * @param {*} [options] Override http request option.
1167
1295
  * @throws {RequiredError}
1168
1296
  * @memberof DefaultApi
1169
1297
  */
1170
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
1171
- return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
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));
1172
1300
  }
1173
1301
  /**
1174
1302
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1303
+ * @param {string} walletId
1175
1304
  * @param {InitAuthOffer} [initAuthOffer]
1176
1305
  * @param {*} [options] Override http request option.
1177
1306
  * @throws {RequiredError}
1178
1307
  * @memberof DefaultApi
1179
1308
  */
1180
- oidcInitiateDeferred(initAuthOffer, options) {
1181
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1309
+ oidcInitiateDeferred(walletId, initAuthOffer, options) {
1310
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1182
1311
  }
1183
1312
  /**
1184
1313
  * Initiates issuing of the verifiable credential using authorized flow.
1314
+ * @param {string} walletId
1185
1315
  * @param {InitAuthOffer} [initAuthOffer]
1186
1316
  * @param {*} [options] Override http request option.
1187
1317
  * @throws {RequiredError}
1188
1318
  * @memberof DefaultApi
1189
1319
  */
1190
- oidcInitiateIntime(initAuthOffer, options) {
1191
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1320
+ oidcInitiateIntime(walletId, initAuthOffer, options) {
1321
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(walletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1192
1322
  }
1193
1323
  /**
1194
1324
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1325
+ * @param {string} walletId
1195
1326
  * @param {InitPreAuthOffer} [initPreAuthOffer]
1196
1327
  * @param {*} [options] Override http request option.
1197
1328
  * @throws {RequiredError}
1198
1329
  * @memberof DefaultApi
1199
1330
  */
1200
- oidcInitiatePreauth(initPreAuthOffer, options) {
1201
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
1331
+ oidcInitiatePreauth(walletId, initPreAuthOffer, options) {
1332
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(walletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
1202
1333
  }
1203
1334
  /**
1204
1335
  * Provides wallet details
1336
+ * @param {string} walletId
1205
1337
  * @param {*} [options] Override http request option.
1206
1338
  * @throws {RequiredError}
1207
1339
  * @memberof DefaultApi
1208
1340
  */
1209
- walletGet(options) {
1210
- return (0, exports.DefaultApiFp)(this.configuration).walletGet(options).then((request) => request(this.axios, this.basePath));
1341
+ walletGet(walletId, options) {
1342
+ return (0, exports.DefaultApiFp)(this.configuration).walletGet(walletId, options).then((request) => request(this.axios, this.basePath));
1211
1343
  }
1212
1344
  /**
1213
1345
  * Provides list of wallets owned by the authenticated client.
@@ -1220,13 +1352,14 @@ class DefaultApi extends base_1.BaseAPI {
1220
1352
  }
1221
1353
  /**
1222
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} [walletId] Has to be provided for updates.
1223
1356
  * @param {Wallet} [wallet]
1224
1357
  * @param {*} [options] Override http request option.
1225
1358
  * @throws {RequiredError}
1226
1359
  * @memberof DefaultApi
1227
1360
  */
1228
- walletSave(wallet, options) {
1229
- return (0, exports.DefaultApiFp)(this.configuration).walletSave(wallet, options).then((request) => request(this.axios, this.basePath));
1361
+ walletSave(walletId, wallet, options) {
1362
+ return (0, exports.DefaultApiFp)(this.configuration).walletSave(walletId, wallet, options).then((request) => request(this.axios, this.basePath));
1230
1363
  }
1231
1364
  }
1232
1365
  exports.DefaultApi = DefaultApi;