wallaby-cash 2.2.6 → 2.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -775,7 +775,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
775
775
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.RS256 },
776
776
  { type: 'public-key', alg: PublicKeyCredentialAlgorithm.ES256 },
777
777
  ];
778
- const currentPackageVersion = "2.2.6";
778
+ const currentPackageVersion = "2.3.0-alpha.1";
779
779
 
780
780
  const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined;
781
781
 
@@ -5591,7 +5591,7 @@ var ContentType;
5591
5591
  })(ContentType || (ContentType = {}));
5592
5592
  class HttpClient {
5593
5593
  constructor(apiConfig = {}) {
5594
- this.baseUrl = "";
5594
+ this.baseUrl = "https://staging-testnet.wallaby.cash";
5595
5595
  this.securityData = null;
5596
5596
  this.abortControllers = new Map();
5597
5597
  this.customFetch = (...fetchParams) => fetch(...fetchParams);
@@ -5724,31 +5724,15 @@ class HttpClient {
5724
5724
  }
5725
5725
  }
5726
5726
  /**
5727
- * @title Wallaby API Service
5728
- * @version 1.0.0
5727
+ * @title STAGING
5728
+ * @version 1.0
5729
+ * @baseUrl https://staging-testnet.wallaby.cash
5729
5730
  * @contact
5730
5731
  *
5731
- * NCW Wallets Service API Documentation
5732
+ * The STAGING is an API that manages the wallets of the Republic Crypto
5732
5733
  */
5733
5734
  class Api {
5734
5735
  constructor(http) {
5735
- /**
5736
- * No description
5737
- *
5738
- * @name DashboardControllerGetDashboardData
5739
- * @summary Create new merchant. This endpoint is only available for super admin and republic admin
5740
- * @request GET:/dashboard
5741
- * @secure
5742
- */
5743
- this.dashboardControllerGetDashboardData = (params = {}) => this.http.request(Object.assign({ path: `/dashboard`, method: "GET", secure: true }, params));
5744
- /**
5745
- * No description
5746
- *
5747
- * @name GetActivitiees
5748
- * @summary Get all activities. This endpoint is only available for super admin and republic admin
5749
- * @request GET:/users-activities
5750
- */
5751
- this.getActivitiees = (query, params = {}) => this.http.request(Object.assign({ path: `/users-activities`, method: "GET", query: query }, params));
5752
5736
  this.health = {
5753
5737
  /**
5754
5738
  * No description
@@ -5757,8 +5741,9 @@ class Api {
5757
5741
  * @name GetHello
5758
5742
  * @summary Health Check API
5759
5743
  * @request GET:/
5744
+ * @secure
5760
5745
  */
5761
- getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET" }, params)),
5746
+ getHello: (params = {}) => this.http.request(Object.assign({ path: `/`, method: "GET", secure: true }, params)),
5762
5747
  /**
5763
5748
  * No description
5764
5749
  *
@@ -5766,8 +5751,9 @@ class Api {
5766
5751
  * @name GetHealthCheck
5767
5752
  * @summary Service API status check
5768
5753
  * @request GET:/healthz
5754
+ * @secure
5769
5755
  */
5770
- getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET" }, params)),
5756
+ getHealthCheck: (params = {}) => this.http.request(Object.assign({ path: `/healthz`, method: "GET", secure: true }, params)),
5771
5757
  };
5772
5758
  this.auth = {
5773
5759
  /**
@@ -5776,86 +5762,91 @@ class Api {
5776
5762
  * @tags Auth
5777
5763
  * @name GenerateExternalSignatureMessage
5778
5764
  * @summary The returned message will be used for sign up and sign in signature
5779
- * @request POST:/auth/signature-message/external
5765
+ * @request POST:/api/v1/auth/signature-message/external
5766
+ * @secure
5780
5767
  */
5781
- generateExternalSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5768
+ 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)),
5782
5769
  /**
5783
5770
  * No description
5784
5771
  *
5785
5772
  * @tags Auth
5786
5773
  * @name GenerateSignatureMessage
5787
5774
  * @summary The returned message will be used for sign up and sign in signature
5788
- * @request POST:/auth/signature-message
5775
+ * @request POST:/api/v1/auth/signature-message
5776
+ * @secure
5789
5777
  */
5790
- generateSignatureMessage: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/signature-message`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5778
+ 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)),
5791
5779
  /**
5792
5780
  * No description
5793
5781
  *
5794
5782
  * @tags Auth
5795
5783
  * @name SignUp
5796
5784
  * @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
5797
- * @request POST:/auth/sign-up
5785
+ * @request POST:/api/v1/auth/sign-up
5786
+ * @secure
5798
5787
  */
5799
- signUp: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5788
+ 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)),
5800
5789
  /**
5801
5790
  * No description
5802
5791
  *
5803
5792
  * @tags Auth
5804
5793
  * @name SignUpExternal
5805
5794
  * @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
5806
- * @request POST:/auth/sign-up/external
5795
+ * @request POST:/api/v1/auth/sign-up/external
5796
+ * @secure
5807
5797
  */
5808
- signUpExternal: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-up/external`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5798
+ 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)),
5809
5799
  /**
5810
5800
  * No description
5811
5801
  *
5812
5802
  * @tags Auth
5813
5803
  * @name SignIn
5814
5804
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5815
- * @request POST:/auth/sign-in
5805
+ * @request POST:/api/v1/auth/sign-in
5806
+ * @secure
5816
5807
  */
5817
- signIn: (data, params = {}) => this.http.request(Object.assign({ path: `/auth/sign-in`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5808
+ 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)),
5818
5809
  /**
5819
5810
  * No description
5820
5811
  *
5821
5812
  * @tags Auth
5822
5813
  * @name RefreshAccessToken
5823
5814
  * @summary Users will be able to sign up by providing a signature and message. Use the same pair keys used on sign up
5824
- * @request POST:/auth/refresh-access-token
5815
+ * @request POST:/api/v1/auth/refresh-access-token
5825
5816
  * @deprecated
5826
5817
  * @secure
5827
5818
  */
5828
- refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5819
+ refreshAccessToken: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/refresh-access-token`, method: "POST", secure: true, format: "json" }, params)),
5829
5820
  /**
5830
5821
  * No description
5831
5822
  *
5832
5823
  * @tags Auth
5833
5824
  * @name ChangeAuthPublicKey
5834
5825
  * @summary Change user authentication public key
5835
- * @request PUT:/auth/client-auth-pubkey
5826
+ * @request PUT:/api/v1/auth/client-auth-pubkey
5836
5827
  * @secure
5837
5828
  */
5838
- 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)),
5829
+ 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)),
5839
5830
  /**
5840
5831
  * No description
5841
5832
  *
5842
5833
  * @tags Auth
5843
5834
  * @name GetWallabyAuthPubKey
5844
5835
  * @summary Get user public key
5845
- * @request POST:/auth/wallaby-auth-pubkey
5836
+ * @request POST:/api/v1/auth/wallaby-auth-pubkey
5846
5837
  * @secure
5847
5838
  */
5848
- 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)),
5839
+ 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)),
5849
5840
  /**
5850
5841
  * No description
5851
5842
  *
5852
5843
  * @tags Auth
5853
5844
  * @name GetPasskeyCredentials
5854
5845
  * @summary Get user passkey credentials
5855
- * @request GET:/auth/passkey-credentials
5846
+ * @request GET:/api/v1/auth/passkey-credentials
5856
5847
  * @secure
5857
5848
  */
5858
- getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5849
+ getPasskeyCredentials: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/auth/passkey-credentials`, method: "GET", secure: true, format: "json" }, params)),
5859
5850
  };
5860
5851
  this.chains = {
5861
5852
  /**
@@ -5864,31 +5855,33 @@ class Api {
5864
5855
  * @tags Chains
5865
5856
  * @name GetAllChains
5866
5857
  * @summary Get all supported chains
5867
- * @request GET:/chains
5858
+ * @request GET:/api/v1/chains
5868
5859
  * @secure
5869
5860
  */
5870
- getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5861
+ getAllChains: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "GET", query: query, secure: true, format: "json" }, params)),
5871
5862
  /**
5872
5863
  * No description
5873
5864
  *
5874
5865
  * @tags Chains
5875
5866
  * @name CreateChain
5876
5867
  * @summary Create new chain. This endpoint is only available for super admin and republic admin
5877
- * @request POST:/chains
5868
+ * @request POST:/api/v1/chains
5869
+ * @secure
5878
5870
  */
5879
- createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/chains`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
5871
+ createChain: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/chains`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5880
5872
  /**
5881
5873
  * No description
5882
5874
  *
5883
5875
  * @tags Chains
5884
5876
  * @name UpdateChain
5885
5877
  * @summary Update the chain public data
5886
- * @request PUT:/chains/{chainId}
5878
+ * @request PUT:/api/v1/chains/{chainId}
5879
+ * @secure
5887
5880
  */
