wallaby-cash 2.3.0 → 2.3.3

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.cjs.js CHANGED
@@ -549,227 +549,19 @@ const global$1 = (typeof global !== "undefined" ? global :
549
549
  typeof self !== "undefined" ? self :
550
550
  typeof window !== "undefined" ? window : {});
551
551
 
552
- // shim for using process in browser
553
- // based off https://github.com/defunctzombie/node-process/blob/master/browser.js
554
-
555
- function defaultSetTimout() {
556
- throw new Error('setTimeout has not been defined');
557
- }
558
- function defaultClearTimeout () {
559
- throw new Error('clearTimeout has not been defined');
560
- }
561
- var cachedSetTimeout = defaultSetTimout;
562
- var cachedClearTimeout = defaultClearTimeout;
563
- if (typeof global$1.setTimeout === 'function') {
564
- cachedSetTimeout = setTimeout;
565
- }
566
- if (typeof global$1.clearTimeout === 'function') {
567
- cachedClearTimeout = clearTimeout;
568
- }
569
-
570
- function runTimeout(fun) {
571
- if (cachedSetTimeout === setTimeout) {
572
- //normal enviroments in sane situations
573
- return setTimeout(fun, 0);
574
- }
575
- // if setTimeout wasn't available but was latter defined
576
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
577
- cachedSetTimeout = setTimeout;
578
- return setTimeout(fun, 0);
579
- }
580
- try {
581
- // when when somebody has screwed with setTimeout but no I.E. maddness
582
- return cachedSetTimeout(fun, 0);
583
- } catch(e){
584
- try {
585
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
586
- return cachedSetTimeout.call(null, fun, 0);
587
- } catch(e){
588
- // 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
589
- return cachedSetTimeout.call(this, fun, 0);
590
- }
591
- }
592
-
593
-
594
- }
595
- function runClearTimeout(marker) {
596
- if (cachedClearTimeout === clearTimeout) {
597
- //normal enviroments in sane situations
598
- return clearTimeout(marker);
599
- }
600
- // if clearTimeout wasn't available but was latter defined
601
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
602
- cachedClearTimeout = clearTimeout;
603
- return clearTimeout(marker);
604
- }
605
- try {
606
- // when when somebody has screwed with setTimeout but no I.E. maddness
607
- return cachedClearTimeout(marker);
608
- } catch (e){
609
- try {
610
- // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
611
- return cachedClearTimeout.call(null, marker);
612
- } catch (e){
613
- // 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.
614
- // Some versions of I.E. have different rules for clearTimeout vs setTimeout
615
- return cachedClearTimeout.call(this, marker);
616
- }
617
- }
618
-
619
-
620
-
621
- }
622
- var queue = [];
623
- var draining = false;
624
- var currentQueue;
625
- var queueIndex = -1;
626
-
627
- function cleanUpNextTick() {
628
- if (!draining || !currentQueue) {
629
- return;
630
- }
631
- draining = false;
632
- if (currentQueue.length) {
633
- queue = currentQueue.concat(queue);
634
- } else {
635
- queueIndex = -1;
636
- }
637
- if (queue.length) {
638
- drainQueue();
639
- }
640
- }
641
-
642
- function drainQueue() {
643
- if (draining) {
644
- return;
645
- }
646
- var timeout = runTimeout(cleanUpNextTick);
647
- draining = true;
648
-
649
- var len = queue.length;
650
- while(len) {
651
- currentQueue = queue;
652
- queue = [];
653
- while (++queueIndex < len) {
654
- if (currentQueue) {
655
- currentQueue[queueIndex].run();
656
- }
657
- }
658
- queueIndex = -1;
659
- len = queue.length;
660
- }
661
- currentQueue = null;
662
- draining = false;
663
- runClearTimeout(timeout);
664
- }
665
- function nextTick(fun) {
666
- var args = new Array(arguments.length - 1);
667
- if (arguments.length > 1) {
668
- for (var i = 1; i < arguments.length; i++) {
669
- args[i - 1] = arguments[i];
670
- }
671
- }
672
- queue.push(new Item(fun, args));
673
- if (queue.length === 1 && !draining) {
674
- runTimeout(drainQueue);
675
- }
676
- }
677
- // v8 likes predictible objects
678
- function Item(fun, array) {
679
- this.fun = fun;
680
- this.array = array;
681
- }
682
- Item.prototype.run = function () {
683
- this.fun.apply(null, this.array);
684
- };
685
- var title = 'browser';
686
- var platform = 'browser';
687
- var browser = true;
688
552
  var env = {};
689
- var argv = [];
690
- var version = ''; // empty string to avoid regexp issues
691
- var versions = {};
692
- var release = {};
693
- var config = {};
694
-
695
- function noop() {}
696
-
697
- var on = noop;
698
- var addListener = noop;
699
- var once = noop;
700
- var off = noop;
701
- var removeListener = noop;
702
- var removeAllListeners = noop;
703
- var emit = noop;
704
-
705
- function binding(name) {
706
- throw new Error('process.binding is not supported');
707
- }
708
-
709
- function cwd () { return '/' }
710
- function chdir (dir) {
711
- throw new Error('process.chdir is not supported');
712
- }function umask() { return 0; }
713
553
 
714
554
  // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js
715
555
  var performance = global$1.performance || {};
716
- var performanceNow =
717
- performance.now ||
556
+ performance.now ||
718
557
  performance.mozNow ||
719
558
  performance.msNow ||
720
559
  performance.oNow ||
721
560
  performance.webkitNow ||
722
561
  function(){ return (new Date()).getTime() };
723
562
 
724
- // generate timestamp or delta
725
- // see http://nodejs.org/api/process.html#process_process_hrtime
726
- function hrtime(previousTimestamp){
727
- var clocktime = performanceNow.call(performance)*1e-3;
728
- var seconds = Math.floor(clocktime);
729
- var nanoseconds = Math.floor((clocktime%1)*1e9);
730
- if (previousTimestamp) {
731
- seconds = seconds - previousTimestamp[0];
732
- nanoseconds = nanoseconds - previousTimestamp[1];
733
- if (nanoseconds<0) {
734
- seconds--;
735
- nanoseconds += 1e9;
736
- }
737
- }
738
- return [seconds,nanoseconds]
739
- }
740
-
741
- var startTime = new Date();
742
- function uptime() {
743
- var currentTime = new Date();
744
- var dif = currentTime - startTime;
745
- return dif / 1000;
746
- }
747
-
748
563
  var browser$1 = {
749
- nextTick: nextTick,
750
- title: title,
751
- browser: browser,
752
- env: env,
753
- argv: argv,
754
- version: version,
755
- versions: versions,
756
- on: on,
757
- addListener: addListener,
758
- once: once,
759
- off: off,
760
- removeListener: removeListener,
761
- removeAllListeners: removeAllListeners,
762
- emit: emit,
763
- binding: binding,
764
- cwd: cwd,
765
- chdir: chdir,
766
- umask: umask,
767
- hrtime: hrtime,
768
- platform: platform,
769
- release: release,
770
- config: config,
771
- uptime: uptime
772
- };
564
+ env: env};
773
565
 
774
566
  var _a;
775
567
  /**
@@ -805,7 +597,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
805
597
  { type: 'public-key', alg: exports.PublicKeyCredentialAlgorithm.ES256 },
806
598
  ];
807
599
  const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
808
- const currentPackageVersion = "2.3.0" ;
600
+ const currentPackageVersion = "2.3.3" ;
809
601
 
810
602
  /**
811
603
  * Storage keys adapter for Storage interface across different platforms.
@@ -932,7 +724,7 @@ function hexToBytes$2(hex) {
932
724
  /**
933
725
  * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
934
726
  */
