@triveria/wallet 0.0.289 → 0.0.291

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.js CHANGED
@@ -250,7 +250,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
250
250
  // verify required parameter 'walletId' is not null or undefined
251
251
  (0, common_1.assertParamExists)('credentialGet', 'walletId', walletId);
252
252
  const localVarPath = `/credentials/{credential_id}`
253
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
253
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
254
254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
255
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
256
256
  let baseOptions;
@@ -326,7 +326,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
326
326
  // verify required parameter 'walletId' is not null or undefined
327
327
  (0, common_1.assertParamExists)('credentialIssuanceInit', 'walletId', walletId);
328
328
  const localVarPath = `/credentials/{credential_id}/issue/init`
329
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
329
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
330
330
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
331
331
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
332
332
  let baseOptions;
@@ -433,7 +433,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
433
433
  // verify required parameter 'walletId' is not null or undefined
434
434
  (0, common_1.assertParamExists)('credentialMetadataPatch', 'walletId', walletId);
435
435
  const localVarPath = `/credentials/{credential_id}/metadata`
436
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
436
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
437
437
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
438
438
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
439
439
  let baseOptions;
@@ -474,7 +474,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
474
474
  // verify required parameter 'walletId' is not null or undefined
475
475
  (0, common_1.assertParamExists)('credentialPatch', 'walletId', walletId);
476
476
  const localVarPath = `/credentials/{credential_id}`
477
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
477
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
478
478
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
479
479
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
480
480
  let baseOptions;
@@ -551,7 +551,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
551
551
  // verify required parameter 'walletId' is not null or undefined
552
552
  (0, common_1.assertParamExists)('credentialRevoke', 'walletId', walletId);
553
553
  const localVarPath = `/credentials/{credential_id}/revoke`
554
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
554
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
555
555
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
556
556
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
557
557
  let baseOptions;
@@ -589,7 +589,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
589
589
  // verify required parameter 'walletId' is not null or undefined
590
590
  (0, common_1.assertParamExists)('deferredStatus', 'walletId', walletId);
591
591
  const localVarPath = `/deferred/{deferred_id}`
592
- .replace(`{${"deferred_id"}}`, encodeURIComponent(String(deferredId)));
592
+ .replace('{deferred_id}', encodeURIComponent(String(deferredId)));
593
593
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
594
594
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
595
595
  let baseOptions;
@@ -624,7 +624,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
624
624
  // verify required parameter 'walletId' is not null or undefined
625
625
  (0, common_1.assertParamExists)('didDocumentGet', 'walletId', walletId);
626
626
  const localVarPath = `/{wallet_id}/did.json`
627
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
627
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
628
628
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
629
629
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
630
630
  let baseOptions;
@@ -719,7 +719,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
719
719
  // verify required parameter 'interactionId' is not null or undefined
720
720
  (0, common_1.assertParamExists)('holderCredentialsPresentAfterConsent', 'interactionId', interactionId);
721
721
  const localVarPath = `/holder/present/{interaction_id}`
722
- .replace(`{${"interaction_id"}}`, encodeURIComponent(String(interactionId)));
722
+ .replace('{interaction_id}', encodeURIComponent(String(interactionId)));
723
723
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
724
724
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
725
725
  let baseOptions;
@@ -833,7 +833,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
833
833
  // verify required parameter 'linkedVpId' is not null or undefined
834
834
  (0, common_1.assertParamExists)('holderLinkedVpDelete', 'linkedVpId', linkedVpId);
835
835
  const localVarPath = `/holder/linked-vp/{linked_vp_id}`
836
- .replace(`{${"linked_vp_id"}}`, encodeURIComponent(String(linkedVpId)));
836
+ .replace('{linked_vp_id}', encodeURIComponent(String(linkedVpId)));
837
837
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
838
838
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
839
839
  let baseOptions;
@@ -871,7 +871,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
871
871
  // verify required parameter 'linkedVpId' is not null or undefined