5888
5881
  updateChain: (_a, data, params) => {
5889
5882
  var { chainId } = _a; __rest(_a, ["chainId"]);
5890
5883
  if (params === void 0) { params = {}; }
5891
- return this.http.request(Object.assign({ path: `/chains/${chainId}`, method: "PUT", body: data, type: ContentType.Json, format: "json" }, params));
5884
+ return this.http.request(Object.assign({ path: `/api/v1/chains/${chainId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5892
5885
  },
5893
5886
  };
5894
5887
  this.assets = {
@@ -5898,33 +5891,33 @@ class Api {
5898
5891
  * @tags Assets
5899
5892
  * @name GetAssetsConfigurations
5900
5893
  * @summary Get all supported assets configuration that can be imported into a merchant or a user wallet
5901
- * @request GET:/assets/configurations
5894
+ * @request GET:/api/v1/assets/configurations
5902
5895
  * @secure
5903
5896
  */
5904
- getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5897
+ getAssetsConfigurations: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/assets/configurations`, method: "GET", query: query, secure: true, format: "json" }, params)),
5905
5898
  /**
5906
5899
  * No description
5907
5900
  *
5908
5901
  * @tags Assets
5909
5902
  * @name CreateAssetConfig
5910
5903
  * @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
5911
- * @request POST:/assets/configurations
5904
+ * @request POST:/api/v1/assets/configurations
5912
5905
  * @secure
5913
5906
  */
5914
- createAssetConfig: (data, params = {}) => this.http.request(Object.assign({ path: `/assets/configurations`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5907
+ 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)),
5915
5908
  /**
5916
5909
  * No description
5917
5910
  *
5918
5911
  * @tags Assets
5919
5912
  * @name UpdateAssetConfig
5920
5913
  * @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
5921
- * @request PUT:/assets/configurations/{assetConfigId}
5914
+ * @request PUT:/api/v1/assets/configurations/{assetConfigId}
5922
5915
  * @secure
5923
5916
  */
5924
5917
  updateAssetConfig: (_a, data, params) => {
5925
5918
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5926
5919
  if (params === void 0) { params = {}; }
5927
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5920
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
5928
5921
  },
5929
5922
  /**
5930
5923
  * No description
@@ -5932,13 +5925,13 @@ class Api {
5932
5925
  * @tags Assets
5933
5926
  * @name VerifyAsset
5934
5927
  * @summary Verify asset configuration details.
5935
- * @request POST:/assets/configurations/{assetConfigId}/verify
5928
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/verify
5936
5929
  * @secure
5937
5930
  */
5938
5931
  verifyAsset: (_a, params) => {
5939
5932
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5940
5933
  if (params === void 0) { params = {}; }
5941
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5934
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/verify`, method: "POST", secure: true, format: "json" }, params));
5942
5935
  },
5943
5936
  /**
5944
5937
  * No description
@@ -5946,13 +5939,13 @@ class Api {
5946
5939
  * @tags Assets
5947
5940
  * @name UnverifyAsset
5948
5941
  * @summary Unverify asset configuration
5949
- * @request DELETE:/assets/configurations/{assetConfigId}/unverify
5942
+ * @request DELETE:/api/v1/assets/configurations/{assetConfigId}/unverify
5950
5943
  * @secure
5951
5944
  */
5952
5945
  unverifyAsset: (_a, params) => {
5953
5946
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5954
5947
  if (params === void 0) { params = {}; }
5955
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
5948
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unverify`, method: "DELETE", secure: true, format: "json" }, params));
5956
5949
  },
5957
5950
  /**
5958
5951
  * No description
@@ -5960,13 +5953,13 @@ class Api {
5960
5953
  * @tags Assets
5961
5954
  * @name ArchiveAsset
5962
5955
  * @summary Archive an asset configuration
5963
- * @request POST:/assets/configurations/{assetConfigId}/archive
5956
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/archive
5964
5957
  * @secure
5965
5958
  */
5966
5959
  archiveAsset: (_a, params) => {
5967
5960
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5968
5961
  if (params === void 0) { params = {}; }
5969
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
5962
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/archive`, method: "POST", secure: true, format: "json" }, params));
5970
5963
  },
5971
5964
  /**
5972
5965
  * No description
@@ -5974,13 +5967,13 @@ class Api {
5974
5967
  * @tags Assets
5975
5968
  * @name UnarchiveAsset
5976
5969
  * @summary Archive an asset configuration
5977
- * @request POST:/assets/configurations/{assetConfigId}/unarchive
5970
+ * @request POST:/api/v1/assets/configurations/{assetConfigId}/unarchive
5978
5971
  * @secure
5979
5972
  */
5980
5973
  unarchiveAsset: (_a, params) => {
5981
5974
  var { assetConfigId } = _a; __rest(_a, ["assetConfigId"]);
5982
5975
  if (params === void 0) { params = {}; }
5983
- return this.http.request(Object.assign({ path: `/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
5976
+ return this.http.request(Object.assign({ path: `/api/v1/assets/configurations/${assetConfigId}/unarchive`, method: "POST", secure: true, format: "json" }, params));
5984
5977
  },
5985
5978
  };
5986
5979
  this.merchants = {
@@ -5990,32 +5983,33 @@ class Api {
5990
5983
  * @tags Merchants
5991
5984
  * @name GetAllMerchants
5992
5985
  * @summary Get all merchants
5993
- * @request GET:/merchants
5986
+ * @request GET:/api/v1/merchants
5987
+ * @secure
5994
5988
  */
5995
- getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "GET", query: query, format: "json" }, params)),
5989
+ getAllMerchants: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "GET", query: query, secure: true, format: "json" }, params)),
5996
5990
  /**
5997
5991
  * No description
5998
5992
  *
5999
5993
  * @tags Merchants
6000
5994
  * @name CreateMerchant
6001
5995
  * @summary Create new merchant. This endpoint is only available for super admin and republic admin
6002
- * @request POST:/merchants
5996
+ * @request POST:/api/v1/merchants
6003
5997
  * @secure
6004
5998
  */
6005
- createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
5999
+ createMerchant: (data, params = {}) => this.http.request(Object.assign({ path: `/api/v1/merchants`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6006
6000
  /**
6007
6001
  * No description
6008
6002
  *
6009
6003
  * @tags Merchants
6010
6004
  * @name UpdateMerchant
6011
6005
  * @summary Update merchant. This endpoint is only available for super admin and republic admin
6012
- * @request PUT:/merchants/{merchantId}
6006
+ * @request PUT:/api/v1/merchants/{merchantId}
6013
6007
  * @secure
6014
6008
  */
6015
6009
  updateMerchant: (_a, data, params) => {
6016
6010
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6017
6011
  if (params === void 0) { params = {}; }
6018
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
6012
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
6019
6013
  },
6020
6014
  /**
6021
6015
  * No description
@@ -6023,12 +6017,13 @@ class Api {
6023
6017
  * @tags Merchants
6024
6018
  * @name GetOneMerchant
6025
6019
  * @summary Get one merchant by id with counts
6026
- * @request GET:/merchants/{merchantId}
6020
+ * @request GET:/api/v1/merchants/{merchantId}
6021
+ * @secure
6027
6022
  */
6028
6023
  getOneMerchant: (_a, params) => {
6029
6024
  var { merchantId } = _a; __rest(_a, ["merchantId"]);
6030
6025
  if (params === void 0) { params = {}; }
6031
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}`, method: "GET", format: "json" }, params));
6026
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}`, method: "GET", secure: true, format: "json" }, params));
6032
6027
  },
6033
6028
  /**
6034
6029
  * No description
@@ -6036,12 +6031,13 @@ class Api {
6036
6031
  * @tags Merchants
6037
6032
  * @name GetMerchantAssets
6038
6033
  * @summary Get merchant assets by merchant id
6039
- * @request GET:/merchants/{merchantId}/assets
6034
+ * @request GET:/api/v1/merchants/{merchantId}/assets
6035
+ * @secure
6040
6036
  */
6041
6037
  getMerchantAssets: (_a, params) => {
6042
6038
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6043
6039
  if (params === void 0) { params = {}; }
6044
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/assets`, method: "GET", query: query, format: "json" }, params));
6040
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6045
6041
  },
6046
6042
  /**
6047
6043
  * No description
@@ -6049,13 +6045,13 @@ class Api {
6049
6045
  * @tags Merchants
6050
6046
  * @name GetMerchantUsers
6051
6047
  * @summary Get merchant users by merchant id
6052
- * @request GET:/merchants/{merchantId}/users
6048
+ * @request GET:/api/v1/merchants/{merchantId}/users
6053
6049
  * @secure
6054
6050
  */
6055
6051
  getMerchantUsers: (_a, params) => {
6056
6052
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6057
6053
  if (params === void 0) { params = {}; }
6058
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
6054
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/users`, method: "GET", query: query, secure: true, format: "json" }, params));
6059
6055
  },
6060
6056
  /**
6061
6057
  * No description
@@ -6063,13 +6059,13 @@ class Api {
6063
6059
  * @tags Merchants
6064
6060
  * @name GetMerchantAdmins
6065
6061
  * @summary Get merchant admins by merchant id
6066
- * @request GET:/merchants/{merchantId}/admins
6062
+ * @request GET:/api/v1/merchants/{merchantId}/admins
6067
6063
  * @secure
6068
6064
  */
