wallaby-cash 2.3.2 → 2.3.4

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/dist/index.esm.js CHANGED
@@ -522,227 +522,19 @@ const global$1 = (typeof global !== "undefined" ? global :
522
522
  typeof self !== "undefined" ? self :
523
523
  typeof window !== "undefined" ? window : {});
524
524
 
525
- // shim for using process in browser
526
- // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
527
-
528
- function defaultSetTimout() {
529
- throw new Error('setTimeout has not been defined');
530
- }
531
- function defaultClearTimeout () {
532
- throw new Error('clearTimeout has not been defined');
533
- }
534
- var cachedSetTimeout = defaultSetTimout;
535
- var cachedClearTimeout = defaultClearTimeout;
536
- if (typeof global$1.setTimeout === 'function') {
537
- cachedSetTimeout = setTimeout;
538
- }
539
- if (typeof global$1.clearTimeout === 'function') {
540
- cachedClearTimeout = clearTimeout;
541
- }
542
-
543
- function runTimeout(fun) {
544
- if (cachedSetTimeout === setTimeout) {
545
- //normal enviroments in sane situations
546
- return setTimeout(fun, 0);
547
- }
548
- // if setTimeout wasn't available but was latter defined
549
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
550
- cachedSetTimeout = setTimeout;
551
- return setTimeout(fun, 0);
552
- }
553
- try {
554
- // when when somebody has screwed with setTimeout but no I.E. maddness
555
- return cachedSetTimeout(fun, 0);
556
- } catch(e){
557
- try {
558
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
559
- return cachedSetTimeout.call(null, fun, 0);
560
- } catch(e){
561
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
562
- return cachedSetTimeout.call(this, fun, 0);
563
- }
564
- }
565
-
566
-
567
- }
568
- function runClearTimeout(marker) {
569
- if (cachedClearTimeout === clearTimeout) {
570
- //normal enviroments in sane situations
571
- return clearTimeout(marker);
572
- }
573
- // if clearTimeout wasn't available but was latter defined
574
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
575
- cachedClearTimeout = clearTimeout;
576
- return clearTimeout(marker);
577
- }
578
- try {
579
- // when when somebody has screwed with setTimeout but no I.E. maddness
580
- return cachedClearTimeout(marker);
581
- } catch (e){
582
- try {
583
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
584
- return cachedClearTimeout.call(null, marker);
585
- } catch (e){
586
- // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
587
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
588
- return cachedClearTimeout.call(this, marker);
589
- }
590
- }
591
-
592
-
593
-
594
- }
595
- var queue = [];
596
- var draining = false;
597
- var currentQueue;
598
- var queueIndex = -1;
599
-
600
- function cleanUpNextTick() {
601
- if (!draining || !currentQueue) {
602
- return;
603
- }
604
- draining = false;
605
- if (currentQueue.length) {
606
- queue = currentQueue.concat(queue);
607
- } else {
608
- queueIndex = -1;
609
- }
610
- if (queue.length) {
611
- drainQueue();
612
- }
613
- }
614
-
615
- function drainQueue() {
616
- if (draining) {
617
- return;
618
- }
619
- var timeout = runTimeout(cleanUpNextTick);
620
- draining = true;
621
-
622
- var len = queue.length;
623
- while(len) {
624
- currentQueue = queue;
625
- queue = [];
626
- while (++queueIndex < len) {
627
- if (currentQueue) {
628
- currentQueue[queueIndex].run();
629
- }
630
- }
631
- queueIndex = -1;
632
- len = queue.length;
633
- }
634
- currentQueue = null;
635
- draining = false;
636
- runClearTimeout(timeout);
637
- }
638
- function nextTick(fun) {
639
- var args = new Array(arguments.length - 1);
640
- if (arguments.length > 1) {
641
- for (var i = 1; i < arguments.length; i++) {
642
- args[i - 1] = arguments[i];
643
- }
644
- }
645
- queue.push(new Item(fun, args));
646
- if (queue.length === 1 && !draining) {
647
- runTimeout(drainQueue);
648
- }
649
- }
650
- // v8 likes predictible objects
651
- function Item(fun, array) {
652
- this.fun = fun;
653
- this.array = array;
654
- }
655
- Item.prototype.run = function () {
656
- this.fun.apply(null, this.array);
657
- };
658
- var title = 'browser';
659
- var platform = 'browser';
660
- var browser = true;
661
525
  var env = {};
662
- var argv = [];
663
- var version = ''; // empty string to avoid regexp issues
664
- var versions = {};
665
- var release = {};
666
- var config = {};
667
-
668
- function noop() {}
669
-
670
- var on = noop;
671
- var addListener = noop;
672
- var once = noop;
673
- var off = noop;
674
- var removeListener = noop;
675
- var removeAllListeners = noop;
676
- var emit = noop;
677
-
678
- function binding(name) {
679
- throw new Error('process.binding is not supported');
680
- }
681
-
682
- function cwd () { return '/' }
683
- function chdir (dir) {
684
- throw new Error('process.chdir is not supported');
685
- }function umask() { return 0; }
686
526
 
687
527
  // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
688
528
  var performance = global$1.performance || {};
689
- var performanceNow =
690
- performance.now ||
529
+ performance.now ||
691
530
  performance.mozNow ||
692
531
  performance.msNow ||
693
532
  performance.oNow ||
694
533
  performance.webkitNow ||
695
534
  function(){ return (new Date()).getTime() };
696
535
 
697
- // generate timestamp or delta
698
- // see http://nodejs.org/api/process.html#process_process_hrtime
699
- function hrtime(previousTimestamp){
700
- var clocktime = performanceNow.call(performance)*1e-3;
701
- var seconds = Math.floor(clocktime);
702
- var nanoseconds = Math.floor((clocktime%1)*1e9);
703
- if (previousTimestamp) {
704
- seconds = seconds - previousTimestamp[0];
705
- nanoseconds = nanoseconds - previousTimestamp[1];
706
- if (nanoseconds<0) {
707
- seconds--;
708
- nanoseconds += 1e9;
709
- }
710
- }
711
- return [seconds,nanoseconds]
712
- }
713
-
714
- var startTime = new Date();
715
- function uptime() {
716
- var currentTime = new Date();
717
- var dif = currentTime - startTime;
718
- return dif / 1000;
719
- }
720
-
721
536
  var browser$1 = {
722
- nextTick: nextTick,
723
- title: title,
724
- browser: browser,
725
- env: env,
726
- argv: argv,
727
- version: version,
728
- versions: versions,
729
- on: on,
730
- addListener: addListener,
731
- once: once,
732
- off: off,
733
- removeListener: removeListener,
734
- removeAllListeners: removeAllListeners,
735
- emit: emit,
736
- binding: binding,
737
- cwd: cwd,
738
- chdir: chdir,
739
- umask: umask,
740
- hrtime: hrtime,
741
- platform: platform,
742
- release: release,
743
- config: config,
744
- uptime: uptime
745
- };
537
+ env: env};
746
538
 
747
539
  var _a;
748
540
  /**
@@ -778,7 +570,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
778
570
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.ES256 },
779
571
  ];
780
572
  const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
781
- const currentPackageVersion = "2.3.2" ;
573
+ const currentPackageVersion = "2.3.4" ;
782
574
 
783
575
  /**
784
576
  * Storage keys adapter for Storage interface across different platforms.
@@ -905,7 +697,7 @@ function hexToBytes$2(hex) {
905
697
  /**
906
698
  * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
907
699
  */
