@imtbl/sdk 0.27.3 → 0.27.5

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.
@@ -15410,7 +15410,7 @@ const CONTRACTS_FOR_CHAIN_ID = {
15410
15410
  multicall: '0xD17c98b38bA28c7eA1080317EB9AB2b9663BEd92',
15411
15411
  coreFactory: '0x8AC26EfCbf5D700b37A27aA00E6934e6904e7B8e',
15412
15412
  quoterV2: '0x0Afe6F5f4DC34461A801420634239FFaD50A2e44',
15413
- peripheryRouter: '0x87854A7D4b9BaC3D37f4516A1Ac7F36fB5ad539f',
15413
+ peripheryRouter: '0x5893A5c7bc615Dfd36D7383366d00FFFca5f7178',
15414
15414
  secondaryFee: '0x5893A5c7bc615Dfd36D7383366d00FFFca5f7178',
15415
15415
  },
15416
15416
  };
@@ -17077,8 +17077,6 @@ const constants = {
17077
17077
  * https://openapi-generator.tech
17078
17078
  * Do not edit the class manually.
17079
17079
  */
17080
- // Some imports not used depending on template conditions
17081
- // @ts-ignore
17082
17080
  const BASE_PATH = "https://api.sandbox.immutable.com".replace(/\/+$/, "");
17083
17081
  /**
17084
17082
  *
@@ -17106,10 +17104,10 @@ class BaseAPI {
17106
17104
  */
17107
17105
  class RequiredError extends Error {
17108
17106
  field;
17109
- name = "RequiredError";
17110
17107
  constructor(field, msg) {
17111
17108
  super(msg);
17112
17109
  this.field = field;
17110
+ this.name = "RequiredError";
17113
17111
  }
17114
17112
  }
17115
17113
 
@@ -17166,6 +17164,8 @@ const setBearerAuthToObject = async function (object, configuration) {
17166
17164
  }
17167
17165
  };
17168
17166
  function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
17167
+ if (parameter == null)
17168
+ return;
17169
17169
  if (typeof parameter === "object") {
17170
17170
  if (Array.isArray(parameter)) {
17171
17171
  parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
@@ -17218,7 +17218,7 @@ const toPathString = function (url) {
17218
17218
  */
17219
17219
  const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
17220
17220
  return (axios = globalAxios, basePath = BASE_PATH) => {
17221
- const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url };
17221
+ const axiosRequestArgs = { ...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url };
17222
17222
  return axios.request(axiosRequestArgs);
17223
17223
  };
17224
17224
  };
@@ -17397,32 +17397,22 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
17397
17397
  /**
17398
17398
  * Get a single activity by ID
17399
17399
  * @summary Get a single activity by ID
17400
- * @param {string} chainName The name of chain
17401
- * @param {string} activityId The id of activity
17400
+ * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters.
17402
17401
  * @param {*} [options] Override http request option.
17403
17402
  * @throws {RequiredError}
17404
17403
  */
17405
- getActivity(chainName, activityId, options) {
17406
- return localVarFp.getActivity(chainName, activityId, options).then((request) => request(axios, basePath));
17404
+ getActivity(requestParameters, options) {
17405
+ return localVarFp.getActivity(requestParameters.chainName, requestParameters.activityId, options).then((request) => request(axios, basePath));
17407
17406
  },
17408
17407
  /**
17409
17408
  * List all activities
17410
17409
  * @summary List all activities
17411
- * @param {string} chainName The name of chain
17412
- * @param {string} [contractAddress] The contract address of NFT or ERC20 Token
17413
- * @param {string} [tokenId] An `uint256` token id as string
17414
- * @param {string} [accountAddress] The account address activity contains
17415
- * @param {ActivityType} [activityType] The activity type
17416
- * @param {string} [fromIndexedAt] From indexed at including given date
17417
- * @param {string} [toIndexedAt] To indexed at including given date
17418
- * @param {string} [transactionHash] The transaction hash of activity
17419
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17420
- * @param {number} [pageSize] Maximum number of items to return
17410
+ * @param {ActivitiesApiListActivitiesRequest} requestParameters Request parameters.
17421
17411
  * @param {*} [options] Override http request option.
17422
17412
  * @throws {RequiredError}
17423
17413
  */
17424
- listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
17425
- return localVarFp.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17414
+ listActivities(requestParameters, options) {
17415
+ return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.fromIndexedAt, requestParameters.toIndexedAt, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
17426
17416
  },
17427
17417
  };
17428
17418
  };