6069
6065
  getMerchantAdmins: (_a, params) => {
6070
6066
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6071
6067
  if (params === void 0) { params = {}; }
6072
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
6068
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins`, method: "GET", query: query, secure: true, format: "json" }, params));
6073
6069
  },
6074
6070
  /**
6075
6071
  * No description
@@ -6077,23 +6073,23 @@ class Api {
6077
6073
  * @tags Merchants
6078
6074
  * @name InviteMerchantAdmins
6079
6075
  * @summary Invite merchant admins by merchant id
6080
- * @request POST:/merchants/admins/invite
6076
+ * @request POST:/api/v1/merchants/admins/invite
6081
6077
  * @secure
6082
6078
  */
6083
- inviteMerchantAdmins: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/admins/invite`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6079
+ 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)),
6084
6080
  /**
6085
6081
  * No description
6086
6082
  *
6087
6083
  * @tags Merchants
6088
6084
  * @name RevokeMerchantAdmins
6089
6085
  * @summary Invite merchant admins by merchant id
6090
- * @request DELETE:/merchants/{merchantId}/admins/{userId}
6086
+ * @request DELETE:/api/v1/merchants/{merchantId}/admins/{userId}
6091
6087
  * @secure
6092
6088
  */
6093
6089
  revokeMerchantAdmins: (_a, params) => {
6094
6090
  var { merchantId, userId } = _a; __rest(_a, ["merchantId", "userId"]);
6095
6091
  if (params === void 0) { params = {}; }
6096
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
6092
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/admins/${userId}`, method: "DELETE", secure: true, format: "json" }, params));
6097
6093
  },
6098
6094
  /**
6099
6095
  * No description
@@ -6101,13 +6097,13 @@ class Api {
6101
6097
  * @tags Merchants
6102
6098
  * @name GetMerchantWallets
6103
6099
  * @summary Get merchant wallets by merchant id
6104
- * @request GET:/merchants/{merchantId}/wallets
6100
+ * @request GET:/api/v1/merchants/{merchantId}/wallets
6105
6101
  * @secure
6106
6102
  */
6107
6103
  getMerchantWallets: (_a, params) => {
6108
6104
  var { merchantId } = _a, query = __rest(_a, ["merchantId"]);
6109
6105
  if (params === void 0) { params = {}; }
6110
- return this.http.request(Object.assign({ path: `/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
6106
+ return this.http.request(Object.assign({ path: `/api/v1/merchants/${merchantId}/wallets`, method: "GET", query: query, secure: true, format: "json" }, params));
6111
6107
  },
6112
6108
  /**
6113
6109
  * No description
@@ -6115,70 +6111,70 @@ class Api {
6115
6111
  * @tags Merchants
6116
6112
  * @name AddMerchantWalletAssets
6117
6113
  * @summary Add assets to merchant wallets by merchant id
6118
- * @request POST:/merchants/wallets/add-assets
6114
+ * @request POST:/api/v1/merchants/wallets/add-assets
6119
6115
  * @secure
6120
6116
  */
6121
- addMerchantWalletAssets: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/wallets/add-assets`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6117
+ 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)),
6122
6118
  /**
6123
6119
  * No description
6124
6120
  *
6125
6121
  * @tags Merchants
6126
6122
  * @name AddNewAsset
6127
6123
  * @summary Add new asset to merchant based on the asset configuration
6128
- * @request POST:/merchants/assets/add
6124
+ * @request POST:/api/v1/merchants/assets/add
6129
6125
  * @secure
6130
6126
  */
6131
- addNewAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6127
+ 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)),
6132
6128
  /**
6133
6129
  * No description
6134
6130
  *
6135
6131
  * @tags Merchants
6136
6132
  * @name RemoveAsset
6137
6133
  * @summary Remove asset from merchant based on the asset configuration
6138
- * @request DELETE:/merchants/assets/delete
6134
+ * @request DELETE:/api/v1/merchants/assets/delete
6139
6135
  * @secure
6140
6136
  */
6141
- removeAsset: (data, params = {}) => this.http.request(Object.assign({ path: `/merchants/assets/delete`, method: "DELETE", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6137
+ 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)),
6142
6138
  /**
6143
6139
  * No description
6144
6140
  *
6145
6141
  * @tags Merchants
6146
6142
  * @name ShowMerchantAssetToWalletHolders
6147
6143
  * @summary Show merchant asset to wallet holders based on the asset configuration
6148
- * @request POST:/merchants/assets/update-visibility
6144
+ * @request POST:/api/v1/merchants/assets/update-visibility
6149
6145
  * @secure
6150
6146
  */
6151
- 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)),
6147
+ 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)),
6152
6148
  /**
6153
6149
  * No description
6154
6150
  *
6155
6151
  * @tags Merchants
6156
6152
  * @name ChangeMerchantAssetDefaultStatus
6157
6153
  * @summary Change merchant asset default status
6158
- * @request POST:/merchants/assets/update-default-status
6154
+ * @request POST:/api/v1/merchants/assets/update-default-status
6159
6155
  * @secure
6160
6156
  */
6161
- 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)),
6157
+ 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)),
6162
6158
  /**
6163
6159
  * No description
6164
6160
  *
6165
6161
  * @tags Merchants
6166
6162
  * @name CreateApiKey
6167
6163
  * @summary Create new API Key
6168
- * @request POST:/merchants/api-keys/new
6164
+ * @request POST:/api/v1/merchants/api-keys/new
6169
6165
  * @secure
6170
6166
  */
6171
- 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)),
6167
+ 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)),
6172
6168
  /**
6173
6169
  * No description
6174
6170
  *
6175
6171
  * @tags Merchants
6176
6172
  * @name WhitelistApiKeyOrigins
6177
6173
  * @summary Whitelist API Key's origins
6178
- * @request POST:/merchants/api-keys/whitelist-origins
6174
+ * @request POST:/api/v1/merchants/api-keys/whitelist-origins
6179
6175
  * @secure
6180
6176
  */
6181
- 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)),
6177
+ 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)),
6182
6178
  };
6183
6179
  this.wallets = {
6184
6180
  /**
@@ -6187,133 +6183,133 @@ class Api {
6187
6183
  * @tags Wallets
6188
6184
  * @name GetAllUsers
6189
6185
  * @summary Get all wallets by the admin
6190
- * @request GET:/wallets
6186
+ * @request GET:/api/v1/wallets
6191
6187
  * @secure
6192
6188
  */
6193
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6189
+ getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/wallets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6194
6190
  /**
6195
6191
  * No description
6196
6192
  *
6197
6193
  * @tags Wallets
6198
6194
  * @name CreateWallet
6199
6195
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed
6200
- * @request POST:/wallets/create
6196
+ * @request POST:/api/v1/wallets/create
6201
6197
  * @secure
6202
6198
  */
6203
- createWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6199
+ 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)),
6204
6200
  /**
6205
6201
  * No description
6206
6202
  *
6207
6203
  * @tags Wallets
6208
6204
  * @name VerifyAccess
6209
6205
  * @summary Verify that the user still has the ability to transact with the wallet
6210
- * @request POST:/wallets/verify-access
6206
+ * @request POST:/api/v1/wallets/verify-access
6211
6207
  * @secure
6212
6208
  */
6213
- verifyAccess: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/verify-access`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6209
+ 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)),
6214
6210
  /**
6215
6211
  * No description
6216
6212
  *
6217
6213
  * @tags Wallets
6218
6214
  * @name CreateAdminWallet
6219
6215
  * @summary Create a server side admin wallet where encryptedSeed will be opaque to the caller
6220
- * @request POST:/wallets/create-admin-server-wallet
6216
+ * @request POST:/api/v1/wallets/create-admin-server-wallet
6221
6217
  * @secure
6222
6218
  */
6223
- 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)),
6219
+ 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)),
6224
6220
  /**
6225
6221
  * No description
6226
6222
  *
6227
6223
  * @tags Wallets, MPC
6228
6224
  * @name CreateWalletV2
6229
6225
  * @summary Create a newly fresh wallet, returns asset list and encrypted seed, shares, or both
6230
- * @request POST:/wallets/create-with-shares
6226
+ * @request POST:/api/v1/wallets/create-with-shares
6231
6227
  * @secure
6232
6228
  */
6233
- 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)),
6229
+ 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)),
6234
6230
  /**
6235
6231
  * No description
6236
6232
  *
6237
6233
  * @tags Wallets, MPC
6238
6234
  * @name ImportWalletSeedPhraseV2
6239
6235
  * @summary Import an existing wallet seed phrase into wallaby system directly
6240
- * @request POST:/wallets/create-shares-based-wallet-from-seed
6236
+ * @request POST:/api/v1/wallets/create-shares-based-wallet-from-seed
6241
6237
  * @secure
6242
6238
  */