935
- function utf8ToBytes$2(str) {
727
+ function utf8ToBytes$1(str) {
936
728
  if (typeof str !== 'string')
937
729
  throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
938
730
  return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
@@ -944,7 +736,7 @@ function utf8ToBytes$2(str) {
944
736
  */
945
737
  function toBytes(data) {
946
738
  if (typeof data === 'string')
947
- data = utf8ToBytes$2(data);
739
+ data = utf8ToBytes$1(data);
948
740
  bytes$1(data);
949
741
  return data;
950
742
  }
@@ -1097,7 +889,7 @@ const concatUint8Arrays = (uint8arrays) => {
1097
889
  * Converts a UTF-8 string to a Uint8Array without using TextEncoder, which is not available in mobile
1098
890
  * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1099
891
  */
1100
- const utf8ToBytes$1 = (str) => {
892
+ const utf8ToBytes = (str) => {
1101
893
  if (typeof str !== 'string')
1102
894
  throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
1103
895
  const bytes = [];
@@ -1524,10 +1316,6 @@ function numberToBytesBE(n, len) {
1524
1316
  function numberToBytesLE(n, len) {
1525
1317
  return numberToBytesBE(n, len).reverse();
1526
1318
  }
1527
- // Unpadded, rarely used
1528
- function numberToVarBytesBE(n) {
1529
- return hexToBytes(numberToHexUnpadded(n));
1530
- }
1531
1319
  /**
1532
1320
  * Takes hex string or Uint8Array, converts to Uint8Array.
1533
1321
  * Validates output length.
@@ -1578,23 +1366,6 @@ function concatBytes(...arrays) {
1578
1366
  }
1579
1367
  return res;
1580
1368
  }
1581
- // Compares 2 u8a-s in kinda constant time
1582
- function equalBytes(a, b) {
1583
- if (a.length !== b.length)
1584
- return false;
1585
- let diff = 0;
1586
- for (let i = 0; i < a.length; i++)
1587
- diff |= a[i] ^ b[i];
1588
- return diff === 0;
1589
- }
1590
- /**
1591
- * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
1592
- */
1593
- function utf8ToBytes(str) {
1594
- if (typeof str !== 'string')
1595
- throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
1596
- return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
1597
- }
1598
1369
  // Is positive bigint
1599
1370
  const isPosBig = (n) => typeof n === 'bigint' && _0n$4 <= n;
1600
1371
  function inRange(n, min, max) {
@@ -1625,20 +1396,6 @@ function bitLen(n) {
1625
1396
  ;
1626
1397
  return len;
1627
1398
  }
1628
- /**
1629
- * Gets single bit at position.
1630
- * NOTE: first bit position is 0 (same as arrays)
1631
- * Same as `!!+Array.from(n.toString(2)).reverse()[pos]`
1632
- */
1633
- function bitGet(n, pos) {
1634
- return (n >> BigInt(pos)) & _1n$5;
1635
- }
1636
- /**
1637
- * Sets single bit at position.
1638
- */
1639
- function bitSet(n, pos, value) {
1640
- return n | ((value ? _1n$5 : _0n$4) << BigInt(pos));
1641
- }
1642
1399
  /**
1643
1400
  * Calculate mask for N bits. Not using ** operator with bigints because of old engines.
1644
1401
  * Same as BigInt(`0b${Array(i).fill('1').join('')}`)
@@ -1736,20 +1493,6 @@ function validateObject(object, validators, optValidators = {}) {
1736
1493
  checkField(fieldName, type, true);
1737
1494
  return object;
1738
1495
  }
1739
- // validate type tests
1740
- // const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
1741
- // const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
1742
- // // Should fail type-check
1743
- // const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' });
1744
- // const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' });
1745
- // const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
1746
- // const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
1747
- /**
1748
- * throws not implemented error
1749
- */
1750
- const notImplemented = () => {
1751
- throw new Error('not implemented');
1752
- };
1753
1496
  /**
1754
1497
  * Memoizes (caches) computation result.
1755
1498
  * Uses WeakMap: the value is going auto-cleaned by GC after last reference is removed.
@@ -1771,28 +1514,22 @@ __proto__: null,
1771
1514
  aInRange,
1772
1515
  abool,
1773
1516
  abytes,
1774
- bitGet,
1775
1517
  bitLen,
1776
1518
  bitMask,
1777
- bitSet,
1778
1519
  bytesToHex,
1779
1520
  bytesToNumberBE,
1780
1521
  bytesToNumberLE,
1781
1522
  concatBytes,
1782
1523
  createHmacDrbg,
1783
1524
  ensureBytes,
1784
- equalBytes,
1785
1525
  hexToBytes,
1786
1526
  hexToNumber,
1787
1527
  inRange,
1788
1528
  isBytes: isBytes$1,
1789
1529
  memoized,
1790
- notImplemented,
1791
1530
  numberToBytesBE,
1792
1531
  numberToBytesLE,
1793
1532
  numberToHexUnpadded,
1794
- numberToVarBytesBE,
1795
- utf8ToBytes,
1796
1533
  validateObject
1797
1534
  }, Symbol.toStringTag, { value: 'Module' }));
1798
1535
 
@@ -4446,7 +4183,7 @@ const encrypt = (publicKeyTo, msg, options) => {
4446
4183
  const hash = sha512(sharedSecret);
4447
4184
  const encryptionKey = hash.subarray(0, 32);
4448
4185
  const macKey = hash.subarray(32);
4449
- const message = utf8ToBytes$1(msg);
4186
+ const message = utf8ToBytes(msg);
4450
4187
  const data = encrypt$1(message, encryptionKey, iv, 'aes-256-cbc');
4451
4188
  const dataToMac = concatUint8Arrays([iv, ephemPublicKey, data]);
4452
4189
  const mac = hmacSha256Sign(macKey, dataToMac);
@@ -4518,7 +4255,7 @@ const decryptWithPrivateKey = (privateKey, encrypted) => {
4518
4255
  };
4519
4256
 
4520
4257
  const solidityPackedKeccak256 = (value) => {
4521
- const bytes = utf8ToBytes$1(value);
4258
+ const bytes = utf8ToBytes(value);
4522
4259
  const hex = addLeading0x(bytesToHex$1(bytes));
4523
4260
  const hash = keccak256$1(hexToBytes$1(hex));
4524
4261
  return addLeading0x(bytesToHex$1(hash));
@@ -4685,7 +4422,7 @@ class Cipher {
4685
4422
  */
4686
4423
  getMasterKey() {
4687
4424
  return {
4688
- buffer: utf8ToBytes$2(MASTER_ENCRYPTION_KEY),
4425
+ buffer: utf8ToBytes$1(MASTER_ENCRYPTION_KEY),
4689
4426
  key: MASTER_ENCRYPTION_KEY,
4690
4427
  };
4691
4428
  }
@@ -4723,7 +4460,7 @@ class Cipher {
4723
4460
  * Validate that a salt is sufficiently long and not weak.
4724
4461
  */
4725
4462
  validateSalt(salt) {
4726
- if (utf8ToBytes$2(salt).length < 16) {
4463
+ if (utf8ToBytes$1(salt).length < 16) {
4727
4464
  throw new Error('Salt is too short: must be at least 16 bytes');
4728
4465
  }
4729
4466
  const uniqueChars = new Set(salt);
@@ -5027,7 +4764,7 @@ class Cipher {
5027
4764
  // Prevents different Unicode representations of "same" password
5028
4765
  // Also trim whitespace for security consistency
5029
4766
  const normalizedPassword = password.normalize('NFKC').trim();
5030
- const encryptionKey = pbkdf2Sync(utf8ToBytes$2(normalizedPassword), utf8ToBytes$2(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
4767
+ const encryptionKey = pbkdf2Sync(utf8ToBytes$1(normalizedPassword), utf8ToBytes$1(salt), PBKDF2_ITERATIONS, DEFAULT_ENTROPY_BYTES$1, 'sha256');
5031
4768
  const encryptionKeyPair = createIdentity(encryptionKey);
5032
4769
  return encryptionKeyPair;
5033
4770
  }
@@ -5639,7 +5376,7 @@ var ContentType;
5639
5376
  })(ContentType || (ContentType = {}));
5640
5377
  class HttpClient {
5641
5378
  constructor(apiConfig = {}) {
5642
- this.baseUrl = "";
5379
+ this.baseUrl = "https://staging-testnet.wallaby.cash";
5643
5380
  this.securityData = null;
5644
5381
  this.abortControllers = new Map();
5645
5382
  this.customFetch = (...fetchParams) => fetch(...fetchParams);
@@ -5772,31 +5509,15 @@ class HttpClient {
5772
5509
  }
5773
5510
  }
5774
5511
  /**
5775
- * @title Wallaby API Service
5776
- * @version 1.0.0
5512
+ * @title STAGING
5513
+ * @version 1.0
5514
+ * @baseUrl https://staging-testnet.wallaby.cash
5777
5515
  * @contact
5778
5516
  *
5779
- * NCW Wallets Service API Documentation
5517
+ * The STAGING is an API that manages the wallets of the Republic Crypto
5780
5518
  */
5781
5519
  class Api {
5782
5520
  constructor(http) {
5783
- /**
5784
- * No description
5785
- *
5786
- * @name DashboardControllerGetDashboardData
5787
- * @summary Create new merchant. This endpoint is only available for super admin and republic admin
5788
- * @request GET:/dashboard
5789
- * @secure
5790
- */
5791
- this.dashboardControllerGetDashboardData = (params = {}) => this.http.request(Object.assign({ path: `/dashboard`, method: "GET", secure: true }, params));
5792
- /**
5793
- * No description
5794
- *
5795
- * @name GetActivitiees
5796
- * @summary Get all activities. This endpoint is only available for super admin and republic admin
5797
- * @request GET:/users-activities
5798
- */
5799
- this.getActivitiees = (query, params = {}) => this.http.request(Object.assign({ path: `/users-activities`, method: "GET", query: query }, params));
5800
5521
  this.health = {
5801
5522
  /**
5802
5523
  * No description
@@ -5805,8 +5526,9 @@ class Api {
5805
5526
  * @name GetHello
5806
5527
  * @summary Health Check API
5807
5528
  * @request GET:/
5529
+ * @secure
5808
5530
  */
5809
- getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET" }, params)),
5531
+ getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET", secure: true }, params)),
5810
5532
  /**
5811
5533
  * No description
5812
5534
  *
@@ -5814,8 +5536,9 @@ class Api {
5814
5536
  * @name GetHealthCheck
5815
5537
  * @summary Service API status check
5816
5538
  * @request GET:/healthz
5539
+ * @secure
5817
5540
  */
5818
- getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET" }, params)),
5541
+ getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET", secure: true }, params)),
5819
5542
  };
5820
5543
  this.auth = {
5821
5544
  /**
@@ -5824,86 +5547,101 @@ class Api {
5824
5547
  * @tags Auth
5825
5548
  * @name GenerateExternalSignatureMessage
5826
5549
  * @summary The returned message will be used for sign up and sign in signature
5827
- * @request POST:/auth/signature-message/external
5550
+ * @request POST:/api/v1/auth/signature-message/external
5551
+ * @secure
5828
5552
  */
5829
- generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5553
+ 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)),
5830
5554
  /**
5831
5555
  * No description
5832
5556
  *
5833
5557
  * @tags Auth
5834
5558
  * @name GenerateSignatureMessage
5835
5559
  * @summary The returned message will be used for sign up and sign in signature
5836
- * @request POST:/auth/signature-message
5560
+ * @request POST:/api/v1/auth/signature-message
5561
+ * @secure
5837
5562
  */
5838
- generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5563
+ 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)),
5839
5564
  /**
5840
5565
  * No description
5841
5566
  *
5842
5567
  * @tags Auth
5843
5568
  * @name SignUp
5844
5569
  * @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
5845
- * @request POST:/auth/sign-up
5570
+ * @request POST:/api/v1/auth/sign-up
5571
+ * @secure
5846
5572
  */
5847
- signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5573
+ 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)),
5848
5574
  /**
5849
5575
  * No description
5850
5576
  *
5851
5577
  * @tags Auth
5852
5578
  * @name SignUpExternal
5853
5579
  * @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
5854
- * @request POST:/auth/sign-up/external
5580
+ * @request POST:/api/v1/auth/sign-up/external
5581
+ * @secure
5855
5582
  */
5856
- signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5583
+ 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)),
5857
5584
  /**
5858
5585
  * No description
5859
5586
  *
5860
5587
  * @tags Auth
5861
5588
  * @name SignIn
5862
5589
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5863
- * @request POST:/auth/sign-in
5590
+ * @request POST:/api/v1/auth/sign-in
5591
+ * @secure
5864
5592
  */
5865
- signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-in`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5593
+ 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)),
5866
5594
  /**
5867
5595
  * No description
5868
5596
  *
5869
5597
  * @tags Auth
5870
5598
  * @name RefreshAccessToken
5871
5599
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5872
- * @request POST:/auth/refresh-access-token
5600
+ * @request POST:/api/v1/auth/refresh-access-token
5873
5601
  * @deprecated
5874
5602
  * @secure
5875
5603
  */
5876
- refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5604
+ refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5605
+ /**
5606
+ * No description
5607
+ *
5608
+ * @tags Auth
5609
+ * @name Logout
5610
+ * @summary Invalidate the current session by revoking the bearer token
5611
+ * @request POST:/api/v1/auth/logout
5612
+ * @secure
5613
+ */
5614
+ logout: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/logout`, method: "POST", secure: true, format: "json" }, params)),
5877
5615
  /**
5878
5616
  * No description
5879
5617
  *
5880
5618
  * @tags Auth
5881
5619
  * @name ChangeAuthPublicKey
5882
5620
  * @summary Change user authentication public key
5883
- * @request PUT:/auth/client-auth-pubkey
5621
+ * @request PUT:/api/v1/auth/client-auth-pubkey
5884
5622
  * @secure
5885
5623
  */
5886
- 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)),
5624
+ 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)),
5887
5625
  /**
5888
5626
  * No description
5889
5627
  *
5890
5628
  * @tags Auth
5891
5629
  * @name GetWallabyAuthPubKey
5892
5630
  * @summary Get user public key
5893
- * @request POST:/auth/wallaby-auth-pubkey
5631
+ * @request POST:/api/v1/auth/wallaby-auth-pubkey
5894
5632
  * @secure
5895
5633
  */
5896
- 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)),
5634
+ 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)),
5897
5635
  /**
5898
5636
  * No description
5899
5637
  *
5900
5638
  * @tags Auth
5901
5639
  * @name GetPasskeyCredentials
5902
5640
  * @summary Get user passkey credentials
5903
- * @request GET:/auth/passkey-credentials
5641
+ * @request GET:/api/v1/auth/passkey-credentials
5904
5642
  * @secure
5905
5643
  */
5906
- getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5644
+ getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5907
5645
  };