908
- function utf8ToBytes$2(str) {
700
+ function utf8ToBytes$1(str) {
909
701
  if (typeof str !== 'string')
910
702
  throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
911
703
  return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
@@ -917,7 +709,7 @@ function utf8ToBytes$2(str) {
917
709
  */
918
710
  function toBytes(data) {
919
711
  if (typeof data === 'string')
920
- data = utf8ToBytes$2(data);
712
+ data = utf8ToBytes$1(data);
921
713
  bytes$1(data);
922
714
  return data;
923
715
  }
@@ -1070,7 +862,7 @@ const concatUint8Arrays = (uint8arrays) => {
1070
862
  * Converts a UTF-8 string to a Uint8Array without using TextEncoder, which is not available in mobile
1071
863
  * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1072
864
  */
1073
- const utf8ToBytes$1 = (str) => {
865
+ const utf8ToBytes = (str) => {
1074
866
  if (typeof str !== 'string')
1075
867
  throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
1076
868
  const bytes = [];
@@ -1497,10 +1289,6 @@ function numberToBytesBE(n, len) {
1497
1289
  function numberToBytesLE(n, len) {
1498
1290
  return numberToBytesBE(n, len).reverse();
1499
1291
  }
1500
- // Unpadded, rarely used
1501
- function numberToVarBytesBE(n) {
1502
- return hexToBytes(numberToHexUnpadded(n));
1503
- }
1504
1292
  /**
1505
1293
  * Takes hex string or Uint8Array, converts to Uint8Array.
1506
1294
  * Validates output length.
@@ -1551,23 +1339,6 @@ function concatBytes(...arrays) {
1551
1339
  }
1552
1340
  return res;
1553
1341
  }
1554
- // Compares 2 u8a-s in kinda constant time
1555
- function equalBytes(a, b) {
1556
- if (a.length !== b.length)
1557
- return false;
1558
- let diff = 0;
1559
- for (let i = 0; i < a.length; i++)
1560
- diff |= a[i] ^ b[i];
1561
- return diff === 0;
1562
- }
1563
- /**
1564
- * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1565
- */
1566
- function utf8ToBytes(str) {
1567
- if (typeof str !== 'string')
1568
- throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
1569
- return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
1570
- }
1571
1342
  // Is positive bigint
1572
1343
  const isPosBig = (n) => typeof n === 'bigint' && _0n$4 <= n;
1573
1344
  function inRange(n, min, max) {
@@ -1598,20 +1369,6 @@ function bitLen(n) {
1598
1369
  ;
1599
1370
  return len;
1600
1371
  }
1601
- /**
1602
- * Gets single bit at position.
1603
- * NOTE: first bit position is 0 (same as arrays)
1604
- * Same as `!!+Array.from(n.toString(2)).reverse()[pos]`
1605
- */
1606
- function bitGet(n, pos) {
1607
- return (n >> BigInt(pos)) & _1n$5;
1608
- }
1609
- /**
1610
- * Sets single bit at position.
1611
- */
1612
- function bitSet(n, pos, value) {
1613
- return n | ((value ? _1n$5 : _0n$4) << BigInt(pos));
1614
- }
1615
1372
  /**
1616
1373
  * Calculate mask for N bits. Not using ** operator with bigints because of old engines.
1617
1374
  * Same as BigInt(`0b${Array(i).fill('1').join('')}`)
@@ -1709,20 +1466,6 @@ function validateObject(object, validators, optValidators = {}) {
1709
1466
  checkField(fieldName, type, true);
1710
1467
  return object;
1711
1468
  }
1712
- // validate type tests
1713
- // const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
1714
- // const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
1715
- // // Should fail type-check
1716
- // const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });
1717
- // const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });
1718
- // const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
1719
- // const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
1720
- /**
1721
- * throws not implemented error
1722
- */
1723
- const notImplemented = () => {
1724
- throw new Error('not implemented');
1725
- };
1726
1469
  /**
1727
1470
  * Memoizes (caches) computation result.
1728
1471
  * Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.
@@ -1744,28 +1487,22 @@ __proto__: null,
1744
1487
  aInRange,
1745
1488
  abool,
1746
1489
  abytes,
1747
- bitGet,
1748
1490
  bitLen,
1749
1491
  bitMask,
1750
- bitSet,
1751
1492
  bytesToHex,
1752
1493
  bytesToNumberBE,
1753
1494
  bytesToNumberLE,
1754
1495
  concatBytes,
1755
1496
  createHmacDrbg,
1756
1497
  ensureBytes,
1757
- equalBytes,
1758
1498
  hexToBytes,
1759
1499
  hexToNumber,
1760
1500
  inRange,
1761
1501
  isBytes: isBytes$1,
1762
1502
  memoized,
1763
- notImplemented,
1764
1503
  numberToBytesBE,
1765
1504
  numberToBytesLE,
1766
1505
  numberToHexUnpadded,
1767
- numberToVarBytesBE,
1768
- utf8ToBytes,
1769
1506
  validateObject
1770
1507
  }, Symbol.toStringTag, { value: 'Module' }));
1771
1508
 
@@ -4419,7 +4156,7 @@ const encrypt = (publicKeyTo, msg, options) => {
4419
4156
  const hash = sha512(sharedSecret);
4420
4157
  const encryptionKey = hash.subarray(0, 32);
4421
4158
  const macKey = hash.subarray(32);
4422
- const message = utf8ToBytes$1(msg);
4159
+ const message = utf8ToBytes(msg);
4423
4160
  const data = encrypt$1(message, encryptionKey, iv, 'aes-256-cbc');
4424
4161
  const dataToMac = concatUint8Arrays([iv, ephemPublicKey, data]);
4425
4162
  const mac = hmacSha256Sign(macKey, dataToMac);
@@ -4491,7 +4228,7 @@ const decryptWithPrivateKey = (privateKey, encrypted) => {
4491
4228
  };
4492
4229
 
4493
4230
  const solidityPackedKeccak256 = (value) => {
4494
- const bytes = utf8ToBytes$1(value);
4231
+ const bytes = utf8ToBytes(value);
4495
4232
  const hex = addLeading0x(bytesToHex$1(bytes));
4496
4233
  const hash = keccak256$1(hexToBytes$1(hex));
4497
4234
  return addLeading0x(bytesToHex$1(hash));
@@ -4658,7 +4395,7 @@ class Cipher {
4658
4395
  */
4659
4396
  getMasterKey() {
4660
4397
  return {
4661
- buffer: utf8ToBytes$2(MASTER_ENCRYPTION_KEY),
4398
+ buffer: utf8ToBytes$1(MASTER_ENCRYPTION_KEY),
4662
4399
  key: MASTER_ENCRYPTION_KEY,
4663
4400
  };
4664
4401
  }
@@ -4696,7 +4433,7 @@ class Cipher {
4696
4433
  * Validate that a salt is sufficiently long and not weak.
4697
4434
  */
4698
4435
  validateSalt(salt) {
4699
- if (utf8ToBytes$2(salt).length < 16) {
4436
+ if (utf8ToBytes$1(salt).length < 16) {
4700
4437
  throw new Error('Salt is too short: must be at least 16 bytes');
4701
4438
  }
4702
4439
  const uniqueChars = new Set(salt);
@@ -5000,7 +4737,7 @@ class Cipher {
5000
4737
  // Prevents different Unicode representations of "same" password
5001
4738
  // Also trim whitespace for security consistency
5002
4739
  const normalizedPassword = password.normalize('NFKC').trim();
5003
- const encryptionKey = pbkdf2Sync(utf8ToBytes$2(normalizedPassword), utf8ToBytes$2(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
4740
+ const encryptionKey = pbkdf2Sync(utf8ToBytes$1(normalizedPassword), utf8ToBytes$1(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
5004
4741
  const encryptionKeyPair = createIdentity(encryptionKey);
5005
4742
  return encryptionKeyPair;
5006
4743
  }
@@ -5612,7 +5349,7 @@ var ContentType;
5612
5349
  })(ContentType || (ContentType = {}));
5613
5350
  class HttpClient {
5614
5351
  constructor(apiConfig = {}) {
5615
- this.baseUrl = "";
5352
+ this.baseUrl = "https://staging-testnet.wallaby.cash";
5616
5353
  this.securityData = null;
5617
5354
  this.abortControllers = new Map();
5618
5355
  this.customFetch = (...fetchParams) => fetch(...fetchParams);
@@ -5745,31 +5482,15 @@ class HttpClient {
5745
5482
  }
5746
5483
  }
5747
5484
  /**
5748
- * @title Wallaby API Service
5749
- * @version 1.0.0
5485
+ * @title STAGING
5486
+ * @version 1.0
5487
+ * @baseUrl https://staging-testnet.wallaby.cash
5750
5488
  * @contact
5751
5489
  *
5752
- * NCW Wallets Service API Documentation
5490
+ * The STAGING is an API that manages the wallets of the Republic Crypto
5753
5491
  */
5754
5492
  class Api {
5755
5493
  constructor(http) {
5756
- /**
5757
- * No description
5758
- *
5759
- * @name DashboardControllerGetDashboardData
5760
- * @summary Create new merchant. This endpoint is only available for super admin and republic admin
5761
- * @request GET:/dashboard
5762
- * @secure
5763
- */
5764
- this.dashboardControllerGetDashboardData = (params = {}) => this.http.request(Object.assign({ path: `/dashboard`, method: "GET", secure: true }, params));
5765
- /**
5766
- * No description
5767
- *
5768
- * @name GetActivitiees
5769
- * @summary Get all activities. This endpoint is only available for super admin and republic admin
5770
- * @request GET:/users-activities
5771
- */
5772
- this.getActivitiees = (query, params = {}) => this.http.request(Object.assign({ path: `/users-activities`, method: "GET", query: query }, params));
5773
5494
  this.health = {
5774
5495
  /**
5775
5496
  * No description
@@ -5778,8 +5499,9 @@ class Api {
5778
5499
  * @name GetHello
5779
5500
  * @summary Health Check API
5780
5501
  * @request GET:/
5502
+ * @secure
5781
5503
  */
5782
- getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET" }, params)),
5504
+ getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET", secure: true }, params)),
5783
5505
  /**
5784
5506
  * No description
5785
5507
  *
@@ -5787,8 +5509,9 @@ class Api {
5787
5509
  * @name GetHealthCheck
5788
5510
  * @summary Service API status check
5789
5511
  * @request GET:/healthz
5512
+ * @secure
5790
5513
  */
5791
- getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET" }, params)),
5514
+ getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET", secure: true }, params)),
5792
5515
  };
5793
5516
  this.auth = {
5794
5517
  /**
@@ -5797,86 +5520,101 @@ class Api {
5797
5520
  * @tags Auth
5798
5521
  * @name GenerateExternalSignatureMessage
5799
5522
  * @summary The returned message will be used for sign up and sign in signature
5800
- * @request POST:/auth/signature-message/external
5523
+ * @request POST:/api/v1/auth/signature-message/external
5524
+ * @secure
5801
5525
  */
5802
- generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5526
+ generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/signature-message/external`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5803
5527
  /**
5804
5528
  * No description
5805
5529
  *
5806
5530
  * @tags Auth
5807
5531
  * @name GenerateSignatureMessage
5808
5532
  * @summary The returned message will be used for sign up and sign in signature
5809
- * @request POST:/auth/signature-message
5533
+ * @request POST:/api/v1/auth/signature-message
5534
+ * @secure
5810
5535
  */
5811
- generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5536
+ generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/signature-message`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5812
5537
  /**
5813
5538
  * No description
5814
5539
  *
5815
5540
  * @tags Auth
5816
5541
  * @name SignUp
5817
5542
  * @summary Users will be able to sign up by providing a signature and message. Message to sign can be retrieved from /api/auth/signature-message
5818
- * @request POST:/auth/sign-up
5543
+ * @request POST:/api/v1/auth/sign-up
5544
+ * @secure
5819
5545
  */
5820
- signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5546
+ signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-up`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5821
5547
  /**
5822
5548
  * No description
5823
5549
  *
5824
5550
  * @tags Auth
5825
5551
  * @name SignUpExternal
5826
5552
  * @summary Users will be able to sign up by providing a signature and message. Message to sign can be retrieved from /api/auth/signature-message
5827
- * @request POST:/auth/sign-up/external
5553
+ * @request POST:/api/v1/auth/sign-up/external
5554
+ * @secure
5828
5555
  */
5829
- signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5556
+ signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-up/external`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5830
5557
  /**
5831
5558
  * No description
5832
5559
  *
5833
5560
  * @tags Auth
5834
5561
  * @name SignIn
5835
5562
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5836
- * @request POST:/auth/sign-in
5563
+ * @request POST:/api/v1/auth/sign-in
5564
+ * @secure
5837
5565
  */
5838
- signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-in`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5566
+ signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/sign-in`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5839
5567
  /**
5840
5568
  * No description
5841
5569
  *
5842
5570
  * @tags Auth
5843
5571
  * @name RefreshAccessToken
5844
5572
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5845
- * @request POST:/auth/refresh-access-token
5573
+ * @request POST:/api/v1/auth/refresh-access-token
5846
5574
  * @deprecated
5847
5575
  * @secure
5848
5576
  */
5849
- refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5577
+ refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5578
+ /**
5579
+ * No description
5580
+ *
5581
+ * @tags Auth
5582
+ * @name Logout
5583
+ * @summary Invalidate the current session by revoking the bearer token
5584
+ * @request POST:/api/v1/auth/logout
5585
+ * @secure
5586
+ */
5587
+ logout: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/logout`, method: "POST", secure: true, format: "json" }, params)),
5850
5588
  /**
5851
5589
  * No description
5852
5590
  *
5853
5591
  * @tags Auth
5854
5592
  * @name ChangeAuthPublicKey
5855
5593
  * @summary Change user authentication public key
5856
- * @request PUT:/auth/client-auth-pubkey
5594
+ * @request PUT:/api/v1/auth/client-auth-pubkey
5857
5595
  * @secure
5858
5596
  */
5859
- changeAuthPublicKey: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/client-auth-pubkey`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5597
+ changeAuthPublicKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/client-auth-pubkey`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5860
5598
  /**
5861
5599
  * No description
5862
5600
  *
5863
5601
  * @tags Auth
5864
5602
  * @name GetWallabyAuthPubKey
5865
5603
  * @summary Get user public key
5866
- * @request POST:/auth/wallaby-auth-pubkey
5604
+ * @request POST:/api/v1/auth/wallaby-auth-pubkey
5867
5605
  * @secure
5868
5606
  */
5869
- getWallabyAuthPubKey: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/wallaby-auth-pubkey`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5607
+ getWallabyAuthPubKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/wallaby-auth-pubkey`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5870
5608
  /**
5871
5609
  * No description
5872
5610
  *
5873
5611
  * @tags Auth
5874
5612
  * @name GetPasskeyCredentials
5875
5613
  * @summary Get user passkey credentials
5876
- * @request GET:/auth/passkey-credentials
5614
+ * @request GET:/api/v1/auth/passkey-credentials
5877
5615
  * @secure
5878
5616
  */
5879
- getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5617
+ getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5880
5618
  };
5881
5619
  this.chains = {
5882
5620
  /**
@@ -5885,31 +5623,33 @@ class Api {
5885
5623
  * @tags Chains
5886
5624
  * @name GetAllChains
5887
5625
  * @summary Get all supported chains
5888
- * @request GET:/chains
5626
+ * @request GET:/api/v1/chains
5889
5627
  * @secure
5890
5628
  */
5891
- getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5629
+ getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5892
5630
  /**
5893
5631
  * No description
5894
5632
  *
5895
5633
  * @tags Chains
5896
5634
  * @name CreateChain
5897
5635
  * @summary Create new chain. This endpoint is only available for super admin and republic admin
5898
- * @request POST:/chains
5636
+ * @request POST:/api/v1/chains
5637
+ * @secure
5899
5638
  */
5900
- createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5639
+ createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5901
5640
  /**
5902
5641
  * No description
5903
5642
  *
5904
5643
  * @tags Chains
5905
5644
  * @name UpdateChain
5906
5645
  * @summary Update the chain public data
5907
- * @request PUT:/chains/{chainId}
5646
+ * @request PUT:/api/v1/chains/{chainId}
5647
+ * @secure
5908
5648
  */
5909
5649
  updateChain: (_a, data, params) => {
5910
5650
  var { chainId } = _a; __rest(_a, ["chainId"]);
5911
5651
  if (params === void 0) { params = {}; }
5912
- return this.http.request(Object.assign({ path: `/chains/${chainId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params));
5652
+ return this.http.request(Object.assign({ path: `/api/v1/chains/${chainId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5913
5653
  },
5914
5654
  };
5915
5655
  this.assets = {
@@ -5919,33 +5659,33 @@ class Api {
5919
5659
  * @tags Assets
5920
5660
  * @name GetAssetsConfigurations
5921
5661
  * @summary Get all supported assets configuration that can be imported into a merchant or a user wallet
5922
- * @request GET:/assets/configurations
5662
+ * @request GET:/api/v1/assets/configurations
5923
5663
  * @secure
5924
5664
  */
5925
- getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5665
+ getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5926
5666
  /**
5927
5667
  * No description
5928
5668
  *
5929
5669
  * @tags Assets
5930
5670
  * @name CreateAssetConfig
5931
5671
  * @summary Create new asset configuration that can be imported later into a merchant or a user wallet. This endpoint is only available for super admin and republic admin
5932
- * @request POST:/assets/configurations
5672
+ * @request POST:/api/v1/assets/configurations
5933
5673
  * @secure
5934
5674
  */
5935
- createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5675
+ createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5936
5676
  /**
5937
5677
  * No description
5938
5678
  *
5939
5679
  * @tags Assets
5940
5680
  * @name UpdateAssetConfig
5941
5681
  * @summary Update asset configuration that can be imported later into a merchant or a user wallet. This endpoint is only available for owner, super admin and republic admin
5942
- * @request PUT:/assets/configurations/{assetConfigId}
5682
+ * @request PUT:/api/v1/assets/configurations/{assetConfigId}
5943
5683
  * @secure
5944
5684
  */
5945
5685
  updateAssetConfig: (_a, data, params) => {
5946
5686
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5947
5687
  if (params === void 0) { params = {}; }
5948
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5688
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5949
5689
  },
5950
5690
  /**
5951
5691
  * No description
@@ -5953,13 +5693,13 @@ class Api {
5953
5693
  * @tags Assets
5954
5694
  * @name VerifyAsset
5955
5695
  * @summary Verify asset configuration details.
5956
- * @request POST:/assets/configurations/{assetConfigId}/verify
5696
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/verify
5957
5697
  * @secure
5958
5698
  */
5959
5699
  verifyAsset: (_a, params) => {
5960
5700
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5961
5701
  if (params === void 0) { params = {}; }
5962
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5702
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5963
5703
  },
5964
5704
  /**
5965
5705
  * No description
@@ -5967,13 +5707,13 @@ class Api {
5967
5707
  * @tags Assets
5968
5708
  * @name UnverifyAsset
5969
5709
  * @summary Unverify asset configuration
5970
- * @request DELETE:/assets/configurations/{assetConfigId}/unverify
5710
+ * @request DELETE:/api/v1/assets/configurations/{assetConfigId}/unverify
5971
5711
  * @secure
5972
5712
  */
5973
5713
  unverifyAsset: (_a, params) => {
5974
5714
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5975
5715
  if (params === void 0) { params = {}; }
5976
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
5716
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
5977
5717
  },
5978
5718
  /**
5979
5719
  * No description
@@ -5981,13 +5721,13 @@ class Api {
5981
5721
  * @tags Assets
5982
5722
  * @name ArchiveAsset
5983
5723
  * @summary Archive an asset configuration
5984
- * @request POST:/assets/configurations/{assetConfigId}/archive
5724
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/archive
5985
5725
  * @secure
5986
5726
  */
5987
5727
  archiveAsset: (_a, params) => {
5988
5728
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5989
5729
  if (params === void 0) { params = {}; }
5990
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
5730
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
5991
5731
  },
5992
5732
  /**
5993
5733
  * No description
@@ -5995,13 +5735,13 @@ class Api {
5995
5735
  * @tags Assets
5996
5736
  * @name UnarchiveAsset
5997
5737
  * @summary Archive an asset configuration
5998
- * @request POST:/assets/configurations/{assetConfigId}/unarchive
5738
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/unarchive
5999
5739
  * @secure
6000
5740
  */
6001
5741
  unarchiveAsset: (_a, params) => {
6002
5742
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
6003
5743
  if (params === void 0) { params = {}; }
6004
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
5744
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
6005
5745
  },
6006
5746
  };
6007
5747
  this.merchants = {
@@ -6011,32 +5751,33 @@ class Api {
6011
5751
  * @tags Merchants
6012
5752
  * @name GetAllMerchants
6013
5753
  * @summary Get all merchants
6014
- * @request GET:/merchants
5754
+ * @request GET:/api/v1/merchants
5755
+ * @secure
6015
5756
  */
6016
- getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "GET", query: query, format: "json" }, params)),
5757
+ getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "GET", query: query, secure: true, format: "json" }, params)),
6017
5758
  /**
6018
5759
  * No description
6019
5760
  *
6020
5761
  * @tags Merchants
6021
5762
  * @name CreateMerchant
6022
5763
  * @summary Create new merchant. This endpoint is only available for super admin and republic admin
6023
- * @request POST:/merchants
5764
+ * @request POST:/api/v1/merchants
6024
5765
  * @secure
6025
5766
  */
6026
- createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5767
+ createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6027
5768
  /**
6028
5769
  * No description
6029
5770
  *
6030
5771
  * @tags Merchants
6031
5772
  * @name UpdateMerchant
6032
5773
  * @summary Update merchant. This endpoint is only available for super admin and republic admin
6033
- * @request PUT:/merchants/{merchantId}
5774
+ * @request PUT:/api/v1/merchants/{merchantId}
6034
5775
  * @secure
6035
5776
  */
6036
5777
  updateMerchant: (_a, data, params) => {
6037
5778
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6038
5779
  if (params === void 0) { params = {}; }
6039
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5780
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
6040
5781
  },
6041
5782
  /**
6042
5783
  * No description
@@ -6044,12 +5785,13 @@ class Api {
6044
5785
  * @tags Merchants
6045
5786
  * @name GetOneMerchant
6046
5787
  * @summary Get one merchant by id with counts
6047
- * @request GET:/merchants/{merchantId}
5788
+ * @request GET:/api/v1/merchants/{merchantId}
5789
+ * @secure
6048
5790
  */
6049
5791
  getOneMerchant: (_a, params) => {
6050
5792
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6051
5793
  if (params === void 0) { params = {}; }
6052
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "GET", format: "json" }, params));
5794
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "GET", secure: true, format: "json" }, params));
6053
5795
  },
6054
5796
  /**
6055
5797
  * No description
@@ -6057,12 +5799,13 @@ class Api {
6057
5799
  * @tags Merchants
6058
5800
  * @name GetMerchantAssets
6059
5801
  * @summary Get merchant assets by merchant id
6060
- * @request GET:/merchants/{merchantId}/assets
5802
+ * @request GET:/api/v1/merchants/{merchantId}/assets
5803
+ * @secure
6061
5804
  */
6062
5805
  getMerchantAssets: (_a, params) => {
6063
5806
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6064
5807
  if (params === void 0) { params = {}; }
6065
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/assets`, method: "GET", query: query, format: "json" }, params));
5808
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6066
5809
  },
6067
5810
  /**
6068
5811
  * No description
@@ -6070,13 +5813,13 @@ class Api {
6070
5813
  * @tags Merchants
6071
5814
  * @name GetMerchantUsers
6072
5815
  * @summary Get merchant users by merchant id
6073
- * @request GET:/merchants/{merchantId}/users
5816
+ * @request GET:/api/v1/merchants/{merchantId}/users
6074
5817
  * @secure
6075
5818
  */
6076
5819
  getMerchantUsers: (_a, params) => {
6077
5820
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6078
5821
  if (params === void 0) { params = {}; }
6079
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
5822
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
6080
5823
  },
6081
5824
  /**
6082
5825
  * No description
@@ -6084,13 +5827,13 @@ class Api {
6084
5827
  * @tags Merchants
6085
5828
  * @name GetMerchantAdmins
6086
5829
  * @summary Get merchant admins by merchant id
6087
- * @request GET:/merchants/{merchantId}/admins
5830
+ * @request GET:/api/v1/merchants/{merchantId}/admins
6088
5831
  * @secure
6089
5832
  */
6090
5833
  getMerchantAdmins: (_a, params) => {
6091
5834
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6092
5835
  if (params === void 0) { params = {}; }
6093
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
5836
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
6094
5837
  },
6095
5838
  /**
6096
5839
  * No description
@@ -6098,23 +5841,23 @@ class Api {
6098
5841
  * @tags Merchants
6099
5842
  * @name InviteMerchantAdmins
6100
5843
  * @summary Invite merchant admins by merchant id
6101
- * @request POST:/merchants/admins/invite
5844
+ * @request POST:/api/v1/merchants/admins/invite
6102
5845
  * @secure
6103
5846
  */
6104
- inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5847
+ inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6105
5848
  /**
6106
5849
  * No description
6107
5850
  *
6108
5851
  * @tags Merchants
6109
5852
  * @name RevokeMerchantAdmins
6110
5853
  * @summary Invite merchant admins by merchant id
6111
- * @request DELETE:/merchants/{merchantId}/admins/{userId}
5854
+ * @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
6112
5855
  * @secure
6113
5856
  */
6114
5857
  revokeMerchantAdmins: (_a, params) => {
6115
5858
  var { merchantId, userId } = _a; __rest(_a, ["merchantId", "userId"]);
6116
5859
  if (params === void 0) { params = {}; }
6117
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
5860
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
6118
5861
  },
6119
5862
  /**
6120
5863
  * No description
@@ -6122,13 +5865,13 @@ class Api {
6122
5865
  * @tags Merchants
6123
5866
  * @name GetMerchantWallets
6124
5867
  * @summary Get merchant wallets by merchant id
6125
- * @request GET:/merchants/{merchantId}/wallets
5868
+ * @request GET:/api/v1/merchants/{merchantId}/wallets
6126
5869
  * @secure
6127
5870
  */
6128
5871
  getMerchantWallets: (_a, params) => {
6129
5872
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6130
5873
  if (params === void 0) { params = {}; }
6131
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
5874
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
6132
5875
  },
6133
5876
  /**
6134
5877
  * No description
@@ -6136,205 +5879,205 @@ class Api {
6136
5879
  * @tags Merchants
6137
5880
  * @name AddMerchantWalletAssets
6138
5881
  * @summary Add assets to merchant wallets by merchant id
6139
- * @request POST:/merchants/wallets/add-assets
5882
+ * @request POST:/api/v1/merchants/wallets/add-assets
6140
5883
  * @secure
6141
5884
  */
6142
- addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
5885
+ addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6143
5886
  /**
6144
5887
  * No description
6145
5888
  *
6146
5889
  * @tags Merchants
6147
5890
  * @name AddNewAsset
6148
5891
  * @summary Add new asset to merchant based on the asset configuration
6149
- * @request POST:/merchants/assets/add
5892
+ * @request POST:/api/v1/merchants/assets/add
6150
5893
  * @secure
6151
5894
  */
6152
- addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5895
+ addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6153
5896
  /**
6154
5897
  * No description
6155
5898
  *
6156
5899
  * @tags Merchants
6157
5900
  * @name RemoveAsset
6158
5901
  * @summary Remove asset from merchant based on the asset configuration
6159
- * @request DELETE:/merchants/assets/delete
5902
+ * @request DELETE:/api/v1/merchants/assets/delete
6160
5903
  * @secure
6161
5904
  */
6162
- removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5905
+ removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6163
5906
  /**
6164
5907
  * No description
6165
5908
  *
6166
5909
  * @tags Merchants
6167
5910
  * @name ShowMerchantAssetToWalletHolders
6168
5911
  * @summary Show merchant asset to wallet holders based on the asset configuration
6169
- * @request POST:/merchants/assets/update-visibility
5912
+ * @request POST:/api/v1/merchants/assets/update-visibility
6170
5913
  * @secure
6171
5914
  */
6172
- showMerchantAssetToWalletHolders: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/update-visibility`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5915
+ showMerchantAssetToWalletHolders: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/update-visibility`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6173
5916
  /**
6174
5917
  * No description
6175
5918
  *
6176
5919
  * @tags Merchants
6177
5920
  * @name ChangeMerchantAssetDefaultStatus
6178
5921
  * @summary Change merchant asset default status
6179
- * @request POST:/merchants/assets/update-default-status
5922
+ * @request POST:/api/v1/merchants/assets/update-default-status
6180
5923
  * @secure
6181
5924
  */
6182
- changeMerchantAssetDefaultStatus: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/update-default-status`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5925
+ changeMerchantAssetDefaultStatus: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/assets/update-default-status`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6183
5926
  /**
6184
5927
  * No description
6185
5928
  *
6186
5929
  * @tags Merchants
6187
5930
  * @name CreateApiKey
6188
5931
  * @summary Create new API Key
6189
- * @request POST:/merchants/api-keys/new
5932
+ * @request POST:/api/v1/merchants/api-keys/new
6190
5933
  * @secure
6191
5934
  */
6192
- createApiKey: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/api-keys/new`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5935
+ createApiKey: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/api-keys/new`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6193
5936
  /**
6194
5937
  * No description
6195
5938
  *
6196
5939
  * @tags Merchants
6197
5940
  * @name WhitelistApiKeyOrigins
6198
5941
  * @summary Whitelist API Key's origins
6199
- * @request POST:/merchants/api-keys/whitelist-origins
5942
+ * @request POST:/api/v1/merchants/api-keys/whitelist-origins
6200
5943
  * @secure
6201
5944
  */
6202
- whitelistApiKeyOrigins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/api-keys/whitelist-origins`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5945
+ whitelistApiKeyOrigins: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants/api-keys/whitelist-origins`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6203
5946
  };
6204
5947
  this.wallets = {
6205
5948
  /**
6206
5949
  * No description
6207
5950
  *
6208
5951
  * @tags Wallets
6209
- * @name GetAllUsers
5952
+ * @name GetAllWallets
6210
5953
  * @summary Get all wallets by the admin
6211
- * @request GET:/wallets
5954
+ * @request GET:/api/v1/wallets
6212
5955
  * @secure
6213
5956
  */
6214
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
5957
+ getAllWallets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6215
5958
  /**
6216
5959
  * No description
6217
5960
  *
6218
5961
  * @tags Wallets
6219
5962
  * @name CreateWallet
6220
5963
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed
6221
- * @request POST:/wallets/create
5964
+ * @request POST:/api/v1/wallets/create
6222
5965
  * @secure
6223
5966
  */
6224
- createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5967
+ createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6225
5968
  /**
6226
5969
  * No description
6227
5970
  *
6228
5971
  * @tags Wallets
6229
5972
  * @name VerifyAccess
6230
5973
  * @summary Verify that the user still has the ability to transact with the wallet
6231
- * @request POST:/wallets/verify-access
5974
+ * @request POST:/api/v1/wallets/verify-access
6232
5975
  * @secure
6233
5976
  */
6234
- verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5977
+ verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6235
5978
  /**
6236
5979
  * No description
6237
5980
  *
6238
5981
  * @tags Wallets
6239
5982
  * @name CreateAdminWallet
6240
5983
  * @summary Create a server side admin wallet where encryptedSeed will be opaque to the caller
6241
- * @request POST:/wallets/create-admin-server-wallet
5984
+ * @request POST:/api/v1/wallets/create-admin-server-wallet
6242
5985
  * @secure
6243
5986
  */
6244
- createAdminWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-admin-server-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5987
+ createAdminWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-admin-server-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6245
5988
  /**
6246
5989
  * No description
6247
5990
  *
6248
5991
  * @tags Wallets, MPC
6249
5992
  * @name CreateWalletV2
6250
5993
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed, shares, or both
6251
- * @request POST:/wallets/create-with-shares
5994
+ * @request POST:/api/v1/wallets/create-with-shares
6252
5995
  * @secure
6253
5996
  */
6254
- createWalletV2: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5997
+ createWalletV2: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6255
5998
  /**
6256
5999
  * No description
6257
6000
  *
6258
6001
  * @tags Wallets, MPC
6259
6002
  * @name ImportWalletSeedPhraseV2
6260
6003
  * @summary Import an existing wallet seed phrase into wallaby system directly
6261
- * @request POST:/wallets/create-shares-based-wallet-from-seed
6004
+ * @request POST:/api/v1/wallets/create-shares-based-wallet-from-seed
6262
6005
  * @secure
6263
6006
  */
6264
- importWalletSeedPhraseV2: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-shares-based-wallet-from-seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6007
+ importWalletSeedPhraseV2: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-shares-based-wallet-from-seed`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6265
6008
  /**
6266
6009
  * No description
6267
6010
  *
6268
6011
  * @tags Wallets, MPC
6269
6012
  * @name RetrieveShares
6270
6013
  * @summary Retrieve shares which belong to the user on a specified wallet
6271
- * @request POST:/wallets/retrieve-shares
6014
+ * @request POST:/api/v1/wallets/retrieve-shares
6272
6015
  * @secure
6273
6016
  */
6274
- retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6017
+ retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6275
6018
  /**
6276
6019
  * No description
6277
6020
  *
6278
6021
  * @tags Wallets, MPC
6279
6022
  * @name ShareWallet
6280
6023
  * @summary Share an entity wallet with another user
6281
- * @request POST:/wallets/initiate-share-wallet
6024
+ * @request POST:/api/v1/wallets/initiate-share-wallet
6282
6025
  * @secure
6283
6026
  */
6284
- shareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/initiate-share-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6027
+ shareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/initiate-share-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6285
6028
  /**
6286
6029
  * No description
6287
6030
  *
6288
6031
  * @tags Wallets, MPC
6289
6032
  * @name UnshareWallet
6290
6033
  * @summary Unshare an entity wallet with a user previously granted access
6291
- * @request POST:/wallets/unshare-wallet
6034
+ * @request POST:/api/v1/wallets/unshare-wallet
6292
6035
  * @secure
6293
6036
  */
6294
- unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6037
+ unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6295
6038
  /**
6296
6039
  * No description
6297
6040
  *
6298
6041
  * @tags Wallets
6299
6042
  * @name AddNewDevice
6300
6043
  * @summary This endpoint will be called by the new device after it receives a Wallaby wrapped share
6301
- * @request POST:/wallets/add-new-device
6044
+ * @request POST:/api/v1/wallets/add-new-device
6302
6045
  * @secure
6303
6046
  */
6304
- addNewDevice: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/add-new-device`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6047
+ addNewDevice: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/add-new-device`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6305
6048
  /**
6306
6049
  * No description
6307
6050
  *
6308
6051
  * @tags Wallets
6309
6052
  * @name ImportWalletSeedPhrase
6310
6053
  * @summary Import an existing wallet seed phrase into wallaby system directly
6311
- * @request POST:/wallets/import-seed-phrase
6054
+ * @request POST:/api/v1/wallets/import-seed-phrase
6312
6055
  * @secure
6313
6056
  */
6314
- importWalletSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/import-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6057
+ importWalletSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/import-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6315
6058
  /**
6316
6059
  * No description
6317
6060
  *
6318
6061
  * @tags Wallets
6319
6062
  * @name GenerateMissingAddresses
6320
6063
  * @summary Generates missing wallet addresses for a user's wallet
6321
- * @request POST:/wallets/generate-wallet-addresses
6064
+ * @request POST:/api/v1/wallets/generate-wallet-addresses
6322
6065
  * @secure
6323
6066
  */
6324
- generateMissingAddresses: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/generate-wallet-addresses`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6067
+ generateMissingAddresses: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/generate-wallet-addresses`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6325
6068
  /**
6326
6069
  * No description
6327
6070
  *
6328
6071
  * @tags Wallets
6329
6072
  * @name GetUserAssetsByWalletId
6330
6073
  * @summary Get all assets that exist in a certain wallet, by specifying a wallet ID
6331
- * @request GET:/wallets/{walletId}/assets
6074
+ * @request GET:/api/v1/wallets/{walletId}/assets
6332
6075
  * @secure
6333
6076
  */
6334
6077
  getUserAssetsByWalletId: (_a, params) => {
6335
6078
  var { walletId } = _a, query = __rest(_a, ["walletId"]);
6336
6079
  if (params === void 0) { params = {}; }
6337
- return this.http.request(Object.assign({ path: `/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6080
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6338
6081
  },
6339
6082
  /**
6340
6083
  * No description
@@ -6342,523 +6085,598 @@ class Api {
6342
6085
  * @tags Wallets
6343
6086
  * @name GetUserAsset
6344
6087
  * @summary Get one asset from a user's wallet
6345
- * @request GET:/wallets/asset
6088
+ * @request GET:/api/v1/wallets/asset
6346
6089
  * @secure
6347
6090
  */
6348
- getUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/wallets/asset`, method: "GET", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6091
+ getUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/asset`, method: "GET", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6349
6092
  /**
6350
6093
  * No description
6351
6094
  *
6352
6095
  * @tags Wallets
6353
6096
  * @name UpdateUserAsset
6354
6097
  * @summary Update a specific asset in a wallet
6355
- * @request PUT:/wallets/asset/update
6098
+ * @request PUT:/api/v1/wallets/asset/update
6356
6099
  * @secure
6357
6100
  */
6358
- updateUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/wallets/asset/update`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6101
+ updateUserAsset: (query, data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/asset/update`, method: "PUT", query: query, body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6359
6102
  /**
6360
6103
  * No description
6361
6104
  *
6362
6105
  * @tags Wallets, Multisig
6363
6106
  * @name CreateMultisigAsset
6364
6107
  * @summary Initiate creation for a new multisig asset, by specifying participants and the threshold
6365
- * @request POST:/wallets/create-multisig-asset
6108
+ * @request POST:/api/v1/wallets/create-multisig-asset
6366
6109
  * @secure
6367
6110
  */
6368
- createMultisigAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create-multisig-asset`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6111
+ createMultisigAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/create-multisig-asset`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6369
6112
  /**
6370
6113
  * No description
6371
6114
  *
6372
6115
  * @tags Wallets, Recovery
6373
6116
  * @name InitiateWalletRecovery
6374
6117
  * @summary Wallet Recovery - Step 1: Initiate wallet recovery
6375
- * @request POST:/wallets/recover/init
6118
+ * @request POST:/api/v1/wallets/recover/init
6376
6119
  * @secure
6377
6120
  */
6378
- initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6121
+ initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6379
6122
  /**
6380
6123
  * No description
6381
6124
  *
6382
6125
  * @tags Wallets, Recovery
6383
6126
  * @name RecoverWallet
6384
6127
  * @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
6385
- * @request POST:/wallets/recover
6128
+ * @request POST:/api/v1/wallets/recover
6386
6129
  * @secure
6387
6130
  */
6388
- recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6131
+ recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6389
6132
  /**
6390
6133
  * No description
6391
6134
  *
6392
6135
  * @tags Wallets, Algorand
6393
6136
  * @name ConvertStandardPhraseToAlgoSpecific
6394
6137
  * @summary Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
6395
- * @request POST:/wallets/convert-mnemonic-seed
6138
+ * @request POST:/api/v1/wallets/convert-mnemonic-seed
6139
+ * @secure
6140
+ */
6141
+ convertStandardPhraseToAlgoSpecific: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/convert-mnemonic-seed`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6142
+ /**
6143
+ * No description
6144
+ *
6145
+ * @tags Wallets, Swaps
6146
+ * @name RequestSwapQuote
6147
+ * @summary Request a swap quote for exchanging assets
6148
+ * @request POST:/api/v1/wallets/{walletId}/swap/quote
6396
6149
  * @secure
6397
6150
  */
6398
- convertStandardPhraseToAlgoSpecific: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/convert-mnemonic-seed`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6151
+ requestSwapQuote: (_a, data, params) => {
6152
+ var { walletId } = _a; __rest(_a, ["walletId"]);
6153
+ if (params === void 0) { params = {}; }
6154
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swap/quote`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
6155
+ },
6156
+ /**
6157
+ * No description
6158
+ *
6159
+ * @tags Wallets, Swaps
6160
+ * @name GetSwapHistory
6161
+ * @summary Get swap history for a wallet
6162
+ * @request GET:/api/v1/wallets/{walletId}/swaps
6163
+ * @secure
6164
+ */
6165
+ getSwapHistory: (_a, params) => {
6166
+ var { walletId } = _a, query = __rest(_a, ["walletId"]);
6167
+ if (params === void 0) { params = {}; }
6168
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps`, method: "GET", query: query, secure: true, format: "json" }, params));
6169
+ },
6170
+ /**
6171
+ * No description
6172
+ *
6173
+ * @tags Wallets, Swaps
6174
+ * @name GetSwapById
6175
+ * @summary Get a specific swap by ID
6176
+ * @request GET:/api/v1/wallets/{walletId}/swaps/{swapId}
6177
+ * @secure
6178
+ */
6179
+ getSwapById: (_a, params) => {
6180
+ var { walletId, swapId } = _a; __rest(_a, ["walletId", "swapId"]);
6181
+ if (params === void 0) { params = {}; }
6182
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps/${swapId}`, method: "GET", secure: true, format: "json" }, params));
6183
+ },
6184
+ /**
6185
+ * No description
6186
+ *
6187
+ * @tags Wallets, Transactions
6188
+ * @name ExecuteSwap
6189
+ * @summary Execute a swap transaction between supported assets
6190
+ * @request POST:/api/v1/wallets/execute-swap
6191
+ * @secure
6192
+ */
6193
+ executeSwap: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/execute-swap`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6399
6194
  };
6400
- this.users = {
6195
+ this.transactions = {
6401
6196
  /**
6402
6197
  * No description
6403
6198
  *
6404
- * @tags Users
6405
- * @name GetAllUsers
6406
- * @summary Get all users by the admin
6407
- * @request GET:/users
6199
+ * @tags Transactions
6200
+ * @name GetTransactions
6201
+ * @summary Get list of transactions
6202
+ * @request GET:/api/v1/transactions
6408
6203
  * @secure
6409
6204
  */
6410
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6205
+ getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6411
6206
  /**
6412
6207
  * No description
6413
6208
  *
6414
- * @tags Users
6415
- * @name UpdateProfile
6416
- * @summary Update user profile info
6417
- * @request PUT:/users/profile
6209
+ * @tags Transactions
6210
+ * @name GetPendingTransactions
6211
+ * @summary Get list of pending transactions
6212
+ * @request GET:/api/v1/transactions/pending
6418
6213
  * @secure
6419
6214
  */
6420
- updateProfile: (data, params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6215
+ getPendingTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/pending`, method: "GET", query: query, secure: true, format: "json" }, params)),
6421
6216
  /**
6422
6217
  * No description
6423
6218
  *
6424
- * @tags Users
6425
- * @name GetCurrentUser
6426
- * @summary Returns current user data
6427
- * @request GET:/users/profile
6219
+ * @tags Transactions
6220
+ * @name ResolvePendingTransaction
6221
+ * @summary Approve or reject a pending transaction
6222
+ * @request POST:/api/v1/transactions/resolve
6428
6223
  * @secure
6429
6224
  */
6430
- getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6225
+ resolvePendingTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/resolve`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6431
6226
  /**
6432
6227
  * No description
6433
6228
  *
6434
- * @tags Users
6435
- * @name GetCurrentUserSalt
6436
- * @summary Get current user's client salt
6437
- * @request GET:/users/salt
6229
+ * @tags Transactions
6230
+ * @name SendTransaction
6231
+ * @summary Request transferring funds to a recipient address
6232
+ * @request POST:/api/v1/transactions/transfer
6438
6233
  * @secure
6439
6234
  */
6440
- getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6235
+ sendTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6441
6236
  /**
6442
6237
  * No description
6443
6238
  *
6444
- * @tags Users
6445
- * @name GetAllWalletsFromUserId
6446
- * @summary Returns user wallets by specifying user id
6447
- * @request GET:/users/{userId}/wallets
6239
+ * @tags Transactions
6240
+ * @name SendV2Transaction
6241
+ * @summary Request transferring funds to a recipient address
6242
+ * @request POST:/api/v1/transactions/transfer-with-shares
6448
6243
  * @secure
6449
6244
  */
6450
- getAllWalletsFromUserId: (_a, params) => {
6451
- var { userId } = _a; __rest(_a, ["userId"]);
6452
- if (params === void 0) { params = {}; }
6453
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6454
- },
6245
+ sendV2Transaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6455
6246
  /**
6456
6247
  * No description
6457
6248
  *
6458
- * @tags Users
6459
- * @name GetCurrentUserMerchantAssets
6460
- * @summary Returns user's merchant assets
6461
- * @request GET:/users/merchants/assets
6249
+ * @tags Transactions
6250
+ * @name InitMultisigTransfer
6251
+ * @summary User initiating and signing a multi-sig transfer request
6252
+ * @request POST:/api/v1/transactions/init-multisig-transfer
6462
6253
  * @secure
6463
6254
  */
6464
- getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6255
+ initMultisigTransfer: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-transfer`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6465
6256
  /**
6466
6257
  * No description
6467
6258
  *
6468
- * @tags Users
6469
- * @name GetCurrentUserMerchantAssets2
6470
- * @summary Returns user's merchant assets
6471
- * @request GET:/users/merchant/assets
6472
- * @originalName getCurrentUserMerchantAssets
6473
- * @duplicate
6259
+ * @tags Transactions, Multisig
6260
+ * @name InitMultisigAssetOptin
6261
+ * @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
6262
+ * @request POST:/api/v1/transactions/init-multisig-asset-optin
6474
6263
  * @secure
6475
6264
  */
6476
- getCurrentUserMerchantAssets2: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6265
+ initMultisigAssetOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6477
6266
  /**
6478
6267
  * No description
6479
6268
  *
6480
- * @tags Users
6481
- * @name GetAssetsByUserId
6482
- * @summary Returns user assets by specifying user id
6483
- * @request GET:/users/{userId}/assets
6269
+ * @tags Transactions, Multisig
6270
+ * @name InitMultisigAppOptin
6271
+ * @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
6272
+ * @request POST:/api/v1/transactions/init-multisig-app-optin
6484
6273
  * @secure
6485
6274
  */
6486
- getAssetsByUserId: (_a, params) => {
6487
- var { userId } = _a, query = __rest(_a, ["userId"]);
6488
- if (params === void 0) { params = {}; }
6489
- return this.http.request(Object.assign({ path: `/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6490
- },
6275
+ initMultisigAppOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-multisig-app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6491
6276
  /**
6492
6277
  * No description
6493
6278
  *
6494
- * @tags Users
6495
- * @name AddAssetToUser
6496
- * @summary Add a new asset to the user's wallet based on the asset configuration
6497
- * @request POST:/users/assets/add
6279
+ * @tags Transactions, Multisig
6280
+ * @name SignOnMultisigTransactionRequest
6281
+ * @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
6282
+ * @request POST:/api/v1/transactions/sign-multisig-request
6498
6283
  * @secure
6499
6284
  */
6500
- addAssetToUser: (data, params = {}) => this.http.request(Object.assign({ path: `/users/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6285
+ signOnMultisigTransactionRequest: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/sign-multisig-request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6501
6286
  /**
6502
6287
  * No description
6503
6288
  *
6504
- * @tags Users
6505
- * @name RemoveAssetFromUser
6506
- * @summary Remove an asset from the user's wallet based on the asset configuration
6507
- * @request DELETE:/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6289
+ * @tags Transactions, Optin
6290
+ * @name AssetOptInTransaction
6291
+ * @summary Transaction for optin to receive a specific asset in the future
6292
+ * @request POST:/api/v1/transactions/asset-optin
6508
6293
  * @secure
6509
6294
  */
6510
- removeAssetFromUser: (_a, params) => {
6511
- var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6512
- if (params === void 0) { params = {}; }
6513
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6514
- },
6295
+ assetOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6515
6296
  /**
6516
6297
  * No description
6517
6298
  *
6518
- * @tags Users
6519
- * @name GetUserByUserId
6520
- * @summary Returns user public data
6521
- * @request GET:/users/{userId}
6299
+ * @tags Transactions, Optin
6300
+ * @name AppOptInTransaction
6301
+ * @summary Transaction for optin to interact with a specific app
6302
+ * @request POST:/api/v1/transactions/app-optin
6522
6303
  * @secure
6523
6304
  */
6524
- getUserByUserId: (_a, params) => {
6525
- var { userId } = _a; __rest(_a, ["userId"]);
6526
- if (params === void 0) { params = {}; }
6527
- return this.http.request(Object.assign({ path: `/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6528
- },
6305
+ appOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6529
6306
  /**
6530
6307
  * No description
6531
6308
  *
6532
- * @tags Users
6533
- * @name GetUserByExternalUserId
6534
- * @request GET:/users/{externalUserId}/externalUserId
6309
+ * @tags Transactions
6310
+ * @name GetEstimateFee
6311
+ * @summary Request fee estimate for a particular transaction
6312
+ * @request GET:/api/v1/transactions/estimate-fee
6535
6313
  * @secure
6536
6314
  */
6537
- getUserByExternalUserId: (_a, params) => {
6538
- var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6539
- if (params === void 0) { params = {}; }
6540
- return this.http.request(Object.assign({ path: `/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6541
- },
6315
+ getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6542
6316
  /**
6543
6317
  * No description
6544
6318
  *
6545
- * @tags Users
6546
- * @name GetParticipantsByUserId
6547
- * @summary Returns multisig participants by user id
6548
- * @request GET:/users/{userId}/multisig-transactions
6319
+ * @tags Transactions, Query
6320
+ * @name FetchTransactionByHashOrReference
6321
+ * @summary Fetch transaction status data using a reference or transaction hash
6322
+ * @request GET:/api/v1/transactions/status
6549
6323
  * @secure
6550
6324
  */
6551
- getParticipantsByUserId: (_a, params) => {
6552
- var { userId } = _a, query = __rest(_a, ["userId"]);
6553
- if (params === void 0) { params = {}; }
6554
- return this.http.request(Object.assign({ path: `/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6555
- },
6556
- };
6557
- this.query = {
6325
+ fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6326
+ /**
6327
+ * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
6328
+ *
6329
+ * @tags Transactions, Raw, Transactions
6330
+ * @name SignAndBroadcastRawTx
6331
+ * @summary Sign and broadcast raw transaction API
6332
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
6333
+ * @secure
6334
+ */
6335
+ signAndBroadcastRawTx: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/sign-broadcast-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6558
6336
  /**
6559
6337
  * No description
6560
6338
  *
6561
- * @tags Query
6562
- * @name FetchBalance
6563
- * @summary Fetch asset balance by specifying the asset address and the asset symbol
6564
- * @request GET:/query/assets/balance
6339
+ * @tags Transactions, Transactions, Multisig, Raw
6340
+ * @name InitMultisigRawTransaction
6341
+ * @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
6342
+ * @request POST:/api/v1/transactions/init-sign-broadcast-multisig-rawtx
6565
6343
  * @secure
6566
6344
  */
6567
- fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6345
+ initMultisigRawTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/init-sign-broadcast-multisig-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6568
6346
  /**
6569
6347
  * No description
6570
6348
  *
6571
- * @tags Query
6572
- * @name FetchOnlyBalance
6573
- * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6574
- * @request GET:/query/address/balance
6349
+ * @tags Transactions, Query
6350
+ * @name GetDetailedRawTransactionDataByReference
6351
+ * @summary Fetch transaction in raw data format from the system persistence
6352
+ * @request GET:/api/v1/transactions/raw-status
6575
6353
  * @secure
6576
6354
  */
6577
- fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6355
+ getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6578
6356
  /**
6579
6357
  * No description
6580
6358
  *
6581
- * @tags Query
6582
- * @name FetchBulkBalance
6583
- * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6584
- * @request POST:/query/assets/bulk-balance
6359
+ * @tags Transactions, Query
6360
+ * @name FetchTransactionParticipants
6361
+ * @summary Fetch transaction's participants
6362
+ * @request GET:/api/v1/transactions/{reference}/participants
6585
6363
  * @secure
6586
6364
  */
6587
- fetchBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/query/assets/bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6365
+ fetchTransactionParticipants: (_a, params) => {
6366
+ var { reference } = _a; __rest(_a, ["reference"]);
6367
+ if (params === void 0) { params = {}; }
6368
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6369
+ },
6588
6370
  /**
6589
6371
  * No description
6590
6372
  *
6591
- * @tags Query
6592
- * @name FetchWalletBulkBalance
6593
- * @summary Fetch assets balances by specifying the wallet ID
6594
- * @request POST:/query/assets/wallet-bulk-balance
6373
+ * @tags Transactions, Transactions, ERC1404
6374
+ * @name DetectTransferRestriction
6375
+ * @summary Request to detect whether there is a transfer restriction on a particular transaction
6376
+ * @request GET:/api/v1/transactions/detect-transfers-restrictions
6595
6377
  * @secure
6596
6378
  */
6597
- fetchWalletBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/query/assets/wallet-bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6379
+ detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6598
6380
  /**
6599
6381
  * No description
6600
6382
  *
6601
- * @tags Query
6602
- * @name FetchTransactions
6603
- * @summary Fetch the current address historical transactions
6604
- * @request GET:/query/transactions
6383
+ * @tags Transactions, Transactions, ERC1404
6384
+ * @name FetchMessageForTransferRestriction
6385
+ * @summary Request restriction message by providing a restriction code
6386
+ * @request GET:/api/v1/transactions/transfer-restriction-message
6387
+ * @secure
6605
6388
  */
6606
- fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/query/transactions`, method: "GET", query: query, format: "json" }, params)),
6389
+ fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6607
6390
  /**
6608
6391
  * No description
6609
6392
  *
6610
- * @tags Query, Assets
6611
- * @name FetchEvmTokenAssetInfo
6612
- * @summary Request token asset info like decimals, name and symbol
6613
- * @request GET:/query/fetch-token-info
6393
+ * @tags Transactions, Optin
6394
+ * @name CheckAssetOptinForAddress
6395
+ * @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
6396
+ * @request GET:/api/v1/transactions/check-asset-optin
6614
6397
  * @secure
6615
6398
  */
6616
- fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6399
+ checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6617
6400
  /**
6618
6401
  * No description
6619
6402
  *
6620
- * @tags Query, Assets
6621
- * @name FetchAssetPairPrice
6622
- * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6623
- * @request GET:/query/get-asset-price
6403
+ * @tags Transactions, Optin
6404
+ * @name CheckAppOptinForAddress
6405
+ * @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
6406
+ * @request GET:/api/v1/transactions/check-app-optin
6407
+ * @secure
6408
+ */
6409
+ checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6410
+ /**
6411
+ * No description
6412
+ *
6413
+ * @tags Transactions, Transactions
6414
+ * @name CreateAllowanceTransaction
6415
+ * @summary Create an allowance for others to spend on your behalf
6416
+ * @request POST:/api/v1/transactions/create-allowance
6624
6417
  * @secure
6625
6418
  */
6626
- fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6419
+ createAllowanceTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/create-allowance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6627
6420
  };
6628
- this.transactions = {
6421
+ this.query = {
6629
6422
  /**
6630
6423
  * No description
6631
6424
  *
6632
- * @tags Transactions
6633
- * @name GetTransactions
6634
- * @summary Get list of transactions
6635
- * @request GET:/transactions
6425
+ * @tags Query
6426
+ * @name FetchBalance
6427
+ * @summary Fetch asset balance by specifying the asset address and the asset symbol
6428
+ * @request GET:/api/v1/query/assets/balance
6636
6429
  * @secure
6637
6430
  */
6638
- getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6431
+ fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6639
6432
  /**
6640
6433
  * No description
6641
6434
  *
6642
- * @tags Transactions
6643
- * @name SendTransaction
6644
- * @summary Request transferring funds to a recipient address
6645
- * @request POST:/transactions/transfer
6435
+ * @tags Query
6436
+ * @name FetchOnlyBalance
6437
+ * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6438
+ * @request GET:/api/v1/query/address/balance
6646
6439
  * @secure
6647
6440
  */
6648
- sendTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6441
+ fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6649
6442
  /**
6650
6443
  * No description
6651
6444
  *
6652
- * @tags Transactions
6653
- * @name SendV2Transaction
6654
- * @summary Request transferring funds to a recipient address
6655
- * @request POST:/transactions/transfer-with-shares
6445
+ * @tags Query
6446
+ * @name FetchBulkBalance
6447
+ * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6448
+ * @request POST:/api/v1/query/assets/bulk-balance
6656
6449
  * @secure
6657
6450
  */
6658
- sendV2Transaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer-with-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6451
+ fetchBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6659
6452
  /**
6660
6453
  * No description
6661
6454
  *
6662
- * @tags Transactions
6663
- * @name InitMultisigTransfer
6664
- * @summary User initiating and signing a multi-sig transfer request
6665
- * @request POST:/transactions/init-multisig-transfer
6455
+ * @tags Query
6456
+ * @name FetchWalletBulkBalance
6457
+ * @summary Fetch assets balances by specifying the wallet ID
6458
+ * @request POST:/api/v1/query/assets/wallet-bulk-balance
6666
6459
  * @secure
6667
6460
  */
6668
- initMultisigTransfer: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-transfer`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6461
+ fetchWalletBulkBalance: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/wallet-bulk-balance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6669
6462
  /**
6670
6463
  * No description
6671
6464
  *
6672
- * @tags Transactions, Multisig
6673
- * @name InitMultisigAssetOptin
6674
- * @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
6675
- * @request POST:/transactions/init-multisig-asset-optin
6465
+ * @tags Query
6466
+ * @name FetchTransactions
6467
+ * @summary Fetch the current address historical transactions
6468
+ * @request GET:/api/v1/query/transactions
6676
6469
  * @secure
6677
6470
  */
6678
- initMultisigAssetOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6471
+ fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6679
6472
  /**
6680
6473
  * No description
6681
6474
  *
6682
- * @tags Transactions, Multisig
6683
- * @name InitMultisigAppOptin
6684
- * @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
6685
- * @request POST:/transactions/init-multisig-app-optin
6475
+ * @tags Query, Assets
6476
+ * @name FetchEvmTokenAssetInfo
6477
+ * @summary Request token asset info like decimals, name and symbol
6478
+ * @request GET:/api/v1/query/fetch-token-info
6686
6479
  * @secure
6687
6480
  */
6688
- initMultisigAppOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6481
+ fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6689
6482
  /**
6690
6483
  * No description
6691
6484
  *
6692
- * @tags Transactions, Multisig
6693
- * @name SignOnMultisigTransactionRequest
6694
- * @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
6695
- * @request POST:/transactions/sign-multisig-request
6485
+ * @tags Query, Assets
6486
+ * @name FetchAssetPairPrice
6487
+ * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6488
+ * @request GET:/api/v1/query/get-asset-price
6696
6489
  * @secure
6697
6490
  */
6698
- signOnMultisigTransactionRequest: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/sign-multisig-request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6491
+ fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6492
+ };
6493
+ this.mpc = {
6699
6494
  /**
6700
6495
  * No description
6701
6496
  *
6702
- * @tags Transactions, Optin
6703
- * @name AssetOptInTransaction
6704
- * @summary Transaction for optin to receive a specific asset in the future
6705
- * @request POST:/transactions/asset-optin
6497
+ * @tags Mpc
6498
+ * @name InitKeyExchange
6499
+ * @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
6500
+ * @request POST:/api/v1/mpc/init-key-exchange
6706
6501
  * @secure
6707
6502
  */
6708
- assetOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6503
+ initKeyExchange: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/init-key-exchange`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6709
6504
  /**
6710
6505
  * No description
6711
6506
  *
6712
- * @tags Transactions, Optin
6713
- * @name AppOptInTransaction
6714
- * @summary Transaction for optin to interact with a specific app
6715
- * @request POST:/transactions/app-optin
6507
+ * @tags Mpc
6508
+ * @name RequestSeedphraseSplit
6509
+ * @summary Request seed phrase split and return shares that can be used later for recovery
6510
+ * @request POST:/api/v1/mpc/request-seed-split
6716
6511
  * @secure
6717
6512
  */
6718
- appOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6513
+ requestSeedphraseSplit: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/request-seed-split`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6719
6514
  /**
6720
6515
  * No description
6721
6516
  *
6722
- * @tags Transactions
6723
- * @name GetEstimateFee
6724
- * @summary Request fee estimate for a particular transaction
6725
- * @request GET:/transactions/estimate-fee
6517
+ * @tags Mpc
6518
+ * @name ReconstructSeedPhrase
6519
+ * @summary Pass encrypted shares and return reconstructed encrypted seed phrase
6520
+ * @request POST:/api/v1/mpc/reconstruct-seed-phrase
6726
6521
  * @secure
6727
6522
  */
6728
- getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6523
+ reconstructSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/mpc/reconstruct-seed-phrase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6524
+ };
6525
+ this.users = {
6729
6526
  /**
6730
- * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
6527
+ * No description
6731
6528
  *
6732
- * @tags Transactions, Raw, Transactions
6733
- * @name SignAndBroadcastRawTx
6734
- * @summary Sign and broadcast raw transaction API
6735
- * @request POST:/transactions/sign-broadcast-rawtx
6529
+ * @tags Users
6530
+ * @name GetAllUsers
6531
+ * @summary Get all users by the admin
6532
+ * @request GET:/api/v1/users
6736
6533
  * @secure
6737
6534
  */
6738
- signAndBroadcastRawTx: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/sign-broadcast-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6535
+ getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6739
6536
  /**
6740
6537
  * No description
6741
6538
  *
6742
- * @tags Transactions, Query
6743
- * @name FetchTransactionByHashOrReference
6744
- * @summary Fetch transaction status data using a reference or transaction hash
6745
- * @request GET:/transactions/status
6539
+ * @tags Users
6540
+ * @name UpdateProfile
6541
+ * @summary Update user profile info
6542
+ * @request PUT:/api/v1/users/profile
6746
6543
  * @secure
6747
6544
  */
6748
- fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6545
+ updateProfile: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6749
6546
  /**
6750
6547
  * No description
6751
6548
  *
6752
- * @tags Transactions, Transactions, Multisig, Raw
6753
- * @name InitMultisigRawTransaction
6754
- * @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
6755
- * @request POST:/transactions/init-sign-broadcast-multisig-rawtx
6549
+ * @tags Users
6550
+ * @name GetCurrentUser
6551
+ * @summary Returns current user data
6552
+ * @request GET:/api/v1/users/profile
6756
6553
  * @secure
6757
6554
  */
6758
- initMultisigRawTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-sign-broadcast-multisig-rawtx`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6555
+ getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6759
6556
  /**
6760
6557
  * No description
6761
6558
  *
6762
- * @tags Transactions, Query
6763
- * @name GetDetailedRawTransactionDataByReference
6764
- * @summary Fetch transaction in raw data format from the system persistence
6765
- * @request GET:/transactions/raw-status
6559
+ * @tags Users
6560
+ * @name GetCurrentUserSalt
6561
+ * @summary Get current user's client salt
6562
+ * @request GET:/api/v1/users/salt
6766
6563
  * @secure
6767
6564
  */
6768
- getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6565
+ getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6769
6566
  /**
6770
6567
  * No description
6771
6568
  *
6772
- * @tags Transactions, Query
6773
- * @name FetchTransactionParticipants
6774
- * @summary Fetch transaction's participants
6775
- * @request GET:/transactions/{reference}/participants
6569
+ * @tags Users
6570
+ * @name GetAllWalletsFromUserId
6571
+ * @summary Returns user wallets by specifying user id
6572
+ * @request GET:/api/v1/users/{userId}/wallets
6776
6573
  * @secure
6777
6574
  */
6778
- fetchTransactionParticipants: (_a, params) => {
6779
- var { reference } = _a; __rest(_a, ["reference"]);
6575
+ getAllWalletsFromUserId: (_a, params) => {
6576
+ var { userId } = _a; __rest(_a, ["userId"]);
6780
6577
  if (params === void 0) { params = {}; }
6781
- return this.http.request(Object.assign({ path: `/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6578
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6782
6579
  },
6783
6580
  /**
6784
6581
  * No description
6785
6582
  *
6786
- * @tags Transactions, Transactions, ERC1404
6787
- * @name DetectTransferRestriction
6788
- * @summary Request to detect whether there is a transfer restriction on a particular transaction
6789
- * @request GET:/transactions/detect-transfers-restrictions
6583
+ * @tags Users
6584
+ * @name GetCurrentUserMerchantAssets
6585
+ * @summary Returns user's merchant assets
6586
+ * @request GET:/api/v1/users/merchants/assets
6790
6587
  * @secure
6791
6588
  */
6792
- detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6589
+ getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6793
6590
  /**
6794
6591
  * No description
6795
6592
  *
6796
- * @tags Transactions, Transactions, ERC1404
6797
- * @name FetchMessageForTransferRestriction
6798
- * @summary Request restriction message by providing a restriction code
6799
- * @request GET:/transactions/transfer-restriction-message
6593
+ * @tags Users
6594
+ * @name GetCurrentUserMerchantAssetsUsersMerchantAssets
6595
+ * @summary Returns user's merchant assets
6596
+ * @request GET:/api/v1/users/merchant/assets
6800
6597
  * @secure
6801
6598
  */
6802
- fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6599
+ getCurrentUserMerchantAssetsUsersMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6803
6600
  /**
6804
6601
  * No description
6805
6602
  *
6806
- * @tags Transactions, Optin
6807
- * @name CheckAssetOptinForAddress
6808
- * @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
6809
- * @request GET:/transactions/check-asset-optin
6603
+ * @tags Users
6604
+ * @name GetAssetsByUserId
6605
+ * @summary Returns user assets by specifying user id
6606
+ * @request GET:/api/v1/users/{userId}/assets
6810
6607
  * @secure
6811
6608
  */
6812
- checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6609
+ getAssetsByUserId: (_a, params) => {
6610
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6611
+ if (params === void 0) { params = {}; }
6612
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6613
+ },
6813
6614
  /**
6814
6615
  * No description
6815
6616
  *
6816
- * @tags Transactions, Optin
6817
- * @name CheckAppOptinForAddress
6818
- * @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
6819
- * @request GET:/transactions/check-app-optin
6617
+ * @tags Users
6618
+ * @name AddAssetToUser
6619
+ * @summary Add a new asset to the user's wallet based on the asset configuration
6620
+ * @request POST:/api/v1/users/assets/add
6820
6621
  * @secure
6821
6622
  */
6822
- checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6623
+ addAssetToUser: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6823
6624
  /**
6824
6625
  * No description
6825
6626
  *
6826
- * @tags Transactions, Allowance, Transaction
6827
- * @name CreateAllowanceTransaction
6828
- * @summary Create an allowance for others to spend on your behalf
6829
- * @request POST:/transactions/create-allowance
6627
+ * @tags Users
6628
+ * @name RemoveAssetFromUser
6629
+ * @summary Remove an asset from the user's wallet based on the asset configuration
6630
+ * @request DELETE:/api/v1/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6830
6631
  * @secure
6831
6632
  */
6832
- createAllowanceTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/create-allowance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6833
- };
6834
- this.mpc = {
6633
+ removeAssetFromUser: (_a, params) => {
6634
+ var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6635
+ if (params === void 0) { params = {}; }
6636
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6637
+ },
6835
6638
  /**
6836
6639
  * No description
6837
6640
  *
6838
- * @tags Mpc
6839
- * @name InitKeyExchange
6840
- * @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
6841
- * @request POST:/mpc/init-key-exchange
6641
+ * @tags Users
6642
+ * @name GetUserByUserId
6643
+ * @summary Returns user public data
6644
+ * @request GET:/api/v1/users/{userId}
6645
+ * @secure
6842
6646
  */
6843
- initKeyExchange: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/init-key-exchange`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6647
+ getUserByUserId: (_a, params) => {
6648
+ var { userId } = _a; __rest(_a, ["userId"]);
6649
+ if (params === void 0) { params = {}; }
6650
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6651
+ },
6844
6652
  /**
6845
6653
  * No description
6846
6654
  *
6847
- * @tags Mpc
6848
- * @name RequestSeedphraseSplit
6849
- * @summary Request seed phrase split and return shares that can be used later for recovery
6850
- * @request POST:/mpc/request-seed-split
6655
+ * @tags Users
6656
+ * @name GetUserByExternalUserId
6657
+ * @summary Returns user public data by their external user ID
6658
+ * @request GET:/api/v1/users/{externalUserId}/externalUserId
6659
+ * @secure
6851
6660
  */
6852
- requestSeedphraseSplit: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/request-seed-split`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6661
+ getUserByExternalUserId: (_a, params) => {
6662
+ var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6663
+ if (params === void 0) { params = {}; }
6664
+ return this.http.request(Object.assign({ path: `/api/v1/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6665
+ },
6853
6666
  /**
6854
6667
  * No description
6855
6668
  *
6856
- * @tags Mpc
6857
- * @name ReconstructSeedPhrase
6858
- * @summary Pass encrypted shares and return reconstructed encrypted seed phrase
6859
- * @request POST:/mpc/reconstruct-seed-phrase
6669
+ * @tags Users
6670
+ * @name GetParticipantsByUserId
6671
+ * @summary Returns multisig participants by user id
6672
+ * @request GET:/api/v1/users/{userId}/multisig-transactions
6673
+ * @secure
6860
6674
  */
6861
- reconstructSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/reconstruct-seed-phrase`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6675
+ getParticipantsByUserId: (_a, params) => {
6676
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6677
+ if (params === void 0) { params = {}; }
6678
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6679
+ },
6862
6680
  };
6863
6681
  this.adminTransactions = {
6864
6682
  /**
@@ -6867,111 +6685,113 @@ class Api {
6867
6685
  * @tags Admin-Transactions
6868
6686
  * @name CreateReleaseSchedule
6869
6687
  * @summary Request the creation of a release schedule
6870
- * @request POST:/transactions/admin/release-schedule
6688
+ * @request POST:/api/v1/transactions/admin/release-schedule
6871
6689
  * @secure
6872
6690
  */
6873
- createReleaseSchedule: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6691
+ createReleaseSchedule: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6874
6692
  /**
6875
6693
  * No description
6876
6694
  *
6877
6695
  * @tags Admin-Transactions
6878
6696
  * @name ViewReleaseSchedule
6879
6697
  * @summary View a release schedule
6880
- * @request GET:/transactions/admin/release-schedule
6698
+ * @request GET:/api/v1/transactions/admin/release-schedule
6881
6699
  * @secure
6882
6700
  */
6883
- viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6701
+ viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6884
6702
  /**
6885
6703
  * No description
6886
6704
  *
6887
6705
  * @tags Admin-Transactions
6888
6706
  * @name Mint
6889
6707
  * @summary Request the minting of an asset to addresses either via mint release schedule or directly
6890
- * @request POST:/transactions/admin/mint
6708
+ * @request POST:/api/v1/transactions/admin/mint
6891
6709
  * @secure
6892
6710
  */
6893
- mint: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6711
+ mint: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6894
6712
  /**
6895
6713
  * No description
6896
6714
  *
6897
6715
  * @tags Admin-Transactions
6898
6716
  * @name Burn
6899
6717
  * @summary Request the burning of an asset to address(es) directly
6900
- * @request POST:/transactions/admin/burn
6718
+ * @request POST:/api/v1/transactions/admin/burn
6901
6719
  * @secure
6902
6720
  */
6903
- burn: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6721
+ burn: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6904
6722
  /**
6905
6723
  * No description
6906
6724
  *
6907
6725
  * @tags Admin-Transactions
6908
6726
  * @name ExecutePurchase
6909
6727
  * @summary Request purchase on the purchase contract
6910
- * @request POST:/transactions/admin/execute-purchase
6728
+ * @request POST:/api/v1/transactions/admin/execute-purchase
6911
6729
  * @secure
6912
6730
  */
6913
- executePurchase: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/execute-purchase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6731
+ executePurchase: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/execute-purchase`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6914
6732
  /**
6915
6733
  * No description
6916
6734
  *
6917
6735
  * @tags Admin-Transactions
6918
6736
  * @name ExecutePurchaseWithInterest
6919
6737
  * @summary Request purchase with interest on the purchase contract
6920
- * @request POST:/transactions/admin/execute-purchase-with-interest
6738
+ * @request POST:/api/v1/transactions/admin/execute-purchase-with-interest
6921
6739
  * @secure
6922
6740
  */
6923
- executePurchaseWithInterest: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/execute-purchase-with-interest`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6741
+ executePurchaseWithInterest: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/execute-purchase-with-interest`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6924
6742
  /**
6925
6743
  * No description
6926
6744
  *
6927
6745
  * @tags Admin-Transactions
6928
6746
  * @name SetIdentity
6929
6747
  * @summary Set identity via the identity registry contract
6930
- * @request POST:/transactions/admin/set-identity
6748
+ * @request POST:/api/v1/transactions/admin/set-identity
6931
6749
  * @secure
6932
6750
  */
6933
- setIdentity: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/set-identity`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6751
+ setIdentity: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/set-identity`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6934
6752
  /**
6935
6753
  * No description
6936
6754
  *
6937
6755
  * @tags Admin-Transactions
6938
6756
  * @name ForceClaim
6939
6757
  * @summary Force claim interest via the interest payment contract
6940
- * @request POST:/transactions/admin/force-claim
6758
+ * @request POST:/api/v1/transactions/admin/force-claim
6941
6759
  * @secure
6942
6760
  */
6943
- forceClaim: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/force-claim`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6761
+ forceClaim: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/force-claim`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6944
6762
  /**
6945
6763
  * No description
6946
6764
  *
6947
6765
  * @tags Admin-Transactions
6948
6766
  * @name ForceClaimPrincipal
6949
6767
  * @summary Force claim principal via the interest payment contract
6950
- * @request POST:/transactions/admin/force-claim-principal
6768
+ * @request POST:/api/v1/transactions/admin/force-claim-principal
6951
6769
  * @secure
6952
6770
  */
6953
- forceClaimPrincipal: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/force-claim-principal`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6771
+ forceClaimPrincipal: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/force-claim-principal`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6954
6772
  /**
6955
6773
  * No description
6956
6774
  *
6957
6775
  * @tags Admin-Transactions
6958
6776
  * @name GetCallbackPublicKey
6959
- * @request GET:/transactions/admin/callback_pk
6777
+ * @summary Get the public key for callback
6778
+ * @request GET:/api/v1/transactions/admin/callback_pk
6779
+ * @secure
6960
6780
  */
6961
- getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback_pk`, method: "GET" }, params)),
6781
+ getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback_pk`, method: "GET", secure: true }, params)),
6962
6782
  /**
6963
6783
  * No description
6964
6784
  *
6965
6785
  * @tags Admin-Transactions
6966
6786
  * @name ViewAdminTransaction
6967
6787
  * @summary View an admin transaction
6968
- * @request GET:/transactions/admin/{referenceId}
6788
+ * @request GET:/api/v1/transactions/admin/{referenceId}
6969
6789
  * @secure
6970
6790
  */
6971
6791
  viewAdminTransaction: (_a, params) => {
6972
6792
  var { referenceId } = _a; __rest(_a, ["referenceId"]);
6973
6793
  if (params === void 0) { params = {}; }
6974
- return this.http.request(Object.assign({ path: `/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
6794
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
6975
6795
  },
6976
6796
  /**
6977
6797
  * No description
@@ -6979,9 +6799,30 @@ class Api {
6979
6799
  * @tags Admin-Transactions
6980
6800
  * @name UpsideCallback
6981
6801
  * @summary Upside callback for release schedule
6982
- * @request POST:/transactions/admin/callback
6802
+ * @request POST:/api/v1/transactions/admin/callback
6803
+ * @secure
6804
+ */
6805
+ upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6806
+ };
6807
+ this.v1 = {
6808
+ /**
6809
+ * No description
6810
+ *
6811
+ * @name GetDashboardData
6812
+ * @summary Create new merchant. This endpoint is only available for super admin and republic admin
6813
+ * @request GET:/api/v1/dashboard
6814
+ * @secure
6815
+ */
6816
+ getDashboardData: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/dashboard`, method: "GET", secure: true }, params)),
6817
+ /**
6818
+ * No description
6819
+ *
6820
+ * @name GetActivitiees
6821
+ * @summary Get all activities. This endpoint is only available for super admin and republic admin
6822
+ * @request GET:/api/v1/users-activities
6823
+ * @secure
6983
6824
  */
6984
- upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6825
+ getActivitiees: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users-activities`, method: "GET", query: query, secure: true }, params)),
6985
6826
  };
6986
6827
  this.http = http;
6987
6828
  }
@@ -7019,8 +6860,12 @@ class Base {
7019
6860
  this.lockManager = new LockManagerService();
7020
6861
  this._initializeClientAuthToken(sanitizedConfig.clientAuthToken);
7021
6862
  this.request = this.request.bind(this);
6863
+ // The generated API client includes /api/v1 in each path, so strip it from
6864
+ // the baseUrl to avoid doubling (e.g. /api/v1/api/v1/wallets/...).
6865
+ // The custom this.request() method still uses the original this.baseUrl
6866
+ // whose route paths do not carry the /api/v1 prefix.
7022
6867
  const httpClient = new HttpClient({
7023
- baseUrl: this.baseUrl,
6868
+ baseUrl: this.baseUrl.replace(/\/api\/v1\/?$/, ''),
7024
6869
  baseApiParams: {
7025
6870
  secure: true, // Enable security worker for all requests by default
7026
6871
  },
@@ -10662,13 +10507,17 @@ class WalletDataService extends Base {
10662
10507
  *
10663
10508
  * @public
10664
10509
  * Fetches the balances for a group of tokens in bulk.
10665
- * Takes an array of addresses and tokens and return their balances.
10666
- * @param { string } address Wallet address
10667
- * @param { string } symbol Token symbol
10668
- * @param { BlockchainName } chainName the chain name enum. i.e. 'ETHEREUM', 'BITCOIN'
10510
+ * Takes an array of addresses and tokens and return their balances.
10511
+ * @param { string } walletId Wallet ID
10512
+ * @param { TokenBalanceRequest[] } tokensAndAddressesList An array of token balance requests.
10513
+ * - address: Wallet address
10514
+ * - symbol: Token symbol
10515
+ * - chainName: Blockchain name (optional)
10516
+ * - tokenStandard: Token standard (optional)
10517
+ * Note: Either chainName or tokenStandard must be provided.
10669
10518
  * @returns { FetchBalanceData } Returns an array of the requested tokens balances.
10670
10519
  */
10671
- async getMultiTokenBalances(tokensAndAddressesList) {
10520
+ async getMultiTokenBalances({ walletId, tokensAndAddressesList }) {
10672
10521
  try {
10673
10522
  if (!tokensAndAddressesList.length) {
10674
10523
  throw new WallabyError({
@@ -10678,12 +10527,12 @@ class WalletDataService extends Base {
10678
10527
  });
10679
10528
  }
10680
10529
  const response = await this.request(WalletRoutes.getMultiTokenBalances, {
10681
- payload: { assets: tokensAndAddressesList },
10530
+ payload: { assets: tokensAndAddressesList, walletId },
10682
10531
  });
10683
10532
  return response;
10684
10533
  }
10685
10534
  catch (error) {
10686
- logger.error('SDK::WalletDataService::getTokenBalance::error', error);
10535
+ logger.error('SDK::WalletDataService::getMultiTokenBalances::error', error);
10687
10536
  throw error;
10688
10537
  }
10689
10538
  }
@@ -11822,20 +11671,36 @@ class Transactions extends Base {
11822
11671
  let transferResponse;
11823
11672
  if (readyForTransportSeedPhrase) {
11824
11673
  transferResponse = await this.request(TransactionsRoutes.transfer, {
11825
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedSeed: readyForTransportSeedPhrase, originAddress,
11674
+ payload: {
11675
+ message: signatureMessage.message,
11676
+ signature: signatureMessage.signature,
11677
+ clientAuthPubKey: deviceAuthPublicKey,
11678
+ encryptedSeed: readyForTransportSeedPhrase,
11679
+ originAddress,
11826
11680
  recipientAddress,
11827
11681
  assetId,
11828
- amount, reference: reference || v4(), memo,
11829
- transactionType }),
11682
+ amount,
11683
+ reference: reference || v4(),
11684
+ memo,
11685
+ transactionType,
11686
+ },
11830
11687
  });
11831
11688
  }
11832
11689
  else if (hasShares) {
11833
11690
  transferResponse = await this.request(TransactionsRoutes.transferWithShares, {
11834
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedShares: sharesEncryptedWithWallabyPubKey, originAddress,
11691
+ payload: {
11692
+ message: signatureMessage.message,
11693
+ signature: signatureMessage.signature,
11694
+ clientAuthPubKey: deviceAuthPublicKey,
11695
+ encryptedShares: sharesEncryptedWithWallabyPubKey,
11696
+ originAddress,
11835
11697
  recipientAddress,
11836
11698
  assetId,
11837
- amount, reference: reference || v4(), memo,
11838
- transactionType }),
11699
+ amount,
11700
+ reference: reference || v4(),
11701
+ memo,
11702
+ transactionType,
11703
+ },
11839
11704
  });
11840
11705
  }
11841
11706
  else {
@@ -11908,8 +11773,8 @@ class Transactions extends Base {
11908
11773
  throw new Error('No valid seed option found on this device.');
11909
11774
  }
11910
11775
  const payload = Object.assign({ message,
11911
- walletId,
11912
- signature, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
11776
+ signature,
11777
+ walletId, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
11913
11778
  spenderAddress,
11914
11779
  chainName,
11915
11780
  assetSymbol,
@@ -11984,11 +11849,18 @@ class Transactions extends Base {
11984
11849
  throw new Error('No valid seed option found on this device.');
11985
11850
  }
11986
11851
  const confirmPendingTransactionResponse = await this.request(TransactionsRoutes.confirmPendingTransaction, {
11987
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedShares: sharesEncryptedWithWallabyPubKey, encryptedSeed: readyForTransportSeedPhrase, id,
11852
+ payload: {
11853
+ message: signatureMessage.message,
11854
+ signature: signatureMessage.signature,
11855
+ clientAuthPubKey: deviceAuthPublicKey,
11856
+ encryptedShares: sharesEncryptedWithWallabyPubKey,
11857
+ encryptedSeed: readyForTransportSeedPhrase,
11858
+ id,
11988
11859
  choice,
11989
11860
  symbol,
11990
11861
  chainName,
11991
- walletId }),
11862
+ walletId,
11863
+ },
11992
11864
  });
11993
11865
  return confirmPendingTransactionResponse;
11994
11866
  }