6243
- 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)),
6239
+ 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)),
6244
6240
  /**
6245
6241
  * No description
6246
6242
  *
6247
6243
  * @tags Wallets, MPC
6248
6244
  * @name RetrieveShares
6249
6245
  * @summary Retrieve shares which belong to the user on a specified wallet
6250
- * @request POST:/wallets/retrieve-shares
6246
+ * @request POST:/api/v1/wallets/retrieve-shares
6251
6247
  * @secure
6252
6248
  */
6253
- retrieveShares: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/retrieve-shares`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6249
+ 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)),
6254
6250
  /**
6255
6251
  * No description
6256
6252
  *
6257
6253
  * @tags Wallets, MPC
6258
6254
  * @name ShareWallet
6259
6255
  * @summary Share an entity wallet with another user
6260
- * @request POST:/wallets/initiate-share-wallet
6256
+ * @request POST:/api/v1/wallets/initiate-share-wallet
6261
6257
  * @secure
6262
6258
  */
6263
- 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)),
6259
+ 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)),
6264
6260
  /**
6265
6261
  * No description
6266
6262
  *
6267
6263
  * @tags Wallets, MPC
6268
6264
  * @name UnshareWallet
6269
6265
  * @summary Unshare an entity wallet with a user previously granted access
6270
- * @request POST:/wallets/unshare-wallet
6266
+ * @request POST:/api/v1/wallets/unshare-wallet
6271
6267
  * @secure
6272
6268
  */
6273
- unshareWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/unshare-wallet`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6269
+ 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)),
6274
6270
  /**
6275
6271
  * No description
6276
6272
  *
6277
6273
  * @tags Wallets
6278
6274
  * @name AddNewDevice
6279
6275
  * @summary This endpoint will be called by the new device after it receives a Wallaby wrapped share
6280
- * @request POST:/wallets/add-new-device
6276
+ * @request POST:/api/v1/wallets/add-new-device
6281
6277
  * @secure
6282
6278
  */
6283
- 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)),
6279
+ 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)),
6284
6280
  /**
6285
6281
  * No description
6286
6282
  *
6287
6283
  * @tags Wallets
6288
6284
  * @name ImportWalletSeedPhrase
6289
6285
  * @summary Import an existing wallet seed phrase into wallaby system directly
6290
- * @request POST:/wallets/import-seed-phrase
6286
+ * @request POST:/api/v1/wallets/import-seed-phrase
6291
6287
  * @secure
6292
6288
  */
6293
- 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)),
6289
+ 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)),
6294
6290
  /**
6295
6291
  * No description
6296
6292
  *
6297
6293
  * @tags Wallets
6298
6294
  * @name GenerateMissingAddresses
6299
6295
  * @summary Generates missing wallet addresses for a user's wallet
6300
- * @request POST:/wallets/generate-wallet-addresses
6296
+ * @request POST:/api/v1/wallets/generate-wallet-addresses
6301
6297
  * @secure
6302
6298
  */
6303
- 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)),
6299
+ 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)),
6304
6300
  /**
6305
6301
  * No description
6306
6302
  *
6307
6303
  * @tags Wallets
6308
6304
  * @name GetUserAssetsByWalletId
6309
6305
  * @summary Get all assets that exist in a certain wallet, by specifying a wallet ID
6310
- * @request GET:/wallets/{walletId}/assets
6306
+ * @request GET:/api/v1/wallets/{walletId}/assets
6311
6307
  * @secure
6312
6308
  */