872
872
  (0, common_1.assertParamExists)('holderLinkedVpGetDetails', 'linkedVpId', linkedVpId);
873
873
  const localVarPath = `/holder/linked-vp/{linked_vp_id}`
874
- .replace(`{${"linked_vp_id"}}`, encodeURIComponent(String(linkedVpId)));
874
+ .replace('{linked_vp_id}', encodeURIComponent(String(linkedVpId)));
875
875
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
876
876
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
877
877
  let baseOptions;
@@ -981,7 +981,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
981
981
  // verify required parameter 'interactionId' is not null or undefined
982
982
  (0, common_1.assertParamExists)('holderOfferProcessAfterConsent', 'interactionId', interactionId);
983
983
  const localVarPath = `/holder/offer/{interaction_id}/process`
984
- .replace(`{${"interaction_id"}}`, encodeURIComponent(String(interactionId)));
984
+ .replace('{interaction_id}', encodeURIComponent(String(interactionId)));
985
985
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
986
986
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
987
987
  let baseOptions;
@@ -1250,7 +1250,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1250
1250
  // verify required parameter 'walletId' is not null or undefined
1251
1251
  (0, common_1.assertParamExists)('pdfCredentialMakeVp', 'walletId', walletId);
1252
1252
  const localVarPath = `/credentials/{credential_id}/pdf/vp`
1253
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
1253
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
1254
1254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1255
1255
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1256
1256
  let baseOptions;
@@ -1291,7 +1291,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1291
1291
  // verify required parameter 'walletId' is not null or undefined
1292
1292
  (0, common_1.assertParamExists)('pdfCredentialTwinDelete', 'walletId', walletId);
1293
1293
  const localVarPath = `/credentials/{credential_id}/pdf`
1294
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
1294
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
1295
1295
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1296
1296
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1297
1297
  let baseOptions;
@@ -1329,7 +1329,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1329
1329
  // verify required parameter 'walletId' is not null or undefined
1330
1330
  (0, common_1.assertParamExists)('pdfCredentialTwinGet', 'walletId', walletId);
1331
1331
  const localVarPath = `/credentials/{credential_id}/pdf`
1332
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
1332
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
1333
1333
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1334
1334
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1335
1335
  let baseOptions;
@@ -1368,7 +1368,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1368
1368
  // verify required parameter 'walletId' is not null or undefined
1369
1369
  (0, common_1.assertParamExists)('pdfCredentialTwinUpload', 'walletId', walletId);
1370
1370
  const localVarPath = `/credentials/{credential_id}/pdf`
1371
- .replace(`{${"credential_id"}}`, encodeURIComponent(String(credentialId)));
1371
+ .replace('{credential_id}', encodeURIComponent(String(credentialId)));
1372
1372
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1373
1373
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1374
1374
  let baseOptions;
@@ -1798,7 +1798,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1798
1798
  // verify required parameter 'walletId' is not null or undefined
1799
1799
  (0, common_1.assertParamExists)('walletDelete', 'walletId', walletId);
1800
1800
  const localVarPath = `/wallets/{wallet_id}`
1801
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1801
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
1802
1802
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1803
1803
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1804
1804
  let baseOptions;
@@ -1830,7 +1830,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1830
1830
  // verify required parameter 'walletId' is not null or undefined
1831
1831
  (0, common_1.assertParamExists)('walletGet', 'walletId', walletId);
1832
1832
  const localVarPath = `/wallets/{wallet_id}`
1833
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1833
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
1834
1834
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1835
1835
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1836
1836
  let baseOptions;
@@ -1896,7 +1896,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1896
1896
  // verify required parameter 'walletId' is not null or undefined
1897
1897
  (0, common_1.assertParamExists)('walletKeys', 'walletId', walletId);
1898
1898
  const localVarPath = `/wallets/{wallet_id}/keys`
1899
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
1899
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
1900
1900
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1901
1901
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1902
1902
  let baseOptions;
@@ -1970,9 +1970,9 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1970
1970
  // verify required parameter 'state' is not null or undefined