@@ -17542,13 +17532,12 @@ const ChainsApiFactory = function (configuration, basePath, axios) {
17542
17532
  /**
17543
17533
  * List supported chains
17544
17534
  * @summary List supported chains
17545
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17546
- * @param {number} [pageSize] Maximum number of items to return
17535
+ * @param {ChainsApiListChainsRequest} requestParameters Request parameters.
17547
17536
  * @param {*} [options] Override http request option.
17548
17537
  * @throws {RequiredError}
17549
17538
  */
17550
- listChains(pageCursor, pageSize, options) {
17551
- return localVarFp.listChains(pageCursor, pageSize, options).then((request) => request(axios, basePath));
17539
+ listChains(requestParameters = {}, options) {
17540
+ return localVarFp.listChains(requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
17552
17541
  },
17553
17542
  };
17554
17543
  };
@@ -17827,52 +17816,42 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
17827
17816
  /**
17828
17817
  * Get collection by contract address
17829
17818
  * @summary Get collection by contract address
17830
- * @param {string} contractAddress The address contract
17831
- * @param {string} chainName The name of chain
17819
+ * @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
17832
17820
  * @param {*} [options] Override http request option.
17833
17821
  * @throws {RequiredError}
17834
17822
  */
17835
- getCollection(contractAddress, chainName, options) {
17836
- return localVarFp.getCollection(contractAddress, chainName, options).then((request) => request(axios, basePath));
17823
+ getCollection(requestParameters, options) {
17824
+ return localVarFp.getCollection(requestParameters.contractAddress, requestParameters.chainName, options).then((request) => request(axios, basePath));
17837
17825
  },
17838
17826
  /**
17839
17827
  * List all collections
17840
17828
  * @summary List all collections
17841
- * @param {string} chainName The name of chain
17842
- * @param {Array<string>} [contractAddress] List of contract addresses to filter by
17843
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17844
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17845
- * @param {number} [pageSize] Maximum number of items to return
17829
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
17846
17830
  * @param {*} [options] Override http request option.
17847
17831
  * @throws {RequiredError}
17848
17832
  */
17849
- listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
17850
- return localVarFp.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17833
+ listCollections(requestParameters, options) {
17834
+ return localVarFp.listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
17851
17835
  },
17852
17836
  /**
17853
17837
  * List collections by NFT owner account address
17854
17838
  * @summary List collections by NFT owner
17855
- * @param {string} accountAddress Account address
17856
- * @param {string} chainName The name of chain
17857
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17858
- * @param {number} [pageSize] Maximum number of items to return
17839
+ * @param {CollectionsApiListCollectionsByNFTOwnerRequest} requestParameters Request parameters.
17859
17840
  * @param {*} [options] Override http request option.
17860
17841
  * @throws {RequiredError}
17861
17842
  */
17862
- listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
17863
- return localVarFp.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17843
+ listCollectionsByNFTOwner(requestParameters, options) {
17844
+ return localVarFp.listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
17864
17845
  },
17865
17846
  /**
17866
17847
  * Refresh collection metadata
17867
17848
  * @summary Refresh collection metadata
17868
- * @param {string} contractAddress The address contract
17869
- * @param {string} chainName The name of chain
17870
- * @param {RefreshCollectionMetadataRequest} refreshCollectionMetadataRequest The request body
17849
+ * @param {CollectionsApiRefreshCollectionMetadataRequest} requestParameters Request parameters.
17871
17850
  * @param {*} [options] Override http request option.
17872
17851
  * @throws {RequiredError}
17873
17852
  */
17874
- refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options) {
17875
- return localVarFp.refreshCollectionMetadata(contractAddress, chainName, refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
17853
+ refreshCollectionMetadata(requestParameters, options) {
17854
+ return localVarFp.refreshCollectionMetadata(requestParameters.contractAddress, requestParameters.chainName, requestParameters.refreshCollectionMetadataRequest, options).then((request) => request(axios, basePath));
17876
17855
  },
17877
17856
  };
17878
17857
  };
@@ -18187,52 +18166,42 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
18187
18166
  /**
18188
18167
  * Get metadata by ID
18189
18168
  * @summary Get metadata by ID
18190
- * @param {string} chainName The name of chain
18191
- * @param {string} contractAddress The address of metadata contract
18192
- * @param {string} metadataId The id of the metadata
18169
+ * @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
18193
18170
  * @param {*} [options] Override http request option.
18194
18171
  * @throws {RequiredError}
18195
18172
  */
18196
- getMetadata(chainName, contractAddress, metadataId, options) {
18197
- return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
18173
+ getMetadata(requestParameters, options) {
18174
+ return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
18198
18175
  },
18199
18176
  /**
18200
18177
  * Get a list of metadata by from the a given contract
18201
18178
  * @summary Get a list of metadata by from the a given contract
18202
- * @param {string} chainName The name of chain
18203
- * @param {string} contractAddress The address of metadata contract
18204
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18205
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18206
- * @param {number} [pageSize] Maximum number of items to return
18179
+ * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
18207
18180
  * @param {*} [options] Override http request option.
18208
18181
  * @throws {RequiredError}
18209
18182
  */
18210
- listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
18211
- return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18183
+ listMetadata(requestParameters, options) {
18184
+ return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18212
18185
  },
18213
18186
  /**
18214
18187
  * Refresh stacked metadata
18215
18188
  * @summary Refresh stacked metadata
18216
- * @param {string} chainName The name of chain
18217
- * @param {string} contractAddress Contract address
18218
- * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
18189
+ * @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
18219
18190
  * @param {*} [options] Override http request option.
18220
18191
  * @throws {RequiredError}
18221
18192
  */
18222
- refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options) {
18223
- return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
18193
+ refreshMetadataByID(requestParameters, options) {
18194
+ return localVarFp.refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
18224
18195
  },
18225
18196
  /**
18226
18197
  * Refresh NFT metadata
18227
18198
  * @summary Refresh NFT metadata
18228
- * @param {string} contractAddress The address of contract
18229
- * @param {string} chainName The name of chain
18230
- * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
18199
+ * @param {MetadataApiRefreshNFTMetadataByTokenIDRequest} requestParameters Request parameters.
18231
18200
  * @param {*} [options] Override http request option.
18232
18201
  * @throws {RequiredError}
18233
18202
  */
18234
- refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options) {
18235
- return localVarFp.refreshNFTMetadataByTokenID(contractAddress, chainName, refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
18203
+ refreshNFTMetadataByTokenID(requestParameters, options) {
18204
+ return localVarFp.refreshNFTMetadataByTokenID(requestParameters.contractAddress, requestParameters.chainName, requestParameters.refreshNFTMetadataByTokenIDRequest, options).then((request) => request(axios, basePath));
18236
18205
  },
18237
18206
  };
18238
18207
  };
@@ -18451,30 +18420,22 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
18451
18420
  /**
18452
18421
  * List NFT owners by token ID
18453
18422
  * @summary List NFT owners by token ID
18454
- * @param {string} contractAddress The address of contract
18455
- * @param {string} tokenId An &#x60;uint256&#x60; token id as string
18456
- * @param {string} chainName The name of chain
18457
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18458
- * @param {number} [pageSize] Maximum number of items to return
18423
+ * @param {NftOwnersApiListNFTOwnersRequest} requestParameters Request parameters.
18459
18424
  * @param {*} [options] Override http request option.
18460
18425
  * @throws {RequiredError}
18461
18426
  */
18462
- listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
18463
- return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18427
+ listNFTOwners(requestParameters, options) {
18428
+ return localVarFp.listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18464
18429
  },
18465
18430
  /**
18466
18431
  * List owners by contract address
18467
18432
  * @summary List owners by contract address
18468
- * @param {string} contractAddress The address of contract
18469
- * @param {string} chainName The name of chain
18470
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18471
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18472
- * @param {number} [pageSize] Maximum number of items to return
18433
+ * @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
18473
18434
  * @param {*} [options] Override http request option.
18474
18435
  * @throws {RequiredError}
18475
18436
  */
18476
- listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18477
- return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18437
+ listOwnersByContractAddress(requestParameters, options) {
18438
+ return localVarFp.listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18478
18439
  },
18479
18440
  };