6313
6309
  getUserAssetsByWalletId: (_a, params) => {
6314
6310
  var { walletId } = _a, query = __rest(_a, ["walletId"]);
6315
6311
  if (params === void 0) { params = {}; }
6316
- return this.http.request(Object.assign({ path: `/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6312
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6317
6313
  },
6318
6314
  /**
6319
6315
  * No description
@@ -6321,443 +6317,277 @@ class Api {
6321
6317
  * @tags Wallets
6322
6318
  * @name GetUserAsset
6323
6319
  * @summary Get one asset from a user's wallet
6324
- * @request GET:/wallets/asset
6320
+ * @request GET:/api/v1/wallets/asset
6325
6321
  * @secure
6326
6322
  */
6327
- 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)),
6323
+ 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)),
6328
6324
  /**
6329
6325
  * No description
6330
6326
  *
6331
6327
  * @tags Wallets
6332
6328
  * @name UpdateUserAsset
6333
6329
  * @summary Update a specific asset in a wallet
6334
- * @request PUT:/wallets/asset/update
6330
+ * @request PUT:/api/v1/wallets/asset/update
6335
6331
  * @secure
6336
6332
  */
6337
- 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)),
6333
+ 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)),
6338
6334
  /**
6339
6335
  * No description
6340
6336
  *
6341
6337
  * @tags Wallets, Multisig
6342
6338
  * @name CreateMultisigAsset
6343
6339
  * @summary Initiate creation for a new multisig asset, by specifying participants and the threshold
6344
- * @request POST:/wallets/create-multisig-asset
6340
+ * @request POST:/api/v1/wallets/create-multisig-asset
6345
6341
  * @secure
6346
6342
  */
6347
- 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)),
6343
+ 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)),
6348
6344
  /**
6349
6345
  * No description
6350
6346
  *
6351
6347
  * @tags Wallets, Recovery
6352
6348
  * @name InitiateWalletRecovery
6353
6349
  * @summary Wallet Recovery - Step 1: Initiate wallet recovery
6354
- * @request POST:/wallets/recover/init
6350
+ * @request POST:/api/v1/wallets/recover/init
6355
6351
  * @secure
6356
6352
  */
6357
- initiateWalletRecovery: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover/init`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6353
+ 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)),
6358
6354
  /**
6359
6355
  * No description
6360
6356
  *
6361
6357
  * @tags Wallets, Recovery
6362
6358
  * @name RecoverWallet
6363
6359
  * @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
6364
- * @request POST:/wallets/recover
6360
+ * @request POST:/api/v1/wallets/recover
6365
6361
  * @secure
6366
6362
  */
6367
- recoverWallet: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/recover`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6363
+ 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)),
6368
6364
  /**
6369
6365
  * No description
6370
6366
  *
6371
6367
  * @tags Wallets, Algorand
6372
6368
  * @name ConvertStandardPhraseToAlgoSpecific
6373
6369
  * @summary Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
6374
- * @request POST:/wallets/convert-mnemonic-seed
6375
- * @secure
6376
- */
6377
- convertStandardPhraseToAlgoSpecific: (data, params = {}) => this.http.request(Object.assign({ path: `/wallets/convert-mnemonic-seed`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6378
- };
6379
- this.users = {
6380
- /**
6381
- * No description
6382
- *
6383
- * @tags Users
6384
- * @name GetAllUsers
6385
- * @summary Get all users by the admin
6386
- * @request GET:/users
6387
- * @secure
6388
- */
6389
- getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6390
- /**
6391
- * No description
6392
- *
6393
- * @tags Users
6394
- * @name UpdateProfile
6395
- * @summary Update user profile info
6396
- * @request PUT:/users/profile
6397
- * @secure
6398
- */
6399
- updateProfile: (data, params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "PUT", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6400
- /**
6401
- * No description
6402
- *
6403
- * @tags Users
6404
- * @name GetCurrentUser
6405
- * @summary Returns current user data
6406
- * @request GET:/users/profile
6407
- * @secure
6408
- */
6409
- getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6410
- /**
6411
- * No description
6412
- *
6413
- * @tags Users
6414
- * @name GetCurrentUserSalt
6415
- * @summary Get current user's client salt
6416
- * @request GET:/users/salt
6370
+ * @request POST:/api/v1/wallets/convert-mnemonic-seed
6417
6371
  * @secure
6418
6372
  */
6419
- getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6373
+ 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)),
6420
6374
  /**
6421
6375
  * No description
6422
6376
  *
6423
- * @tags Users
6424
- * @name GetAllWalletsFromUserId
6425
- * @summary Returns user wallets by specifying user id
6426
- * @request GET:/users/{userId}/wallets
6377
+ * @tags Wallets, Swaps
6378
+ * @name RequestSwapQuote
6379
+ * @summary Request a swap quote for exchanging assets
6380
+ * @request POST:/api/v1/wallets/{walletId}/swap/quote
6427
6381
  * @secure
6428
6382
  */
6429
- getAllWalletsFromUserId: (_a, params) => {
6430
- var { userId } = _a; __rest(_a, ["userId"]);
6383
+ requestSwapQuote: (_a, data, params) => {
6384
+ var { walletId } = _a; __rest(_a, ["walletId"]);
6431
6385
  if (params === void 0) { params = {}; }
6432
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6386
+ 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));
6433
6387
  },
6434
6388
  /**
6435
6389
  * No description
6436
6390
  *
6437
- * @tags Users
6438
- * @name GetCurrentUserMerchantAssets
6439
- * @summary Returns user's merchant assets
6440
- * @request GET:/users/merchants/assets
6441
- * @secure
6442
- */
6443
- getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6444
- /**
6445
- * No description
6446
- *
6447
- * @tags Users
6448
- * @name GetCurrentUserMerchantAssets2
6449
- * @summary Returns user's merchant assets
6450
- * @request GET:/users/merchant/assets
6451
- * @originalName getCurrentUserMerchantAssets
6452
- * @duplicate
6453
- * @secure
6454
- */
6455
- getCurrentUserMerchantAssets2: (query, params = {}) => this.http.request(Object.assign({ path: `/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6456
- /**
6457
- * No description
6458
- *
6459
- * @tags Users
6460
- * @name GetAssetsByUserId
6461
- * @summary Returns user assets by specifying user id
6462
- * @request GET:/users/{userId}/assets
6463
- * @secure
6464
- */
6465
- getAssetsByUserId: (_a, params) => {
6466
- var { userId } = _a, query = __rest(_a, ["userId"]);
6467
- if (params === void 0) { params = {}; }
6468
- return this.http.request(Object.assign({ path: `/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6469
- },
6470
- /**
6471
- * No description
6472
- *
6473
- * @tags Users
6474
- * @name AddAssetToUser
6475
- * @summary Add a new asset to the user's wallet based on the asset configuration
6476
- * @request POST:/users/assets/add
6477
- * @secure
6478
- */
6479
- addAssetToUser: (data, params = {}) => this.http.request(Object.assign({ path: `/users/assets/add`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6480
- /**
6481
- * No description
6482
- *
6483
- * @tags Users
6484
- * @name RemoveAssetFromUser
6485
- * @summary Remove an asset from the user's wallet based on the asset configuration
6486
- * @request DELETE:/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6391
+ * @tags Wallets, Swaps
6392
+ * @name GetSwapHistory
6393
+ * @summary Get swap history for a wallet
6394
+ * @request GET:/api/v1/wallets/{walletId}/swaps
6487
6395
  * @secure
6488
6396
  */
6489
- removeAssetFromUser: (_a, params) => {
6490
- var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6491
- if (params === void 0) { params = {}; }
6492
- return this.http.request(Object.assign({ path: `/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6493
- },
6494
- /**
6495
- * No description
6496
- *
6497
- * @tags Users
6498
- * @name GetUserByUserId
6499
- * @summary Returns user public data
6500
- * @request GET:/users/{userId}
6501
- * @secure
6502
- */
6503
- getUserByUserId: (_a, params) => {
6504
- var { userId } = _a; __rest(_a, ["userId"]);
6505
- if (params === void 0) { params = {}; }
6506
- return this.http.request(Object.assign({ path: `/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6507
- },
6508
- /**
6509
- * No description
6510
- *
6511
- * @tags Users
6512
- * @name GetUserByExternalUserId
6513
- * @request GET:/users/{externalUserId}/externalUserId
6514
- * @secure
6515
- */
6516
- getUserByExternalUserId: (_a, params) => {
6517
- var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6397
+ getSwapHistory: (_a, params) => {
6398
+ var { walletId } = _a, query = __rest(_a, ["walletId"]);
6518
6399
  if (params === void 0) { params = {}; }
6519
- return this.http.request(Object.assign({ path: `/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6400
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps`, method: "GET", query: query, secure: true, format: "json" }, params));
6520
6401
  },
6521
6402
  /**
6522
6403
  * No description
6523
6404
  *
6524
- * @tags Users
6525
- * @name GetParticipantsByUserId
6526
- * @summary Returns multisig participants by user id
6527
- * @request GET:/users/{userId}/multisig-transactions
6405
+ * @tags Wallets, Swaps
6406
+ * @name GetSwapById
6407
+ * @summary Get a specific swap by ID
6408
+ * @request GET:/api/v1/wallets/{walletId}/swaps/{swapId}
6528
6409
  * @secure
6529
6410
  */
6530
- getParticipantsByUserId: (_a, params) => {
6531
- var { userId } = _a, query = __rest(_a, ["userId"]);
6411
+ getSwapById: (_a, params) => {
6412
+ var { walletId, swapId } = _a; __rest(_a, ["walletId", "swapId"]);
6532
6413
  if (params === void 0) { params = {}; }
6533
- return this.http.request(Object.assign({ path: `/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6414
+ return this.http.request(Object.assign({ path: `/api/v1/wallets/${walletId}/swaps/${swapId}`, method: "GET", secure: true, format: "json" }, params));
6534
6415
  },
6535
6416
  };
6536
- this.query = {
6537
- /**
6538
- * No description
6539
- *
6540
- * @tags Query
6541
- * @name FetchBalance
6542
- * @summary Fetch asset balance by specifying the asset address and the asset symbol
6543
- * @request GET:/query/assets/balance
6544
- * @secure
6545
- */
6546
- fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6547
- /**
6548
- * No description
6549
- *
6550
- * @tags Query
6551
- * @name FetchOnlyBalance
6552
- * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6553
- * @request GET:/query/address/balance
6554
- * @secure
6555
- */
6556
- fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6557
- /**
6558
- * No description
6559
- *
6560
- * @tags Query
6561
- * @name FetchBulkBalance
6562
- * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6563
- * @request POST:/query/assets/bulk-balance
6564
- * @secure
6565
- */
6566
- 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)),
6567
- /**
6568
- * No description
6569
- *
6570
- * @tags Query
6571
- * @name FetchWalletBulkBalance
6572
- * @summary Fetch assets balances by specifying the wallet ID
6573
- * @request POST:/query/assets/wallet-bulk-balance
6574
- * @secure
6575
- */
6576
- 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)),
6577
- /**
6578
- * No description
6579
- *
6580
- * @tags Query
6581
- * @name FetchTransactions
6582
- * @summary Fetch the current address historical transactions
6583
- * @request GET:/query/transactions
6584
- */
6585
- fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/query/transactions`, method: "GET", query: query, format: "json" }, params)),
6417
+ this.transactions = {
6586
6418
  /**
6587
6419
  * No description
6588
6420
  *
6589
- * @tags Query, Assets
6590
- * @name FetchEvmTokenAssetInfo
6591
- * @summary Request token asset info like decimals, name and symbol
6592
- * @request GET:/query/fetch-token-info
6421
+ * @tags Transactions
6422
+ * @name GetTransactions
6423
+ * @summary Get list of transactions
6424
+ * @request GET:/api/v1/transactions
6593
6425
  * @secure
6594
6426
  */
6595
- fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6427
+ getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6596
6428
  /**
6597
6429
  * No description
6598
6430
  *
6599
- * @tags Query, Assets
6600
- * @name FetchAssetPairPrice
6601
- * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6602
- * @request GET:/query/get-asset-price
6431
+ * @tags Transactions
6432
+ * @name GetPendingTransactions
6433
+ * @summary Get list of pending transactions
6434
+ * @request GET:/api/v1/transactions/pending
6603
6435
  * @secure
6604
6436
  */
6605
- fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6606
- };
6607
- this.transactions = {
6437
+ getPendingTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/pending`, method: "GET", query: query, secure: true, format: "json" }, params)),
6608
6438
  /**
6609
6439
  * No description
6610
6440
  *
6611
6441
  * @tags Transactions
6612
- * @name GetTransactions
6613
- * @summary Get list of transactions
6614
- * @request GET:/transactions
6442
+ * @name ResolvePendingTransaction
6443
+ * @summary Approve or reject a pending transaction
6444
+ * @request POST:/api/v1/transactions/resolve
6615
6445
  * @secure
6616
6446
  */
6617
- getTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6447
+ 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)),
6618
6448
  /**
6619
6449
  * No description
6620
6450
  *
6621
6451
  * @tags Transactions
6622
6452
  * @name SendTransaction
6623
6453
  * @summary Request transferring funds to a recipient address
6624
- * @request POST:/transactions/transfer
6454
+ * @request POST:/api/v1/transactions/transfer
6625
6455
  * @secure
6626
6456
  */
6627
- sendTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6457
+ 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)),
6628
6458
  /**
6629
6459
  * No description
6630
6460
  *
6631
6461
  * @tags Transactions
6632
6462
  * @name SendV2Transaction
6633
6463
  * @summary Request transferring funds to a recipient address
6634
- * @request POST:/transactions/transfer-with-shares
6464
+ * @request POST:/api/v1/transactions/transfer-with-shares
6635
6465
  * @secure
6636
6466
  */
6637
- 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)),
6467
+ 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)),
6638
6468
  /**
6639
6469
  * No description
6640
6470
  *
6641
6471
  * @tags Transactions
6642
6472
  * @name InitMultisigTransfer
6643
6473
  * @summary User initiating and signing a multi-sig transfer request
6644
- * @request POST:/transactions/init-multisig-transfer
6474
+ * @request POST:/api/v1/transactions/init-multisig-transfer
6645
6475
  * @secure
6646
6476
  */