5908
5646
  this.chains = {
5909
5647
  /**
@@ -5912,31 +5650,33 @@ class Api {
5912
5650
  * @tags Chains
5913
5651
  * @name GetAllChains
5914
5652
  * @summary Get all supported chains
5915
- * @request GET:/chains
5653
+ * @request GET:/api/v1/chains
5916
5654
  * @secure
5917
5655
  */
5918
- getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5656
+ getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5919
5657
  /**
5920
5658
  * No description
5921
5659
  *
5922
5660
  * @tags Chains
5923
5661
  * @name CreateChain
5924
5662
  * @summary Create new chain. This endpoint is only available for super admin and republic admin
5925
- * @request POST:/chains
5663
+ * @request POST:/api/v1/chains
5664
+ * @secure
5926
5665
  */
5927
- createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5666
+ createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5928
5667
  /**
5929
5668
  * No description
5930
5669
  *
5931
5670
  * @tags Chains
5932
5671
  * @name UpdateChain
5933
5672
  * @summary Update the chain public data
5934
- * @request PUT:/chains/{chainId}
5673
+ * @request PUT:/api/v1/chains/{chainId}
5674
+ * @secure
5935
5675
  */
5936
5676
  updateChain: (_a, data, params) => {
5937
5677
  var { chainId } = _a; __rest(_a, ["chainId"]);
5938
5678
  if (params === void 0) { params = {}; }
5939
- return this.http.request(Object.assign({ path: `/chains/${chainId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params));
5679
+ return this.http.request(Object.assign({ path: `/api/v1/chains/${chainId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5940
5680
  },
5941
5681
  };
5942
5682
  this.assets = {
@@ -5946,33 +5686,33 @@ class Api {
5946
5686
  * @tags Assets
5947
5687
  * @name GetAssetsConfigurations
5948
5688
  * @summary Get all supported assets configuration that can be imported into a merchant or a user wallet
5949
- * @request GET:/assets/configurations
5689
+ * @request GET:/api/v1/assets/configurations
5950
5690
  * @secure
5951
5691
  */
5952
- getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5692
+ getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5953
5693
  /**
5954
5694
  * No description
5955
5695
  *
5956
5696
  * @tags Assets
5957
5697
  * @name CreateAssetConfig
5958
5698
  * @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
5959
- * @request POST:/assets/configurations
5699
+ * @request POST:/api/v1/assets/configurations
5960
5700
  * @secure
5961
5701
  */
5962
- createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5702
+ 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)),
5963
5703
  /**
5964
5704
  * No description
5965
5705
  *
5966
5706
  * @tags Assets
5967
5707
  * @name UpdateAssetConfig
5968
5708
  * @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
5969
- * @request PUT:/assets/configurations/{assetConfigId}
5709
+ * @request PUT:/api/v1/assets/configurations/{assetConfigId}
5970
5710
  * @secure
5971
5711
  */
5972
5712
  updateAssetConfig: (_a, data, params) => {
5973
5713
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5974
5714
  if (params === void 0) { params = {}; }
5975
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5715
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5976
5716
  },
5977
5717
  /**
5978
5718
  * No description
@@ -5980,13 +5720,13 @@ class Api {
5980
5720
  * @tags Assets
5981
5721
  * @name VerifyAsset
5982
5722
  * @summary Verify asset configuration details.
5983
- * @request POST:/assets/configurations/{assetConfigId}/verify
5723
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/verify
5984
5724
  * @secure
5985
5725
  */
5986
5726
  verifyAsset: (_a, params) => {
5987
5727
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5988
5728
  if (params === void 0) { params = {}; }
5989
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5729
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5990
5730
  },
5991
5731
  /**
5992
5732
  * No description
@@ -5994,13 +5734,13 @@ class Api {
5994
5734
  * @tags Assets
5995
5735
  * @name UnverifyAsset
5996
5736
  * @summary Unverify asset configuration
5997
- * @request DELETE:/assets/configurations/{assetConfigId}/unverify
5737
+ * @request DELETE:/api/v1/assets/configurations/{assetConfigId}/unverify
5998
5738
  * @secure
5999
5739
  */
6000
5740
  unverifyAsset: (_a, params) => {
6001
5741
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
6002
5742
  if (params === void 0) { params = {}; }
6003
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
5743
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
6004
5744
  },
6005
5745
  /**
6006
5746
  * No description
@@ -6008,13 +5748,13 @@ class Api {
6008
5748
  * @tags Assets
6009
5749
  * @name ArchiveAsset
6010
5750
  * @summary Archive an asset configuration
6011
- * @request POST:/assets/configurations/{assetConfigId}/archive
5751
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/archive
6012
5752
  * @secure
6013
5753
  */
6014
5754
  archiveAsset: (_a, params) => {
6015
5755
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
6016
5756
  if (params === void 0) { params = {}; }
6017
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
5757
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
6018
5758
  },
6019
5759
  /**
6020
5760
  * No description
@@ -6022,13 +5762,13 @@ class Api {
6022
5762
  * @tags Assets
6023
5763
  * @name UnarchiveAsset
6024
5764
  * @summary Archive an asset configuration
6025
- * @request POST:/assets/configurations/{assetConfigId}/unarchive
5765
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/unarchive
6026
5766
  * @secure
6027
5767
  */
6028
5768
  unarchiveAsset: (_a, params) => {
6029
5769
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
6030
5770
  if (params === void 0) { params = {}; }
6031
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
5771
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
6032
5772
  },
6033
5773
  };
6034
5774
  this.merchants = {
@@ -6038,32 +5778,33 @@ class Api {
6038
5778
  * @tags Merchants
6039
5779
  * @name GetAllMerchants
6040
5780
  * @summary Get all merchants
6041
- * @request GET:/merchants
5781
+ * @request GET:/api/v1/merchants
5782
+ * @secure
6042
5783
  */
6043
- getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "GET", query: query, format: "json" }, params)),
5784
+ getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "GET", query: query, secure: true, format: "json" }, params)),
6044
5785
  /**
6045
5786
  * No description
6046
5787
  *
6047
5788
  * @tags Merchants
6048
5789
  * @name CreateMerchant
6049
5790
  * @summary Create new merchant. This endpoint is only available for super admin and republic admin
6050
- * @request POST:/merchants
5791
+ * @request POST:/api/v1/merchants
6051
5792
  * @secure
6052
5793
  */
6053
- createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5794
+ createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6054
5795
  /**
6055
5796
  * No description
6056
5797
  *
6057
5798
  * @tags Merchants
6058
5799
  * @name UpdateMerchant
6059
5800
  * @summary Update merchant. This endpoint is only available for super admin and republic admin
6060
- * @request PUT:/merchants/{merchantId}
5801
+ * @request PUT:/api/v1/merchants/{merchantId}
6061
5802
  * @secure
6062
5803
  */
6063
5804
  updateMerchant: (_a, data, params) => {
6064
5805
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6065
5806
  if (params === void 0) { params = {}; }
6066
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5807
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
6067
5808
  },
6068
5809
  /**
6069
5810
  * No description
@@ -6071,12 +5812,13 @@ class Api {
6071
5812
  * @tags Merchants
6072
5813
  * @name GetOneMerchant
6073
5814
  * @summary Get one merchant by id with counts
6074
- * @request GET:/merchants/{merchantId}
5815
+ * @request GET:/api/v1/merchants/{merchantId}
5816
+ * @secure
6075
5817
  */
6076
5818
  getOneMerchant: (_a, params) => {
6077
5819
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6078
5820
  if (params === void 0) { params = {}; }
6079
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "GET", format: "json" }, params));
5821
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "GET", secure: true, format: "json" }, params));
6080
5822
  },
6081
5823
  /**
6082
5824
  * No description
@@ -6084,12 +5826,13 @@ class Api {
6084
5826
  * @tags Merchants
6085
5827
  * @name GetMerchantAssets
6086
5828
  * @summary Get merchant assets by merchant id
6087
- * @request GET:/merchants/{merchantId}/assets
5829
+ * @request GET:/api/v1/merchants/{merchantId}/assets
5830
+ * @secure
6088
5831
  */
6089
5832
  getMerchantAssets: (_a, params) => {
6090
5833
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6091
5834
  if (params === void 0) { params = {}; }
6092
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/assets`, method: "GET", query: query, format: "json" }, params));
5835
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6093
5836
  },
6094
5837
  /**
6095
5838
  * No description
@@ -6097,13 +5840,13 @@ class Api {
6097
5840
  * @tags Merchants
6098
5841
  * @name GetMerchantUsers
6099
5842
  * @summary Get merchant users by merchant id
6100
- * @request GET:/merchants/{merchantId}/users
5843
+ * @request GET:/api/v1/merchants/{merchantId}/users
6101
5844
  * @secure
6102
5845
  */
6103
5846
  getMerchantUsers: (_a, params) => {
6104
5847
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6105
5848
  if (params === void 0) { params = {}; }
6106
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
5849
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
6107
5850
  },
6108
5851
  /**
6109
5852
  * No description
@@ -6111,13 +5854,13 @@ class Api {
6111
5854
  * @tags Merchants
6112
5855
  * @name GetMerchantAdmins
6113
5856
  * @summary Get merchant admins by merchant id
6114
- * @request GET:/merchants/{merchantId}/admins
5857
+ * @request GET:/api/v1/merchants/{merchantId}/admins
6115
5858
  * @secure
6116
5859
  */
6117
5860
  getMerchantAdmins: (_a, params) => {
6118
5861
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6119
5862
  if (params === void 0) { params = {}; }
6120
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
5863
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
6121
5864
  },
6122
5865
  /**
6123
5866
  * No description
@@ -6125,23 +5868,23 @@ class Api {
6125
5868
  * @tags Merchants
6126
5869
  * @name InviteMerchantAdmins
6127
5870
  * @summary Invite merchant admins by merchant id
6128
- * @request POST:/merchants/admins/invite
5871
+ * @request POST:/api/v1/merchants/admins/invite
6129
5872
  * @secure
6130
5873
  */
6131
- inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5874
+ 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)),
6132
5875
  /**
6133
5876
  * No description
6134
5877
  *
6135
5878
  * @tags Merchants
6136
5879
  * @name RevokeMerchantAdmins
6137
5880
  * @summary Invite merchant admins by merchant id
6138
- * @request DELETE:/merchants/{merchantId}/admins/{userId}
5881
+ * @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
6139
5882
  * @secure
6140
5883
  */
6141
5884
  revokeMerchantAdmins: (_a, params) => {
6142
5885
  var { merchantId, userId } = _a; __rest(_a, ["merchantId", "userId"]);
6143
5886
  if (params === void 0) { params = {}; }
6144
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
5887
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
6145
5888
  },
6146
5889
  /**
6147
5890
  * No description
@@ -6149,13 +5892,13 @@ class Api {
6149
5892
  * @tags Merchants
6150
5893
  * @name GetMerchantWallets
6151
5894
  * @summary Get merchant wallets by merchant id
6152
- * @request GET:/merchants/{merchantId}/wallets
5895
+ * @request GET:/api/v1/merchants/{merchantId}/wallets
6153
5896
  * @secure
6154
5897
  */
6155
5898
  getMerchantWallets: (_a, params) => {
6156
5899
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6157
5900
  if (params === void 0) { params = {}; }
6158
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
5901
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
6159
5902
  },
6160
5903
  /**
6161
5904
  * No description
@@ -6163,205 +5906,205 @@ class Api {
6163
5906
  * @tags Merchants
6164
5907
  * @name AddMerchantWalletAssets
6165
5908
  * @summary Add assets to merchant wallets by merchant id
6166
- * @request POST:/merchants/wallets/add-assets
5909
+ * @request POST:/api/v1/merchants/wallets/add-assets
6167
5910
  * @secure
6168
5911
  */
6169
- addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
5912
+ 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)),
6170
5913
  /**
6171
5914
  * No description
6172
5915
  *
6173
5916
  * @tags Merchants
6174
5917
  * @name AddNewAsset
6175
5918
  * @summary Add new asset to merchant based on the asset configuration
6176
- * @request POST:/merchants/assets/add
5919
+ * @request POST:/api/v1/merchants/assets/add
6177
5920
  * @secure
6178
5921
  */
6179
- addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5922
+ 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)),
6180
5923
  /**
6181
5924
  * No description
6182
5925
  *
6183
5926
  * @tags Merchants
6184
5927
  * @name RemoveAsset
6185
5928
  * @summary Remove asset from merchant based on the asset configuration
6186
- * @request DELETE:/merchants/assets/delete
5929
+ * @request DELETE:/api/v1/merchants/assets/delete
6187
5930
  * @secure
6188
5931
  */
6189
- removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5932
+ 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)),
6190
5933
  /**
6191
5934
  * No description
6192
5935
  *
6193
5936
  * @tags Merchants
6194
5937
  * @name ShowMerchantAssetToWalletHolders
6195
5938
  * @summary Show merchant asset to wallet holders based on the asset configuration
6196
- * @request POST:/merchants/assets/update-visibility
5939
+ * @request POST:/api/v1/merchants/assets/update-visibility
6197
5940
  * @secure
6198
5941
  */
6199
- 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)),
5942
+ 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)),
6200
5943
  /**
6201
5944
  * No description
6202
5945
  *
6203
5946
  * @tags Merchants
6204
5947
  * @name ChangeMerchantAssetDefaultStatus
6205
5948
  * @summary Change merchant asset default status
6206
- * @request POST:/merchants/assets/update-default-status
5949
+ * @request POST:/api/v1/merchants/assets/update-default-status
6207
5950
  * @secure
6208
5951
  */
6209
- 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)),
5952
+ 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)),
6210
5953
  /**
6211
5954
  * No description
6212
5955
  *
6213
5956
  * @tags Merchants
6214
5957
  * @name CreateApiKey
6215
5958
  * @summary Create new API Key
6216
- * @request POST:/merchants/api-keys/new
5959
+ * @request POST:/api/v1/merchants/api-keys/new
6217
5960
  * @secure
6218
5961
  */
6219
- 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)),
5962
+ 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)),
6220
5963
  /**
6221
5964
  * No description
6222
5965
  *
6223
5966
  * @tags Merchants
6224
5967
  * @name WhitelistApiKeyOrigins
6225
5968
  * @summary Whitelist API Key's origins
6226
- * @request POST:/merchants/api-keys/whitelist-origins
5969
+ * @request POST:/api/v1/merchants/api-keys/whitelist-origins
6227
5970
  * @secure
6228
5971
  */
6229
- 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)),
5972
+ 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)),
6230
5973
  };
6231
5974
  this.wallets = {
6232
5975
  /**
6233
5976
  * No description
6234
5977
  *
6235
5978
  * @tags Wallets
6236
- * @name GetAllUsers
5979
+ * @name GetAllWallets
6237
5980
  * @summary Get all wallets by the admin
6238
- * @request GET:/wallets
5981
+ * @request GET:/api/v1/wallets
6239
5982
  * @secure
6240
5983
  */
6241
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
5984
+ getAllWallets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6242
5985
  /**
6243
5986
  * No description
6244
5987
  *
6245
5988
  * @tags Wallets
6246
5989
  * @name CreateWallet
6247
5990
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed
6248
- * @request POST:/wallets/create
5991
+ * @request POST:/api/v1/wallets/create
6249
5992
  * @secure
6250
5993
  */
6251
- createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5994
+ 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)),
6252
5995
  /**
6253
5996
  * No description
6254
5997
  *
6255
5998
  * @tags Wallets
6256
5999
  * @name VerifyAccess
6257
6000
  * @summary Verify that the user still has the ability to transact with the wallet
6258
- * @request POST:/wallets/verify-access
6001
+ * @request POST:/api/v1/wallets/verify-access
6259
6002
  * @secure
6260
6003
  */
6261
- verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6004
+ 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)),
6262
6005
  /**
6263
6006
  * No description
6264
6007
  *
6265
6008
  * @tags Wallets
6266
6009
  * @name CreateAdminWallet
6267
6010
  * @summary Create a server side admin wallet where encryptedSeed will be opaque to the caller
6268
- * @request POST:/wallets/create-admin-server-wallet
6011
+ * @request POST:/api/v1/wallets/create-admin-server-wallet
6269
6012
  * @secure
6270
6013
  */
6271
- 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)),
6014
+ 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)),
6272
6015
  /**
6273
6016
  * No description
6274
6017
  *
6275
6018
  * @tags Wallets, MPC
6276
6019
  * @name CreateWalletV2
6277
6020
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed, shares, or both
6278
- * @request POST:/wallets/create-with-shares
6021
+ * @request POST:/api/v1/wallets/create-with-shares
6279
6022
  * @secure
6280
6023
  */
6281
- 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)),
6024
+ 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)),
6282
6025
  /**
6283
6026
  * No description
6284
6027
  *
6285
6028
  * @tags Wallets, MPC
6286
6029
  * @name ImportWalletSeedPhraseV2
6287
6030
  * @summary Import an existing wallet seed phrase into wallaby system directly
6288
- * @request POST:/wallets/create-shares-based-wallet-from-seed
6031
+ * @request POST:/api/v1/wallets/create-shares-based-wallet-from-seed
6289
6032
  * @secure
6290
6033
  */
6291
- 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)),
6034
+ 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)),
6292
6035
  /**
6293
6036
  * No description
6294
6037
  *
6295
6038
  * @tags Wallets, MPC
6296
6039
  * @name RetrieveShares
6297
6040
  * @summary Retrieve shares which belong to the user on a specified wallet
6298
- * @request POST:/wallets/retrieve-shares
6041
+ * @request POST:/api/v1/wallets/retrieve-shares
6299
6042
  * @secure
6300
6043
  */
6301
- retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6044
+ 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)),
6302
6045
  /**
6303
6046
  * No description
6304
6047
  *
6305
6048
  * @tags Wallets, MPC
6306
6049
  * @name ShareWallet
6307
6050
  * @summary Share an entity wallet with another user
6308
- * @request POST:/wallets/initiate-share-wallet
6051
+ * @request POST:/api/v1/wallets/initiate-share-wallet
6309
6052
  * @secure
6310
6053
  */
6311
- 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)),
6054
+ 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)),
6312
6055
  /**
6313
6056
  * No description
6314
6057
  *
6315
6058
  * @tags Wallets, MPC
6316
6059
  * @name UnshareWallet
6317
6060
  * @summary Unshare an entity wallet with a user previously granted access
6318
- * @request POST:/wallets/unshare-wallet
6061
+ * @request POST:/api/v1/wallets/unshare-wallet
6319
6062
  * @secure
6320
6063
  */
6321
- unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6064
+ 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)),
6322
6065
  /**
6323
6066
  * No description
6324
6067
  *
6325
6068
  * @tags Wallets
6326
6069
  * @name AddNewDevice
6327
6070
  * @summary This endpoint will be called by the new device after it receives a Wallaby wrapped share
6328
- * @request POST:/wallets/add-new-device
6071
+ * @request POST:/api/v1/wallets/add-new-device
6329
6072
  * @secure
6330
6073
  */
6331
- 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)),
6074
+ 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)),
6332
6075
  /**
6333
6076
  * No description
6334
6077
  *
6335
6078
  * @tags Wallets
6336
6079
  * @name ImportWalletSeedPhrase
6337
6080
  * @summary Import an existing wallet seed phrase into wallaby system directly
6338
- * @request POST:/wallets/import-seed-phrase
6081
+ * @request POST:/api/v1/wallets/import-seed-phrase
6339
6082
  * @secure
6340
6083
  */
6341
- 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)),
6084
+ 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)),
6342
6085
  /**
6343
6086
  * No description
6344
6087
  *
6345
6088
  * @tags Wallets
6346
6089
  * @name GenerateMissingAddresses
6347
6090
  * @summary Generates missing wallet addresses for a user's wallet
6348
- * @request POST:/wallets/generate-wallet-addresses
6091
+ * @request POST:/api/v1/wallets/generate-wallet-addresses
6349
6092
  * @secure
6350
6093
  */
6351
- 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)),
6094
+ 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)),
6352
6095
  /**
6353
6096
  * No description
6354
6097
  *
6355
6098
  * @tags Wallets
6356
6099
  * @name GetUserAssetsByWalletId
6357
6100
  * @summary Get all assets that exist in a certain wallet, by specifying a wallet ID
6358
- * @request GET:/wallets/{walletId}/assets
6101
+ * @request GET:/api/v1/wallets/{walletId}/assets
6359
6102
  * @secure
6360
6103
  */
6361
6104
  getUserAssetsByWalletId: (_a, params) => {
6362
6105
  var { walletId } = _a, query = __rest(_a, ["walletId"]);
6363
6106
  if (params === void 0) { params = {}; }
6364
- return this.http.request(Object.assign({ path: `/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6107
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6365
6108
  },