1971
1971
  (0, common_1.assertParamExists)('walletNotificationGetByState', 'state', state);
1972
1972
  const localVarPath = `/wallets/{wallet_id}/notification_history/{event_type}/{state}`
1973
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
1974
- .replace(`{${"event_type"}}`, encodeURIComponent(String(eventType)))
1975
- .replace(`{${"state"}}`, encodeURIComponent(String(state)));
1973
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)))
1974
+ .replace('{event_type}', encodeURIComponent(String(eventType)))
1975
+ .replace('{state}', encodeURIComponent(String(state)));
1976
1976
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1977
1977
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1978
1978
  let baseOptions;
@@ -2009,7 +2009,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2009
2009
  // verify required parameter 'walletId' is not null or undefined
2010
2010
  (0, common_1.assertParamExists)('walletNotificationHistory', 'walletId', walletId);
2011
2011
  const localVarPath = `/wallets/{wallet_id}/notification_history`
2012
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2012
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2013
2013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2014
2014
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2015
2015
  let baseOptions;
@@ -2056,7 +2056,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2056
2056
  // verify required parameter 'walletId' is not null or undefined
2057
2057
  (0, common_1.assertParamExists)('walletNotifications', 'walletId', walletId);
2058
2058
  const localVarPath = `/wallets/{wallet_id}/notifications`
2059
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2059
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2060
2060
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2061
2061
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2062
2062
  let baseOptions;
@@ -2089,7 +2089,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2089
2089
  // verify required parameter 'walletId' is not null or undefined
2090
2090
  (0, common_1.assertParamExists)('walletPatch', 'walletId', walletId);
2091
2091
  const localVarPath = `/wallets/{wallet_id}`
2092
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2092
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2093
2093
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2094
2094
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2095
2095
  let baseOptions;
@@ -2126,8 +2126,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2126
2126
  // verify required parameter 'state' is not null or undefined
2127
2127
  (0, common_1.assertParamExists)('walletVerifiedCredentialsByState', 'state', state);
2128
2128
  const localVarPath = `/wallets/{wallet_id}/verified_credentials/{state}`
2129
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
2130
- .replace(`{${"state"}}`, encodeURIComponent(String(state)));
2129
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)))
2130
+ .replace('{state}', encodeURIComponent(String(state)));
2131
2131
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2132
2132
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2133
2133
  let baseOptions;
@@ -2162,8 +2162,8 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2162
2162
  // verify required parameter 'state' is not null or undefined
2163
2163
  (0, common_1.assertParamExists)('walletVerifiedCredentialsDeleteByState', 'state', state);
2164
2164
  const localVarPath = `/wallets/{wallet_id}/verified_credentials/{state}`
2165
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)))
2166
- .replace(`{${"state"}}`, encodeURIComponent(String(state)));
2165
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)))
2166
+ .replace('{state}', encodeURIComponent(String(state)));
2167
2167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2168
2168
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2169
2169
  let baseOptions;
@@ -2196,7 +2196,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2196
2196
  // verify required parameter 'walletId' is not null or undefined
2197
2197
  (0, common_1.assertParamExists)('walletX509CSRCreate', 'walletId', walletId);
2198
2198
  const localVarPath = `/wallets/{wallet_id}/csr`
2199
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2199
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2200
2200
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2201
2201
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2202
2202
  let baseOptions;
@@ -2230,7 +2230,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2230
2230
  // verify required parameter 'walletId' is not null or undefined
2231
2231
  (0, common_1.assertParamExists)('walletX509CertificateGet', 'walletId', walletId);
2232
2232
  const localVarPath = `/wallets/{wallet_id}/certificate`
2233
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2233
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2234
2234
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2235
2235
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2236
2236
  let baseOptions;
@@ -2260,7 +2260,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2260
2260
  // verify required parameter 'walletId' is not null or undefined
2261
2261
  (0, common_1.assertParamExists)('walletX509CertificateImport', 'walletId', walletId);
2262
2262
  const localVarPath = `/wallets/{wallet_id}/certificate`