6647
- initMultisigTransfer: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-transfer`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6477
+ 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)),
6648
6478
  /**
6649
6479
  * No description
6650
6480
  *
6651
6481
  * @tags Transactions, Multisig
6652
6482
  * @name InitMultisigAssetOptin
6653
6483
  * @summary User initiating a multi-sig asset optin request and subsequently signs the first signature on the request
6654
- * @request POST:/transactions/init-multisig-asset-optin
6484
+ * @request POST:/api/v1/transactions/init-multisig-asset-optin
6655
6485
  * @secure
6656
6486
  */
6657
- initMultisigAssetOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6487
+ 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)),
6658
6488
  /**
6659
6489
  * No description
6660
6490
  *
6661
6491
  * @tags Transactions, Multisig
6662
6492
  * @name InitMultisigAppOptin
6663
6493
  * @summary User initiating a multi-sig app optin request and subsequently signs the first signature on the request
6664
- * @request POST:/transactions/init-multisig-app-optin
6494
+ * @request POST:/api/v1/transactions/init-multisig-app-optin
6665
6495
  * @secure
6666
6496
  */
6667
- initMultisigAppOptin: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/init-multisig-app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6497
+ 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)),
6668
6498
  /**
6669
6499
  * No description
6670
6500
  *
6671
6501
  * @tags Transactions, Multisig
6672
6502
  * @name SignOnMultisigTransactionRequest
6673
6503
  * @summary Append signature to an existing multisig transaction request: It can be a request to transfer, optin, etc, ...
6674
- * @request POST:/transactions/sign-multisig-request
6504
+ * @request POST:/api/v1/transactions/sign-multisig-request
6675
6505
  * @secure
6676
6506
  */
6677
- signOnMultisigTransactionRequest: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/sign-multisig-request`, method: "POST", body: data, secure: true, type: ContentType.Json }, params)),
6507
+ 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)),
6678
6508
  /**
6679
6509
  * No description
6680
6510
  *
6681
6511
  * @tags Transactions, Optin
6682
6512
  * @name AssetOptInTransaction
6683
6513
  * @summary Transaction for optin to receive a specific asset in the future
6684
- * @request POST:/transactions/asset-optin
6514
+ * @request POST:/api/v1/transactions/asset-optin
6685
6515
  * @secure
6686
6516
  */
6687
- assetOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/asset-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6517
+ 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)),
6688
6518
  /**
6689
6519
  * No description
6690
6520
  *
6691
6521
  * @tags Transactions, Optin
6692
6522
  * @name AppOptInTransaction
6693
6523
  * @summary Transaction for optin to interact with a specific app
6694
- * @request POST:/transactions/app-optin
6524
+ * @request POST:/api/v1/transactions/app-optin
6695
6525
  * @secure
6696
6526
  */
6697
- appOptInTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/app-optin`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6527
+ 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)),
6698
6528
  /**
6699
6529
  * No description
6700
6530
  *
6701
6531
  * @tags Transactions
6702
6532
  * @name GetEstimateFee
6703
6533
  * @summary Request fee estimate for a particular transaction
6704
- * @request GET:/transactions/estimate-fee
6534
+ * @request GET:/api/v1/transactions/estimate-fee
6705
6535
  * @secure
6706
6536
  */
6707
- getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6537
+ getEstimateFee: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/estimate-fee`, method: "GET", query: query, secure: true, format: "json" }, params)),
6708
6538
  /**
6709
6539
  * @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
6710
6540
  *
6711
6541
  * @tags Transactions, Raw, Transactions
6712
6542
  * @name SignAndBroadcastRawTx
6713
6543
  * @summary Sign and broadcast raw transaction API
6714
- * @request POST:/transactions/sign-broadcast-rawtx
6544
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
6715
6545
  * @secure
6716
6546
  */
6717
- 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)),
6547
+ 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)),
6718
6548
  /**
6719
6549
  * No description
6720
6550
  *
6721
6551
  * @tags Transactions, Query
6722
6552
  * @name FetchTransactionByHashOrReference
6723
6553
  * @summary Fetch transaction status data using a reference or transaction hash
6724
- * @request GET:/transactions/status
6554
+ * @request GET:/api/v1/transactions/status
6725
6555
  * @secure
6726
6556
  */
6727
- fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6557
+ fetchTransactionByHashOrReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6728
6558
  /**
6729
6559
  * No description
6730
6560
  *
6731
6561
  * @tags Transactions, Transactions, Multisig, Raw
6732
6562
  * @name InitMultisigRawTransaction
6733
6563
  * @summary Initiate a multisig raw transaction and sign the first signature on that same transaction
6734
- * @request POST:/transactions/init-sign-broadcast-multisig-rawtx
6564
+ * @request POST:/api/v1/transactions/init-sign-broadcast-multisig-rawtx
6735
6565
  * @secure
6736
6566
  */
6737
- 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)),
6567
+ 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)),
6738
6568
  /**
6739
6569
  * No description
6740
6570
  *
6741
6571
  * @tags Transactions, Query
6742
6572
  * @name GetDetailedRawTransactionDataByReference
6743
6573
  * @summary Fetch transaction in raw data format from the system persistence
6744
- * @request GET:/transactions/raw-status
6574
+ * @request GET:/api/v1/transactions/raw-status
6745
6575
  * @secure
6746
6576
  */
6747
- getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6577
+ getDetailedRawTransactionDataByReference: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/raw-status`, method: "GET", query: query, secure: true, format: "json" }, params)),
6748
6578
  /**
6749
6579
  * No description
6750
6580
  *
6751
6581
  * @tags Transactions, Query
6752
6582
  * @name FetchTransactionParticipants
6753
6583
  * @summary Fetch transaction's participants
6754
- * @request GET:/transactions/{reference}/participants
6584
+ * @request GET:/api/v1/transactions/{reference}/participants
6755
6585
  * @secure
6756
6586
  */
6757
6587
  fetchTransactionParticipants: (_a, params) => {
6758
6588
  var { reference } = _a; __rest(_a, ["reference"]);
6759
6589
  if (params === void 0) { params = {}; }
6760
- return this.http.request(Object.assign({ path: `/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6590
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/${reference}/participants`, method: "GET", secure: true, format: "json" }, params));
6761
6591
  },
6762
6592
  /**
6763
6593
  * No description
@@ -6765,50 +6595,122 @@ class Api {
6765
6595
  * @tags Transactions, Transactions, ERC1404
6766
6596
  * @name DetectTransferRestriction
6767
6597
  * @summary Request to detect whether there is a transfer restriction on a particular transaction
6768
- * @request GET:/transactions/detect-transfers-restrictions
6598
+ * @request GET:/api/v1/transactions/detect-transfers-restrictions
6769
6599
  * @secure
6770
6600
  */
6771
- detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6601
+ detectTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/detect-transfers-restrictions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6772
6602
  /**
6773
6603
  * No description
6774
6604
  *
6775
6605
  * @tags Transactions, Transactions, ERC1404
6776
6606
  * @name FetchMessageForTransferRestriction
6777
6607
  * @summary Request restriction message by providing a restriction code
6778
- * @request GET:/transactions/transfer-restriction-message
6608
+ * @request GET:/api/v1/transactions/transfer-restriction-message
6779
6609
  * @secure
6780
6610
  */
6781
- fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6611
+ fetchMessageForTransferRestriction: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/transfer-restriction-message`, method: "GET", query: query, secure: true, format: "json" }, params)),
6782
6612
  /**
6783
6613
  * No description
6784
6614
  *
6785
6615
  * @tags Transactions, Optin
6786
6616
  * @name CheckAssetOptinForAddress
6787
6617
  * @summary Get the list of all assets that the current account has opted into. This is only relevant for the Algorand chain
6788
- * @request GET:/transactions/check-asset-optin
6618
+ * @request GET:/api/v1/transactions/check-asset-optin
6789
6619
  * @secure
6790
6620
  */