6366
6109
  /**
6367
6110
  * No description
@@ -6369,523 +6112,598 @@ class Api {
6369
6112
  * @tags Wallets
6370
6113
  * @name GetUserAsset
6371
6114
  * @summary Get one asset from a user's wallet
6372
- * @request GET:/wallets/asset
6115
+ * @request GET:/api/v1/wallets/asset
6373
6116
  * @secure
6374
6117
  */
6375
- 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)),
6118
+ 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)),
6376
6119
  /**
6377
6120
  * No description
6378
6121
  *
6379
6122
  * @tags Wallets
6380
6123
  * @name UpdateUserAsset
6381
6124
  * @summary Update a specific asset in a wallet
6382
- * @request PUT:/wallets/asset/update
6125
+ * @request PUT:/api/v1/wallets/asset/update
6383
6126
  * @secure
6384
6127
  */
6385
- 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)),
6128
+ 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)),
6386
6129
  /**
6387
6130
  * No description
6388
6131
  *
6389
6132
  * @tags Wallets, Multisig
6390
6133
  * @name CreateMultisigAsset
6391
6134
  * @summary Initiate creation for a new multisig asset, by specifying participants and the threshold
6392
- * @request POST:/wallets/create-multisig-asset
6135
+ * @request POST:/api/v1/wallets/create-multisig-asset
6393
6136
  * @secure
6394
6137
  */
6395
- 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)),
6138
+ 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)),
6396
6139
  /**
6397
6140
  * No description
6398
6141
  *
6399
6142
  * @tags Wallets, Recovery
6400
6143
  * @name InitiateWalletRecovery
6401
6144
  * @summary Wallet Recovery - Step 1: Initiate wallet recovery
6402
- * @request POST:/wallets/recover/init
6145
+ * @request POST:/api/v1/wallets/recover/init
6403
6146
  * @secure
6404
6147
  */
6405
- initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6148
+ 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)),
6406
6149
  /**
6407
6150
  * No description
6408
6151
  *
6409
6152
  * @tags Wallets, Recovery
6410
6153
  * @name RecoverWallet
6411
6154
  * @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
6412
- * @request POST:/wallets/recover
6155
+ * @request POST:/api/v1/wallets/recover
6413
6156
  * @secure
6414
6157
  */
6415
- recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6158
+ 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)),
6416
6159
  /**
6417
6160
  * No description
6418
6161
  *
6419
6162
  * @tags Wallets, Algorand
6420
6163
  * @name ConvertStandardPhraseToAlgoSpecific
6421
6164
  * @summary Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
6422
- * @request POST:/wallets/convert-mnemonic-seed
6165
+ * @request POST:/api/v1/wallets/convert-mnemonic-seed
6423
6166
  * @secure
6424
6167
  */
6425
- convertStandardPhraseToAlgoSpecific: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/convert-mnemonic-seed`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6426
- };
6427
- this.users = {
6168
+ 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)),
6428
6169
  /**
6429
6170
  * No description
6430
6171
  *
6431
- * @tags Users
6432
- * @name GetAllUsers
6433
- * @summary Get all users by the admin
6434
- * @request GET:/users
6172
+ * @tags Wallets, Swaps
6173
+ * @name RequestSwapQuote
6174
+ * @summary Request a swap quote for exchanging assets
6175
+ * @request POST:/api/v1/wallets/{walletId}/swap/quote
6435
6176
  * @secure
6436
6177
  */
6437
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6178
+ requestSwapQuote: (_a, data, params) => {
6179
+ var { walletId } = _a; __rest(_a, ["walletId"]);
6180
+ if (params === void 0) { params = {}; }
6181
+ 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));
6182
+ },
6438
6183
  /**
6439
6184
  * No description
6440
6185
  *
6441
- * @tags Users
6442
- * @name UpdateProfile
6443
- * @summary Update user profile info
6444
- * @request PUT:/users/profile
6186
+ * @tags Wallets, Swaps
6187
+ * @name GetSwapHistory
6188
+ * @summary Get swap history for a wallet
6189
+ * @request GET:/api/v1/wallets/{walletId}/swaps
6445
6190
  * @secure
6446
6191
  */
6447
- updateProfile: (data, params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6192
+ getSwapHistory: (_a, params) => {
6193
+ var { walletId } = _a, query = __rest(_a, ["walletId"]);
6194
+ if (params === void 0) { params = {}; }
6195
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps`, method: "GET", query: query, secure: true, format: "json" }, params));
6196
+ },
6448
6197
  /**
6449
6198
  * No description
6450
6199
  *
6451
- * @tags Users
6452
- * @name GetCurrentUser
6453
- * @summary Returns current user data
6454
- * @request GET:/users/profile
6200
+ * @tags Wallets, Swaps
6201
+ * @name GetSwapById
6202
+ * @summary Get a specific swap by ID
6203
+ * @request GET:/api/v1/wallets/{walletId}/swaps/{swapId}
6455
6204
  * @secure
6456
6205
  */
6457
- getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6206
+ getSwapById: (_a, params) => {
6207
+ var { walletId, swapId } = _a; __rest(_a, ["walletId", "swapId"]);
6208
+ if (params === void 0) { params = {}; }
6209
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps/${swapId}`, method: "GET", secure: true, format: "json" }, params));
6210
+ },
6458
6211
  /**
6459
6212
  * No description
6460
6213
  *
6461
- * @tags Users
6462
- * @name GetCurrentUserSalt
6463
- * @summary Get current user's client salt
6464
- * @request GET:/users/salt
6214
+ * @tags Wallets, Transactions
6215
+ * @name ExecuteSwap
6216
+ * @summary Execute a swap transaction between supported assets
6217
+ * @request POST:/api/v1/wallets/execute-swap
6465
6218
  * @secure
6466
6219
  */
6467
- getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6220
+ executeSwap: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets/execute-swap`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6221
+ };
6222
+ this.transactions = {
6468
6223
  /**
6469
6224
  * No description
6470
6225
  *
6471
- * @tags Users
6472
- * @name GetAllWalletsFromUserId
6473
- * @summary Returns user wallets by specifying user id
6474
- * @request GET:/users/{userId}/wallets
6226
+ * @tags Transactions
6227
+ * @name GetTransactions
6228
+ * @summary Get list of transactions
6229
+ * @request GET:/api/v1/transactions
6475
6230
  * @secure
6476
6231
  */
6477
- getAllWalletsFromUserId: (_a, params) => {
6478
- var { userId } = _a; __rest(_a, ["userId"]);
6479
- if (params === void 0) { params = {}; }
6480
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6481
- },
6232
+ getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6482
6233
  /**
6483
6234
  * No description
6484
6235
  *
6485
- * @tags Users
6486
- * @name GetCurrentUserMerchantAssets
6487
- * @summary Returns user's merchant assets
6488
- * @request GET:/users/merchants/assets
6236
+ * @tags Transactions
6237
+ * @name GetPendingTransactions
6238
+ * @summary Get list of pending transactions
6239
+ * @request GET:/api/v1/transactions/pending
6489
6240
  * @secure
6490
6241
  */
6491
- getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6242
+ getPendingTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/pending`, method: "GET", query: query, secure: true, format: "json" }, params)),
6492
6243
  /**
6493
6244
  * No description
6494
6245
  *
6495
- * @tags Users
6496
- * @name GetCurrentUserMerchantAssets2
6497
- * @summary Returns user's merchant assets
6498
- * @request GET:/users/merchant/assets
6499
- * @originalName getCurrentUserMerchantAssets
6500
- * @duplicate
6246
+ * @tags Transactions
6247
+ * @name ResolvePendingTransaction
6248
+ * @summary Approve or reject a pending transaction
6249
+ * @request POST:/api/v1/transactions/resolve
6501
6250
  * @secure
6502
6251
  */
6503
- getCurrentUserMerchantAssets2: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6252
+ 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)),
6504
6253
  /**
6505
6254
  * No description
6506
6255
  *
6507
- * @tags Users
6508
- * @name GetAssetsByUserId
6509
- * @summary Returns user assets by specifying user id
6510
- * @request GET:/users/{userId}/assets
6256
+ * @tags Transactions
6257
+ * @name SendTransaction
6258
+ * @summary Request transferring funds to a recipient address
6259
+ * @request POST:/api/v1/transactions/transfer
6511
6260
  * @secure
6512
6261
  */
6513
- getAssetsByUserId: (_a, params) => {
6514
- var { userId } = _a, query = __rest(_a, ["userId"]);
6515
- if (params === void 0) { params = {}; }
6516
- return this.http.request(Object.assign({ path: `/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6517
- },
6262
+ 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)),
6518
6263
  /**
6519
6264
  * No description
6520
6265
  *
6521
- * @tags Users
6522
- * @name AddAssetToUser
6523
- * @summary Add a new asset to the user's wallet based on the asset configuration
6524
- * @request POST:/users/assets/add
6266
+ * @tags Transactions
6267
+ * @name SendV2Transaction
6268
+ * @summary Request transferring funds to a recipient address
6269
+ * @request POST:/api/v1/transactions/transfer-with-shares
6525
6270
  * @secure
6526
6271
  */
6527
- addAssetToUser: (data, params = {}) => this.http.request(Object.assign({ path: `/users/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6272
+ 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)),
6528
6273
  /**
6529
6274
  * No description
6530
6275
  *
6531
- * @tags Users
6532
- * @name RemoveAssetFromUser
6533
- * @summary Remove an asset from the user's wallet based on the asset configuration
6534
- * @request DELETE:/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6276
+ * @tags Transactions
6277
+ * @name InitMultisigTransfer
6278
+ * @summary User initiating and signing a multi-sig transfer request
6279
+ * @request POST:/api/v1/transactions/init-multisig-transfer
6535
6280
  * @secure
6536
6281
  */
6537
- removeAssetFromUser: (_a, params) => {
6538
- var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6539
- if (params === void 0) { params = {}; }
6540
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6541
- },
6282
+ 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)),
6542
6283
  /**
6543
6284
  * No description
6544
6285
  *
6545
- * @tags Users
6546
- * @name GetUserByUserId
6547
- * @summary Returns user public data
6548
- * @request GET:/users/{userId}
6286
+ * @tags Transactions, Multisig
6287
+ * @name InitMultisigAssetOptin
6288
+ * @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
6289
+ * @request POST:/api/v1/transactions/init-multisig-asset-optin
6549
6290
  * @secure
6550
6291
  */
6551
- getUserByUserId: (_a, params) => {
6552
- var { userId } = _a; __rest(_a, ["userId"]);
6553
- if (params === void 0) { params = {}; }
6554
- return this.http.request(Object.assign({ path: `/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6555
- },
6292
+ 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)),
6556
6293
  /**
6557
6294
  * No description
6558
6295
  *
6559
- * @tags Users
6560
- * @name GetUserByExternalUserId
6561
- * @request GET:/users/{externalUserId}/externalUserId
6296
+ * @tags Transactions, Multisig
6297
+ * @name InitMultisigAppOptin
6298
+ * @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
6299
+ * @request POST:/api/v1/transactions/init-multisig-app-optin
6562
6300
  * @secure
6563
6301
  */
6564
- getUserByExternalUserId: (_a, params) => {
6565
- var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6566
- if (params === void 0) { params = {}; }
6567
- return this.http.request(Object.assign({ path: `/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6568
- },
6302
+ 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)),
6569
6303
  /**
6570
6304
  * No description
6571
6305
  *
6572
- * @tags Users
6573
- * @name GetParticipantsByUserId
6574
- * @summary Returns multisig participants by user id
6575
- * @request GET:/users/{userId}/multisig-transactions
6306
+ * @tags Transactions, Multisig
6307
+ * @name SignOnMultisigTransactionRequest
6308
+ * @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
6309
+ * @request POST:/api/v1/transactions/sign-multisig-request
6576
6310
  * @secure
6577
6311
  */
6578
- getParticipantsByUserId: (_a, params) => {
6579
- var { userId } = _a, query = __rest(_a, ["userId"]);
6580
- if (params === void 0) { params = {}; }
6581
- return this.http.request(Object.assign({ path: `/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6582
- },
6583
- };
6584
- this.query = {
6312
+ 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)),
6585
6313
  /**
6586
6314
  * No description
6587
6315
  *
6588
- * @tags Query
6589
- * @name FetchBalance
6590
- * @summary Fetch asset balance by specifying the asset address and the asset symbol
6591
- * @request GET:/query/assets/balance
6316
+ * @tags Transactions, Optin
6317
+ * @name AssetOptInTransaction
6318
+ * @summary Transaction for optin to receive a specific asset in the future
6319
+ * @request POST:/api/v1/transactions/asset-optin
6592
6320
  * @secure
6593
6321
  */
6594
- fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6322
+ 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)),
6595
6323
  /**
6596
6324
  * No description
6597
6325
  *
6598
- * @tags Query
6599
- * @name FetchOnlyBalance
6600
- * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6601
- * @request GET:/query/address/balance
6326
+ * @tags Transactions, Optin
6327
+ * @name AppOptInTransaction
6328
+ * @summary Transaction for optin to interact with a specific app
6329
+ * @request POST:/api/v1/transactions/app-optin
6602
6330
  * @secure
6603
6331
  */
6604
- fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6332
+ 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)),
6605
6333
  /**
6606
6334
  * No description
6607
6335
  *
6608
- * @tags Query
6609
- * @name FetchBulkBalance
6610
- * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6611
- * @request POST:/query/assets/bulk-balance
6336
+ * @tags Transactions
6337
+ * @name GetEstimateFee
6338
+ * @summary Request fee estimate for a particular transaction
6339
+ * @request GET:/api/v1/transactions/estimate-fee
6612
6340
  * @secure
6613
6341
  */
6614
- 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)),
6342
+ getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6615
6343
  /**
6616
6344
  * No description
6617
6345
  *
6618
- * @tags Query
6619
- * @name FetchWalletBulkBalance
6620
- * @summary Fetch assets balances by specifying the wallet ID
6621
- * @request POST:/query/assets/wallet-bulk-balance
6346
+ * @tags Transactions, Query
6347
+ * @name FetchTransactionByHashOrReference
6348
+ * @summary Fetch transaction status data using a reference or transaction hash
6349
+ * @request GET:/api/v1/transactions/status
6622
6350
  * @secure
6623
6351
  */
6624
- 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)),
6352
+ fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6625
6353
  /**
6626
- * No description
6354
+ * @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
6627
6355
  *
6628
- * @tags Query
6629
- * @name FetchTransactions
6630
- * @summary Fetch the current address historical transactions
6631
- * @request GET:/query/transactions
6356
+ * @tags Transactions, Raw, Transactions
6357
+ * @name SignAndBroadcastRawTx
6358
+ * @summary Sign and broadcast raw transaction API
6359
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
6360
+ * @secure
6632
6361
  */
6633
- fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/query/transactions`, method: "GET", query: query, format: "json" }, params)),
6362
+ 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)),
6634
6363
  /**
6635
6364
  * No description
6636
6365
  *
6637
- * @tags Query, Assets
6638
- * @name FetchEvmTokenAssetInfo
6639
- * @summary Request token asset info like decimals, name and symbol
6640
- * @request GET:/query/fetch-token-info
6366
+ * @tags Transactions, Transactions, Multisig, Raw
6367
+ * @name InitMultisigRawTransaction
6368
+ * @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
6369
+ * @request POST:/api/v1/transactions/init-sign-broadcast-multisig-rawtx
6641
6370
  * @secure
6642
6371
  */
6643
- fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6372
+ 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)),
6644
6373
  /**
6645
6374
  * No description
6646
6375
  *
6647
- * @tags Query, Assets
6648
- * @name FetchAssetPairPrice
6649
- * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6650
- * @request GET:/query/get-asset-price
6376
+ * @tags Transactions, Query
6377
+ * @name GetDetailedRawTransactionDataByReference
6378
+ * @summary Fetch transaction in raw data format from the system persistence
6379
+ * @request GET:/api/v1/transactions/raw-status
6651
6380
  * @secure
6652
6381
  */
6653
- fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6654
- };
6655
- this.transactions = {
6382
+ getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6656
6383
  /**
6657
6384
  * No description
6658
6385
  *
6659
- * @tags Transactions
6660
- * @name GetTransactions
6661
- * @summary Get list of transactions
6662
- * @request GET:/transactions
6386
+ * @tags Transactions, Query
6387
+ * @name FetchTransactionParticipants
6388
+ * @summary Fetch transaction's participants
6389
+ * @request GET:/api/v1/transactions/{reference}/participants
6663
6390
  * @secure
6664
6391
  */
6665
- getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6392
+ fetchTransactionParticipants: (_a, params) => {
6393
+ var { reference } = _a; __rest(_a, ["reference"]);
6394
+ if (params === void 0) { params = {}; }
6395
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6396
+ },
6666
6397
  /**
6667
6398
  * No description
6668
6399
  *
6669
- * @tags Transactions
6670
- * @name SendTransaction
6671
- * @summary Request transferring funds to a recipient address
6672
- * @request POST:/transactions/transfer
6400
+ * @tags Transactions, Transactions, ERC1404
6401
+ * @name DetectTransferRestriction
6402
+ * @summary Request to detect whether there is a transfer restriction on a particular transaction
6403
+ * @request GET:/api/v1/transactions/detect-transfers-restrictions
6673
6404
  * @secure
6674
6405
  */
6675
- sendTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6406
+ detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6676
6407
  /**
6677
6408
  * No description
6678
6409
  *
6679
- * @tags Transactions
6680
- * @name SendV2Transaction
6681
- * @summary Request transferring funds to a recipient address
6682
- * @request POST:/transactions/transfer-with-shares
6410
+ * @tags Transactions, Transactions, ERC1404
6411
+ * @name FetchMessageForTransferRestriction
6412
+ * @summary Request restriction message by providing a restriction code
6413
+ * @request GET:/api/v1/transactions/transfer-restriction-message
6683
6414
  * @secure
6684
6415
  */
6685
- 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)),
6416
+ fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6686
6417
  /**
6687
6418
  * No description
6688
6419
  *
6689
- * @tags Transactions
6690
- * @name InitMultisigTransfer
6691
- * @summary User initiating and signing a multi-sig transfer request
6692
- * @request POST:/transactions/init-multisig-transfer
6420
+ * @tags Transactions, Optin
6421
+ * @name CheckAssetOptinForAddress
6422
+ * @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
6423
+ * @request GET:/api/v1/transactions/check-asset-optin
6693
6424
  * @secure
6694
6425
  */
6695
- initMultisigTransfer: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-transfer`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6426
+ checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6696
6427
  /**
6697
6428
  * No description
6698
6429
  *
6699
- * @tags Transactions, Multisig
6700
- * @name InitMultisigAssetOptin
6701
- * @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
6702
- * @request POST:/transactions/init-multisig-asset-optin
6430
+ * @tags Transactions, Optin
6431
+ * @name CheckAppOptinForAddress
6432
+ * @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
6433
+ * @request GET:/api/v1/transactions/check-app-optin
6703
6434
  * @secure
6704
6435
  */
6705
- initMultisigAssetOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6436
+ checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6706
6437
  /**
6707
6438
  * No description
6708
6439
  *
6709
- * @tags Transactions, Multisig
6710
- * @name InitMultisigAppOptin
6711
- * @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
6712
- * @request POST:/transactions/init-multisig-app-optin
6440
+ * @tags Transactions, Transactions
6441
+ * @name CreateAllowanceTransaction
6442
+ * @summary Create an allowance for others to spend on your behalf
6443
+ * @request POST:/api/v1/transactions/create-allowance
6713
6444
  * @secure
6714
6445
  */
6715
- initMultisigAppOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6446
+ 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)),
6447
+ };
6448
+ this.query = {
6716
6449
  /**
6717
6450
  * No description
6718
6451
  *
6719
- * @tags Transactions, Multisig
6720
- * @name SignOnMultisigTransactionRequest
6721
- * @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
6722
- * @request POST:/transactions/sign-multisig-request
6452
+ * @tags Query
6453
+ * @name FetchBalance
6454
+ * @summary Fetch asset balance by specifying the asset address and the asset symbol
6455
+ * @request GET:/api/v1/query/assets/balance
6723
6456
  * @secure
6724
6457
  */
6725
- signOnMultisigTransactionRequest: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/sign-multisig-request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6458
+ fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6726
6459
  /**
6727
6460
  * No description
6728
6461
  *
6729
- * @tags Transactions, Optin
6730
- * @name AssetOptInTransaction
6731
- * @summary Transaction for optin to receive a specific asset in the future
6732
- * @request POST:/transactions/asset-optin
6462
+ * @tags Query
6463
+ * @name FetchOnlyBalance
6464
+ * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6465
+ * @request GET:/api/v1/query/address/balance
6733
6466
  * @secure
6734
6467
  */
6735
- assetOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6468
+ fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6736
6469
  /**
6737
6470
  * No description
6738
6471
  *
6739
- * @tags Transactions, Optin
6740
- * @name AppOptInTransaction
6741
- * @summary Transaction for optin to interact with a specific app
6742
- * @request POST:/transactions/app-optin
6472
+ * @tags Query
6473
+ * @name FetchBulkBalance
6474
+ * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6475
+ * @request POST:/api/v1/query/assets/bulk-balance
6743
6476
  * @secure
6744
6477
  */
6745
- appOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6478
+ 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)),
6746
6479
  /**
6747
6480
  * No description
6748
6481
  *
6749
- * @tags Transactions
6750
- * @name GetEstimateFee
6751
- * @summary Request fee estimate for a particular transaction
6752
- * @request GET:/transactions/estimate-fee
6482
+ * @tags Query
6483
+ * @name FetchWalletBulkBalance
6484
+ * @summary Fetch assets balances by specifying the wallet ID
6485
+ * @request POST:/api/v1/query/assets/wallet-bulk-balance
6753
6486
  * @secure
6754
6487
  */
6755
- getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6488
+ 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)),
6756
6489
  /**
6757
- * @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
6490
+ * No description
6758
6491
  *
6759
- * @tags Transactions, Raw, Transactions
6760
- * @name SignAndBroadcastRawTx
6761
- * @summary Sign and broadcast raw transaction API
6762
- * @request POST:/transactions/sign-broadcast-rawtx
6492
+ * @tags Query
6493
+ * @name FetchTransactions
6494
+ * @summary Fetch the current address historical transactions
6495
+ * @request GET:/api/v1/query/transactions
6763
6496
  * @secure
6764
6497
  */
6765
- 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)),
6498
+ fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6766
6499
  /**
6767
6500
  * No description
6768
6501
  *
6769
- * @tags Transactions, Query
6770
- * @name FetchTransactionByHashOrReference
6771
- * @summary Fetch transaction status data using a reference or transaction hash
6772
- * @request GET:/transactions/status
6502
+ * @tags Query, Assets
6503
+ * @name FetchEvmTokenAssetInfo
6504
+ * @summary Request token asset info like decimals, name and symbol
6505
+ * @request GET:/api/v1/query/fetch-token-info
6773
6506
  * @secure
6774
6507
  */
6775
- fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6508
+ fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6776
6509
  /**
6777
6510
  * No description
6778
6511
  *
6779
- * @tags Transactions, Transactions, Multisig, Raw
6780
- * @name InitMultisigRawTransaction
6781
- * @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
6782
- * @request POST:/transactions/init-sign-broadcast-multisig-rawtx
6512
+ * @tags Query, Assets
6513
+ * @name FetchAssetPairPrice
6514
+ * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6515
+ * @request GET:/api/v1/query/get-asset-price
6783
6516
  * @secure
6784
6517
  */
6785
- 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)),
6518
+ fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6519
+ };
6520
+ this.mpc = {
6786
6521
  /**
6787
6522
  * No description
6788
6523
  *
6789
- * @tags Transactions, Query
6790
- * @name GetDetailedRawTransactionDataByReference
6791
- * @summary Fetch transaction in raw data format from the system persistence
6792
- * @request GET:/transactions/raw-status
6524
+ * @tags Mpc
6525
+ * @name InitKeyExchange
6526
+ * @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
6527
+ * @request POST:/api/v1/mpc/init-key-exchange
6793
6528
  * @secure
6794
6529
  */
6795
- getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6530
+ 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)),
6796
6531
  /**
6797
6532
  * No description
6798
6533
  *
6799
- * @tags Transactions, Query
6800
- * @name FetchTransactionParticipants
6801
- * @summary Fetch transaction's participants
6802
- * @request GET:/transactions/{reference}/participants
6534
+ * @tags Mpc
6535
+ * @name RequestSeedphraseSplit
6536
+ * @summary Request seed phrase split and return shares that can be used later for recovery
6537
+ * @request POST:/api/v1/mpc/request-seed-split
6803
6538
  * @secure
6804
6539
  */
6805
- fetchTransactionParticipants: (_a, params) => {
6806
- var { reference } = _a; __rest(_a, ["reference"]);
6540
+ 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)),
6541
+ /**
6542
+ * No description
6543
+ *
6544
+ * @tags Mpc
6545
+ * @name ReconstructSeedPhrase
6546
+ * @summary Pass encrypted shares and return reconstructed encrypted seed phrase
6547
+ * @request POST:/api/v1/mpc/reconstruct-seed-phrase
6548
+ * @secure
6549
+ */
6550
+ 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)),
6551
+ };
6552
+ this.users = {
6553
+ /**
6554
+ * No description
6555
+ *
6556
+ * @tags Users
6557
+ * @name GetAllUsers
6558
+ * @summary Get all users by the admin
6559
+ * @request GET:/api/v1/users
6560
+ * @secure
6561
+ */
6562
+ getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6563
+ /**
6564
+ * No description
6565
+ *
6566
+ * @tags Users
6567
+ * @name UpdateProfile
6568
+ * @summary Update user profile info
6569
+ * @request PUT:/api/v1/users/profile
6570
+ * @secure
6571
+ */
6572
+ 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)),
6573
+ /**
6574
+ * No description
6575
+ *
6576
+ * @tags Users
6577
+ * @name GetCurrentUser
6578
+ * @summary Returns current user data
6579
+ * @request GET:/api/v1/users/profile
6580
+ * @secure
6581
+ */
6582
+ getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6583
+ /**
6584
+ * No description
6585
+ *
6586
+ * @tags Users
6587
+ * @name GetCurrentUserSalt
6588
+ * @summary Get current user's client salt
6589
+ * @request GET:/api/v1/users/salt
6590
+ * @secure
6591
+ */
6592
+ getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6593
+ /**
6594
+ * No description
6595
+ *
6596
+ * @tags Users
6597
+ * @name GetAllWalletsFromUserId
6598
+ * @summary Returns user wallets by specifying user id
6599
+ * @request GET:/api/v1/users/{userId}/wallets
6600
+ * @secure
6601
+ */
6602
+ getAllWalletsFromUserId: (_a, params) => {
6603
+ var { userId } = _a; __rest(_a, ["userId"]);
6807
6604
  if (params === void 0) { params = {}; }
6808
- return this.http.request(Object.assign({ path: `/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6605
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6809
6606
  },
6810
6607
  /**
6811
6608
  * No description
6812
6609
  *
6813
- * @tags Transactions, Transactions, ERC1404
6814
- * @name DetectTransferRestriction
6815
- * @summary Request to detect whether there is a transfer restriction on a particular transaction
6816
- * @request GET:/transactions/detect-transfers-restrictions
6610
+ * @tags Users
6611
+ * @name GetCurrentUserMerchantAssets
6612
+ * @summary Returns user's merchant assets
6613
+ * @request GET:/api/v1/users/merchants/assets
6817
6614
  * @secure
6818
6615
  */
6819
- detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6616
+ getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6820
6617
  /**
6821
6618
  * No description
6822
6619
  *
6823
- * @tags Transactions, Transactions, ERC1404
6824
- * @name FetchMessageForTransferRestriction
6825
- * @summary Request restriction message by providing a restriction code
6826
- * @request GET:/transactions/transfer-restriction-message
6620
+ * @tags Users
6621
+ * @name GetCurrentUserMerchantAssetsUsersMerchantAssets
6622
+ * @summary Returns user's merchant assets
6623
+ * @request GET:/api/v1/users/merchant/assets
6827
6624
  * @secure
6828
6625
  */
6829
- fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6626
+ getCurrentUserMerchantAssetsUsersMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6830
6627
  /**
6831
6628
  * No description
6832
6629
  *
6833
- * @tags Transactions, Optin
6834
- * @name CheckAssetOptinForAddress
6835
- * @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
6836
- * @request GET:/transactions/check-asset-optin
6630
+ * @tags Users
6631
+ * @name GetAssetsByUserId
6632
+ * @summary Returns user assets by specifying user id
6633
+ * @request GET:/api/v1/users/{userId}/assets
6837
6634
  * @secure
6838
6635
  */
6839
- checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6636
+ getAssetsByUserId: (_a, params) => {
6637
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6638
+ if (params === void 0) { params = {}; }
6639
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6640
+ },
6840
6641
  /**
6841
6642
  * No description
6842
6643
  *
6843
- * @tags Transactions, Optin
6844
- * @name CheckAppOptinForAddress
6845
- * @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
6846
- * @request GET:/transactions/check-app-optin
6644
+ * @tags Users
6645
+ * @name AddAssetToUser
6646
+ * @summary Add a new asset to the user's wallet based on the asset configuration
6647
+ * @request POST:/api/v1/users/assets/add
6847
6648
  * @secure
6848
6649
  */
6849
- checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6650
+ 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)),
6850
6651
  /**
6851
6652
  * No description
6852
6653
  *
6853
- * @tags Transactions, Allowance, Transaction
6854
- * @name CreateAllowanceTransaction
6855
- * @summary Create an allowance for others to spend on your behalf
6856
- * @request POST:/transactions/create-allowance
6654
+ * @tags Users
6655
+ * @name RemoveAssetFromUser
6656
+ * @summary Remove an asset from the user's wallet based on the asset configuration
6657
+ * @request DELETE:/api/v1/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6857
6658
  * @secure
6858
6659
  */
6859
- createAllowanceTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/create-allowance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6860
- };
6861
- this.mpc = {
6660
+ removeAssetFromUser: (_a, params) => {
6661
+ var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6662
+ if (params === void 0) { params = {}; }
6663
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6664
+ },
6862
6665
  /**
6863
6666
  * No description
6864
6667
  *
6865
- * @tags Mpc
6866
- * @name InitKeyExchange
6867
- * @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
6868
- * @request POST:/mpc/init-key-exchange
6668
+ * @tags Users
6669
+ * @name GetUserByUserId
6670
+ * @summary Returns user public data
6671
+ * @request GET:/api/v1/users/{userId}
6672
+ * @secure
6869
6673
  */
6870
- initKeyExchange: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/init-key-exchange`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6674
+ getUserByUserId: (_a, params) => {
6675
+ var { userId } = _a; __rest(_a, ["userId"]);
6676
+ if (params === void 0) { params = {}; }
6677
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6678
+ },
6871
6679
  /**
6872
6680
  * No description
6873
6681
  *
6874
- * @tags Mpc
6875
- * @name RequestSeedphraseSplit
6876
- * @summary Request seed phrase split and return shares that can be used later for recovery
6877
- * @request POST:/mpc/request-seed-split
6682
+ * @tags Users
6683
+ * @name GetUserByExternalUserId
6684
+ * @summary Returns user public data by their external user ID
6685
+ * @request GET:/api/v1/users/{externalUserId}/externalUserId
6686
+ * @secure
6878
6687
  */
6879
- requestSeedphraseSplit: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/request-seed-split`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6688
+ getUserByExternalUserId: (_a, params) => {
6689
+ var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6690
+ if (params === void 0) { params = {}; }
6691
+ return this.http.request(Object.assign({ path: `/api/v1/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6692
+ },
6880
6693
  /**
6881
6694
  * No description
6882
6695
  *
6883
- * @tags Mpc
6884
- * @name ReconstructSeedPhrase
6885
- * @summary Pass encrypted shares and return reconstructed encrypted seed phrase
6886
- * @request POST:/mpc/reconstruct-seed-phrase
6696
+ * @tags Users
6697
+ * @name GetParticipantsByUserId
6698
+ * @summary Returns multisig participants by user id
6699
+ * @request GET:/api/v1/users/{userId}/multisig-transactions
6700
+ * @secure
6887
6701
  */
6888
- reconstructSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/reconstruct-seed-phrase`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6702
+ getParticipantsByUserId: (_a, params) => {
6703
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6704
+ if (params === void 0) { params = {}; }
6705
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6706
+ },
6889
6707
  };
6890
6708
  this.adminTransactions = {
6891
6709
  /**
@@ -6894,111 +6712,113 @@ class Api {
6894
6712
  * @tags Admin-Transactions
6895
6713
  * @name CreateReleaseSchedule
6896
6714
  * @summary Request the creation of a release schedule
6897
- * @request POST:/transactions/admin/release-schedule
6715
+ * @request POST:/api/v1/transactions/admin/release-schedule
6898
6716
  * @secure
6899
6717
  */
6900
- 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)),
6718
+ 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)),
6901
6719
  /**
6902
6720
  * No description
6903
6721
  *
6904
6722
  * @tags Admin-Transactions
6905
6723
  * @name ViewReleaseSchedule
6906
6724
  * @summary View a release schedule
6907
- * @request GET:/transactions/admin/release-schedule
6725
+ * @request GET:/api/v1/transactions/admin/release-schedule
6908
6726
  * @secure
6909
6727
  */
6910
- viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6728
+ viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6911
6729
  /**
6912
6730
  * No description
6913
6731
  *
6914
6732
  * @tags Admin-Transactions
6915
6733
  * @name Mint
6916
6734
  * @summary Request the minting of an asset to addresses either via mint release schedule or directly
6917
- * @request POST:/transactions/admin/mint
6735
+ * @request POST:/api/v1/transactions/admin/mint
6918
6736
  * @secure
6919
6737
  */
6920
- mint: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6738
+ 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)),
6921
6739
  /**
6922
6740
  * No description
6923
6741
  *
6924
6742
  * @tags Admin-Transactions
6925
6743
  * @name Burn
6926
6744
  * @summary Request the burning of an asset to address(es) directly
6927
- * @request POST:/transactions/admin/burn
6745
+ * @request POST:/api/v1/transactions/admin/burn
6928
6746
  * @secure
6929
6747
  */
6930
- burn: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6748
+ 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)),
6931
6749
  /**
6932
6750
  * No description
6933
6751
  *
6934
6752
  * @tags Admin-Transactions
6935
6753
  * @name ExecutePurchase
6936
6754
  * @summary Request purchase on the purchase contract
6937
- * @request POST:/transactions/admin/execute-purchase
6755
+ * @request POST:/api/v1/transactions/admin/execute-purchase
6938
6756
  * @secure
6939
6757
  */
6940
- 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)),
6758
+ 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)),
6941
6759
  /**
6942
6760
  * No description
6943
6761
  *
6944
6762
  * @tags Admin-Transactions
6945
6763
  * @name ExecutePurchaseWithInterest
6946
6764
  * @summary Request purchase with interest on the purchase contract
6947
- * @request POST:/transactions/admin/execute-purchase-with-interest
6765
+ * @request POST:/api/v1/transactions/admin/execute-purchase-with-interest
6948
6766
  * @secure
6949
6767
  */
6950
- 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)),
6768
+ 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)),
6951
6769
  /**
6952
6770
  * No description
6953
6771
  *
6954
6772
  * @tags Admin-Transactions
6955
6773
  * @name SetIdentity
6956
6774
  * @summary Set identity via the identity registry contract
6957
- * @request POST:/transactions/admin/set-identity
6775
+ * @request POST:/api/v1/transactions/admin/set-identity
6958
6776
  * @secure
6959
6777
  */
6960
- 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)),
6778
+ 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)),
6961
6779
  /**
6962
6780
  * No description
6963
6781
  *
6964
6782
  * @tags Admin-Transactions
6965
6783
  * @name ForceClaim
6966
6784
  * @summary Force claim interest via the interest payment contract
6967
- * @request POST:/transactions/admin/force-claim
6785
+ * @request POST:/api/v1/transactions/admin/force-claim
6968
6786
  * @secure
6969
6787
  */
6970
- 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)),
6788
+ 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)),
6971
6789
  /**
6972
6790
  * No description
6973
6791
  *
6974
6792
  * @tags Admin-Transactions
6975
6793
  * @name ForceClaimPrincipal
6976
6794
  * @summary Force claim principal via the interest payment contract
6977
- * @request POST:/transactions/admin/force-claim-principal
6795
+ * @request POST:/api/v1/transactions/admin/force-claim-principal
6978
6796
  * @secure
6979
6797
  */
6980
- 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)),
6798
+ 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)),
6981
6799
  /**
6982
6800
  * No description
6983
6801
  *
6984
6802
  * @tags Admin-Transactions
6985
6803
  * @name GetCallbackPublicKey
6986
- * @request GET:/transactions/admin/callback_pk
6804
+ * @summary Get the public key for callback
6805
+ * @request GET:/api/v1/transactions/admin/callback_pk
6806
+ * @secure
6987
6807
  */
6988
- getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback_pk`, method: "GET" }, params)),
6808
+ getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback_pk`, method: "GET", secure: true }, params)),
6989
6809
  /**
6990
6810
  * No description
6991
6811
  *
6992
6812
  * @tags Admin-Transactions
6993
6813
  * @name ViewAdminTransaction
6994
6814
  * @summary View an admin transaction
6995
- * @request GET:/transactions/admin/{referenceId}
6815
+ * @request GET:/api/v1/transactions/admin/{referenceId}
6996
6816
  * @secure
6997
6817
  */
6998
6818
  viewAdminTransaction: (_a, params) => {
6999
6819
  var { referenceId } = _a; __rest(_a, ["referenceId"]);
7000
6820
  if (params === void 0) { params = {}; }
7001
- return this.http.request(Object.assign({ path: `/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
6821
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
7002
6822
  },