18480
18441
  };
@@ -18837,68 +18798,52 @@ const NftsApiFactory = function (configuration, basePath, axios) {
18837
18798
  /**
18838
18799
  * Get NFT by token ID
18839
18800
  * @summary Get NFT by token ID
18840
- * @param {string} contractAddress The address of NFT contract
18841
- * @param {string} tokenId An &#x60;uint256&#x60; token id as string
18842
- * @param {string} chainName The name of chain
18801
+ * @param {NftsApiGetNFTRequest} requestParameters Request parameters.
18843
18802
  * @param {*} [options] Override http request option.
18844
18803
  * @throws {RequiredError}
18845
18804
  */
18846
- getNFT(contractAddress, tokenId, chainName, options) {
18847
- return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
18805
+ getNFT(requestParameters, options) {
18806
+ return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
18848
18807
  },
18849
18808
  /**
18850
18809
  * List all NFT owners on a chain
18851
18810
  * @summary List all NFT owners
18852
- * @param {string} chainName The name of chain
18853
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
18854
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18855
- * @param {number} [pageSize] Maximum number of items to return
18811
+ * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
18856
18812
  * @param {*} [options] Override http request option.
18857
18813
  * @throws {RequiredError}
18858
18814
  */
18859
- listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18860
- return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18815
+ listAllNFTOwners(requestParameters, options) {
18816
+ return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18861
18817
  },
18862
18818
  /**
18863
18819
  * List all NFTs on a chain
18864
18820
  * @summary List all NFTs
18865
- * @param {string} chainName The name of chain
18866
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18867
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18868
- * @param {number} [pageSize] Maximum number of items to return
18821
+ * @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
18869
18822
  * @param {*} [options] Override http request option.
18870
18823
  * @throws {RequiredError}
18871
18824
  */
18872
- listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18873
- return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18825
+ listAllNFTs(requestParameters, options) {
18826
+ return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18874
18827
  },
18875
18828
  /**
18876
18829
  * List NFTs by contract address
18877
18830
  * @summary List NFTs by contract address
18878
- * @param {string} contractAddress Contract address
18879
- * @param {string} chainName The name of chain
18880
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18881
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18882
- * @param {number} [pageSize] Maximum number of items to return
18831
+ * @param {NftsApiListNFTsRequest} requestParameters Request parameters.
18883
18832
  * @param {*} [options] Override http request option.
18884
18833
  * @throws {RequiredError}
18885
18834
  */
18886
- listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18887
- return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18835
+ listNFTs(requestParameters, options) {
18836
+ return localVarFp.listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18888
18837
  },
18889
18838
  /**
18890
18839
  * List NFTs by account address
18891
18840
  * @summary List NFTs by account address
18892
- * @param {string} accountAddress Account address
18893
- * @param {string} chainName The name of chain
18894
- * @param {string} [contractAddress] The address of contract
18895
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18896
- * @param {number} [pageSize] Maximum number of items to return
18841
+ * @param {NftsApiListNFTsByAccountAddressRequest} requestParameters Request parameters.
18897
18842
  * @param {*} [options] Override http request option.
18898
18843
  * @throws {RequiredError}
18899
18844
  */
18900
- listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options) {
18901
- return localVarFp.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18845
+ listNFTsByAccountAddress(requestParameters, options) {
18846
+ return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
18902
18847
  },
18903
18848
  };
18904
18849
  };
@@ -19162,8 +19107,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
19162
19107
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19163
19108
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
19164
19109
  * @param {number} [pageSize] Maximum number of orders to return per page
19165
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
19166
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19110
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
19111
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
19167
19112
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19168
19113
  * @param {*} [options] Override http request option.
19169
19114
  * @throws {RequiredError}
@@ -19220,8 +19165,8 @@ const OrdersApiAxiosParamCreator = function (configuration) {
19220
19165
  * @param {string} chainName
19221
19166
  * @param {string} [accountAddress]
19222
19167
  * @param {number} [pageSize] Maximum number of trades to return per page
19223
- * @param {'indexed_at'} [sortBy] Trade field to sort by
19224
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19168
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
19169
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
19225
19170
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19226
19171
  * @param {*} [options] Override http request option.
19227
19172
  * @throws {RequiredError}
@@ -19341,8 +19286,8 @@ const OrdersApiFp = function (configuration) {
19341
19286
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19342
19287
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
19343
19288
  * @param {number} [pageSize] Maximum number of orders to return per page
19344
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
19345
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19289
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
19290
+ * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
19346
19291
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19347
19292
  * @param {*} [options] Override http request option.
19348
19293
  * @throws {RequiredError}
@@ -19357,8 +19302,8 @@ const OrdersApiFp = function (configuration) {
19357
19302
  * @param {string} chainName
19358
19303
  * @param {string} [accountAddress]
19359
19304
  * @param {number} [pageSize] Maximum number of trades to return per page
19360
- * @param {'indexed_at'} [sortBy] Trade field to sort by
19361
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19305
+ * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
19306
+ * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
19362
19307
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19363
19308
  * @param {*} [options] Override http request option.
19364
19309
  * @throws {RequiredError}
@@ -19379,90 +19324,72 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
19379
19324
  /**
19380
19325
  * Cancel one or more orders
19381
19326
  * @summary Cancel one or more orders
19382
- * @param {string} chainName
19383
- * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
19327
+ * @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
19384
19328
  * @param {*} [options] Override http request option.
19385
19329
  * @throws {RequiredError}
19386
19330
  */
19387
- cancelOrders(chainName, cancelOrdersRequestBody, options) {
19388
- return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
19331
+ cancelOrders(requestParameters, options) {
19332
+ return localVarFp.cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
19389
19333
  },
19390
19334
  /**
19391
19335
  * Create a listing
19392
19336
  * @summary Create a listing
19393
- * @param {string} chainName
19394
- * @param {CreateListingRequestBody} createListingRequestBody
19337
+ * @param {OrdersApiCreateListingRequest} requestParameters Request parameters.
19395
19338
  * @param {*} [options] Override http request option.
19396
19339
  * @throws {RequiredError}
19397
19340
  */
19398
- createListing(chainName, createListingRequestBody, options) {
19399
- return localVarFp.createListing(chainName, createListingRequestBody, options).then((request) => request(axios, basePath));
19341
+ createListing(requestParameters, options) {
19342
+ return localVarFp.createListing(requestParameters.chainName, requestParameters.createListingRequestBody, options).then((request) => request(axios, basePath));
19400
19343
  },
19401
19344
  /**
19402
19345
  * Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
19403
19346
  * @summary Retrieve fulfillment data for orders
19404
- * @param {string} chainName
19405
- * @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
19347
+ * @param {OrdersApiFulfillmentDataRequest} requestParameters Request parameters.
19406
19348
  * @param {*} [options] Override http request option.
19407
19349
  * @throws {RequiredError}
19408
19350
  */
19409
- fulfillmentData(chainName, fulfillmentDataRequest, options) {
19410
- return localVarFp.fulfillmentData(chainName, fulfillmentDataRequest, options).then((request) => request(axios, basePath));
19351
+ fulfillmentData(requestParameters, options) {
19352
+ return localVarFp.fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequest, options).then((request) => request(axios, basePath));
19411
19353
  },
19412
19354
  /**
19413
19355
  * Get a single listing by ID
19414
19356
  * @summary Get a single listing by ID
19415
- * @param {string} chainName
19416
- * @param {string} listingId Global Order identifier
19357
+ * @param {OrdersApiGetListingRequest} requestParameters Request parameters.
19417
19358
  * @param {*} [options] Override http request option.
19418
19359
  * @throws {RequiredError}
19419
19360
  */
19420
- getListing(chainName, listingId, options) {
19421
- return localVarFp.getListing(chainName, listingId, options).then((request) => request(axios, basePath));
19361
+ getListing(requestParameters, options) {
19362
+ return localVarFp.getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(axios, basePath));
19422
19363
  },
19423
19364
  /**
19424
19365
  * Get a single trade by ID
19425
19366
  * @summary Get a single trade by ID
19426
- * @param {string} chainName
19427
- * @param {string} tradeId Global Trade identifier
19367
+ * @param {OrdersApiGetTradeRequest} requestParameters Request parameters.
19428
19368
  * @param {*} [options] Override http request option.
19429
19369
  * @throws {RequiredError}
19430
19370
  */
19431
- getTrade(chainName, tradeId, options) {
19432
- return localVarFp.getTrade(chainName, tradeId, options).then((request) => request(axios, basePath));
19371
+ getTrade(requestParameters, options) {
19372
+ return localVarFp.getTrade(requestParameters.chainName, requestParameters.tradeId, options).then((request) => request(axios, basePath));
19433
19373
  },
19434
19374
  /**
19435
19375
  * List all listings
19436
19376
  * @summary List all listings
19437
- * @param {string} chainName
19438
- * @param {OrderStatusName} [status] Order status to filter by
19439
- * @param {string} [sellItemContractAddress] Sell item contract address to filter by
19440
- * @param {string} [buyItemContractAddress] Buy item contract address to filter by
19441
- * @param {string} [sellItemTokenId] Sell item token identifier to filter by
19442
- * @param {number} [pageSize] Maximum number of orders to return per page
19443
- * @param {'created_at' | 'updated_at' | 'buy_item_amount'} [sortBy] Order field to sort by
19444
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19445
- * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19377
+ * @param {OrdersApiListListingsRequest} requestParameters Request parameters.
19446
19378
  * @param {*} [options] Override http request option.
19447
19379
  * @throws {RequiredError}
19448
19380
  */
19449
- listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
19450
- return localVarFp.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
19381
+ listListings(requestParameters, options) {
19382
+ return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
19451
19383
  },
19452
19384
  /**
19453
19385
  * List all trades
19454
19386
  * @summary List all trades
19455
- * @param {string} chainName
19456
- * @param {string} [accountAddress]
19457
- * @param {number} [pageSize] Maximum number of trades to return per page
19458
- * @param {'indexed_at'} [sortBy] Trade field to sort by
19459
- * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
19460
- * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
19387
+ * @param {OrdersApiListTradesRequest} requestParameters Request parameters.
19461
19388
  * @param {*} [options] Override http request option.
19462
19389
  * @throws {RequiredError}
19463
19390
  */
19464
- listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
19465
- return localVarFp.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options).then((request) => request(axios, basePath));
19391
+ listTrades(requestParameters, options) {
19392
+ return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
19466
19393
  },
19467
19394
  };
19468
19395
  };
@@ -19551,6 +19478,34 @@ class OrdersApi extends BaseAPI {
19551
19478
  return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
19552
19479
  }
19553
19480
  }
19481
+ /**
19482
+ * @export
19483
+ */
19484
+ const ListListingsSortByEnum$1 = {
19485
+ CreatedAt: 'created_at',
19486
+ UpdatedAt: 'updated_at',
19487
+ BuyItemAmount: 'buy_item_amount'
19488
+ };
19489
+ /**
19490
+ * @export
19491
+ */
19492
+ const ListListingsSortDirectionEnum$1 = {
19493
+ Asc: 'asc',
19494
+ Desc: 'desc'
19495
+ };
19496
+ /**
19497
+ * @export
19498
+ */
19499
+ const ListTradesSortByEnum$1 = {
19500
+ IndexedAt: 'indexed_at'
19501
+ };
19502
+ /**
19503
+ * @export
19504
+ */
19505
+ const ListTradesSortDirectionEnum$1 = {
19506
+ Asc: 'asc',
19507
+ Desc: 'desc'
19508
+ };
19554
19509
 
19555
19510
  /* tslint:disable */
19556
19511
  /* eslint-disable */
@@ -19679,22 +19634,22 @@ const PassportApiFactory = function (configuration, basePath, axios) {
19679
19634
  /**
19680
19635
  * Create a counterfactual address for a user based on their Ethereum address
19681
19636
  * @summary Create a counterfactual address
19682
- * @param {CreateCounterfactualAddressRequest} createCounterfactualAddressRequest
19637
+ * @param {PassportApiCreateCounterfactualAddressRequest} requestParameters Request parameters.
19683
19638
  * @param {*} [options] Override http request option.
19684
19639
  * @throws {RequiredError}
19685
19640
  */
19686
- createCounterfactualAddress(createCounterfactualAddressRequest, options) {
19687
- return localVarFp.createCounterfactualAddress(createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
19641
+ createCounterfactualAddress(requestParameters, options) {
19642
+ return localVarFp.createCounterfactualAddress(requestParameters.createCounterfactualAddressRequest, options).then((request) => request(axios, basePath));
19688
19643
  },
19689
19644
  /**
19690
19645
  * Get all the Ethereum linked addresses for a user based on its userId
19691
19646
  * @summary Get Ethereum linked addresses for a user
19692
- * @param {string} userId The user\&#39;s userId
19647
+ * @param {PassportApiGetLinkedAddressesRequest} requestParameters Request parameters.
19693
19648
  * @param {*} [options] Override http request option.
19694
19649
  * @throws {RequiredError}
19695
19650
  */
19696
- getLinkedAddresses(userId, options) {
19697
- return localVarFp.getLinkedAddresses(userId, options).then((request) => request(axios, basePath));
19651
+ getLinkedAddresses(requestParameters, options) {
19652
+ return localVarFp.getLinkedAddresses(requestParameters.userId, options).then((request) => request(axios, basePath));
19698
19653
  },
19699
19654
  };
19700
19655
  };
@@ -19871,26 +19826,22 @@ const TokensApiFactory = function (configuration, basePath, axios) {
19871
19826
  /**
19872
19827
  * Get single ERC20 token
19873
19828
  * @summary Get single ERC20 token
19874
- * @param {string} contractAddress The address of contract
19875
- * @param {string} chainName The name of chain
19829
+ * @param {TokensApiGetERC20TokenRequest} requestParameters Request parameters.
19876
19830
  * @param {*} [options] Override http request option.
19877
19831
  * @throws {RequiredError}
19878
19832
  */
19879
- getERC20Token(contractAddress, chainName, options) {
19880
- return localVarFp.getERC20Token(contractAddress, chainName, options).then((request) => request(axios, basePath));
19833
+ getERC20Token(requestParameters, options) {
19834
+ return localVarFp.getERC20Token(requestParameters.contractAddress, requestParameters.chainName, options).then((request) => request(axios, basePath));
19881
19835
  },
19882
19836
  /**
19883
19837
  * List ERC20 tokens
19884
19838
  * @summary List ERC20 tokens
19885
- * @param {string} chainName The name of chain
19886
- * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
19887
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
19888
- * @param {number} [pageSize] Maximum number of items to return
19839
+ * @param {TokensApiListERC20TokensRequest} requestParameters Request parameters.
19889
19840
  * @param {*} [options] Override http request option.
19890
19841
  * @throws {RequiredError}
19891
19842
  */
19892
- listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
19893
- return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
19843
+ listERC20Tokens(requestParameters, options) {
19844
+ return localVarFp.listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
19894
19845
  },
19895
19846
  };
19896
19847
  };
@@ -20013,125 +19964,6 @@ class Configuration {
20013
19964
  }
20014
19965
  }
20015
19966
 
20016
- /* tslint:disable */
20017
- /* eslint-disable */
20018
- /**
20019
- * Immutable zkEVM API
20020
- * Immutable Multi Rollup API
20021
- *
20022
- * The version of the OpenAPI document: 1.0.0
20023
- * Contact: support@immutable.com
20024
- *
20025
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20026
- * https://openapi-generator.tech
20027
- * Do not edit the class manually.
20028
- */
20029
- const APIError400AllOfCodeEnum = {
20030
- ValidationError: 'VALIDATION_ERROR'
20031
- };
20032
-
20033
- /* tslint:disable */
20034
- /* eslint-disable */
20035
- /**
20036
- * Immutable zkEVM API
20037
- * Immutable Multi Rollup API
20038
- *
20039
- * The version of the OpenAPI document: 1.0.0
20040
- * Contact: support@immutable.com
20041
- *
20042
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20043
- * https://openapi-generator.tech
20044
- * Do not edit the class manually.
20045
- */
20046
- const APIError401AllOfCodeEnum = {
20047
- UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
20048
- };
20049
-
20050
- /* tslint:disable */
20051
- /* eslint-disable */
20052
- /**
20053
- * Immutable zkEVM API
20054
- * Immutable Multi Rollup API
20055
- *
20056
- * The version of the OpenAPI document: 1.0.0
20057
- * Contact: support@immutable.com
20058
- *
20059
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20060
- * https://openapi-generator.tech
20061
- * Do not edit the class manually.
20062
- */
20063
- const APIError403AllOfCodeEnum = {
20064
- AuthenticationError: 'AUTHENTICATION_ERROR'
20065
- };
20066
-
20067
- /* tslint:disable */
20068
- /* eslint-disable */
20069
- /**
20070
- * Immutable zkEVM API
20071
- * Immutable Multi Rollup API
20072
- *
20073
- * The version of the OpenAPI document: 1.0.0
20074
- * Contact: support@immutable.com
20075
- *
20076
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20077
- * https://openapi-generator.tech
20078
- * Do not edit the class manually.
20079
- */
20080
- const APIError404AllOfCodeEnum = {
20081
- ResourceNotFound: 'RESOURCE_NOT_FOUND'
20082
- };
20083
-
20084
- /* tslint:disable */
20085
- /* eslint-disable */
20086
- /**
20087
- * Immutable zkEVM API
20088
- * Immutable Multi Rollup API
20089
- *
20090
- * The version of the OpenAPI document: 1.0.0
20091
- * Contact: support@immutable.com
20092
- *
20093
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20094
- * https://openapi-generator.tech
20095
- * Do not edit the class manually.
20096
- */
20097
- const APIError429AllOfCodeEnum = {
20098
- TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
20099
- };
20100
-
20101
- /* tslint:disable */
20102
- /* eslint-disable */
20103
- /**
20104
- * Immutable zkEVM API
20105
- * Immutable Multi Rollup API
20106
- *
20107
- * The version of the OpenAPI document: 1.0.0
20108
- * Contact: support@immutable.com
20109
- *
20110
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20111
- * https://openapi-generator.tech
20112
- * Do not edit the class manually.
20113
- */
20114
- const APIError500AllOfCodeEnum = {
20115
- InternalServerError: 'INTERNAL_SERVER_ERROR'
20116
- };
20117
-
20118
- /* tslint:disable */
20119
- /* eslint-disable */
20120
- /**
20121
- * Immutable zkEVM API
20122
- * Immutable Multi Rollup API
20123
- *
20124
- * The version of the OpenAPI document: 1.0.0
20125
- * Contact: support@immutable.com
20126
- *
20127
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20128
- * https://openapi-generator.tech
20129
- * Do not edit the class manually.
20130
- */
20131
- const APIError501AllOfCodeEnum = {
20132
- NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
20133
- };
20134
-
20135
19967
  /* tslint:disable */
20136
19968
  /* eslint-disable */
20137
19969
  /**
@@ -20496,13 +20328,6 @@ const TokenContractType = {
20496
20328
 
20497
20329
  var index = /*#__PURE__*/Object.freeze({
20498
20330
  __proto__: null,
20499
- APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
20500
- APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
20501
- APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
20502
- APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
20503
- APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
20504
- APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
20505
- APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
20506
20331
  ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
20507
20332
  ActivitiesApi: ActivitiesApi,
20508
20333
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
@@ -20528,6 +20353,10 @@ var index = /*#__PURE__*/Object.freeze({
20528
20353
  FeeFeeTypeEnum: FeeFeeTypeEnum,
20529
20354
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
20530
20355
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
20356
+ ListListingsSortByEnum: ListListingsSortByEnum$1,
20357
+ ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
20358
+ ListTradesSortByEnum: ListTradesSortByEnum$1,
20359
+ ListTradesSortDirectionEnum: ListTradesSortDirectionEnum$1,
20531
20360
  MetadataApi: MetadataApi,
20532
20361
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
20533
20362
  MetadataApiFactory: MetadataApiFactory,
@@ -20580,7 +20409,7 @@ class APIError extends Error {
20580
20409
 
20581
20410
  /* eslint-disable implicit-arrow-linebreak */
20582
20411
  const defaultHeaders = {
20583
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.3',
20412
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.27.5',
20584
20413
  };
20585
20414
  /**
20586
20415
  * createAPIConfiguration to create a custom Configuration
@@ -24835,7 +24664,7 @@ const $5e9bcae98dc8ff19$export$1165ca270f090a66 = (isDevelopment, isProduction)=
24835
24664
  try {
24836
24665
  response = await (0, globalAxios).post(`${postEndpoint()}/v1/availability/checkout/swap`);
24837
24666
  } catch (error) {
24838
- throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Error fetching from api: ${error.message}`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).API_ERROR);
24667
+ response = error.response;
24839
24668
  }
24840
24669
  if (response.status === 403) return false;
24841
24670
  if (response.status === 204) return true;