wallaby-cash 2.2.5 → 2.3.0-alpha.1

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