7003
6823
  /**
7004
6824
  * No description
@@ -7006,9 +6826,30 @@ class Api {
7006
6826
  * @tags Admin-Transactions
7007
6827
  * @name UpsideCallback
7008
6828
  * @summary Upside callback for release schedule
7009
- * @request POST:/transactions/admin/callback
6829
+ * @request POST:/api/v1/transactions/admin/callback
6830
+ * @secure
7010
6831
  */
7011
- upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6832
+ 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)),
6833
+ };
6834
+ this.v1 = {
6835
+ /**
6836
+ * No description
6837
+ *
6838
+ * @name GetDashboardData
6839
+ * @summary Create new merchant. This endpoint is only available for super admin and republic admin
6840
+ * @request GET:/api/v1/dashboard
6841
+ * @secure
6842
+ */
6843
+ getDashboardData: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/dashboard`, method: "GET", secure: true }, params)),
6844
+ /**
6845
+ * No description
6846
+ *
6847
+ * @name GetActivitiees
6848
+ * @summary Get all activities. This endpoint is only available for super admin and republic admin
6849
+ * @request GET:/api/v1/users-activities
6850
+ * @secure
6851
+ */
6852
+ getActivitiees: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users-activities`, method: "GET", query: query, secure: true }, params)),
7012
6853
  };
7013
6854
  this.http = http;
7014
6855
  }
