@triveria/wallet 0.0.7 → 0.0.10

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 +205 -64
  2. package/api.js +354 -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} trivWalletId
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: (trivWalletId, credential, options = {}) => __awaiter(this, void 0, void 0, function* () {
76
+ // verify required parameter 'trivWalletId' is not null or undefined
77
+ (0, common_1.assertParamExists)('credentialCreate', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
92
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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, trivWalletId, 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 'trivWalletId' is not null or undefined
115
+ (0, common_1.assertParamExists)('credentialGet', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
131
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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, trivWalletId, 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 'trivWalletId' is not null or undefined
152
+ (0, common_1.assertParamExists)('credentialIssue', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
168
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
185
+ // verify required parameter 'trivWalletId' is not null or undefined
186
+ (0, common_1.assertParamExists)('credentialList', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
201
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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, trivWalletId, 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 'trivWalletId' is not null or undefined
223
+ (0, common_1.assertParamExists)('credentialUpdate', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
236
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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, trivWalletId, 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 'trivWalletId' is not null or undefined
259
+ (0, common_1.assertParamExists)('deferredStatus', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
275
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
292
+ // verify required parameter 'trivWalletId' is not null or undefined
293
+ (0, common_1.assertParamExists)('getCurrentDid', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
308
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, holderAuthOfferCreationReq, options = {}) => __awaiter(this, void 0, void 0, function* () {
350
+ // verify required parameter 'trivWalletId' is not null or undefined
351
+ (0, common_1.assertParamExists)('holderCreateAuthOffer', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
366
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, vcOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
416
+ // verify required parameter 'trivWalletId' is not null or undefined
417
+ (0, common_1.assertParamExists)('oidcAcceptOffer', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
432
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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, trivWalletId, 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 'trivWalletId' is not null or undefined
456
+ (0, common_1.assertParamExists)('oidcAddCredToIssuanceQueue', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
472
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
492
+ // verify required parameter 'trivWalletId' is not null or undefined
493
+ (0, common_1.assertParamExists)('oidcInitiateDeferred', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
508
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, initAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
528
+ // verify required parameter 'trivWalletId' is not null or undefined
529
+ (0, common_1.assertParamExists)('oidcInitiateIntime', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
544
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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} trivWalletId
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: (trivWalletId, initPreAuthOffer, options = {}) => __awaiter(this, void 0, void 0, function* () {
564
+ // verify required parameter 'trivWalletId' is not null or undefined
565
+ (0, common_1.assertParamExists)('oidcInitiatePreauth', 'trivWalletId', trivWalletId);
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 (trivWalletId != null) {
580
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
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 : {};
@@ -511,14 +589,75 @@ const DefaultApiAxiosParamCreator = function (configuration) {
511
589
  options: localVarRequestOptions,
512
590
  };
513
591
  }),
592
+ /**
593
+ * Provides wallet details
594
+ * @param {string} trivWalletId
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ walletGet: (trivWalletId, options = {}) => __awaiter(this, void 0, void 0, function* () {
599
+ // verify required parameter 'trivWalletId' is not null or undefined
600
+ (0, common_1.assertParamExists)('walletGet', 'trivWalletId', trivWalletId);
601
+ const localVarPath = `/wallets/current`;
602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
603
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
604
+ let baseOptions;
605
+ if (configuration) {
606
+ baseOptions = configuration.baseOptions;
607
+ }
608
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
609
+ const localVarHeaderParameter = {};
610
+ const localVarQueryParameter = {};
611
+ // authentication accessToken required
612
+ // http bearer authentication required
613
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
614
+ if (trivWalletId != null) {
615
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
616
+ }
617
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
618
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
619
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
620
+ return {
621
+ url: (0, common_1.toPathString)(localVarUrlObj),
622
+ options: localVarRequestOptions,
623
+ };
624
+ }),
625
+ /**
626
+ * Provides list of wallets owned by the authenticated client.
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ walletList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
631
+ const localVarPath = `/wallets`;
632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
633
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
634
+ let baseOptions;
635
+ if (configuration) {
636
+ baseOptions = configuration.baseOptions;
637
+ }
638
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
639
+ const localVarHeaderParameter = {};
640
+ const localVarQueryParameter = {};
641
+ // authentication accessToken required
642
+ // http bearer authentication required
643
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
644
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
+ return {
648
+ url: (0, common_1.toPathString)(localVarUrlObj),
649
+ options: localVarRequestOptions,
650
+ };
651
+ }),
514
652
  /**
515
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.
516
- * @param {WalletConfig} [walletConfig]
654
+ * @param {string} [trivWalletId] Has to be provided for updates.
655
+ * @param {Wallet} [wallet]
517
656
  * @param {*} [options] Override http request option.
518
657
  * @throws {RequiredError}
519
658
  */
520
- walletConfigure: (walletConfig, options = {}) => __awaiter(this, void 0, void 0, function* () {
521
- const localVarPath = `/wallet`;
659
+ walletSave: (trivWalletId, wallet, options = {}) => __awaiter(this, void 0, void 0, function* () {
660
+ const localVarPath = `/wallets`;
522
661
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
523
662
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
524
663
  let baseOptions;
@@ -531,11 +670,14 @@ const DefaultApiAxiosParamCreator = function (configuration) {
531
670
  // authentication accessToken required
532
671
  // http bearer authentication required
533
672
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
673
+ if (trivWalletId != null) {
674
+ localVarHeaderParameter['triv-wallet-id'] = String(trivWalletId);
675
+ }
534
676
  localVarHeaderParameter['Content-Type'] = 'application/json';
535
677
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
536
678
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
537
679
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
538
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(walletConfig, localVarRequestOptions, configuration);
680
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(wallet, localVarRequestOptions, configuration);
539
681
  return {
540
682
  url: (0, common_1.toPathString)(localVarUrlObj),
541
683
  options: localVarRequestOptions,
@@ -553,14 +695,15 @@ const DefaultApiFp = function (configuration) {
553
695
  return {
554
696
  /**
555
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} trivWalletId
556
699
  * @param {Credential} [credential] Verifiable Credential in JSON format
557
700
  * @param {*} [options] Override http request option.
558
701
  * @throws {RequiredError}
559
702
  */
560
- credentialCreate(credential, options) {
703
+ credentialCreate(trivWalletId, credential, options) {
561
704
  var _a, _b, _c;
562
705
  return __awaiter(this, void 0, void 0, function* () {
563
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(credential, options);
706
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialCreate(trivWalletId, credential, options);
564
707
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
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;
566
709
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -569,13 +712,14 @@ const DefaultApiFp = function (configuration) {
569
712
  /**
570
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.
571
714
  * @param {string} credentialId Verifiable Credential Identifier
715
+ * @param {string} trivWalletId
572
716
  * @param {*} [options] Override http request option.
573
717
  * @throws {RequiredError}
574
718
  */
575
- credentialGet(credentialId, options) {
719
+ credentialGet(credentialId, trivWalletId, options) {
576
720
  var _a, _b, _c;
577
721
  return __awaiter(this, void 0, void 0, function* () {
578
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, options);
722
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialGet(credentialId, trivWalletId, options);
579
723
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
580
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;
581
725
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -584,13 +728,14 @@ const DefaultApiFp = function (configuration) {
584
728
  /**
585
729
  *
586
730
  * @param {string} credentialId Verifiable Credential Identifier
731
+ * @param {string} trivWalletId
587
732
  * @param {*} [options] Override http request option.
588
733
  * @throws {RequiredError}
589
734
  */
590
- credentialIssue(credentialId, options) {
735
+ credentialIssue(credentialId, trivWalletId, options) {
591
736
  var _a, _b, _c;
592
737
  return __awaiter(this, void 0, void 0, function* () {
593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, options);
738
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialIssue(credentialId, trivWalletId, options);
594
739
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
595
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;
596
741
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -598,13 +743,14 @@ const DefaultApiFp = function (configuration) {
598
743
  },
599
744
  /**
600
745
  * Retrieves a list of credentials.
746
+ * @param {string} trivWalletId
601
747
  * @param {*} [options] Override http request option.
602
748
  * @throws {RequiredError}
603
749
  */
604
- credentialList(options) {
750
+ credentialList(trivWalletId, options) {
605
751
  var _a, _b, _c;
606
752
  return __awaiter(this, void 0, void 0, function* () {
607
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(options);
753
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialList(trivWalletId, options);
608
754
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
609
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;
610
756
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -613,14 +759,15 @@ const DefaultApiFp = function (configuration) {
613
759
  /**
614
760
  *
615
761
  * @param {string} credentialId Verifiable Credential Identifier
762
+ * @param {string} trivWalletId
616
763
  * @param {Credential} [credential] Verifiable Credential in JSON format
617
764
  * @param {*} [options] Override http request option.
618
765
  * @throws {RequiredError}
619
766
  */
620
- credentialUpdate(credentialId, credential, options) {
767
+ credentialUpdate(credentialId, trivWalletId, credential, options) {
621
768
  var _a, _b, _c;
622
769
  return __awaiter(this, void 0, void 0, function* () {
623
- const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, credential, options);
770
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.credentialUpdate(credentialId, trivWalletId, credential, options);
624
771
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
625
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;
626
773
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -629,13 +776,14 @@ const DefaultApiFp = function (configuration) {
629
776
  /**
630
777
  *
631
778
  * @param {string} deferredId Deferred token
779
+ * @param {string} trivWalletId
632
780
  * @param {*} [options] Override http request option.
633
781
  * @throws {RequiredError}
634
782
  */
635
- deferredStatus(deferredId, options) {
783
+ deferredStatus(deferredId, trivWalletId, options) {
636
784
  var _a, _b, _c;
637
785
  return __awaiter(this, void 0, void 0, function* () {
638
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, options);
786
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deferredStatus(deferredId, trivWalletId, options);
639
787
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
640
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;
641
789
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -643,13 +791,14 @@ const DefaultApiFp = function (configuration) {
643
791
  },
644
792
  /**
645
793
  *
794
+ * @param {string} trivWalletId
646
795
  * @param {*} [options] Override http request option.
647
796
  * @throws {RequiredError}
648
797
  */
649
- getCurrentDid(options) {
798
+ getCurrentDid(trivWalletId, options) {
650
799
  var _a, _b, _c;
651
800
  return __awaiter(this, void 0, void 0, function* () {
652
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(options);
801
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCurrentDid(trivWalletId, options);
653
802
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
654
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;
655
804
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -671,14 +820,15 @@ const DefaultApiFp = function (configuration) {
671
820
  },
672
821
  /**
673
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} trivWalletId
674
824
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
675
825
  * @param {*} [options] Override http request option.
676
826
  * @throws {RequiredError}
677
827
  */
678
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
828
+ holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options) {
679
829
  var _a, _b, _c;
680
830
  return __awaiter(this, void 0, void 0, function* () {
681
- const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(holderAuthOfferCreationReq, options);
831
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options);
682
832
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
683
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;
684
834
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -701,14 +851,15 @@ const DefaultApiFp = function (configuration) {
701
851
  },
702
852
  /**
703
853
  * Issue verifiable credential using OIDC4VCI offer acceptance
854
+ * @param {string} trivWalletId
704
855
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
705
856
  * @param {*} [options] Override http request option.
706
857
  * @throws {RequiredError}
707
858
  */
708
- oidcAcceptOffer(vcOffer, options) {
859
+ oidcAcceptOffer(trivWalletId, vcOffer, options) {
709
860
  var _a, _b, _c;
710
861
  return __awaiter(this, void 0, void 0, function* () {
711
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(vcOffer, options);
862
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAcceptOffer(trivWalletId, vcOffer, options);
712
863
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
713
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;
714
865
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -717,14 +868,15 @@ const DefaultApiFp = function (configuration) {
717
868
  /**
718
869
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
719
870
  * @param {string} credentialId
871
+ * @param {string} trivWalletId
720
872
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
721
873
  * @param {*} [options] Override http request option.
722
874
  * @throws {RequiredError}
723
875
  */
724
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
876
+ oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options) {
725
877
  var _a, _b, _c;
726
878
  return __awaiter(this, void 0, void 0, function* () {
727
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options);
879
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options);
728
880
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
729
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;
730
882
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -732,14 +884,15 @@ const DefaultApiFp = function (configuration) {
732
884
  },
733
885
  /**
734
886
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
887
+ * @param {string} trivWalletId
735
888
  * @param {InitAuthOffer} [initAuthOffer]
736
889
  * @param {*} [options] Override http request option.
737
890
  * @throws {RequiredError}
738
891
  */
739
- oidcInitiateDeferred(initAuthOffer, options) {
892
+ oidcInitiateDeferred(trivWalletId, initAuthOffer, options) {
740
893
  var _a, _b, _c;
741
894
  return __awaiter(this, void 0, void 0, function* () {
742
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(initAuthOffer, options);
895
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateDeferred(trivWalletId, initAuthOffer, options);
743
896
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
744
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;
745
898
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -747,14 +900,15 @@ const DefaultApiFp = function (configuration) {
747
900
  },
748
901
  /**
749
902
  * Initiates issuing of the verifiable credential using authorized flow.
903
+ * @param {string} trivWalletId
750
904
  * @param {InitAuthOffer} [initAuthOffer]
751
905
  * @param {*} [options] Override http request option.
752
906
  * @throws {RequiredError}
753
907
  */
754
- oidcInitiateIntime(initAuthOffer, options) {
908
+ oidcInitiateIntime(trivWalletId, initAuthOffer, options) {
755
909
  var _a, _b, _c;
756
910
  return __awaiter(this, void 0, void 0, function* () {
757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(initAuthOffer, options);
911
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiateIntime(trivWalletId, initAuthOffer, options);
758
912
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
759
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;
760
914
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
@@ -762,31 +916,62 @@ const DefaultApiFp = function (configuration) {
762
916
  },
763
917
  /**
764
918
  * Initiates issuing of the verifiable credential using pre-authorized flow.
919
+ * @param {string} trivWalletId
765
920
  * @param {InitPreAuthOffer} [initPreAuthOffer]
766
921
  * @param {*} [options] Override http request option.
767
922
  * @throws {RequiredError}
768
923
  */
769
- oidcInitiatePreauth(initPreAuthOffer, options) {
924
+ oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options) {
770
925
  var _a, _b, _c;
771
926
  return __awaiter(this, void 0, void 0, function* () {
772
- const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(initPreAuthOffer, options);
927
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options);
773
928
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
774
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;
775
930
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
776
931
  });
777
932
  },
933
+ /**
934
+ * Provides wallet details
935
+ * @param {string} trivWalletId
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ walletGet(trivWalletId, options) {
940
+ var _a, _b, _c;
941
+ return __awaiter(this, void 0, void 0, function* () {
942
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletGet(trivWalletId, options);
943
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
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
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
946
+ });
947
+ },
948
+ /**
949
+ * Provides list of wallets owned by the authenticated client.
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ walletList(options) {
954
+ var _a, _b, _c;
955
+ return __awaiter(this, void 0, void 0, function* () {
956
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletList(options);
957
+ const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
958
+ const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletList']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
959
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
960
+ });
961
+ },
778
962
  /**
779
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.
780
- * @param {WalletConfig} [walletConfig]
964
+ * @param {string} [trivWalletId] Has to be provided for updates.
965
+ * @param {Wallet} [wallet]
781
966
  * @param {*} [options] Override http request option.
782
967
  * @throws {RequiredError}
783
968
  */
784
- walletConfigure(walletConfig, options) {
969
+ walletSave(trivWalletId, wallet, options) {
785
970
  var _a, _b, _c;
786
971
  return __awaiter(this, void 0, void 0, function* () {
787
- const localVarAxiosArgs = yield localVarAxiosParamCreator.walletConfigure(walletConfig, options);
972
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.walletSave(trivWalletId, wallet, options);
788
973
  const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
789
- const operationBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.walletConfigure']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
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;
790
975
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
791
976
  });
792
977
  },
@@ -802,65 +987,72 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
802
987
  return {
803
988
  /**
804
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} trivWalletId
805
991
  * @param {Credential} [credential] Verifiable Credential in JSON format
806
992
  * @param {*} [options] Override http request option.
807
993
  * @throws {RequiredError}
808
994
  */
809
- credentialCreate(credential, options) {
810
- return localVarFp.credentialCreate(credential, options).then((request) => request(axios, basePath));
995
+ credentialCreate(trivWalletId, credential, options) {
996
+ return localVarFp.credentialCreate(trivWalletId, credential, options).then((request) => request(axios, basePath));
811
997
  },
812
998
  /**
813
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.
814
1000
  * @param {string} credentialId Verifiable Credential Identifier
1001
+ * @param {string} trivWalletId
815
1002
  * @param {*} [options] Override http request option.
816
1003
  * @throws {RequiredError}
817
1004
  */
818
- credentialGet(credentialId, options) {
819
- return localVarFp.credentialGet(credentialId, options).then((request) => request(axios, basePath));
1005
+ credentialGet(credentialId, trivWalletId, options) {
1006
+ return localVarFp.credentialGet(credentialId, trivWalletId, options).then((request) => request(axios, basePath));
820
1007
  },
821
1008
  /**
822
1009
  *
823
1010
  * @param {string} credentialId Verifiable Credential Identifier
1011
+ * @param {string} trivWalletId
824
1012
  * @param {*} [options] Override http request option.
825
1013
  * @throws {RequiredError}
826
1014
  */
827
- credentialIssue(credentialId, options) {
828
- return localVarFp.credentialIssue(credentialId, options).then((request) => request(axios, basePath));
1015
+ credentialIssue(credentialId, trivWalletId, options) {
1016
+ return localVarFp.credentialIssue(credentialId, trivWalletId, options).then((request) => request(axios, basePath));
829
1017
  },
830
1018
  /**
831
1019
  * Retrieves a list of credentials.
1020
+ * @param {string} trivWalletId
832
1021
  * @param {*} [options] Override http request option.
833
1022
  * @throws {RequiredError}
834
1023
  */
835
- credentialList(options) {
836
- return localVarFp.credentialList(options).then((request) => request(axios, basePath));
1024
+ credentialList(trivWalletId, options) {
1025
+ return localVarFp.credentialList(trivWalletId, options).then((request) => request(axios, basePath));
837
1026
  },
838
1027
  /**
839
1028
  *
840
1029
  * @param {string} credentialId Verifiable Credential Identifier
1030
+ * @param {string} trivWalletId
841
1031
  * @param {Credential} [credential] Verifiable Credential in JSON format
842
1032
  * @param {*} [options] Override http request option.
843
1033
  * @throws {RequiredError}
844
1034
  */
845
- credentialUpdate(credentialId, credential, options) {
846
- return localVarFp.credentialUpdate(credentialId, credential, options).then((request) => request(axios, basePath));
1035
+ credentialUpdate(credentialId, trivWalletId, credential, options) {
1036
+ return localVarFp.credentialUpdate(credentialId, trivWalletId, credential, options).then((request) => request(axios, basePath));
847
1037
  },
848
1038
  /**
849
1039
  *
850
1040
  * @param {string} deferredId Deferred token
1041
+ * @param {string} trivWalletId
851
1042
  * @param {*} [options] Override http request option.
852
1043
  * @throws {RequiredError}
853
1044
  */
854
- deferredStatus(deferredId, options) {
855
- return localVarFp.deferredStatus(deferredId, options).then((request) => request(axios, basePath));
1045
+ deferredStatus(deferredId, trivWalletId, options) {
1046
+ return localVarFp.deferredStatus(deferredId, trivWalletId, options).then((request) => request(axios, basePath));
856
1047
  },
857
1048
  /**
858
1049
  *
1050
+ * @param {string} trivWalletId
859
1051
  * @param {*} [options] Override http request option.
860
1052
  * @throws {RequiredError}
861
1053
  */
862
- getCurrentDid(options) {
863
- return localVarFp.getCurrentDid(options).then((request) => request(axios, basePath));
1054
+ getCurrentDid(trivWalletId, options) {
1055
+ return localVarFp.getCurrentDid(trivWalletId, options).then((request) => request(axios, basePath));
864
1056
  },
865
1057
  /**
866
1058
  *
@@ -872,12 +1064,13 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
872
1064
  },
873
1065
  /**
874
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} trivWalletId
875
1068
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
876
1069
  * @param {*} [options] Override http request option.
877
1070
  * @throws {RequiredError}
878
1071
  */
879
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
880
- return localVarFp.holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
1072
+ holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options) {
1073
+ return localVarFp.holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options).then((request) => request(axios, basePath));
881
1074
  },
882
1075
  /**
883
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)
@@ -890,58 +1083,81 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
890
1083
  },
891
1084
  /**
892
1085
  * Issue verifiable credential using OIDC4VCI offer acceptance
1086
+ * @param {string} trivWalletId
893
1087
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
894
1088
  * @param {*} [options] Override http request option.
895
1089
  * @throws {RequiredError}
896
1090
  */
897
- oidcAcceptOffer(vcOffer, options) {
898
- return localVarFp.oidcAcceptOffer(vcOffer, options).then((request) => request(axios, basePath));
1091
+ oidcAcceptOffer(trivWalletId, vcOffer, options) {
1092
+ return localVarFp.oidcAcceptOffer(trivWalletId, vcOffer, options).then((request) => request(axios, basePath));
899
1093
  },
900
1094
  /**
901
1095
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
902
1096
  * @param {string} credentialId
1097
+ * @param {string} trivWalletId
903
1098
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
904
1099
  * @param {*} [options] Override http request option.
905
1100
  * @throws {RequiredError}
906
1101
  */
907
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
908
- return localVarFp.oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
1102
+ oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options) {
1103
+ return localVarFp.oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options).then((request) => request(axios, basePath));
909
1104
  },
910
1105
  /**
911
1106
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1107
+ * @param {string} trivWalletId
912
1108
  * @param {InitAuthOffer} [initAuthOffer]
913
1109
  * @param {*} [options] Override http request option.
914
1110
  * @throws {RequiredError}
915
1111
  */
916
- oidcInitiateDeferred(initAuthOffer, options) {
917
- return localVarFp.oidcInitiateDeferred(initAuthOffer, options).then((request) => request(axios, basePath));
1112
+ oidcInitiateDeferred(trivWalletId, initAuthOffer, options) {
1113
+ return localVarFp.oidcInitiateDeferred(trivWalletId, initAuthOffer, options).then((request) => request(axios, basePath));
918
1114
  },
919
1115
  /**
920
1116
  * Initiates issuing of the verifiable credential using authorized flow.
1117
+ * @param {string} trivWalletId
921
1118
  * @param {InitAuthOffer} [initAuthOffer]
922
1119
  * @param {*} [options] Override http request option.
923
1120
  * @throws {RequiredError}
924
1121
  */
925
- oidcInitiateIntime(initAuthOffer, options) {
926
- return localVarFp.oidcInitiateIntime(initAuthOffer, options).then((request) => request(axios, basePath));
1122
+ oidcInitiateIntime(trivWalletId, initAuthOffer, options) {
1123
+ return localVarFp.oidcInitiateIntime(trivWalletId, initAuthOffer, options).then((request) => request(axios, basePath));
927
1124
  },
928
1125
  /**
929
1126
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1127
+ * @param {string} trivWalletId
930
1128
  * @param {InitPreAuthOffer} [initPreAuthOffer]
931
1129
  * @param {*} [options] Override http request option.
932
1130
  * @throws {RequiredError}
933
1131
  */
934
- oidcInitiatePreauth(initPreAuthOffer, options) {
935
- return localVarFp.oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(axios, basePath));
1132
+ oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options) {
1133
+ return localVarFp.oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options).then((request) => request(axios, basePath));
1134
+ },
1135
+ /**
1136
+ * Provides wallet details
1137
+ * @param {string} trivWalletId
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ walletGet(trivWalletId, options) {
1142
+ return localVarFp.walletGet(trivWalletId, options).then((request) => request(axios, basePath));
1143
+ },
1144
+ /**
1145
+ * Provides list of wallets owned by the authenticated client.
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ walletList(options) {
1150
+ return localVarFp.walletList(options).then((request) => request(axios, basePath));
936
1151
  },
937
1152
  /**
938
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.
939
- * @param {WalletConfig} [walletConfig]
1154
+ * @param {string} [trivWalletId] Has to be provided for updates.
1155
+ * @param {Wallet} [wallet]
940
1156
  * @param {*} [options] Override http request option.
941
1157
  * @throws {RequiredError}
942
1158
  */
943
- walletConfigure(walletConfig, options) {
944
- return localVarFp.walletConfigure(walletConfig, options).then((request) => request(axios, basePath));
1159
+ walletSave(trivWalletId, wallet, options) {
1160
+ return localVarFp.walletSave(trivWalletId, wallet, options).then((request) => request(axios, basePath));
945
1161
  },
946
1162
  };
947
1163
  };
@@ -955,72 +1171,79 @@ exports.DefaultApiFactory = DefaultApiFactory;
955
1171
  class DefaultApi extends base_1.BaseAPI {
956
1172
  /**
957
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} trivWalletId
958
1175
  * @param {Credential} [credential] Verifiable Credential in JSON format
959
1176
  * @param {*} [options] Override http request option.
960
1177
  * @throws {RequiredError}
961
1178
  * @memberof DefaultApi
962
1179
  */
963
- credentialCreate(credential, options) {
964
- return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(credential, options).then((request) => request(this.axios, this.basePath));
1180
+ credentialCreate(trivWalletId, credential, options) {
1181
+ return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(trivWalletId, credential, options).then((request) => request(this.axios, this.basePath));
965
1182
  }
966
1183
  /**
967
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.
968
1185
  * @param {string} credentialId Verifiable Credential Identifier
1186
+ * @param {string} trivWalletId
969
1187
  * @param {*} [options] Override http request option.
970
1188
  * @throws {RequiredError}
971
1189
  * @memberof DefaultApi
972
1190
  */
973
- credentialGet(credentialId, options) {
974
- return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, options).then((request) => request(this.axios, this.basePath));
1191
+ credentialGet(credentialId, trivWalletId, options) {
1192
+ return (0, exports.DefaultApiFp)(this.configuration).credentialGet(credentialId, trivWalletId, options).then((request) => request(this.axios, this.basePath));
975
1193
  }
976
1194
  /**
977
1195
  *
978
1196
  * @param {string} credentialId Verifiable Credential Identifier
1197
+ * @param {string} trivWalletId
979
1198
  * @param {*} [options] Override http request option.
980
1199
  * @throws {RequiredError}
981
1200
  * @memberof DefaultApi
982
1201
  */
983
- credentialIssue(credentialId, options) {
984
- return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, options).then((request) => request(this.axios, this.basePath));
1202
+ credentialIssue(credentialId, trivWalletId, options) {
1203
+ return (0, exports.DefaultApiFp)(this.configuration).credentialIssue(credentialId, trivWalletId, options).then((request) => request(this.axios, this.basePath));
985
1204
  }
986
1205
  /**
987
1206
  * Retrieves a list of credentials.
1207
+ * @param {string} trivWalletId
988
1208
  * @param {*} [options] Override http request option.
989
1209
  * @throws {RequiredError}
990
1210
  * @memberof DefaultApi
991
1211
  */
992
- credentialList(options) {
993
- return (0, exports.DefaultApiFp)(this.configuration).credentialList(options).then((request) => request(this.axios, this.basePath));
1212
+ credentialList(trivWalletId, options) {
1213
+ return (0, exports.DefaultApiFp)(this.configuration).credentialList(trivWalletId, options).then((request) => request(this.axios, this.basePath));
994
1214
  }
995
1215
  /**
996
1216
  *
997
1217
  * @param {string} credentialId Verifiable Credential Identifier
1218
+ * @param {string} trivWalletId
998
1219
  * @param {Credential} [credential] Verifiable Credential in JSON format
999
1220
  * @param {*} [options] Override http request option.
1000
1221
  * @throws {RequiredError}
1001
1222
  * @memberof DefaultApi
1002
1223
  */
1003
- credentialUpdate(credentialId, credential, options) {
1004
- return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, credential, options).then((request) => request(this.axios, this.basePath));
1224
+ credentialUpdate(credentialId, trivWalletId, credential, options) {
1225
+ return (0, exports.DefaultApiFp)(this.configuration).credentialUpdate(credentialId, trivWalletId, credential, options).then((request) => request(this.axios, this.basePath));
1005
1226
  }
1006
1227
  /**
1007
1228
  *
1008
1229
  * @param {string} deferredId Deferred token
1230
+ * @param {string} trivWalletId
1009
1231
  * @param {*} [options] Override http request option.
1010
1232
  * @throws {RequiredError}
1011
1233
  * @memberof DefaultApi
1012
1234
  */
1013
- deferredStatus(deferredId, options) {
1014
- return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, options).then((request) => request(this.axios, this.basePath));
1235
+ deferredStatus(deferredId, trivWalletId, options) {
1236
+ return (0, exports.DefaultApiFp)(this.configuration).deferredStatus(deferredId, trivWalletId, options).then((request) => request(this.axios, this.basePath));
1015
1237
  }
1016
1238
  /**
1017
1239
  *
1240
+ * @param {string} trivWalletId
1018
1241
  * @param {*} [options] Override http request option.
1019
1242
  * @throws {RequiredError}
1020
1243
  * @memberof DefaultApi
1021
1244
  */
1022
- getCurrentDid(options) {
1023
- return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(options).then((request) => request(this.axios, this.basePath));
1245
+ getCurrentDid(trivWalletId, options) {
1246
+ return (0, exports.DefaultApiFp)(this.configuration).getCurrentDid(trivWalletId, options).then((request) => request(this.axios, this.basePath));
1024
1247
  }
1025
1248
  /**
1026
1249
  *
@@ -1033,13 +1256,14 @@ class DefaultApi extends base_1.BaseAPI {
1033
1256
  }
1034
1257
  /**
1035
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} trivWalletId
1036
1260
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
1037
1261
  * @param {*} [options] Override http request option.
1038
1262
  * @throws {RequiredError}
1039
1263
  * @memberof DefaultApi
1040
1264
  */
1041
- holderCreateAuthOffer(holderAuthOfferCreationReq, options) {
1042
- return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
1265
+ holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options) {
1266
+ return (0, exports.DefaultApiFp)(this.configuration).holderCreateAuthOffer(trivWalletId, holderAuthOfferCreationReq, options).then((request) => request(this.axios, this.basePath));
1043
1267
  }
1044
1268
  /**
1045
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)
@@ -1053,64 +1277,89 @@ class DefaultApi extends base_1.BaseAPI {
1053
1277
  }
1054
1278
  /**
1055
1279
  * Issue verifiable credential using OIDC4VCI offer acceptance
1280
+ * @param {string} trivWalletId
1056
1281
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1057
1282
  * @param {*} [options] Override http request option.
1058
1283
  * @throws {RequiredError}
1059
1284
  * @memberof DefaultApi
1060
1285
  */
1061
- oidcAcceptOffer(vcOffer, options) {
1062
- return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(vcOffer, options).then((request) => request(this.axios, this.basePath));
1286
+ oidcAcceptOffer(trivWalletId, vcOffer, options) {
1287
+ return (0, exports.DefaultApiFp)(this.configuration).oidcAcceptOffer(trivWalletId, vcOffer, options).then((request) => request(this.axios, this.basePath));
1063
1288
  }
1064
1289
  /**
1065
1290
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1066
1291
  * @param {string} credentialId
1292
+ * @param {string} trivWalletId
1067
1293
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
1068
1294
  * @param {*} [options] Override http request option.
1069
1295
  * @throws {RequiredError}
1070
1296
  * @memberof DefaultApi
1071
1297
  */
1072
- oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options) {
1073
- return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
1298
+ oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options) {
1299
+ return (0, exports.DefaultApiFp)(this.configuration).oidcAddCredToIssuanceQueue(credentialId, trivWalletId, issuanceQueueCredAdd, options).then((request) => request(this.axios, this.basePath));
1074
1300
  }
1075
1301
  /**
1076
1302
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1303
+ * @param {string} trivWalletId
1077
1304
  * @param {InitAuthOffer} [initAuthOffer]
1078
1305
  * @param {*} [options] Override http request option.
1079
1306
  * @throws {RequiredError}
1080
1307
  * @memberof DefaultApi
1081
1308
  */
1082
- oidcInitiateDeferred(initAuthOffer, options) {
1083
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1309
+ oidcInitiateDeferred(trivWalletId, initAuthOffer, options) {
1310
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateDeferred(trivWalletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1084
1311
  }
1085
1312
  /**
1086
1313
  * Initiates issuing of the verifiable credential using authorized flow.
1314
+ * @param {string} trivWalletId
1087
1315
  * @param {InitAuthOffer} [initAuthOffer]
1088
1316
  * @param {*} [options] Override http request option.
1089
1317
  * @throws {RequiredError}
1090
1318
  * @memberof DefaultApi
1091
1319
  */
1092
- oidcInitiateIntime(initAuthOffer, options) {
1093
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1320
+ oidcInitiateIntime(trivWalletId, initAuthOffer, options) {
1321
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiateIntime(trivWalletId, initAuthOffer, options).then((request) => request(this.axios, this.basePath));
1094
1322
  }
1095
1323
  /**
1096
1324
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1325
+ * @param {string} trivWalletId
1097
1326
  * @param {InitPreAuthOffer} [initPreAuthOffer]
1098
1327
  * @param {*} [options] Override http request option.
1099
1328
  * @throws {RequiredError}
1100
1329
  * @memberof DefaultApi
1101
1330
  */
1102
- oidcInitiatePreauth(initPreAuthOffer, options) {
1103
- return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
1331
+ oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options) {
1332
+ return (0, exports.DefaultApiFp)(this.configuration).oidcInitiatePreauth(trivWalletId, initPreAuthOffer, options).then((request) => request(this.axios, this.basePath));
1333
+ }
1334
+ /**
1335
+ * Provides wallet details
1336
+ * @param {string} trivWalletId
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ * @memberof DefaultApi
1340
+ */
1341
+ walletGet(trivWalletId, options) {
1342
+ return (0, exports.DefaultApiFp)(this.configuration).walletGet(trivWalletId, options).then((request) => request(this.axios, this.basePath));
1343
+ }
1344
+ /**
1345
+ * Provides list of wallets owned by the authenticated client.
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ * @memberof DefaultApi
1349
+ */
1350
+ walletList(options) {
1351
+ return (0, exports.DefaultApiFp)(this.configuration).walletList(options).then((request) => request(this.axios, this.basePath));
1104
1352
  }
1105
1353
  /**
1106
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.
1107
- * @param {WalletConfig} [walletConfig]
1355
+ * @param {string} [trivWalletId] Has to be provided for updates.
1356
+ * @param {Wallet} [wallet]
1108
1357
  * @param {*} [options] Override http request option.
1109
1358
  * @throws {RequiredError}
1110
1359
  * @memberof DefaultApi
1111
1360
  */
1112
- walletConfigure(walletConfig, options) {
1113
- return (0, exports.DefaultApiFp)(this.configuration).walletConfigure(walletConfig, options).then((request) => request(this.axios, this.basePath));
1361
+ walletSave(trivWalletId, wallet, options) {
1362
+ return (0, exports.DefaultApiFp)(this.configuration).walletSave(trivWalletId, wallet, options).then((request) => request(this.axios, this.basePath));
1114
1363
  }
1115
1364
  }
1116
1365
  exports.DefaultApi = DefaultApi;