6791
- checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6621
+ checkAssetOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-asset-optin`, method: "GET", query: query, secure: true }, params)),
6792
6622
  /**
6793
6623
  * No description
6794
6624
  *
6795
6625
  * @tags Transactions, Optin
6796
6626
  * @name CheckAppOptinForAddress
6797
6627
  * @summary Get the list of all apps that the current account has opted into. This is only relevant for the Algorand chain
6798
- * @request GET:/transactions/check-app-optin
6628
+ * @request GET:/api/v1/transactions/check-app-optin
6799
6629
  * @secure
6800
6630
  */
6801
- checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6631
+ checkAppOptinForAddress: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/check-app-optin`, method: "GET", query: query, secure: true }, params)),
6802
6632
  /**
6803
6633
  * No description
6804
6634
  *
6805
6635
  * @tags Transactions, Allowance, Transaction
6806
6636
  * @name CreateAllowanceTransaction
6807
6637
  * @summary Create an allowance for others to spend on your behalf
6808
- * @request POST:/transactions/create-allowance
6638
+ * @request POST:/api/v1/transactions/create-allowance
6639
+ * @secure
6640
+ */
6641
+ 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)),
6642
+ };
6643
+ this.query = {
6644
+ /**
6645
+ * No description
6646
+ *
6647
+ * @tags Query
6648
+ * @name FetchBalance
6649
+ * @summary Fetch asset balance by specifying the asset address and the asset symbol
6650
+ * @request GET:/api/v1/query/assets/balance
6651
+ * @secure
6652
+ */
6653
+ fetchBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/assets/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6654
+ /**
6655
+ * No description
6656
+ *
6657
+ * @tags Query
6658
+ * @name FetchOnlyBalance
6659
+ * @summary Fetch address balance by specifying the address and the asset symbol. This API works even for external assets addresses
6660
+ * @request GET:/api/v1/query/address/balance
6809
6661
  * @secure
6810
6662
  */
6811
- createAllowanceTransaction: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/create-allowance`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6663
+ fetchOnlyBalance: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/address/balance`, method: "GET", query: query, secure: true, format: "json" }, params)),
6664
+ /**
6665
+ * No description
6666
+ *
6667
+ * @tags Query
6668
+ * @name FetchBulkBalance
6669
+ * @summary Fetch assets' balance by providing an array of asset addresses and symbols
6670
+ * @request POST:/api/v1/query/assets/bulk-balance
6671
+ * @secure
6672
+ */
6673
+ 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)),
6674
+ /**
6675
+ * No description
6676
+ *
6677
+ * @tags Query
6678
+ * @name FetchWalletBulkBalance
6679
+ * @summary Fetch assets balances by specifying the wallet ID
6680
+ * @request POST:/api/v1/query/assets/wallet-bulk-balance
6681
+ * @secure
6682
+ */
6683
+ 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)),
6684
+ /**
6685
+ * No description
6686
+ *
6687
+ * @tags Query
6688
+ * @name FetchTransactions
6689
+ * @summary Fetch the current address historical transactions
6690
+ * @request GET:/api/v1/query/transactions
6691
+ * @secure
6692
+ */
6693
+ fetchTransactions: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/transactions`, method: "GET", query: query, secure: true, format: "json" }, params)),
6694
+ /**
6695
+ * No description
6696
+ *
6697
+ * @tags Query, Assets
6698
+ * @name FetchEvmTokenAssetInfo
6699
+ * @summary Request token asset info like decimals, name and symbol
6700
+ * @request GET:/api/v1/query/fetch-token-info
6701
+ * @secure
6702
+ */
6703
+ fetchEvmTokenAssetInfo: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/fetch-token-info`, method: "GET", query: query, secure: true, format: "json" }, params)),
6704
+ /**
6705
+ * No description
6706
+ *
6707
+ * @tags Query, Assets
6708
+ * @name FetchAssetPairPrice
6709
+ * @summary Fetch asset price by providing symbol pairing or a list of pairing symbols
6710
+ * @request GET:/api/v1/query/get-asset-price
6711
+ * @secure
6712
+ */
6713
+ fetchAssetPairPrice: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/query/get-asset-price`, method: "GET", query: query, secure: true, format: "json" }, params)),
6812
6714
  };
6813
6715
  this.mpc = {
6814
6716
  /**
@@ -6817,27 +6719,187 @@ class Api {
6817
6719
  * @tags Mpc
6818
6720
  * @name InitKeyExchange
6819
6721
  * @summary Initialize key exchange process, the keys exchanged will be later used for encryption/decryption of the payloads exchanged
6820
- * @request POST:/mpc/init-key-exchange
6722
+ * @request POST:/api/v1/mpc/init-key-exchange
6723
+ * @secure
6821
6724
  */
6822
- initKeyExchange: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/init-key-exchange`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6725
+ 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)),
6823
6726
  /**
6824
6727
  * No description
6825
6728
  *
6826
6729
  * @tags Mpc
6827
6730
  * @name RequestSeedphraseSplit
6828
6731
  * @summary Request seed phrase split and return shares that can be used later for recovery
6829
- * @request POST:/mpc/request-seed-split
6732
+ * @request POST:/api/v1/mpc/request-seed-split
6733
+ * @secure
6830
6734
  */
6831
- requestSeedphraseSplit: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/request-seed-split`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6735
+ 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)),
6832
6736
  /**
6833
6737
  * No description
6834
6738
  *
6835
6739
  * @tags Mpc
6836
6740
  * @name ReconstructSeedPhrase
6837
6741
  * @summary Pass encrypted shares and return reconstructed encrypted seed phrase
6838
- * @request POST:/mpc/reconstruct-seed-phrase
6742
+ * @request POST:/api/v1/mpc/reconstruct-seed-phrase
6743
+ * @secure
6839
6744
  */
6840
- reconstructSeedPhrase: (data, params = {}) => this.http.request(Object.assign({ path: `/mpc/reconstruct-seed-phrase`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
6745
+ 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)),
6746
+ };
6747
+ this.users = {
6748
+ /**
6749
+ * No description
6750
+ *
6751
+ * @tags Users
6752
+ * @name GetAllUsers
6753
+ * @summary Get all users by the admin
6754
+ * @request GET:/api/v1/users
6755
+ * @secure
6756
+ */
6757
+ getAllUsers: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users`, method: "GET", query: query, secure: true, format: "json" }, params)),
6758
+ /**
6759
+ * No description
6760
+ *
6761
+ * @tags Users
6762
+ * @name UpdateProfile
6763
+ * @summary Update user profile info
6764
+ * @request PUT:/api/v1/users/profile
6765
+ * @secure
6766
+ */
6767
+ 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)),
6768
+ /**
6769
+ * No description
6770
+ *
6771
+ * @tags Users
6772
+ * @name GetCurrentUser
6773
+ * @summary Returns current user data
6774
+ * @request GET:/api/v1/users/profile
6775
+ * @secure
6776
+ */
6777
+ getCurrentUser: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/profile`, method: "GET", secure: true, format: "json" }, params)),
6778
+ /**
6779
+ * No description
6780
+ *
6781
+ * @tags Users
6782
+ * @name GetCurrentUserSalt
6783
+ * @summary Get current user's client salt
6784
+ * @request GET:/api/v1/users/salt
6785
+ * @secure
6786
+ */
6787
+ getCurrentUserSalt: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/salt`, method: "GET", secure: true, format: "json" }, params)),
6788
+ /**
6789
+ * No description
6790
+ *
6791
+ * @tags Users
6792
+ * @name GetAllWalletsFromUserId
6793
+ * @summary Returns user wallets by specifying user id
6794
+ * @request GET:/api/v1/users/{userId}/wallets
6795
+ * @secure
6796
+ */
6797
+ getAllWalletsFromUserId: (_a, params) => {
6798
+ var { userId } = _a; __rest(_a, ["userId"]);
6799
+ if (params === void 0) { params = {}; }
6800
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets`, method: "GET", secure: true, format: "json" }, params));
6801
+ },
6802
+ /**
6803
+ * No description
6804
+ *
6805
+ * @tags Users
6806
+ * @name GetCurrentUserMerchantAssets
6807
+ * @summary Returns user's merchant assets
6808
+ * @request GET:/api/v1/users/merchants/assets
6809
+ * @secure
6810
+ */
6811
+ getCurrentUserMerchantAssets: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchants/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6812
+ /**
6813
+ * No description
6814
+ *
6815
+ * @tags Users
6816
+ * @name GetCurrentUserMerchantAssets2
6817
+ * @summary Returns user's merchant assets
6818
+ * @request GET:/api/v1/users/merchant/assets
6819
+ * @originalName getCurrentUserMerchantAssets
6820
+ * @duplicate
6821
+ * @secure
6822
+ */
6823
+ getCurrentUserMerchantAssets2: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users/merchant/assets`, method: "GET", query: query, secure: true, format: "json" }, params)),
6824
+ /**
6825
+ * No description
6826
+ *
6827
+ * @tags Users
6828
+ * @name GetAssetsByUserId
6829
+ * @summary Returns user assets by specifying user id
6830
+ * @request GET:/api/v1/users/{userId}/assets
6831
+ * @secure
6832
+ */
6833
+ getAssetsByUserId: (_a, params) => {
6834
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6835
+ if (params === void 0) { params = {}; }
6836
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/assets`, method: "GET", query: query, secure: true, format: "json" }, params));
6837
+ },
6838
+ /**
6839
+ * No description
6840
+ *
6841
+ * @tags Users
6842
+ * @name AddAssetToUser
6843
+ * @summary Add a new asset to the user's wallet based on the asset configuration
6844
+ * @request POST:/api/v1/users/assets/add
6845
+ * @secure
6846
+ */
6847
+ 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)),
6848
+ /**
6849
+ * No description
6850
+ *
6851
+ * @tags Users
6852
+ * @name RemoveAssetFromUser
6853
+ * @summary Remove an asset from the user's wallet based on the asset configuration
6854
+ * @request DELETE:/api/v1/users/{userId}/wallets/{walletId}/assets/{assetConfigId}
6855
+ * @secure
6856
+ */
6857
+ removeAssetFromUser: (_a, params) => {
6858
+ var { assetConfigId, walletId, userId } = _a; __rest(_a, ["assetConfigId", "walletId", "userId"]);
6859
+ if (params === void 0) { params = {}; }
6860
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/wallets/${walletId}/assets/${assetConfigId}`, method: "DELETE", secure: true, format: "json" }, params));
6861
+ },
6862
+ /**
6863
+ * No description
6864
+ *
6865
+ * @tags Users
6866
+ * @name GetUserByUserId
6867
+ * @summary Returns user public data
6868
+ * @request GET:/api/v1/users/{userId}
6869
+ * @secure
6870
+ */
6871
+ getUserByUserId: (_a, params) => {
6872
+ var { userId } = _a; __rest(_a, ["userId"]);
6873
+ if (params === void 0) { params = {}; }
6874
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}`, method: "GET", secure: true, format: "json" }, params));
6875
+ },
6876
+ /**
6877
+ * No description
6878
+ *
6879
+ * @tags Users
6880
+ * @name GetUserByExternalUserId
6881
+ * @request GET:/api/v1/users/{externalUserId}/externalUserId
6882
+ * @secure
6883
+ */
6884
+ getUserByExternalUserId: (_a, params) => {
6885
+ var { externalUserId } = _a; __rest(_a, ["externalUserId"]);
6886
+ if (params === void 0) { params = {}; }
6887
+ return this.http.request(Object.assign({ path: `/api/v1/users/${externalUserId}/externalUserId`, method: "GET", secure: true, format: "json" }, params));
6888
+ },
6889
+ /**
6890
+ * No description
6891
+ *
6892
+ * @tags Users
6893
+ * @name GetParticipantsByUserId
6894
+ * @summary Returns multisig participants by user id
6895
+ * @request GET:/api/v1/users/{userId}/multisig-transactions
6896
+ * @secure
6897
+ */
6898
+ getParticipantsByUserId: (_a, params) => {
6899
+ var { userId } = _a, query = __rest(_a, ["userId"]);
6900
+ if (params === void 0) { params = {}; }
6901
+ return this.http.request(Object.assign({ path: `/api/v1/users/${userId}/multisig-transactions`, method: "GET", query: query, secure: true, format: "json" }, params));
6902
+ },
6841
6903
  };
6842
6904
  this.adminTransactions = {
6843
6905
  /**
@@ -6846,111 +6908,112 @@ class Api {
6846
6908
  * @tags Admin-Transactions
6847
6909
  * @name CreateReleaseSchedule
6848
6910
  * @summary Request the creation of a release schedule
6849
- * @request POST:/transactions/admin/release-schedule
6911
+ * @request POST:/api/v1/transactions/admin/release-schedule
6850
6912
  * @secure
6851
6913
  */
6852
- 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)),
6914
+ 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)),
6853
6915
  /**
6854
6916
  * No description
6855
6917
  *
6856
6918
  * @tags Admin-Transactions
6857
6919
  * @name ViewReleaseSchedule
6858
6920
  * @summary View a release schedule
6859
- * @request GET:/transactions/admin/release-schedule
6921
+ * @request GET:/api/v1/transactions/admin/release-schedule
6860
6922
  * @secure
6861
6923
  */
6862
- viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6924
+ viewReleaseSchedule: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/release-schedule`, method: "GET", query: query, secure: true, format: "json" }, params)),
6863
6925
  /**
6864
6926
  * No description
6865
6927
  *
6866
6928
  * @tags Admin-Transactions
6867
6929
  * @name Mint
6868
6930
  * @summary Request the minting of an asset to addresses either via mint release schedule or directly
6869
- * @request POST:/transactions/admin/mint
6931
+ * @request POST:/api/v1/transactions/admin/mint
6870
6932
  * @secure
6871
6933
  */
6872
- mint: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/mint`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6934
+ 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)),
6873
6935
  /**
6874
6936
  * No description
6875
6937
  *
6876
6938
  * @tags Admin-Transactions
6877
6939
  * @name Burn
6878
6940
  * @summary Request the burning of an asset to address(es) directly
6879
- * @request POST:/transactions/admin/burn
6941
+ * @request POST:/api/v1/transactions/admin/burn
6880
6942
  * @secure
6881
6943
  */
6882
- burn: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/burn`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params)),
6944
+ 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)),
6883
6945
  /**
6884
6946
  * No description
6885
6947
  *
6886
6948
  * @tags Admin-Transactions
6887
6949
  * @name ExecutePurchase
6888
6950
  * @summary Request purchase on the purchase contract
6889
- * @request POST:/transactions/admin/execute-purchase
6951
+ * @request POST:/api/v1/transactions/admin/execute-purchase
6890
6952
  * @secure
6891
6953
  */
6892
- 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)),
6954
+ 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)),
6893
6955
  /**
6894
6956
  * No description
6895
6957
  *
6896
6958
  * @tags Admin-Transactions
6897
6959
  * @name ExecutePurchaseWithInterest
6898
6960
  * @summary Request purchase with interest on the purchase contract
6899
- * @request POST:/transactions/admin/execute-purchase-with-interest
6961
+ * @request POST:/api/v1/transactions/admin/execute-purchase-with-interest
6900
6962
  * @secure
6901
6963
  */
6902
- 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)),
6964
+ 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)),
6903
6965
  /**
6904
6966
  * No description
6905
6967
  *
6906
6968
  * @tags Admin-Transactions
6907
6969
  * @name SetIdentity
6908
6970
  * @summary Set identity via the identity registry contract
6909
- * @request POST:/transactions/admin/set-identity
6971
+ * @request POST:/api/v1/transactions/admin/set-identity
6910
6972
  * @secure
6911
6973
  */
6912
- 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)),
6974
+ 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)),
6913
6975
  /**
6914
6976
  * No description
6915
6977
  *
6916
6978
  * @tags Admin-Transactions
6917
6979
  * @name ForceClaim
6918
6980
  * @summary Force claim interest via the interest payment contract
6919
- * @request POST:/transactions/admin/force-claim
6981
+ * @request POST:/api/v1/transactions/admin/force-claim
6920
6982
  * @secure
6921
6983
  */
6922
- 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)),
6984
+ 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)),
6923
6985
  /**
6924
6986
  * No description
6925
6987
  *
6926
6988
  * @tags Admin-Transactions
6927
6989
  * @name ForceClaimPrincipal
6928
6990
  * @summary Force claim principal via the interest payment contract
6929
- * @request POST:/transactions/admin/force-claim-principal
6991
+ * @request POST:/api/v1/transactions/admin/force-claim-principal
6930
6992
  * @secure
6931
6993
  */
6932
- 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)),
6994
+ 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)),
6933
6995
  /**
6934
6996
  * No description
6935
6997
  *
6936
6998
  * @tags Admin-Transactions
6937
6999
  * @name GetCallbackPublicKey
6938
- * @request GET:/transactions/admin/callback_pk
7000
+ * @request GET:/api/v1/transactions/admin/callback_pk
7001
+ * @secure
6939
7002
  */
6940
- getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback_pk`, method: "GET" }, params)),
7003
+ getCallbackPublicKey: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/transactions/admin/callback_pk`, method: "GET", secure: true }, params)),
6941
7004
  /**
6942
7005
  * No description
6943
7006
  *
6944
7007
  * @tags Admin-Transactions
6945
7008
  * @name ViewAdminTransaction
6946
7009
  * @summary View an admin transaction
6947
- * @request GET:/transactions/admin/{referenceId}
7010
+ * @request GET:/api/v1/transactions/admin/{referenceId}
6948
7011
  * @secure
6949
7012
  */
6950
7013
  viewAdminTransaction: (_a, params) => {
6951
7014
  var { referenceId } = _a; __rest(_a, ["referenceId"]);
6952
7015
  if (params === void 0) { params = {}; }
6953
- return this.http.request(Object.assign({ path: `/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
7016
+ return this.http.request(Object.assign({ path: `/api/v1/transactions/admin/${referenceId}`, method: "GET", secure: true, format: "json" }, params));
6954
7017
  },
6955
7018
  /**
6956
7019
  * No description
@@ -6958,9 +7021,30 @@ class Api {
6958
7021
  * @tags Admin-Transactions
6959
7022
  * @name UpsideCallback
6960
7023
  * @summary Upside callback for release schedule
6961
- * @request POST:/transactions/admin/callback
7024
+ * @request POST:/api/v1/transactions/admin/callback
7025
+ * @secure
7026
+ */
7027
+ 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)),
7028
+ };
7029
+ this.v1 = {
7030
+ /**
7031
+ * No description
7032
+ *
7033
+ * @name DashboardControllerGetDashboardData
7034
+ * @summary Create new merchant. This endpoint is only available for super admin and republic admin
7035
+ * @request GET:/api/v1/dashboard
7036
+ * @secure
7037
+ */
7038
+ dashboardControllerGetDashboardData: (params = {}) => this.http.request(Object.assign({ path: `/api/v1/dashboard`, method: "GET", secure: true }, params)),
7039
+ /**
7040
+ * No description
7041
+ *
7042
+ * @name GetActivitiees
7043
+ * @summary Get all activities. This endpoint is only available for super admin and republic admin
7044
+ * @request GET:/api/v1/users-activities
7045
+ * @secure
6962
7046
  */
6963
- upsideCallback: (data, params = {}) => this.http.request(Object.assign({ path: `/transactions/admin/callback`, method: "POST", body: data, type: ContentType.Json, format: "json" }, params)),
7047
+ getActivitiees: (query, params = {}) => this.http.request(Object.assign({ path: `/api/v1/users-activities`, method: "GET", query: query, secure: true }, params)),
6964
7048
  };
6965
7049
  this.http = http;
6966
7050
  }