@@ -7046,8 +6887,12 @@ class Base {
7046
6887
  this.lockManager = new LockManagerService();
7047
6888
  this._initializeClientAuthToken(sanitizedConfig.clientAuthToken);
7048
6889
  this.request = this.request.bind(this);
6890
+ // The generated API client includes /api/v1 in each path, so strip it from
6891
+ // the baseUrl to avoid doubling (e.g. /api/v1/api/v1/wallets/...).
6892
+ // The custom this.request() method still uses the original this.baseUrl
6893
+ // whose route paths do not carry the /api/v1 prefix.
7049
6894
  const httpClient = new HttpClient({
7050
- baseUrl: this.baseUrl,
6895
+ baseUrl: this.baseUrl.replace(/\/api\/v1\/?$/, ''),
7051
6896
  baseApiParams: {
7052
6897
  secure: true, // Enable security worker for all requests by default
7053
6898
  },
@@ -10391,6 +10236,12 @@ class WalletService extends Base {
10391
10236
  const v2EncryptedSeed = await this.localStorageService.fetch(exports.LocalStorageItems.EncryptedStandardSeedPhrase, {
10392
10237
  walletId: input.walletId,
10393
10238
  });
10239
+ const v2EncryptedPrimaryShare = await this.localStorageService.fetch(exports.LocalStorageItems.PrimaryDeviceKeyShare, {
10240
+ walletId: input.walletId,
10241
+ });
10242
+ const v2EncryptedBackupShare = await this.localStorageService.fetch(exports.LocalStorageItems.BackupDeviceKeyShare, {
10243
+ walletId: input.walletId,
10244
+ });
10394
10245
  const clientSalt = await this.authService.getUserSalt();
10395
10246
  const passwordCredentialsKeyPair = await this.cipher.getCredentialsKeyPair({
10396
10247
  password: input.password,
@@ -10436,48 +10287,168 @@ class WalletService extends Base {
10436
10287
  },
10437
10288
  getSignature: this.authService.getSignature.bind(this),
10438
10289
  });
10290
+ const prfValue = authentication.prfValue;
10291
+ if (!prfValue || !(prfValue instanceof Uint8Array) || prfValue.length === 0) {
10292
+ logger.error('SDK::WalletService::convertToPasskey::prfValue is required and must be a non-empty Uint8Array');
10293
+ throw new WallabyError({
10294
+ message: 'PRF value from passkey is required to derive credentials and could not be obtained',
10295
+ statusCode: 500,
10296
+ errorCode: exports.ErrorResponseCodes.sdk_passkey_prf_not_available,
10297
+ });
10298
+ }
10439
10299
  logger.log('SDK::WalletService::convertToPasskey::Received authentication response', !!authentication);
10440
10300
  let decryptedSeedPhrase;
10441
- try {
10442
- decryptedSeedPhrase = await this.cipher.displayStoredData({
10443
- storedEncryptedData: safeJsonParse(v2EncryptedSeed),
10444
- encryptedDevicePrivateKey: safeJsonParse(v2EncryptedPriv),
10445
- options: {
10446
- authType: exports.AuthType.Password,
10447
- password: input.password,
10448
- salt: clientSalt,
10449
- },
10450
- });
10301
+ let decryptedPrimaryShare;
10302
+ let decryptedBackupShare;
10303
+ if (v2EncryptedSeed && v2EncryptedPriv) {
10304
+ try {
10305
+ decryptedSeedPhrase = await this.cipher.displayStoredData({
10306
+ storedEncryptedData: safeJsonParse(v2EncryptedSeed),
10307
+ encryptedDevicePrivateKey: safeJsonParse(v2EncryptedPriv),
10308
+ options: {
10309
+ authType: exports.AuthType.Password,
10310
+ password: input.password,
10311
+ salt: clientSalt,
10312
+ },
10313
+ });
10314
+ }
10315
+ catch (error) {
10316
+ logger.error('SDK::WalletService::convertToPasskey::seed_decryption_error', error);
10317
+ }
10451
10318
  }
10452
- catch (error) {
10453
- logger.error('SDK::WalletService::convertToPasskey::error', error);
10454
- decryptedSeedPhrase = await this.localStorageService.getV1DecryptedSeedPhrase(input.password, clientSalt);
10455
- if (!decryptedSeedPhrase) {
10456
- throw new WallabyError({
10457
- message: 'Seed phrase on this device could not be decrypted',
10458
- statusCode: 500,
10459
- errorCode: exports.ErrorResponseCodes.sdk_seed_phrase_decryption_failed,
10319
+ if (!decryptedSeedPhrase) {
10320
+ try {
10321
+ decryptedSeedPhrase = await this.localStorageService.getV1DecryptedSeedPhrase(input.password, clientSalt);
10322
+ }
10323
+ catch (error) {
10324
+ logger.error('SDK::WalletService::convertToPasskey::v1_seed_decryption_error', error);
10325
+ }
10326
+ }
10327
+ if (v2EncryptedPrimaryShare && v2EncryptedPriv) {
10328
+ try {
10329
+ const parsedPrimaryShare = safeJsonParse(v2EncryptedPrimaryShare);
10330
+ decryptedPrimaryShare = await this.cipher.displayStoredData({
10331
+ storedEncryptedData: parsedPrimaryShare,
10332
+ encryptedDevicePrivateKey: safeJsonParse(v2EncryptedPriv),
10333
+ options: {
10334
+ authType: exports.AuthType.Password,
10335
+ password: input.password,
10336
+ salt: clientSalt,
10337
+ },
10460
10338
  });
10461
10339
  }
10340
+ catch (error) {
10341
+ logger.error('SDK::WalletService::convertToPasskey::primary_share_decryption_error', error);
10342
+ }
10462
10343
  }
10463
- const importResult = await this.handlers.handleImportWallet({
10464
- publicKey: clientPublicKey,
10465
- privateKey: decryptedClientAuthPrivKey,
10466
- }, {
10467
- authenticationOptions: authentication,
10468
- seedPhrase: decryptedSeedPhrase,
10469
- storeSeedPhrase: false,
10470
- returnWalletOption: exports.ReturnWalletOption.ReturnOnlyEncryptedShares, // always only return the encrypted shares
10471
- keyShareOptions: {
10472
- threshold: 2,
10473
- numberOfKeyShares: 3,
10474
- numberOfSharesReturned: 2,
10475
- storeOneKeyShareWithWallaby: true,
10476
- },
10344
+ if (v2EncryptedBackupShare) {
10345
+ try {
10346
+ const parsedBackupShare = safeJsonParse(v2EncryptedBackupShare);
10347
+ // backup key share is wrapped with credentials public key at the outer layer
10348
+ // and wallaby public key at the inner layer, so only one local unwrap is needed.
10349
+ decryptedBackupShare = await this.cipher.decrypt({
10350
+ cipherText: parsedBackupShare,
10351
+ decryptionKey: passwordCredentialsKeyPair.privateKey,
10352
+ });
10353
+ }
10354
+ catch (error) {
10355
+ logger.error('SDK::WalletService::convertToPasskey::backup_share_decryption_error', error);
10356
+ }
10357
+ }
10358
+ const hasAnyDecryptedShare = !!decryptedPrimaryShare || !!decryptedBackupShare;
10359
+ if (!decryptedSeedPhrase && !hasAnyDecryptedShare) {
10360
+ throw new WallabyError({
10361
+ message: 'Seed phrase or key shares on this device could not be decrypted',
10362
+ statusCode: 500,
10363
+ errorCode: exports.ErrorResponseCodes.sdk_no_valid_seed_option,
10364
+ });
10365
+ }
10366
+ // We only care about the primary share for future local operations.
10367
+ if (decryptedSeedPhrase && !decryptedPrimaryShare) {
10368
+ logger.info('SDK::WalletService::convertToPasskey::No primary share found, importing wallet');
10369
+ await this.handlers.handleImportWallet({
10370
+ publicKey: clientPublicKey,
10371
+ privateKey: decryptedClientAuthPrivKey,
10372
+ }, {
10373
+ authenticationOptions: authentication,
10374
+ seedPhrase: decryptedSeedPhrase,
10375
+ storeSeedPhrase: false,
10376
+ returnWalletOption: exports.ReturnWalletOption.ReturnOnlyEncryptedShares, // always only return the encrypted shares
10377
+ keyShareOptions: {
10378
+ threshold: 2,
10379
+ numberOfKeyShares: 3,
10380
+ numberOfSharesReturned: 2,
10381
+ storeOneKeyShareWithWallaby: true,
10382
+ },
10383
+ });
10384
+ // Delete the old password-encrypted seed phrase since import stored the new passkey-encrypted version
10385
+ await this.localStorageService.delete(exports.LocalStorageItems.EncryptedStandardSeedPhrase, { walletId: input.walletId });
10386
+ logger.info('SDK::WalletService::convertToPasskey::Wallet imported and converted successfully, old seed phrase removed');
10387
+ return { authentication, seedPhrase: decryptedSeedPhrase };
10388
+ }
10389
+ const passkeyDerivedKeyPair = await this.cipher.getCredentialsKeyPair({
10390
+ authType: exports.AuthType.Passkey,
10391
+ prfValue,
10477
10392
  });
10478
- await this.localStorageService.delete(exports.LocalStorageItems.EncryptedStandardSeedPhrase, { walletId: input.walletId });
10479
- logger.info('SDK::WalletService::convertToPasskey::Seed phrase removed from device storage after conversion to passkey');
10480
- return Object.assign(Object.assign({}, importResult), { authentication, seedPhrase: decryptedSeedPhrase });
10393
+ const convertedShares = [];
10394
+ if (decryptedPrimaryShare) {
10395
+ const encryptedPrimaryShare = await this.cipher.doubleEncrypt({
10396
+ decryptedData: decryptedPrimaryShare,
10397
+ credentialsKeyPair: passkeyDerivedKeyPair,
10398
+ deviceKeyPair: {
10399
+ publicKey: clientPublicKey,
10400
+ privateKey: decryptedClientAuthPrivKey,
10401
+ },
10402
+ });
10403
+ convertedShares.push({
10404
+ key: exports.V2KeyNames.PrimaryDeviceKeyShare,
10405
+ value: encryptedPrimaryShare,
10406
+ walletId: input.walletId,
10407
+ });
10408
+ }
10409
+ if (decryptedBackupShare) {
10410
+ // Since this is only decrypted once, we only need passkey credential encryption.
10411
+ const encryptedBackupShare = await this.cipher.encrypt({
10412
+ data: decryptedBackupShare,
10413
+ encryptionKey: passkeyDerivedKeyPair.publicKey,
10414
+ });
10415
+ convertedShares.push({
10416
+ key: exports.V2KeyNames.BackupDeviceKeyShare,
10417
+ value: encryptedBackupShare,
10418
+ walletId: input.walletId,
10419
+ });
10420
+ }
10421
+ await this.localStorageService.saveInBulk(convertedShares);
10422
+ if (v2EncryptedSeed) {
10423
+ await this.localStorageService.delete(exports.LocalStorageItems.EncryptedStandardSeedPhrase, { walletId: input.walletId });
10424
+ logger.info('SDK::WalletService::convertToPasskey::Seed phrase removed from device storage after conversion to passkey');
10425
+ }
10426
+ if (!decryptedSeedPhrase && decryptedPrimaryShare) {
10427
+ const flippedEncryptedPrimaryShare = await this.cipher.encrypt({
10428
+ data: decryptedPrimaryShare,
10429
+ encryptionKey: authentication.user.wallabyAuthPubKey,
10430
+ });
10431
+ const reconstructedSeedPhrase = await this.handlers.handleConstructingSeedPhraseFromShares({
10432
+ walletId: input.walletId,
10433
+ encryptedKeyShares: [flippedEncryptedPrimaryShare],
10434
+ deviceAuthKeys: {
10435
+ publicKey: clientPublicKey,
10436
+ privateKey: decryptedClientAuthPrivKey,
10437
+ },
10438
+ });
10439
+ decryptedSeedPhrase = await this.cipher.decrypt({
10440
+ cipherText: reconstructedSeedPhrase,
10441
+ decryptionKey: decryptedClientAuthPrivKey,
10442
+ });
10443
+ }
10444
+ if (!decryptedSeedPhrase) {
10445
+ throw new WallabyError({
10446
+ message: 'Seed phrase could not be reconstructed from the provided shares',
10447
+ statusCode: 500,
10448
+ errorCode: exports.ErrorResponseCodes.sdk_no_valid_seed_option,
10449
+ });
10450
+ }
10451
+ return { authentication, seedPhrase: decryptedSeedPhrase };
10481
10452
  }
10482
10453
  catch (error) {
10483
10454
  logger.error('SDK::WalletService::convertToPasskey::error', error);
@@ -10797,7 +10768,7 @@ class WalletDataService extends Base {
10797
10768
  /**
10798
10769
  * Updates a wallet asset.
10799
10770
  *
10800
- * @param {string} params.assetConfigId - Config ID for the user asset.
10771
+ * @param {string} params.configId - Config ID for the user asset.
10801
10772
  * @param {string} params.walletId - Wallet ID to which the asset belongs.
10802
10773
  * @param {string} params.assetName - Asset name.
10803
10774
  * @param {boolean} params.isVisible - Asset visibility toggle.
@@ -10808,19 +10779,19 @@ class WalletDataService extends Base {
10808
10779
  * @throws {Error} If required parameters are missing or invalid.
10809
10780
  */
10810
10781
  async updateAsset(_a) {
10811
- var { assetConfigId, walletId } = _a, assetConfig = __rest(_a, ["assetConfigId", "walletId"]);
10782
+ var { configId, walletId } = _a, assetConfig = __rest(_a, ["configId", "walletId"]);
10812
10783
  try {
10813
- if (!assetConfig.configId || !walletId) {
10784
+ if (!configId || !walletId) {
10814
10785
  throw new WallabyError({
10815
10786
  message: 'Missing required parameters',
10816
10787
  statusCode: 400,
10817
10788
  errorCode: exports.ErrorResponseCodes.sdk_missing_parameter,
10818
10789
  });
10819
10790
  }
10820
- const response = await this.api.wallets.updateUserAsset({
10821
- configId: assetConfig.configId || assetConfigId,
10822
- walletId: walletId,
10823
- }, Object.assign({ walletId }, assetConfig));
10791
+ const response = await this.request(WalletRoutes.updateAsset, {
10792
+ payload: Object.assign({ configId,
10793
+ walletId }, assetConfig),
10794
+ });
10824
10795
  return response;
10825
10796
  }
10826
10797
  catch (error) {
@@ -11723,20 +11694,36 @@ class Transactions extends Base {
11723
11694
  let transferResponse;
11724
11695
  if (readyForTransportSeedPhrase) {
11725
11696
  transferResponse = await this.request(TransactionsRoutes.transfer, {
11726
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedSeed: readyForTransportSeedPhrase, originAddress,
11697
+ payload: {
11698
+ message: signatureMessage.message,
11699
+ signature: signatureMessage.signature,
11700
+ clientAuthPubKey: deviceAuthPublicKey,
11701
+ encryptedSeed: readyForTransportSeedPhrase,
11702
+ originAddress,
11727
11703
  recipientAddress,
11728
11704
  assetId,
11729
- amount, reference: reference || uuid.v4(), memo,
11730
- transactionType }),
11705
+ amount,
11706
+ reference: reference || uuid.v4(),
11707
+ memo,
11708
+ transactionType,
11709
+ },
11731
11710
  });
11732
11711
  }
11733
11712
  else if (hasShares) {
11734
11713
  transferResponse = await this.request(TransactionsRoutes.transferWithShares, {
11735
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedShares: sharesEncryptedWithWallabyPubKey, originAddress,
11714
+ payload: {
11715
+ message: signatureMessage.message,
11716
+ signature: signatureMessage.signature,
11717
+ clientAuthPubKey: deviceAuthPublicKey,
11718
+ encryptedShares: sharesEncryptedWithWallabyPubKey,
11719
+ originAddress,
11736
11720
  recipientAddress,
11737
11721
  assetId,
11738
- amount, reference: reference || uuid.v4(), memo,
11739
- transactionType }),
11722
+ amount,
11723
+ reference: reference || uuid.v4(),
11724
+ memo,
11725
+ transactionType,
11726
+ },
11740
11727
  });
11741
11728
  }
11742
11729
  else {
@@ -11809,8 +11796,8 @@ class Transactions extends Base {
11809
11796
  throw new Error('No valid seed option found on this device.');
11810
11797
  }
11811
11798
  const payload = Object.assign({ message,
11812
- walletId,
11813
- signature, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
11799
+ signature,
11800
+ walletId, clientAuthPubKey: deviceAuthPublicKey, ownerAddress,
11814
11801
  spenderAddress,
11815
11802
  chainName,
11816
11803
  assetSymbol,
@@ -11885,11 +11872,18 @@ class Transactions extends Base {
11885
11872
  throw new Error('No valid seed option found on this device.');
11886
11873
  }
11887
11874
  const confirmPendingTransactionResponse = await this.request(TransactionsRoutes.confirmPendingTransaction, {
11888
- payload: Object.assign(Object.assign({}, signatureMessage), { clientAuthPubKey: deviceAuthPublicKey, encryptedShares: sharesEncryptedWithWallabyPubKey, encryptedSeed: readyForTransportSeedPhrase, id,
11875
+ payload: {
11876
+ message: signatureMessage.message,
11877
+ signature: signatureMessage.signature,
11878
+ clientAuthPubKey: deviceAuthPublicKey,
11879
+ encryptedShares: sharesEncryptedWithWallabyPubKey,
11880
+ encryptedSeed: readyForTransportSeedPhrase,
11881
+ id,
11889
11882
  choice,
11890
11883
  symbol,
11891
11884
  chainName,
11892
- walletId }),
11885
+ walletId,
11886
+ },
11893
11887
  });
11894
11888
  return confirmPendingTransactionResponse;
11895
11889
  }