2263
- .replace(`{${"wallet_id"}}`, encodeURIComponent(String(walletId)));
2263
+ .replace('{wallet_id}', encodeURIComponent(String(walletId)));
2264
2264
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2265
2265
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2266
2266
  let baseOptions;
@@ -2368,7 +2368,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2368
2368
  // verify required parameter 'requestId' is not null or undefined
2369
2369
  (0, common_1.assertParamExists)('wmpClientProcessRequest', 'requestId', requestId);
2370
2370
  const localVarPath = `/wmp/client/requests/{request_id}`
2371
- .replace(`{${"request_id"}}`, encodeURIComponent(String(requestId)));
2371
+ .replace('{request_id}', encodeURIComponent(String(requestId)));
2372
2372
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2373
2373
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2374
2374
  let baseOptions;
@@ -2440,7 +2440,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2440
2440
  // verify required parameter 'entityId' is not null or undefined
2441
2441
  (0, common_1.assertParamExists)('wmpEntityConnectionGet', 'entityId', entityId);
2442
2442
  const localVarPath = `/wmp/entities/{entity_id}/connection`
2443
- .replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
2443
+ .replace('{entity_id}', encodeURIComponent(String(entityId)));
2444
2444
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2445
2445
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2446
2446
  let baseOptions;
@@ -2478,7 +2478,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2478
2478
  // verify required parameter 'entityId' is not null or undefined
2479
2479
  (0, common_1.assertParamExists)('wmpEntityDelete', 'entityId', entityId);
2480
2480
  const localVarPath = `/wmp/entities/{entity_id}`
2481
- .replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
2481
+ .replace('{entity_id}', encodeURIComponent(String(entityId)));
2482
2482
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2483
2483
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2484
2484
  let baseOptions;
@@ -2516,7 +2516,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2516
2516
  // verify required parameter 'entityId' is not null or undefined
2517
2517
  (0, common_1.assertParamExists)('wmpEntityGet', 'entityId', entityId);
2518
2518
  const localVarPath = `/wmp/entities/{entity_id}`
2519
- .replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
2519
+ .replace('{entity_id}', encodeURIComponent(String(entityId)));
2520
2520
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2521
2521
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2522
2522
  let baseOptions;
@@ -2594,7 +2594,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2594
2594
  // verify required parameter 'entityId' is not null or undefined
2595
2595
  (0, common_1.assertParamExists)('wmpEntityServerConnect', 'entityId', entityId);
2596
2596
  const localVarPath = `/wmp/entities/{entity_id}/connection`
2597
- .replace(`{${"entity_id"}}`, encodeURIComponent(String(entityId)));
2597
+ .replace('{entity_id}', encodeURIComponent(String(entityId)));
2598
2598
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2599
2599
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2600
2600
  let baseOptions;
package/auth.js CHANGED
@@ -16,7 +16,7 @@ exports.RequestToken = RequestToken;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  function RequestToken(tokenUrl, audience, clientId, clientSecret) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
- const body = `{"client_id":"${clientId}","client_secret":"${clientSecret}","audience":"${audience}","grant_type":"client_credentials"}`, headers = { 'content-type': 'application/json' };
19
+ const body = new URLSearchParams({ client_id: clientId, client_secret: clientSecret, audience, grant_type: 'client_credentials' }), headers = { 'content-type': 'application/x-www-form-urlencoded' };
20
20
  const { data: { access_token } } = yield axios_1.default.post(`${tokenUrl}`, body, {
21
21
  headers,
22
22
  });
package/configuration.js CHANGED
@@ -37,8 +37,8 @@ class Configuration {
37
37
  * @return True if the given MIME is JSON, false otherwise.
38
38
  */
39
39
  isJsonMime(mime) {
40
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
41
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
40
+ const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
41
+ return mime !== null && jsonMime.test(mime);
42
42
  }
43
43
  }
44
44
  exports.Configuration = Configuration;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.289",
4
+ "version": "0.0.291",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {