@imtbl/sdk 0.24.1-alpha.1 → 0.25.0

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.
@@ -15995,6 +15995,31 @@ class OrdersService {
15995
15995
  constructor(httpRequest) {
15996
15996
  this.httpRequest = httpRequest;
15997
15997
  }
15998
+ /**
15999
+ * Cancel one or more orders
16000
+ * Cancel one or more orders
16001
+ * @returns CancelOrdersResult Orders cancellation response.
16002
+ * @throws ApiError
16003
+ */
16004
+ cancelOrders({ chainName, requestBody, }) {
16005
+ return this.httpRequest.request({
16006
+ method: 'POST',
16007
+ url: '/v1/chains/{chain_name}/orders/cancel',
16008
+ path: {
16009
+ 'chain_name': chainName,
16010
+ },
16011
+ body: requestBody,
16012
+ mediaType: 'application/json',
16013
+ errors: {
16014
+ 400: `Bad Request (400)`,
16015
+ 401: `Unauthorised Request (401)`,
16016
+ 404: `The specified resource was not found (404)`,
16017
+ 429: `Too Many Requests (429)`,
16018
+ 500: `Internal Server Error (500)`,
16019
+ 501: `Not Implemented Error (501)`,
16020
+ },
16021
+ });
16022
+ }
15998
16023
  /**
15999
16024
  * List all listings
16000
16025
  * List all listings
@@ -16159,6 +16184,17 @@ class OrderBookClient {
16159
16184
  }
16160
16185
  }
16161
16186
 
16187
+ /* istanbul ignore file */
16188
+ /* tslint:disable */
16189
+ /* eslint-disable */
16190
+ var CancelledOrderStatus;
16191
+ (function (CancelledOrderStatus) {
16192
+ (function (cancellation_type) {
16193
+ cancellation_type["ON_CHAIN"] = "ON_CHAIN";
16194
+ cancellation_type["OFF_CHAIN"] = "OFF_CHAIN";
16195
+ })(CancelledOrderStatus.cancellation_type || (CancelledOrderStatus.cancellation_type = {}));
16196
+ })(CancelledOrderStatus || (CancelledOrderStatus = {}));
16197
+
16162
16198
  /* istanbul ignore file */
16163
16199
  /* tslint:disable */
16164
16200
  /* eslint-disable */
@@ -16178,15 +16214,15 @@ var Fee;
16178
16214
  /**
16179
16215
  * The Order status
16180
16216
  */
16181
- var OrderStatus$1;
16182
- (function (OrderStatus) {
16183
- OrderStatus["PENDING"] = "PENDING";
16184
- OrderStatus["ACTIVE"] = "ACTIVE";
16185
- OrderStatus["INACTIVE"] = "INACTIVE";
16186
- OrderStatus["FILLED"] = "FILLED";
16187
- OrderStatus["CANCELLED"] = "CANCELLED";
16188
- OrderStatus["EXPIRED"] = "EXPIRED";
16189
- })(OrderStatus$1 || (OrderStatus$1 = {}));
16217
+ var OrderStatusName;
16218
+ (function (OrderStatusName) {
16219
+ OrderStatusName["PENDING"] = "PENDING";
16220
+ OrderStatusName["ACTIVE"] = "ACTIVE";
16221
+ OrderStatusName["INACTIVE"] = "INACTIVE";
16222
+ OrderStatusName["FILLED"] = "FILLED";
16223
+ OrderStatusName["EXPIRED"] = "EXPIRED";
16224
+ OrderStatusName["CANCELLED"] = "CANCELLED";
16225
+ })(OrderStatusName || (OrderStatusName = {}));
16190
16226
 
16191
16227
  /* istanbul ignore file */
16192
16228
  /* tslint:disable */
@@ -16975,7 +17011,7 @@ class Orderbook {
16975
17011
  }
16976
17012
  const extraData = fulfillmentDataRes.result.fulfillable_orders[0].extra_data;
16977
17013
  const orderResult = fulfillmentDataRes.result.fulfillable_orders[0].order;
16978
- if (orderResult.status !== OrderStatus$1.ACTIVE) {
17014
+ if (orderResult.status.name !== OrderStatusName.ACTIVE) {
16979
17015
  throw new Error(`Cannot fulfil order that is not active. Current status: ${orderResult.status}`);
16980
17016
  }
16981
17017
  return this.seaport.fulfillOrder(orderResult, takerAddress, extraData);
@@ -17007,9 +17043,9 @@ class Orderbook {
17007
17043
  */
17008
17044
  async cancelOrder(listingId, accountAddress) {
17009
17045
  const orderResult = await this.apiClient.getListing(listingId);
17010
- if (orderResult.result.status !== OrderStatus$1.ACTIVE
17011
- && orderResult.result.status !== OrderStatus$1.INACTIVE
17012
- && orderResult.result.status !== OrderStatus$1.PENDING) {
17046
+ if (orderResult.result.status.name !== OrderStatusName.ACTIVE
17047
+ && orderResult.result.status.name !== OrderStatusName.INACTIVE
17048
+ && orderResult.result.status.name !== OrderStatusName.PENDING) {
17013
17049
  throw new Error(`Cannot cancel order with status ${orderResult.result.status}`);
17014
17050
  }
17015
17051
  if (orderResult.result.account_address !== accountAddress.toLowerCase()) {
@@ -17592,12 +17628,13 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
17592
17628
  * List all collections
17593
17629
  * @summary List all collections
17594
17630
  * @param {string} chainName The name of chain
17631
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17595
17632
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17596
17633
  * @param {number} [pageSize] Maximum number of items to return
17597
17634
  * @param {*} [options] Override http request option.
17598
17635
  * @throws {RequiredError}
17599
17636
  */
17600
- listCollections: async (chainName, pageCursor, pageSize, options = {}) => {
17637
+ listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
17601
17638
  // verify required parameter 'chainName' is not null or undefined
17602
17639
  assertParamExists('listCollections', 'chainName', chainName);
17603
17640
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -17611,6 +17648,11 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
17611
17648
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
17612
17649
  const localVarHeaderParameter = {};
17613
17650
  const localVarQueryParameter = {};
17651
+ if (fromUpdatedAt !== undefined) {
17652
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
17653
+ fromUpdatedAt.toISOString() :
17654
+ fromUpdatedAt;
17655
+ }
17614
17656
  if (pageCursor !== undefined) {
17615
17657
  localVarQueryParameter['page_cursor'] = pageCursor;
17616
17658
  }
@@ -17695,7 +17737,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
17695
17737
  const localVarHeaderParameter = {};
17696
17738
  const localVarQueryParameter = {};
17697
17739
  // authentication ImmutableApiKey required
17698
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
17740
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
17699
17741
  localVarHeaderParameter['Content-Type'] = 'application/json';
17700
17742
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17701
17743
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -17731,13 +17773,14 @@ const CollectionsApiFp = function (configuration) {
17731
17773
  * List all collections
17732
17774
  * @summary List all collections
17733
17775
  * @param {string} chainName The name of chain
17776
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17734
17777
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17735
17778
  * @param {number} [pageSize] Maximum number of items to return
17736
17779
  * @param {*} [options] Override http request option.
17737
17780
  * @throws {RequiredError}
17738
17781
  */
17739
- async listCollections(chainName, pageCursor, pageSize, options) {
17740
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
17782
+ async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
17783
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
17741
17784
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
17742
17785
  },
17743
17786
  /**
@@ -17791,13 +17834,14 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
17791
17834
  * List all collections
17792
17835
  * @summary List all collections
17793
17836
  * @param {string} chainName The name of chain
17837
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17794
17838
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17795
17839
  * @param {number} [pageSize] Maximum number of items to return
17796
17840
  * @param {*} [options] Override http request option.
17797
17841
  * @throws {RequiredError}
17798
17842
  */
17799
- listCollections(chainName, pageCursor, pageSize, options) {
17800
- return localVarFp.listCollections(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17843
+ listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
17844
+ return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
17801
17845
  },
17802
17846
  /**
17803
17847
  * List collections by NFT owner account address
@@ -17853,7 +17897,7 @@ class CollectionsApi extends BaseAPI {
17853
17897
  * @memberof CollectionsApi
17854
17898
  */
17855
17899
  listCollections(requestParameters, options) {
17856
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
17900
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
17857
17901
  }
17858
17902
  /**
17859
17903
  * List collections by NFT owner account address
@@ -17899,8 +17943,8 @@ class CollectionsApi extends BaseAPI {
17899
17943
  const MetadataApiAxiosParamCreator = function (configuration) {
17900
17944
  return {
17901
17945
  /**
17902
- * Get a single metadata by ID
17903
- * @summary Get a single metadata by ID
17946
+ * Get metadata by ID
17947
+ * @summary Get metadata by ID
17904
17948
  * @param {string} chainName The name of chain
17905
17949
  * @param {string} contractAddress The address of metadata contract
17906
17950
  * @param {string} metadataId The id of the metadata
@@ -17936,7 +17980,55 @@ const MetadataApiAxiosParamCreator = function (configuration) {
17936
17980
  };
17937
17981
  },
17938
17982
  /**
17939
- * Refresh shared metadata for a collection
17983
+ * Get a list of metadata by from the a given contract
17984
+ * @summary Get a list of metadata by from the a given contract
17985
+ * @param {string} chainName The name of chain
17986
+ * @param {string} contractAddress The address of metadata contract
17987
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
17988
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
17989
+ * @param {number} [pageSize] Maximum number of items to return
17990
+ * @param {*} [options] Override http request option.
17991
+ * @throws {RequiredError}
17992
+ */
17993
+ listMetadata: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
17994
+ // verify required parameter 'chainName' is not null or undefined
17995
+ assertParamExists('listMetadata', 'chainName', chainName);
17996
+ // verify required parameter 'contractAddress' is not null or undefined
17997
+ assertParamExists('listMetadata', 'contractAddress', contractAddress);
17998
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/metadata`
17999
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
18000
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)));
18001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18003
+ let baseOptions;
18004
+ if (configuration) {
18005
+ baseOptions = configuration.baseOptions;
18006
+ }
18007
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18008
+ const localVarHeaderParameter = {};
18009
+ const localVarQueryParameter = {};
18010
+ if (fromUpdatedAt !== undefined) {
18011
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
18012
+ fromUpdatedAt.toISOString() :
18013
+ fromUpdatedAt;
18014
+ }
18015
+ if (pageCursor !== undefined) {
18016
+ localVarQueryParameter['page_cursor'] = pageCursor;
18017
+ }
18018
+ if (pageSize !== undefined) {
18019
+ localVarQueryParameter['page_size'] = pageSize;
18020
+ }
18021
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18022
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18023
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18024
+ return {
18025
+ url: toPathString(localVarUrlObj),
18026
+ options: localVarRequestOptions,
18027
+ };
18028
+ },
18029
+ /**
18030
+ * Refresh stacked metadata
18031
+ * @summary Refresh stacked metadata
17940
18032
  * @param {string} chainName The name of chain
17941
18033
  * @param {string} contractAddress Contract address
17942
18034
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -17963,7 +18055,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
17963
18055
  const localVarHeaderParameter = {};
17964
18056
  const localVarQueryParameter = {};
17965
18057
  // authentication ImmutableApiKey required
17966
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
18058
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
17967
18059
  localVarHeaderParameter['Content-Type'] = 'application/json';
17968
18060
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17969
18061
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -17975,8 +18067,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
17975
18067
  };
17976
18068
  },
17977
18069
  /**
17978
- * refresh metadata of a list of nfts
17979
- * @summary refresh the metedata data of a list of nfts by token id
18070
+ * Refresh NFT metadata
18071
+ * @summary Refresh NFT metadata
17980
18072
  * @param {string} contractAddress The address of contract
17981
18073
  * @param {string} chainName The name of chain
17982
18074
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -18003,7 +18095,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
18003
18095
  const localVarHeaderParameter = {};
18004
18096
  const localVarQueryParameter = {};
18005
18097
  // authentication ImmutableApiKey required
18006
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
18098
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
18007
18099
  localVarHeaderParameter['Content-Type'] = 'application/json';
18008
18100
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18009
18101
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -18024,8 +18116,8 @@ const MetadataApiFp = function (configuration) {
18024
18116
  const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
18025
18117
  return {
18026
18118
  /**
18027
- * Get a single metadata by ID
18028
- * @summary Get a single metadata by ID
18119
+ * Get metadata by ID
18120
+ * @summary Get metadata by ID
18029
18121
  * @param {string} chainName The name of chain
18030
18122
  * @param {string} contractAddress The address of metadata contract
18031
18123
  * @param {string} metadataId The id of the metadata
@@ -18037,7 +18129,23 @@ const MetadataApiFp = function (configuration) {
18037
18129
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18038
18130
  },
18039
18131
  /**
18040
- * Refresh shared metadata for a collection
18132
+ * Get a list of metadata by from the a given contract
18133
+ * @summary Get a list of metadata by from the a given contract
18134
+ * @param {string} chainName The name of chain
18135
+ * @param {string} contractAddress The address of metadata contract
18136
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18137
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18138
+ * @param {number} [pageSize] Maximum number of items to return
18139
+ * @param {*} [options] Override http request option.
18140
+ * @throws {RequiredError}
18141
+ */
18142
+ async listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
18143
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
18144
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18145
+ },
18146
+ /**
18147
+ * Refresh stacked metadata
18148
+ * @summary Refresh stacked metadata
18041
18149
  * @param {string} chainName The name of chain
18042
18150
  * @param {string} contractAddress Contract address
18043
18151
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -18049,8 +18157,8 @@ const MetadataApiFp = function (configuration) {
18049
18157
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18050
18158
  },
18051
18159
  /**
18052
- * refresh metadata of a list of nfts
18053
- * @summary refresh the metedata data of a list of nfts by token id
18160
+ * Refresh NFT metadata
18161
+ * @summary Refresh NFT metadata
18054
18162
  * @param {string} contractAddress The address of contract
18055
18163
  * @param {string} chainName The name of chain
18056
18164
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -18071,8 +18179,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
18071
18179
  const localVarFp = MetadataApiFp(configuration);
18072
18180
  return {
18073
18181
  /**
18074
- * Get a single metadata by ID
18075
- * @summary Get a single metadata by ID
18182
+ * Get metadata by ID
18183
+ * @summary Get metadata by ID
18076
18184
  * @param {string} chainName The name of chain
18077
18185
  * @param {string} contractAddress The address of metadata contract
18078
18186
  * @param {string} metadataId The id of the metadata
@@ -18083,7 +18191,22 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
18083
18191
  return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
18084
18192
  },
18085
18193
  /**
18086
- * Refresh shared metadata for a collection
18194
+ * Get a list of metadata by from the a given contract
18195
+ * @summary Get a list of metadata by from the a given contract
18196
+ * @param {string} chainName The name of chain
18197
+ * @param {string} contractAddress The address of metadata contract
18198
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18199
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18200
+ * @param {number} [pageSize] Maximum number of items to return
18201
+ * @param {*} [options] Override http request option.
18202
+ * @throws {RequiredError}
18203
+ */
18204
+ listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
18205
+ return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18206
+ },
18207
+ /**
18208
+ * Refresh stacked metadata
18209
+ * @summary Refresh stacked metadata
18087
18210
  * @param {string} chainName The name of chain
18088
18211
  * @param {string} contractAddress Contract address
18089
18212
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -18094,8 +18217,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
18094
18217
  return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
18095
18218
  },
18096
18219
  /**
18097
- * refresh metadata of a list of nfts
18098
- * @summary refresh the metedata data of a list of nfts by token id
18220
+ * Refresh NFT metadata
18221
+ * @summary Refresh NFT metadata
18099
18222
  * @param {string} contractAddress The address of contract
18100
18223
  * @param {string} chainName The name of chain
18101
18224
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -18115,8 +18238,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
18115
18238
  */
18116
18239
  class MetadataApi extends BaseAPI {
18117
18240
  /**
18118
- * Get a single metadata by ID
18119
- * @summary Get a single metadata by ID
18241
+ * Get metadata by ID
18242
+ * @summary Get metadata by ID
18120
18243
  * @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
18121
18244
  * @param {*} [options] Override http request option.
18122
18245
  * @throws {RequiredError}
@@ -18126,7 +18249,19 @@ class MetadataApi extends BaseAPI {
18126
18249
  return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
18127
18250
  }
18128
18251
  /**
18129
- * Refresh shared metadata for a collection
18252
+ * Get a list of metadata by from the a given contract
18253
+ * @summary Get a list of metadata by from the a given contract
18254
+ * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
18255
+ * @param {*} [options] Override http request option.
18256
+ * @throws {RequiredError}
18257
+ * @memberof MetadataApi
18258
+ */
18259
+ listMetadata(requestParameters, options) {
18260
+ return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18261
+ }
18262
+ /**
18263
+ * Refresh stacked metadata
18264
+ * @summary Refresh stacked metadata
18130
18265
  * @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
18131
18266
  * @param {*} [options] Override http request option.
18132
18267
  * @throws {RequiredError}
@@ -18136,8 +18271,8 @@ class MetadataApi extends BaseAPI {
18136
18271
  return MetadataApiFp(this.configuration).refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(this.axios, this.basePath));
18137
18272
  }
18138
18273
  /**
18139
- * refresh metadata of a list of nfts
18140
- * @summary refresh the metedata data of a list of nfts by token id
18274
+ * Refresh NFT metadata
18275
+ * @summary Refresh NFT metadata
18141
18276
  * @param {MetadataApiRefreshNFTMetadataByTokenIDRequest} requestParameters Request parameters.
18142
18277
  * @param {*} [options] Override http request option.
18143
18278
  * @throws {RequiredError}
@@ -18212,6 +18347,53 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
18212
18347
  options: localVarRequestOptions,
18213
18348
  };
18214
18349
  },
18350
+ /**
18351
+ * List owners by contract address
18352
+ * @summary List owners by contract address
18353
+ * @param {string} contractAddress The address of contract
18354
+ * @param {string} chainName The name of chain
18355
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18356
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18357
+ * @param {number} [pageSize] Maximum number of items to return
18358
+ * @param {*} [options] Override http request option.
18359
+ * @throws {RequiredError}
18360
+ */
18361
+ listOwnersByContractAddress: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
18362
+ // verify required parameter 'contractAddress' is not null or undefined
18363
+ assertParamExists('listOwnersByContractAddress', 'contractAddress', contractAddress);
18364
+ // verify required parameter 'chainName' is not null or undefined
18365
+ assertParamExists('listOwnersByContractAddress', 'chainName', chainName);
18366
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/owners`
18367
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
18368
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
18369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18371
+ let baseOptions;
18372
+ if (configuration) {
18373
+ baseOptions = configuration.baseOptions;
18374
+ }
18375
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18376
+ const localVarHeaderParameter = {};
18377
+ const localVarQueryParameter = {};
18378
+ if (fromUpdatedAt !== undefined) {
18379
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
18380
+ fromUpdatedAt.toISOString() :
18381
+ fromUpdatedAt;
18382
+ }
18383
+ if (pageCursor !== undefined) {
18384
+ localVarQueryParameter['page_cursor'] = pageCursor;
18385
+ }
18386
+ if (pageSize !== undefined) {
18387
+ localVarQueryParameter['page_size'] = pageSize;
18388
+ }
18389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18391
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18392
+ return {
18393
+ url: toPathString(localVarUrlObj),
18394
+ options: localVarRequestOptions,
18395
+ };
18396
+ },
18215
18397
  };
18216
18398
  };
18217
18399
  /**
@@ -18236,6 +18418,21 @@ const NftOwnersApiFp = function (configuration) {
18236
18418
  const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options);
18237
18419
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18238
18420
  },
18421
+ /**
18422
+ * List owners by contract address
18423
+ * @summary List owners by contract address
18424
+ * @param {string} contractAddress The address of contract
18425
+ * @param {string} chainName The name of chain
18426
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18427
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18428
+ * @param {number} [pageSize] Maximum number of items to return
18429
+ * @param {*} [options] Override http request option.
18430
+ * @throws {RequiredError}
18431
+ */
18432
+ async listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
18434
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18435
+ },
18239
18436
  };
18240
18437
  };
18241
18438
  /**
@@ -18259,6 +18456,20 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
18259
18456
  listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
18260
18457
  return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18261
18458
  },
18459
+ /**
18460
+ * List owners by contract address
18461
+ * @summary List owners by contract address
18462
+ * @param {string} contractAddress The address of contract
18463
+ * @param {string} chainName The name of chain
18464
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18465
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18466
+ * @param {number} [pageSize] Maximum number of items to return
18467
+ * @param {*} [options] Override http request option.
18468
+ * @throws {RequiredError}
18469
+ */
18470
+ listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18471
+ return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18472
+ },
18262
18473
  };
18263
18474
  };
18264
18475
  /**
@@ -18279,6 +18490,17 @@ class NftOwnersApi extends BaseAPI {
18279
18490
  listNFTOwners(requestParameters, options) {
18280
18491
  return NftOwnersApiFp(this.configuration).listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18281
18492
  }
18493
+ /**
18494
+ * List owners by contract address
18495
+ * @summary List owners by contract address
18496
+ * @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
18497
+ * @param {*} [options] Override http request option.
18498
+ * @throws {RequiredError}
18499
+ * @memberof NftOwnersApi
18500
+ */
18501
+ listOwnersByContractAddress(requestParameters, options) {
18502
+ return NftOwnersApiFp(this.configuration).listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18503
+ }
18282
18504
  }
18283
18505
 
18284
18506
  /* tslint:disable */
@@ -18337,17 +18559,106 @@ const NftsApiAxiosParamCreator = function (configuration) {
18337
18559
  options: localVarRequestOptions,
18338
18560
  };
18339
18561
  },
18562
+ /**
18563
+ * List all NFT owners on a chain
18564
+ * @summary List all NFT owners
18565
+ * @param {string} chainName The name of chain
18566
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
18567
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18568
+ * @param {number} [pageSize] Maximum number of items to return
18569
+ * @param {*} [options] Override http request option.
18570
+ * @throws {RequiredError}
18571
+ */
18572
+ listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
18573
+ // verify required parameter 'chainName' is not null or undefined
18574
+ assertParamExists('listAllNFTOwners', 'chainName', chainName);
18575
+ // verify required parameter 'fromUpdatedAt' is not null or undefined
18576
+ assertParamExists('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
18577
+ const localVarPath = `/v1/chains/{chain_name}/nft-owners`
18578
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
18579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18581
+ let baseOptions;
18582
+ if (configuration) {
18583
+ baseOptions = configuration.baseOptions;
18584
+ }
18585
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18586
+ const localVarHeaderParameter = {};
18587
+ const localVarQueryParameter = {};
18588
+ if (fromUpdatedAt !== undefined) {
18589
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
18590
+ fromUpdatedAt.toISOString() :
18591
+ fromUpdatedAt;
18592
+ }
18593
+ if (pageCursor !== undefined) {
18594
+ localVarQueryParameter['page_cursor'] = pageCursor;
18595
+ }
18596
+ if (pageSize !== undefined) {
18597
+ localVarQueryParameter['page_size'] = pageSize;
18598
+ }
18599
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18600
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18601
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18602
+ return {
18603
+ url: toPathString(localVarUrlObj),
18604
+ options: localVarRequestOptions,
18605
+ };
18606
+ },
18607
+ /**
18608
+ * List all NFTs on a chain
18609
+ * @summary List all NFTs
18610
+ * @param {string} chainName The name of chain
18611
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18612
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18613
+ * @param {number} [pageSize] Maximum number of items to return
18614
+ * @param {*} [options] Override http request option.
18615
+ * @throws {RequiredError}
18616
+ */
18617
+ listAllNFTs: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
18618
+ // verify required parameter 'chainName' is not null or undefined
18619
+ assertParamExists('listAllNFTs', 'chainName', chainName);
18620
+ const localVarPath = `/v1/chains/{chain_name}/nfts`
18621
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
18622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18624
+ let baseOptions;
18625
+ if (configuration) {
18626
+ baseOptions = configuration.baseOptions;
18627
+ }
18628
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18629
+ const localVarHeaderParameter = {};
18630
+ const localVarQueryParameter = {};
18631
+ if (fromUpdatedAt !== undefined) {
18632
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
18633
+ fromUpdatedAt.toISOString() :
18634
+ fromUpdatedAt;
18635
+ }
18636
+ if (pageCursor !== undefined) {
18637
+ localVarQueryParameter['page_cursor'] = pageCursor;
18638
+ }
18639
+ if (pageSize !== undefined) {
18640
+ localVarQueryParameter['page_size'] = pageSize;
18641
+ }
18642
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18643
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18644
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
18645
+ return {
18646
+ url: toPathString(localVarUrlObj),
18647
+ options: localVarRequestOptions,
18648
+ };
18649
+ },
18340
18650
  /**
18341
18651
  * List NFTs by contract address
18342
18652
  * @summary List NFTs by contract address
18343
18653
  * @param {string} contractAddress Contract address
18344
18654
  * @param {string} chainName The name of chain
18655
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18345
18656
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18346
18657
  * @param {number} [pageSize] Maximum number of items to return
18347
18658
  * @param {*} [options] Override http request option.
18348
18659
  * @throws {RequiredError}
18349
18660
  */
18350
- listNFTs: async (contractAddress, chainName, pageCursor, pageSize, options = {}) => {
18661
+ listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
18351
18662
  // verify required parameter 'contractAddress' is not null or undefined
18352
18663
  assertParamExists('listNFTs', 'contractAddress', contractAddress);
18353
18664
  // verify required parameter 'chainName' is not null or undefined
@@ -18364,6 +18675,11 @@ const NftsApiAxiosParamCreator = function (configuration) {
18364
18675
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
18365
18676
  const localVarHeaderParameter = {};
18366
18677
  const localVarQueryParameter = {};
18678
+ if (fromUpdatedAt !== undefined) {
18679
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
18680
+ fromUpdatedAt.toISOString() :
18681
+ fromUpdatedAt;
18682
+ }
18367
18683
  if (pageCursor !== undefined) {
18368
18684
  localVarQueryParameter['page_cursor'] = pageCursor;
18369
18685
  }
@@ -18445,18 +18761,47 @@ const NftsApiFp = function (configuration) {
18445
18761
  const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
18446
18762
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18447
18763
  },
18764
+ /**
18765
+ * List all NFT owners on a chain
18766
+ * @summary List all NFT owners
18767
+ * @param {string} chainName The name of chain
18768
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
18769
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18770
+ * @param {number} [pageSize] Maximum number of items to return
18771
+ * @param {*} [options] Override http request option.
18772
+ * @throws {RequiredError}
18773
+ */
18774
+ async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
18776
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18777
+ },
18778
+ /**
18779
+ * List all NFTs on a chain
18780
+ * @summary List all NFTs
18781
+ * @param {string} chainName The name of chain
18782
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18783
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18784
+ * @param {number} [pageSize] Maximum number of items to return
18785
+ * @param {*} [options] Override http request option.
18786
+ * @throws {RequiredError}
18787
+ */
18788
+ async listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
18790
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18791
+ },
18448
18792
  /**
18449
18793
  * List NFTs by contract address
18450
18794
  * @summary List NFTs by contract address
18451
18795
  * @param {string} contractAddress Contract address
18452
18796
  * @param {string} chainName The name of chain
18797
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18453
18798
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18454
18799
  * @param {number} [pageSize] Maximum number of items to return
18455
18800
  * @param {*} [options] Override http request option.
18456
18801
  * @throws {RequiredError}
18457
18802
  */
18458
- async listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
18459
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, pageCursor, pageSize, options);
18803
+ async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18804
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
18460
18805
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
18461
18806
  },
18462
18807
  /**
@@ -18495,18 +18840,45 @@ const NftsApiFactory = function (configuration, basePath, axios) {
18495
18840
  getNFT(contractAddress, tokenId, chainName, options) {
18496
18841
  return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
18497
18842
  },
18843
+ /**
18844
+ * List all NFT owners on a chain
18845
+ * @summary List all NFT owners
18846
+ * @param {string} chainName The name of chain
18847
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
18848
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18849
+ * @param {number} [pageSize] Maximum number of items to return
18850
+ * @param {*} [options] Override http request option.
18851
+ * @throws {RequiredError}
18852
+ */
18853
+ listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18854
+ return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18855
+ },
18856
+ /**
18857
+ * List all NFTs on a chain
18858
+ * @summary List all NFTs
18859
+ * @param {string} chainName The name of chain
18860
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18861
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18862
+ * @param {number} [pageSize] Maximum number of items to return
18863
+ * @param {*} [options] Override http request option.
18864
+ * @throws {RequiredError}
18865
+ */
18866
+ listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18867
+ return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18868
+ },
18498
18869
  /**
18499
18870
  * List NFTs by contract address
18500
18871
  * @summary List NFTs by contract address
18501
18872
  * @param {string} contractAddress Contract address
18502
18873
  * @param {string} chainName The name of chain
18874
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
18503
18875
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18504
18876
  * @param {number} [pageSize] Maximum number of items to return
18505
18877
  * @param {*} [options] Override http request option.
18506
18878
  * @throws {RequiredError}
18507
18879
  */
18508
- listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
18509
- return localVarFp.listNFTs(contractAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18880
+ listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
18881
+ return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
18510
18882
  },
18511
18883
  /**
18512
18884
  * List NFTs by account address
@@ -18542,6 +18914,28 @@ class NftsApi extends BaseAPI {
18542
18914
  getNFT(requestParameters, options) {
18543
18915
  return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
18544
18916
  }
18917
+ /**
18918
+ * List all NFT owners on a chain
18919
+ * @summary List all NFT owners
18920
+ * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
18921
+ * @param {*} [options] Override http request option.
18922
+ * @throws {RequiredError}
18923
+ * @memberof NftsApi
18924
+ */
18925
+ listAllNFTOwners(requestParameters, options) {
18926
+ return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18927
+ }
18928
+ /**
18929
+ * List all NFTs on a chain
18930
+ * @summary List all NFTs
18931
+ * @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
18932
+ * @param {*} [options] Override http request option.
18933
+ * @throws {RequiredError}
18934
+ * @memberof NftsApi
18935
+ */
18936
+ listAllNFTs(requestParameters, options) {
18937
+ return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18938
+ }
18545
18939
  /**
18546
18940
  * List NFTs by contract address
18547
18941
  * @summary List NFTs by contract address
@@ -18551,7 +18945,7 @@ class NftsApi extends BaseAPI {
18551
18945
  * @memberof NftsApi
18552
18946
  */
18553
18947
  listNFTs(requestParameters, options) {
18554
- return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18948
+ return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
18555
18949
  }
18556
18950
  /**
18557
18951
  * List NFTs by account address
@@ -18585,6 +18979,40 @@ class NftsApi extends BaseAPI {
18585
18979
  */
18586
18980
  const OrdersApiAxiosParamCreator = function (configuration) {
18587
18981
  return {
18982
+ /**
18983
+ * Cancel one or more orders
18984
+ * @summary Cancel one or more orders
18985
+ * @param {string} chainName
18986
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
18987
+ * @param {*} [options] Override http request option.
18988
+ * @throws {RequiredError}
18989
+ */
18990
+ cancelOrders: async (chainName, cancelOrdersRequestBody, options = {}) => {
18991
+ // verify required parameter 'chainName' is not null or undefined
18992
+ assertParamExists('cancelOrders', 'chainName', chainName);
18993
+ // verify required parameter 'cancelOrdersRequestBody' is not null or undefined
18994
+ assertParamExists('cancelOrders', 'cancelOrdersRequestBody', cancelOrdersRequestBody);
18995
+ const localVarPath = `/v1/chains/{chain_name}/orders/cancel`
18996
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
18997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18998
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18999
+ let baseOptions;
19000
+ if (configuration) {
19001
+ baseOptions = configuration.baseOptions;
19002
+ }
19003
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
19004
+ const localVarHeaderParameter = {};
19005
+ const localVarQueryParameter = {};
19006
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19007
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19008
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19009
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
19010
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelOrdersRequestBody, localVarRequestOptions, configuration);
19011
+ return {
19012
+ url: toPathString(localVarUrlObj),
19013
+ options: localVarRequestOptions,
19014
+ };
19015
+ },
18588
19016
  /**
18589
19017
  * Create a listing
18590
19018
  * @summary Create a listing
@@ -18838,6 +19266,18 @@ const OrdersApiAxiosParamCreator = function (configuration) {
18838
19266
  const OrdersApiFp = function (configuration) {
18839
19267
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
18840
19268
  return {
19269
+ /**
19270
+ * Cancel one or more orders
19271
+ * @summary Cancel one or more orders
19272
+ * @param {string} chainName
19273
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
19274
+ * @param {*} [options] Override http request option.
19275
+ * @throws {RequiredError}
19276
+ */
19277
+ async cancelOrders(chainName, cancelOrdersRequestBody, options) {
19278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrders(chainName, cancelOrdersRequestBody, options);
19279
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
19280
+ },
18841
19281
  /**
18842
19282
  * Create a listing
18843
19283
  * @summary Create a listing
@@ -18930,6 +19370,17 @@ const OrdersApiFp = function (configuration) {
18930
19370
  const OrdersApiFactory = function (configuration, basePath, axios) {
18931
19371
  const localVarFp = OrdersApiFp(configuration);
18932
19372
  return {
19373
+ /**
19374
+ * Cancel one or more orders
19375
+ * @summary Cancel one or more orders
19376
+ * @param {string} chainName
19377
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
19378
+ * @param {*} [options] Override http request option.
19379
+ * @throws {RequiredError}
19380
+ */
19381
+ cancelOrders(chainName, cancelOrdersRequestBody, options) {
19382
+ return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
19383
+ },
18933
19384
  /**
18934
19385
  * Create a listing
18935
19386
  * @summary Create a listing
@@ -19016,6 +19467,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
19016
19467
  * @extends {BaseAPI}
19017
19468
  */
19018
19469
  class OrdersApi extends BaseAPI {
19470
+ /**
19471
+ * Cancel one or more orders
19472
+ * @summary Cancel one or more orders
19473
+ * @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
19474
+ * @param {*} [options] Override http request option.
19475
+ * @throws {RequiredError}
19476
+ * @memberof OrdersApi
19477
+ */
19478
+ cancelOrders(requestParameters, options) {
19479
+ return OrdersApiFp(this.configuration).cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(this.axios, this.basePath));
19480
+ }
19019
19481
  /**
19020
19482
  * Create a listing
19021
19483
  * @summary Create a listing
@@ -19317,12 +19779,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
19317
19779
  * List ERC20 tokens
19318
19780
  * @summary List ERC20 tokens
19319
19781
  * @param {string} chainName The name of chain
19782
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
19320
19783
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
19321
19784
  * @param {number} [pageSize] Maximum number of items to return
19322
19785
  * @param {*} [options] Override http request option.
19323
19786
  * @throws {RequiredError}
19324
19787
  */
19325
- listERC20Tokens: async (chainName, pageCursor, pageSize, options = {}) => {
19788
+ listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
19326
19789
  // verify required parameter 'chainName' is not null or undefined
19327
19790
  assertParamExists('listERC20Tokens', 'chainName', chainName);
19328
19791
  const localVarPath = `/v1/chains/{chain_name}/tokens`
@@ -19336,6 +19799,11 @@ const TokensApiAxiosParamCreator = function (configuration) {
19336
19799
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
19337
19800
  const localVarHeaderParameter = {};
19338
19801
  const localVarQueryParameter = {};
19802
+ if (fromUpdatedAt !== undefined) {
19803
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
19804
+ fromUpdatedAt.toISOString() :
19805
+ fromUpdatedAt;
19806
+ }
19339
19807
  if (pageCursor !== undefined) {
19340
19808
  localVarQueryParameter['page_cursor'] = pageCursor;
19341
19809
  }
@@ -19375,13 +19843,14 @@ const TokensApiFp = function (configuration) {
19375
19843
  * List ERC20 tokens
19376
19844
  * @summary List ERC20 tokens
19377
19845
  * @param {string} chainName The name of chain
19846
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
19378
19847
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
19379
19848
  * @param {number} [pageSize] Maximum number of items to return
19380
19849
  * @param {*} [options] Override http request option.
19381
19850
  * @throws {RequiredError}
19382
19851
  */
19383
- async listERC20Tokens(chainName, pageCursor, pageSize, options) {
19384
- const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, pageCursor, pageSize, options);
19852
+ async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
19853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
19385
19854
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
19386
19855
  },
19387
19856
  };
@@ -19408,13 +19877,14 @@ const TokensApiFactory = function (configuration, basePath, axios) {
19408
19877
  * List ERC20 tokens
19409
19878
  * @summary List ERC20 tokens
19410
19879
  * @param {string} chainName The name of chain
19880
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
19411
19881
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
19412
19882
  * @param {number} [pageSize] Maximum number of items to return
19413
19883
  * @param {*} [options] Override http request option.
19414
19884
  * @throws {RequiredError}
19415
19885
  */
19416
- listERC20Tokens(chainName, pageCursor, pageSize, options) {
19417
- return localVarFp.listERC20Tokens(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
19886
+ listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
19887
+ return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
19418
19888
  },
19419
19889
  };
19420
19890
  };
@@ -19445,7 +19915,7 @@ class TokensApi extends BaseAPI {
19445
19915
  * @memberof TokensApi
19446
19916
  */
19447
19917
  listERC20Tokens(requestParameters, options) {
19448
- return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
19918
+ return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
19449
19919
  }
19450
19920
  }
19451
19921
 
@@ -19639,6 +20109,23 @@ const APIError500AllOfCodeEnum = {
19639
20109
  InternalServerError: 'INTERNAL_SERVER_ERROR'
19640
20110
  };
19641
20111
 
20112
+ /* tslint:disable */
20113
+ /* eslint-disable */
20114
+ /**
20115
+ * Immutable zkEVM API
20116
+ * Immutable Multi Rollup API
20117
+ *
20118
+ * The version of the OpenAPI document: 1.0.0
20119
+ * Contact: support@immutable.com
20120
+ *
20121
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20122
+ * https://openapi-generator.tech
20123
+ * Do not edit the class manually.
20124
+ */
20125
+ const APIError501AllOfCodeEnum = {
20126
+ NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
20127
+ };
20128
+
19642
20129
  /* tslint:disable */
19643
20130
  /* eslint-disable */
19644
20131
  /**
@@ -19666,6 +20153,23 @@ const ActivityType = {
19666
20153
  Withdrawal: 'withdrawal'
19667
20154
  };
19668
20155
 
20156
+ /* tslint:disable */
20157
+ /* eslint-disable */
20158
+ /**
20159
+ * Immutable zkEVM API
20160
+ * Immutable Multi Rollup API
20161
+ *
20162
+ * The version of the OpenAPI document: 1.0.0
20163
+ * Contact: support@immutable.com
20164
+ *
20165
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
20166
+ * https://openapi-generator.tech
20167
+ * Do not edit the class manually.
20168
+ */
20169
+ const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
20170
+ AlreadyFilled: 'ALREADY_FILLED'
20171
+ };
20172
+
19669
20173
  /* tslint:disable */
19670
20174
  /* eslint-disable */
19671
20175
  /**
@@ -19737,8 +20241,8 @@ const ERC721ItemItemTypeEnum = {
19737
20241
  */
19738
20242
  const FeeFeeTypeEnum = {
19739
20243
  Royalty: 'ROYALTY',
19740
- MakerMarketplace: 'MAKER_MARKETPLACE',
19741
- TakerMarketplace: 'TAKER_MARKETPLACE',
20244
+ MakerEcosystem: 'MAKER_ECOSYSTEM',
20245
+ TakerEcosystem: 'TAKER_ECOSYSTEM',
19742
20246
  Protocol: 'PROTOCOL'
19743
20247
  };
19744
20248
 
@@ -19886,11 +20390,13 @@ var index = /*#__PURE__*/Object.freeze({
19886
20390
  APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
19887
20391
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
19888
20392
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
20393
+ APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
19889
20394
  ActivitiesApi: ActivitiesApi,
19890
20395
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
19891
20396
  ActivitiesApiFactory: ActivitiesApiFactory,
19892
20397
  ActivitiesApiFp: ActivitiesApiFp,
19893
20398
  ActivityType: ActivityType,
20399
+ CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
19894
20400
  ChainsApi: ChainsApi,
19895
20401
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
19896
20402
  ChainsApiFactory: ChainsApiFactory,
@@ -19955,7 +20461,7 @@ class APIError extends Error {
19955
20461
 
19956
20462
  /* eslint-disable implicit-arrow-linebreak */
19957
20463
  const defaultHeaders = {
19958
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.24.1-alpha.1',
20464
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.25.0',
19959
20465
  };
19960
20466
  /**
19961
20467
  * createAPIConfiguration to create a custom Configuration
@@ -20188,6 +20694,20 @@ class BlockchainData {
20188
20694
  throw formatError(err);
20189
20695
  });
20190
20696
  }
20697
+ /**
20698
+ * List All NFTs on a chain
20699
+ * @param request - the request object containing the parameters to be provided in the API request
20700
+ * @returns a promise that resolves with a list of NFTs
20701
+ * @throws {@link index.APIError}
20702
+ */
20703
+ async listAllNFTs(request) {
20704
+ return await this.nfts
20705
+ .listAllNFTs(request)
20706
+ .then((res) => res.data)
20707
+ .catch((err) => {
20708
+ throw formatError(err);
20709
+ });
20710
+ }
20191
20711
  /**
20192
20712
  * List NFT owners by token ID
20193
20713
  * @param request - the request object containing the parameters to be provided in the API request
@@ -20202,6 +20722,34 @@ class BlockchainData {
20202
20722
  throw formatError(err);
20203
20723
  });
20204
20724
  }
20725
+ /**
20726
+ * List NFT owners by contract address
20727
+ * @param request - the request object containing the parameters to be provided in the API request
20728
+ * @returns a promise that resolves with a list of NFT owners
20729
+ * @throws {@link index.APIError}
20730
+ */
20731
+ async listNFTOwnersByContractAddress(request) {
20732
+ return await this.nftOwners
20733
+ .listOwnersByContractAddress(request)
20734
+ .then((res) => res.data)
20735
+ .catch((err) => {
20736
+ throw formatError(err);
20737
+ });
20738
+ }
20739
+ /**
20740
+ * List All NFT owners on a chain
20741
+ * @param request - the request object containing the parameters to be provided in the API request
20742
+ * @returns a promise that resolves with a list of NFT owners
20743
+ * @throws {@link index.APIError}
20744
+ */
20745
+ async listAllNFTOwners(request) {
20746
+ return await this.nfts
20747
+ .listAllNFTOwners(request)
20748
+ .then((res) => res.data)
20749
+ .catch((err) => {
20750
+ throw formatError(err);
20751
+ });
20752
+ }
20205
20753
  /**
20206
20754
  * List ERC20 Token contracts
20207
20755
  * @param request - the request object containing the parameters to be provided in the API request
@@ -20230,6 +20778,20 @@ class BlockchainData {
20230
20778
  throw formatError(err);
20231
20779
  });
20232
20780
  }
20781
+ /**
20782
+ * List NFT Metadata by contract address
20783
+ * @param request - the request object containing the parameters to be provided in the API request
20784
+ * @returns a promise that resolves with a list of Metadata
20785
+ * @throws {@link index.APIError}
20786
+ */
20787
+ async listNFTMetadataByContractAddress(request) {
20788
+ return await this.metadata
20789
+ .listMetadata(request)
20790
+ .then((res) => res.data)
20791
+ .catch((err) => {
20792
+ throw formatError(err);
20793
+ });
20794
+ }
20233
20795
  /**
20234
20796
  * Refresh collection metadata
20235
20797
  * @param request - the request object containing the parameters to be provided in the API request