@imtbl/sdk 0.35.7 → 0.35.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -373,15 +373,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
373
373
  * @param {string} [tokenId] An `uint256` token id as string
374
374
  * @param {string} [accountAddress] The account address activity contains
375
375
  * @param {ActivityType} [activityType] The activity type
376
- * @param {string} [fromIndexedAt] From indexed at including given date
377
- * @param {string} [toIndexedAt] To indexed at including given date
378
376
  * @param {string} [transactionHash] The transaction hash of activity
379
377
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
380
378
  * @param {number} [pageSize] Maximum number of items to return
381
379
  * @param {*} [options] Override http request option.
382
380
  * @throws {RequiredError}
383
381
  */
384
- listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options = {}) => {
382
+ listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options = {}) => {
385
383
  // verify required parameter 'chainName' is not null or undefined
386
384
  assertParamExists$1('listActivities', 'chainName', chainName);
387
385
  const localVarPath = `/v1/chains/{chain_name}/activities`
@@ -407,16 +405,6 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
407
405
  if (activityType !== undefined) {
408
406
  localVarQueryParameter['activity_type'] = activityType;
409
407
  }
410
- if (fromIndexedAt !== undefined) {
411
- localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
412
- fromIndexedAt.toISOString() :
413
- fromIndexedAt;
414
- }
415
- if (toIndexedAt !== undefined) {
416
- localVarQueryParameter['to_indexed_at'] = (toIndexedAt instanceof Date) ?
417
- toIndexedAt.toISOString() :
418
- toIndexedAt;
419
- }
420
408
  if (transactionHash !== undefined) {
421
409
  localVarQueryParameter['transaction_hash'] = transactionHash;
422
410
  }
@@ -434,6 +422,61 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
434
422
  options: localVarRequestOptions,
435
423
  };
436
424
  },
425
+ /**
426
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
427
+ * @summary List history of activities
428
+ * @param {string} chainName The name of chain
429
+ * @param {string} fromUpdatedAt From indexed at including given date
430
+ * @param {string} [toUpdatedAt] To indexed at including given date
431
+ * @param {string} [contractAddress] The contract address of the collection
432
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
433
+ * @param {number} [pageSize] Maximum number of items to return
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
438
+ // verify required parameter 'chainName' is not null or undefined
439
+ assertParamExists$1('listActivityHistory', 'chainName', chainName);
440
+ // verify required parameter 'fromUpdatedAt' is not null or undefined
441
+ assertParamExists$1('listActivityHistory', 'fromUpdatedAt', fromUpdatedAt);
442
+ const localVarPath = `/v1/chains/{chain_name}/activity-history`
443
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
446
+ let baseOptions;
447
+ if (configuration) {
448
+ baseOptions = configuration.baseOptions;
449
+ }
450
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
451
+ const localVarHeaderParameter = {};
452
+ const localVarQueryParameter = {};
453
+ if (fromUpdatedAt !== undefined) {
454
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
455
+ fromUpdatedAt.toISOString() :
456
+ fromUpdatedAt;
457
+ }
458
+ if (toUpdatedAt !== undefined) {
459
+ localVarQueryParameter['to_updated_at'] = (toUpdatedAt instanceof Date) ?
460
+ toUpdatedAt.toISOString() :
461
+ toUpdatedAt;
462
+ }
463
+ if (contractAddress !== undefined) {
464
+ localVarQueryParameter['contract_address'] = contractAddress;
465
+ }
466
+ if (pageCursor !== undefined) {
467
+ localVarQueryParameter['page_cursor'] = pageCursor;
468
+ }
469
+ if (pageSize !== undefined) {
470
+ localVarQueryParameter['page_size'] = pageSize;
471
+ }
472
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
474
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
475
+ return {
476
+ url: toPathString$1(localVarUrlObj),
477
+ options: localVarRequestOptions,
478
+ };
479
+ },
437
480
  };
438
481
  };
439
482
  /**
@@ -463,16 +506,30 @@ const ActivitiesApiFp = function (configuration) {
463
506
  * @param {string} [tokenId] An `uint256` token id as string
464
507
  * @param {string} [accountAddress] The account address activity contains
465
508
  * @param {ActivityType} [activityType] The activity type
466
- * @param {string} [fromIndexedAt] From indexed at including given date
467
- * @param {string} [toIndexedAt] To indexed at including given date
468
509
  * @param {string} [transactionHash] The transaction hash of activity
469
510
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
470
511
  * @param {number} [pageSize] Maximum number of items to return
471
512
  * @param {*} [options] Override http request option.
472
513
  * @throws {RequiredError}
473
514
  */
474
- async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
475
- const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options);
515
+ async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options) {
516
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options);
517
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
518
+ },
519
+ /**
520
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
521
+ * @summary List history of activities
522
+ * @param {string} chainName The name of chain
523
+ * @param {string} fromUpdatedAt From indexed at including given date
524
+ * @param {string} [toUpdatedAt] To indexed at including given date
525
+ * @param {string} [contractAddress] The contract address of the collection
526
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
527
+ * @param {number} [pageSize] Maximum number of items to return
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
476
533
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
477
534
  },
478
535
  };
@@ -502,7 +559,17 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
502
559
  * @throws {RequiredError}
503
560
  */
504
561
  listActivities(requestParameters, options) {
505
- 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));
562
+ return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
563
+ },
564
+ /**
565
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
566
+ * @summary List history of activities
567
+ * @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ listActivityHistory(requestParameters, options) {
572
+ return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
506
573
  },
507
574
  };
508
575
  };
@@ -533,7 +600,18 @@ class ActivitiesApi extends BaseAPI$1 {
533
600
  * @memberof ActivitiesApi
534
601
  */
535
602
  listActivities(requestParameters, options) {
536
- return ActivitiesApiFp(this.configuration).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(this.axios, this.basePath));
603
+ return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
604
+ }
605
+ /**
606
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
607
+ * @summary List history of activities
608
+ * @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ * @memberof ActivitiesApi
612
+ */
613
+ listActivityHistory(requestParameters, options) {
614
+ return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
537
615
  }
538
616
  }
539
617
 
@@ -1055,8 +1133,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1055
1133
  };
1056
1134
  },
1057
1135
  /**
1058
- * Get a list of metadata by from the a given contract
1059
- * @summary Get a list of metadata by from the a given contract
1136
+ * Get a list of metadata from the given contract
1137
+ * @summary Get a list of metadata from the given contract
1060
1138
  * @param {string} chainName The name of chain
1061
1139
  * @param {string} contractAddress The address of metadata contract
1062
1140
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
@@ -1101,6 +1179,49 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1101
1179
  options: localVarRequestOptions,
1102
1180
  };
1103
1181
  },
1182
+ /**
1183
+ * Get a list of metadata from the given chain
1184
+ * @summary Get a list of metadata from the given chain
1185
+ * @param {string} chainName The name of chain
1186
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1187
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1188
+ * @param {number} [pageSize] Maximum number of items to return
1189
+ * @param {*} [options] Override http request option.
1190
+ * @throws {RequiredError}
1191
+ */
1192
+ listMetadataForChain: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1193
+ // verify required parameter 'chainName' is not null or undefined
1194
+ assertParamExists$1('listMetadataForChain', 'chainName', chainName);
1195
+ const localVarPath = `/v1/chains/{chain_name}/metadata`
1196
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1199
+ let baseOptions;
1200
+ if (configuration) {
1201
+ baseOptions = configuration.baseOptions;
1202
+ }
1203
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1204
+ const localVarHeaderParameter = {};
1205
+ const localVarQueryParameter = {};
1206
+ if (fromUpdatedAt !== undefined) {
1207
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1208
+ fromUpdatedAt.toISOString() :
1209
+ fromUpdatedAt;
1210
+ }
1211
+ if (pageCursor !== undefined) {
1212
+ localVarQueryParameter['page_cursor'] = pageCursor;
1213
+ }
1214
+ if (pageSize !== undefined) {
1215
+ localVarQueryParameter['page_size'] = pageSize;
1216
+ }
1217
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1218
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1219
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1220
+ return {
1221
+ url: toPathString$1(localVarUrlObj),
1222
+ options: localVarRequestOptions,
1223
+ };
1224
+ },
1104
1225
  /**
1105
1226
  * Refresh stacked metadata
1106
1227
  * @summary Refresh stacked metadata
@@ -1204,8 +1325,8 @@ const MetadataApiFp = function (configuration) {
1204
1325
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1205
1326
  },
1206
1327
  /**
1207
- * Get a list of metadata by from the a given contract
1208
- * @summary Get a list of metadata by from the a given contract
1328
+ * Get a list of metadata from the given contract
1329
+ * @summary Get a list of metadata from the given contract
1209
1330
  * @param {string} chainName The name of chain
1210
1331
  * @param {string} contractAddress The address of metadata contract
1211
1332
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
@@ -1218,6 +1339,20 @@ const MetadataApiFp = function (configuration) {
1218
1339
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
1219
1340
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1220
1341
  },
1342
+ /**
1343
+ * Get a list of metadata from the given chain
1344
+ * @summary Get a list of metadata from the given chain
1345
+ * @param {string} chainName The name of chain
1346
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1347
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1348
+ * @param {number} [pageSize] Maximum number of items to return
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ async listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1354
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1355
+ },
1221
1356
  /**
1222
1357
  * Refresh stacked metadata
1223
1358
  * @summary Refresh stacked metadata
@@ -1264,8 +1399,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1264
1399
  return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
1265
1400
  },
1266
1401
  /**
1267
- * Get a list of metadata by from the a given contract
1268
- * @summary Get a list of metadata by from the a given contract
1402
+ * Get a list of metadata from the given contract
1403
+ * @summary Get a list of metadata from the given contract
1269
1404
  * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1270
1405
  * @param {*} [options] Override http request option.
1271
1406
  * @throws {RequiredError}
@@ -1273,6 +1408,16 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1273
1408
  listMetadata(requestParameters, options) {
1274
1409
  return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1275
1410
  },
1411
+ /**
1412
+ * Get a list of metadata from the given chain
1413
+ * @summary Get a list of metadata from the given chain
1414
+ * @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
1415
+ * @param {*} [options] Override http request option.
1416
+ * @throws {RequiredError}
1417
+ */
1418
+ listMetadataForChain(requestParameters, options) {
1419
+ return localVarFp.listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1420
+ },
1276
1421
  /**
1277
1422
  * Refresh stacked metadata
1278
1423
  * @summary Refresh stacked metadata
@@ -1314,8 +1459,8 @@ class MetadataApi extends BaseAPI$1 {
1314
1459
  return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
1315
1460
  }
1316
1461
  /**
1317
- * Get a list of metadata by from the a given contract
1318
- * @summary Get a list of metadata by from the a given contract
1462
+ * Get a list of metadata from the given contract
1463
+ * @summary Get a list of metadata from the given contract
1319
1464
  * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1320
1465
  * @param {*} [options] Override http request option.
1321
1466
  * @throws {RequiredError}
@@ -1324,6 +1469,17 @@ class MetadataApi extends BaseAPI$1 {
1324
1469
  listMetadata(requestParameters, options) {
1325
1470
  return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1326
1471
  }
1472
+ /**
1473
+ * Get a list of metadata from the given chain
1474
+ * @summary Get a list of metadata from the given chain
1475
+ * @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
1476
+ * @param {*} [options] Override http request option.
1477
+ * @throws {RequiredError}
1478
+ * @memberof MetadataApi
1479
+ */
1480
+ listMetadataForChain(requestParameters, options) {
1481
+ return MetadataApiFp(this.configuration).listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1482
+ }
1327
1483
  /**
1328
1484
  * Refresh stacked metadata
1329
1485
  * @summary Refresh stacked metadata
@@ -1367,6 +1523,49 @@ class MetadataApi extends BaseAPI$1 {
1367
1523
  */
1368
1524
  const NftOwnersApiAxiosParamCreator = function (configuration) {
1369
1525
  return {
1526
+ /**
1527
+ * List all NFT owners on a chain
1528
+ * @summary List all NFT owners
1529
+ * @param {string} chainName The name of chain
1530
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1531
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1532
+ * @param {number} [pageSize] Maximum number of items to return
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ */
1536
+ listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1537
+ // verify required parameter 'chainName' is not null or undefined
1538
+ assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
1539
+ const localVarPath = `/v1/chains/{chain_name}/nft-owners`
1540
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1543
+ let baseOptions;
1544
+ if (configuration) {
1545
+ baseOptions = configuration.baseOptions;
1546
+ }
1547
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1548
+ const localVarHeaderParameter = {};
1549
+ const localVarQueryParameter = {};
1550
+ if (fromUpdatedAt !== undefined) {
1551
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1552
+ fromUpdatedAt.toISOString() :
1553
+ fromUpdatedAt;
1554
+ }
1555
+ if (pageCursor !== undefined) {
1556
+ localVarQueryParameter['page_cursor'] = pageCursor;
1557
+ }
1558
+ if (pageSize !== undefined) {
1559
+ localVarQueryParameter['page_size'] = pageSize;
1560
+ }
1561
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1562
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1563
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1564
+ return {
1565
+ url: toPathString$1(localVarUrlObj),
1566
+ options: localVarRequestOptions,
1567
+ };
1568
+ },
1370
1569
  /**
1371
1570
  * List NFT owners by token ID
1372
1571
  * @summary List NFT owners by token ID
@@ -1468,6 +1667,20 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
1468
1667
  const NftOwnersApiFp = function (configuration) {
1469
1668
  const localVarAxiosParamCreator = NftOwnersApiAxiosParamCreator(configuration);
1470
1669
  return {
1670
+ /**
1671
+ * List all NFT owners on a chain
1672
+ * @summary List all NFT owners
1673
+ * @param {string} chainName The name of chain
1674
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1675
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1676
+ * @param {number} [pageSize] Maximum number of items to return
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ */
1680
+ async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1681
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1682
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1683
+ },
1471
1684
  /**
1472
1685
  * List NFT owners by token ID
1473
1686
  * @summary List NFT owners by token ID
@@ -1507,6 +1720,16 @@ const NftOwnersApiFp = function (configuration) {
1507
1720
  const NftOwnersApiFactory = function (configuration, basePath, axios) {
1508
1721
  const localVarFp = NftOwnersApiFp(configuration);
1509
1722
  return {
1723
+ /**
1724
+ * List all NFT owners on a chain
1725
+ * @summary List all NFT owners
1726
+ * @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ */
1730
+ listAllNFTOwners(requestParameters, options) {
1731
+ return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1732
+ },
1510
1733
  /**
1511
1734
  * List NFT owners by token ID
1512
1735
  * @summary List NFT owners by token ID
@@ -1536,6 +1759,17 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
1536
1759
  * @extends {BaseAPI}
1537
1760
  */
1538
1761
  class NftOwnersApi extends BaseAPI$1 {
1762
+ /**
1763
+ * List all NFT owners on a chain
1764
+ * @summary List all NFT owners
1765
+ * @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
1766
+ * @param {*} [options] Override http request option.
1767
+ * @throws {RequiredError}
1768
+ * @memberof NftOwnersApi
1769
+ */
1770
+ listAllNFTOwners(requestParameters, options) {
1771
+ return NftOwnersApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1772
+ }
1539
1773
  /**
1540
1774
  * List NFT owners by token ID
1541
1775
  * @summary List NFT owners by token ID
@@ -1616,51 +1850,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
1616
1850
  options: localVarRequestOptions,
1617
1851
  };
1618
1852
  },
1619
- /**
1620
- * List all NFT owners on a chain
1621
- * @summary List all NFT owners
1622
- * @param {string} chainName The name of chain
1623
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1624
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1625
- * @param {number} [pageSize] Maximum number of items to return
1626
- * @param {*} [options] Override http request option.
1627
- * @throws {RequiredError}
1628
- */
1629
- listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1630
- // verify required parameter 'chainName' is not null or undefined
1631
- assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
1632
- // verify required parameter 'fromUpdatedAt' is not null or undefined
1633
- assertParamExists$1('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
1634
- const localVarPath = `/v1/chains/{chain_name}/nft-owners`
1635
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1636
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1637
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1638
- let baseOptions;
1639
- if (configuration) {
1640
- baseOptions = configuration.baseOptions;
1641
- }
1642
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1643
- const localVarHeaderParameter = {};
1644
- const localVarQueryParameter = {};
1645
- if (fromUpdatedAt !== undefined) {
1646
- localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1647
- fromUpdatedAt.toISOString() :
1648
- fromUpdatedAt;
1649
- }
1650
- if (pageCursor !== undefined) {
1651
- localVarQueryParameter['page_cursor'] = pageCursor;
1652
- }
1653
- if (pageSize !== undefined) {
1654
- localVarQueryParameter['page_size'] = pageSize;
1655
- }
1656
- setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1657
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1658
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1659
- return {
1660
- url: toPathString$1(localVarUrlObj),
1661
- options: localVarRequestOptions,
1662
- };
1663
- },
1664
1853
  /**
1665
1854
  * List all NFTs on a chain
1666
1855
  * @summary List all NFTs
@@ -1818,20 +2007,6 @@ const NftsApiFp = function (configuration) {
1818
2007
  const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
1819
2008
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1820
2009
  },
1821
- /**
1822
- * List all NFT owners on a chain
1823
- * @summary List all NFT owners
1824
- * @param {string} chainName The name of chain
1825
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1826
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1827
- * @param {number} [pageSize] Maximum number of items to return
1828
- * @param {*} [options] Override http request option.
1829
- * @throws {RequiredError}
1830
- */
1831
- async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1832
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1833
- return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1834
- },
1835
2010
  /**
1836
2011
  * List all NFTs on a chain
1837
2012
  * @summary List all NFTs
@@ -1895,16 +2070,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
1895
2070
  getNFT(requestParameters, options) {
1896
2071
  return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
1897
2072
  },
1898
- /**
1899
- * List all NFT owners on a chain
1900
- * @summary List all NFT owners
1901
- * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
1902
- * @param {*} [options] Override http request option.
1903
- * @throws {RequiredError}
1904
- */
1905
- listAllNFTOwners(requestParameters, options) {
1906
- return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1907
- },
1908
2073
  /**
1909
2074
  * List all NFTs on a chain
1910
2075
  * @summary List all NFTs
@@ -1955,17 +2120,6 @@ class NftsApi extends BaseAPI$1 {
1955
2120
  getNFT(requestParameters, options) {
1956
2121
  return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
1957
2122
  }
1958
- /**
1959
- * List all NFT owners on a chain
1960
- * @summary List all NFT owners
1961
- * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
1962
- * @param {*} [options] Override http request option.
1963
- * @throws {RequiredError}
1964
- * @memberof NftsApi
1965
- */
1966
- listAllNFTOwners(requestParameters, options) {
1967
- return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1968
- }
1969
2123
  /**
1970
2124
  * List all NFTs on a chain
1971
2125
  * @summary List all NFTs
@@ -2195,7 +2349,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2195
2349
  * @param {OrderStatusName} [status] Order status to filter by
2196
2350
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2197
2351
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2352
+ * @param {string} [accountAddress] The account address of the user who created the listing
2353
+ * @param {string} [sellItemMetadataId] The metadata_id of the sell item
2198
2354
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2355
+ * @param {string} [fromUpdatedAt] From updated at including given date
2199
2356
  * @param {number} [pageSize] Maximum number of orders to return per page
2200
2357
  * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2201
2358
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2203,7 +2360,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2203
2360
  * @param {*} [options] Override http request option.
2204
2361
  * @throws {RequiredError}
2205
2362
  */
2206
- listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2363
+ listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2207
2364
  // verify required parameter 'chainName' is not null or undefined
2208
2365
  assertParamExists$1('listListings', 'chainName', chainName);
2209
2366
  const localVarPath = `/v1/chains/{chain_name}/orders/listings`
@@ -2226,9 +2383,20 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2226
2383
  if (buyItemContractAddress !== undefined) {
2227
2384
  localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
2228
2385
  }
2386
+ if (accountAddress !== undefined) {
2387
+ localVarQueryParameter['account_address'] = accountAddress;
2388
+ }
2389
+ if (sellItemMetadataId !== undefined) {
2390
+ localVarQueryParameter['sell_item_metadata_id'] = sellItemMetadataId;
2391
+ }
2229
2392
  if (sellItemTokenId !== undefined) {
2230
2393
  localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
2231
2394
  }
2395
+ if (fromUpdatedAt !== undefined) {
2396
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
2397
+ fromUpdatedAt.toISOString() :
2398
+ fromUpdatedAt;
2399
+ }
2232
2400
  if (pageSize !== undefined) {
2233
2401
  localVarQueryParameter['page_size'] = pageSize;
2234
2402
  }
@@ -2254,6 +2422,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2254
2422
  * @summary List all trades
2255
2423
  * @param {string} chainName
2256
2424
  * @param {string} [accountAddress]
2425
+ * @param {string} [fromIndexedAt] From indexed at including given date
2257
2426
  * @param {number} [pageSize] Maximum number of trades to return per page
2258
2427
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2259
2428
  * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2261,7 +2430,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2261
2430
  * @param {*} [options] Override http request option.
2262
2431
  * @throws {RequiredError}
2263
2432
  */
2264
- listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2433
+ listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2265
2434
  // verify required parameter 'chainName' is not null or undefined
2266
2435
  assertParamExists$1('listTrades', 'chainName', chainName);
2267
2436
  const localVarPath = `/v1/chains/{chain_name}/trades`
@@ -2278,6 +2447,11 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2278
2447
  if (accountAddress !== undefined) {
2279
2448
  localVarQueryParameter['account_address'] = accountAddress;
2280
2449
  }
2450
+ if (fromIndexedAt !== undefined) {
2451
+ localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
2452
+ fromIndexedAt.toISOString() :
2453
+ fromIndexedAt;
2454
+ }
2281
2455
  if (pageSize !== undefined) {
2282
2456
  localVarQueryParameter['page_size'] = pageSize;
2283
2457
  }
@@ -2374,7 +2548,10 @@ const OrdersApiFp = function (configuration) {
2374
2548
  * @param {OrderStatusName} [status] Order status to filter by
2375
2549
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2376
2550
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2551
+ * @param {string} [accountAddress] The account address of the user who created the listing
2552
+ * @param {string} [sellItemMetadataId] The metadata_id of the sell item
2377
2553
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2554
+ * @param {string} [fromUpdatedAt] From updated at including given date
2378
2555
  * @param {number} [pageSize] Maximum number of orders to return per page
2379
2556
  * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2380
2557
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2382,8 +2559,8 @@ const OrdersApiFp = function (configuration) {
2382
2559
  * @param {*} [options] Override http request option.
2383
2560
  * @throws {RequiredError}
2384
2561
  */
2385
- async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
2386
- const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
2562
+ async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2563
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2387
2564
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2388
2565
  },
2389
2566
  /**
@@ -2391,6 +2568,7 @@ const OrdersApiFp = function (configuration) {
2391
2568
  * @summary List all trades
2392
2569
  * @param {string} chainName
2393
2570
  * @param {string} [accountAddress]
2571
+ * @param {string} [fromIndexedAt] From indexed at including given date
2394
2572
  * @param {number} [pageSize] Maximum number of trades to return per page
2395
2573
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2396
2574
  * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2398,8 +2576,8 @@ const OrdersApiFp = function (configuration) {
2398
2576
  * @param {*} [options] Override http request option.
2399
2577
  * @throws {RequiredError}
2400
2578
  */
2401
- async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
2402
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
2579
+ async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2403
2581
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2404
2582
  },
2405
2583
  };
@@ -2469,7 +2647,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2469
2647
  * @throws {RequiredError}
2470
2648
  */
2471
2649
  listListings(requestParameters, options) {
2472
- 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));
2650
+ return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2473
2651
  },
2474
2652
  /**
2475
2653
  * List all trades
@@ -2479,7 +2657,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2479
2657
  * @throws {RequiredError}
2480
2658
  */
2481
2659
  listTrades(requestParameters, options) {
2482
- return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2660
+ return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2483
2661
  },
2484
2662
  };
2485
2663
  };
@@ -2554,7 +2732,7 @@ class OrdersApi extends BaseAPI$1 {
2554
2732
  * @memberof OrdersApi
2555
2733
  */
2556
2734
  listListings(requestParameters, options) {
2557
- return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
2735
+ return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
2558
2736
  }
2559
2737
  /**
2560
2738
  * List all trades
@@ -2565,7 +2743,7 @@ class OrdersApi extends BaseAPI$1 {
2565
2743
  * @memberof OrdersApi
2566
2744
  */
2567
2745
  listTrades(requestParameters, options) {
2568
- 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));
2746
+ return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
2569
2747
  }
2570
2748
  }
2571
2749
  /**
@@ -2686,6 +2864,50 @@ const PassportApiAxiosParamCreator = function (configuration) {
2686
2864
  options: localVarRequestOptions,
2687
2865
  };
2688
2866
  },
2867
+ /**
2868
+ * Get a contract abi by contract address and method id
2869
+ * @summary Get a contract abi
2870
+ * @param {string} chainName
2871
+ * @param {string} contractAddress contract address
2872
+ * @param {string} methodId method id
2873
+ * @param {*} [options] Override http request option.
2874
+ * @throws {RequiredError}
2875
+ */
2876
+ getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
2877
+ // verify required parameter 'chainName' is not null or undefined
2878
+ assertParamExists$1('getContractAbi', 'chainName', chainName);
2879
+ // verify required parameter 'contractAddress' is not null or undefined
2880
+ assertParamExists$1('getContractAbi', 'contractAddress', contractAddress);
2881
+ // verify required parameter 'methodId' is not null or undefined
2882
+ assertParamExists$1('getContractAbi', 'methodId', methodId);
2883
+ const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
2884
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
2885
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2886
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
2887
+ let baseOptions;
2888
+ if (configuration) {
2889
+ baseOptions = configuration.baseOptions;
2890
+ }
2891
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2892
+ const localVarHeaderParameter = {};
2893
+ const localVarQueryParameter = {};
2894
+ // authentication BearerAuth required
2895
+ // http bearer authentication required
2896
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
2897
+ if (contractAddress !== undefined) {
2898
+ localVarQueryParameter['contract_address'] = contractAddress;
2899
+ }
2900
+ if (methodId !== undefined) {
2901
+ localVarQueryParameter['method_id'] = methodId;
2902
+ }
2903
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
2904
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2905
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2906
+ return {
2907
+ url: toPathString$1(localVarUrlObj),
2908
+ options: localVarRequestOptions,
2909
+ };
2910
+ },
2689
2911
  /**
2690
2912
  * Get all the Ethereum linked addresses for a user based on its userId
2691
2913
  * @summary Get Ethereum linked addresses for a user
@@ -2786,6 +3008,19 @@ const PassportApiFp = function (configuration) {
2786
3008
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options);
2787
3009
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2788
3010
  },
3011
+ /**
3012
+ * Get a contract abi by contract address and method id
3013
+ * @summary Get a contract abi
3014
+ * @param {string} chainName
3015
+ * @param {string} contractAddress contract address
3016
+ * @param {string} methodId method id
3017
+ * @param {*} [options] Override http request option.
3018
+ * @throws {RequiredError}
3019
+ */
3020
+ async getContractAbi(chainName, contractAddress, methodId, options) {
3021
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
3022
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
3023
+ },
2789
3024
  /**
2790
3025
  * Get all the Ethereum linked addresses for a user based on its userId
2791
3026
  * @summary Get Ethereum linked addresses for a user
@@ -2838,6 +3073,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
2838
3073
  createCounterfactualAddressDeprecated(requestParameters, options) {
2839
3074
  return localVarFp.createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(axios, basePath));
2840
3075
  },
3076
+ /**
3077
+ * Get a contract abi by contract address and method id
3078
+ * @summary Get a contract abi
3079
+ * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
3080
+ * @param {*} [options] Override http request option.
3081
+ * @throws {RequiredError}
3082
+ */
3083
+ getContractAbi(requestParameters, options) {
3084
+ return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
3085
+ },
2841
3086
  /**
2842
3087
  * Get all the Ethereum linked addresses for a user based on its userId
2843
3088
  * @summary Get Ethereum linked addresses for a user
@@ -2889,6 +3134,17 @@ class PassportApi extends BaseAPI$1 {
2889
3134
  createCounterfactualAddressDeprecated(requestParameters, options) {
2890
3135
  return PassportApiFp(this.configuration).createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(this.axios, this.basePath));
2891
3136
  }
3137
+ /**
3138
+ * Get a contract abi by contract address and method id
3139
+ * @summary Get a contract abi
3140
+ * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
3141
+ * @param {*} [options] Override http request option.
3142
+ * @throws {RequiredError}
3143
+ * @memberof PassportApi
3144
+ */
3145
+ getContractAbi(requestParameters, options) {
3146
+ return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
3147
+ }
2892
3148
  /**
2893
3149
  * Get all the Ethereum linked addresses for a user based on its userId
2894
3150
  * @summary Get Ethereum linked addresses for a user
@@ -3193,6 +3449,125 @@ let Configuration$2 = class Configuration {
3193
3449
  }
3194
3450
  };
3195
3451
 
3452
+ /* tslint:disable */
3453
+ /* eslint-disable */
3454
+ /**
3455
+ * Immutable zkEVM API
3456
+ * Immutable Multi Rollup API
3457
+ *
3458
+ * The version of the OpenAPI document: 1.0.0
3459
+ * Contact: support@immutable.com
3460
+ *
3461
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3462
+ * https://openapi-generator.tech
3463
+ * Do not edit the class manually.
3464
+ */
3465
+ const APIError400AllOfCodeEnum = {
3466
+ ValidationError: 'VALIDATION_ERROR'
3467
+ };
3468
+
3469
+ /* tslint:disable */
3470
+ /* eslint-disable */
3471
+ /**
3472
+ * Immutable zkEVM API
3473
+ * Immutable Multi Rollup API
3474
+ *
3475
+ * The version of the OpenAPI document: 1.0.0
3476
+ * Contact: support@immutable.com
3477
+ *
3478
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3479
+ * https://openapi-generator.tech
3480
+ * Do not edit the class manually.
3481
+ */
3482
+ const APIError401AllOfCodeEnum = {
3483
+ UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
3484
+ };
3485
+
3486
+ /* tslint:disable */
3487
+ /* eslint-disable */
3488
+ /**
3489
+ * Immutable zkEVM API
3490
+ * Immutable Multi Rollup API
3491
+ *
3492
+ * The version of the OpenAPI document: 1.0.0
3493
+ * Contact: support@immutable.com
3494
+ *
3495
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3496
+ * https://openapi-generator.tech
3497
+ * Do not edit the class manually.
3498
+ */
3499
+ const APIError403AllOfCodeEnum = {
3500
+ AuthenticationError: 'AUTHENTICATION_ERROR'
3501
+ };
3502
+
3503
+ /* tslint:disable */
3504
+ /* eslint-disable */
3505
+ /**
3506
+ * Immutable zkEVM API
3507
+ * Immutable Multi Rollup API
3508
+ *
3509
+ * The version of the OpenAPI document: 1.0.0
3510
+ * Contact: support@immutable.com
3511
+ *
3512
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3513
+ * https://openapi-generator.tech
3514
+ * Do not edit the class manually.
3515
+ */
3516
+ const APIError404AllOfCodeEnum = {
3517
+ ResourceNotFound: 'RESOURCE_NOT_FOUND'
3518
+ };
3519
+
3520
+ /* tslint:disable */
3521
+ /* eslint-disable */
3522
+ /**
3523
+ * Immutable zkEVM API
3524
+ * Immutable Multi Rollup API
3525
+ *
3526
+ * The version of the OpenAPI document: 1.0.0
3527
+ * Contact: support@immutable.com
3528
+ *
3529
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3530
+ * https://openapi-generator.tech
3531
+ * Do not edit the class manually.
3532
+ */
3533
+ const APIError429AllOfCodeEnum = {
3534
+ TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
3535
+ };
3536
+
3537
+ /* tslint:disable */
3538
+ /* eslint-disable */
3539
+ /**
3540
+ * Immutable zkEVM API
3541
+ * Immutable Multi Rollup API
3542
+ *
3543
+ * The version of the OpenAPI document: 1.0.0
3544
+ * Contact: support@immutable.com
3545
+ *
3546
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3547
+ * https://openapi-generator.tech
3548
+ * Do not edit the class manually.
3549
+ */
3550
+ const APIError500AllOfCodeEnum = {
3551
+ InternalServerError: 'INTERNAL_SERVER_ERROR'
3552
+ };
3553
+
3554
+ /* tslint:disable */
3555
+ /* eslint-disable */
3556
+ /**
3557
+ * Immutable zkEVM API
3558
+ * Immutable Multi Rollup API
3559
+ *
3560
+ * The version of the OpenAPI document: 1.0.0
3561
+ * Contact: support@immutable.com
3562
+ *
3563
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3564
+ * https://openapi-generator.tech
3565
+ * Do not edit the class manually.
3566
+ */
3567
+ const APIError501AllOfCodeEnum = {
3568
+ NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3569
+ };
3570
+
3196
3571
  /* tslint:disable */
3197
3572
  /* eslint-disable */
3198
3573
  /**
@@ -3277,7 +3652,25 @@ const CancelledOrderStatusCancellationTypeEnum = {
3277
3652
  * @enum {string}
3278
3653
  */
3279
3654
  const CollectionContractType = {
3280
- Erc721: 'ERC721'
3655
+ Erc721: 'ERC721',
3656
+ Erc1155: 'ERC1155'
3657
+ };
3658
+
3659
+ /* tslint:disable */
3660
+ /* eslint-disable */
3661
+ /**
3662
+ * Immutable zkEVM API
3663
+ * Immutable Multi Rollup API
3664
+ *
3665
+ * The version of the OpenAPI document: 1.0.0
3666
+ * Contact: support@immutable.com
3667
+ *
3668
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3669
+ * https://openapi-generator.tech
3670
+ * Do not edit the class manually.
3671
+ */
3672
+ const ERC1155ItemTypeEnum = {
3673
+ Erc1155: 'ERC1155'
3281
3674
  };
3282
3675
 
3283
3676
  /* tslint:disable */
@@ -3293,7 +3686,7 @@ const CollectionContractType = {
3293
3686
  * https://openapi-generator.tech
3294
3687
  * Do not edit the class manually.
3295
3688
  */
3296
- const ERC20ItemItemTypeEnum = {
3689
+ const ERC20ItemTypeEnum = {
3297
3690
  Erc20: 'ERC20'
3298
3691
  };
3299
3692
 
@@ -3310,7 +3703,7 @@ const ERC20ItemItemTypeEnum = {
3310
3703
  * https://openapi-generator.tech
3311
3704
  * Do not edit the class manually.
3312
3705
  */
3313
- const ERC721ItemItemTypeEnum = {
3706
+ const ERC721ItemTypeEnum = {
3314
3707
  Erc721: 'ERC721'
3315
3708
  };
3316
3709
 
@@ -3345,7 +3738,7 @@ const ExpiredOrderStatusNameEnum = {
3345
3738
  * Do not edit the class manually.
3346
3739
  */
3347
3740
  const FailedOrderCancellationReasonCodeEnum = {
3348
- AlreadyFilled: 'ALREADY_FILLED'
3741
+ Filled: 'FILLED'
3349
3742
  };
3350
3743
 
3351
3744
  /* tslint:disable */
@@ -3361,7 +3754,7 @@ const FailedOrderCancellationReasonCodeEnum = {
3361
3754
  * https://openapi-generator.tech
3362
3755
  * Do not edit the class manually.
3363
3756
  */
3364
- const FeeFeeTypeEnum = {
3757
+ const FeeTypeEnum = {
3365
3758
  Royalty: 'ROYALTY',
3366
3759
  MakerEcosystem: 'MAKER_ECOSYSTEM',
3367
3760
  TakerEcosystem: 'TAKER_ECOSYSTEM',
@@ -3385,6 +3778,23 @@ const FilledOrderStatusNameEnum = {
3385
3778
  Filled: 'FILLED'
3386
3779
  };
3387
3780
 
3781
+ /* tslint:disable */
3782
+ /* eslint-disable */
3783
+ /**
3784
+ * Immutable zkEVM API
3785
+ * Immutable Multi Rollup API
3786
+ *
3787
+ * The version of the OpenAPI document: 1.0.0
3788
+ * Contact: support@immutable.com
3789
+ *
3790
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3791
+ * https://openapi-generator.tech
3792
+ * Do not edit the class manually.
3793
+ */
3794
+ const GetContractAbiResTransactionTypeEnum = {
3795
+ Erc20Approve: 'ERC20_APPROVE'
3796
+ };
3797
+
3388
3798
  /* tslint:disable */
3389
3799
  /* eslint-disable */
3390
3800
  /**
@@ -3402,6 +3812,30 @@ const InactiveOrderStatusNameEnum = {
3402
3812
  Inactive: 'INACTIVE'
3403
3813
  };
3404
3814
 
3815
+ /* tslint:disable */
3816
+ /* eslint-disable */
3817
+ /**
3818
+ * Immutable zkEVM API
3819
+ * Immutable Multi Rollup API
3820
+ *
3821
+ * The version of the OpenAPI document: 1.0.0
3822
+ * Contact: support@immutable.com
3823
+ *
3824
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3825
+ * https://openapi-generator.tech
3826
+ * Do not edit the class manually.
3827
+ */
3828
+ /**
3829
+ * The status of the mint request
3830
+ * @export
3831
+ * @enum {string}
3832
+ */
3833
+ const MintRequestStatus = {
3834
+ Pending: 'pending',
3835
+ Succeeded: 'succeeded',
3836
+ Failed: 'failed'
3837
+ };
3838
+
3405
3839
  /* tslint:disable */
3406
3840
  /* eslint-disable */
3407
3841
  /**
@@ -3437,8 +3871,28 @@ const NFTContractType = {
3437
3871
  * https://openapi-generator.tech
3438
3872
  * Do not edit the class manually.
3439
3873
  */
3440
- const NativeItemItemTypeEnum = {
3441
- Native: 'NATIVE'
3874
+ const NativeItemTypeEnum = {
3875
+ Native: 'NATIVE',
3876
+ Erc20: 'ERC20',
3877
+ Erc721: 'ERC721',
3878
+ Erc1155: 'ERC1155'
3879
+ };
3880
+
3881
+ /* tslint:disable */
3882
+ /* eslint-disable */
3883
+ /**
3884
+ * Immutable zkEVM API
3885
+ * Immutable Multi Rollup API
3886
+ *
3887
+ * The version of the OpenAPI document: 1.0.0
3888
+ * Contact: support@immutable.com
3889
+ *
3890
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3891
+ * https://openapi-generator.tech
3892
+ * Do not edit the class manually.
3893
+ */
3894
+ const OrderTypeEnum = {
3895
+ Listing: 'LISTING'
3442
3896
  };
3443
3897
 
3444
3898
  /* tslint:disable */
@@ -3557,6 +4011,13 @@ const TokenContractType = {
3557
4011
 
3558
4012
  var index = /*#__PURE__*/Object.freeze({
3559
4013
  __proto__: null,
4014
+ APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
4015
+ APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
4016
+ APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
4017
+ APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
4018
+ APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
4019
+ APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
4020
+ APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3560
4021
  ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
3561
4022
  ActivitiesApi: ActivitiesApi,
3562
4023
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
@@ -3575,12 +4036,14 @@ var index = /*#__PURE__*/Object.freeze({
3575
4036
  CollectionsApiFactory: CollectionsApiFactory,
3576
4037
  CollectionsApiFp: CollectionsApiFp,
3577
4038
  Configuration: Configuration$2,
3578
- ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
3579
- ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
4039
+ ERC1155ItemTypeEnum: ERC1155ItemTypeEnum,
4040
+ ERC20ItemTypeEnum: ERC20ItemTypeEnum,
4041
+ ERC721ItemTypeEnum: ERC721ItemTypeEnum,
3580
4042
  ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
3581
4043
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
3582
- FeeFeeTypeEnum: FeeFeeTypeEnum,
4044
+ FeeTypeEnum: FeeTypeEnum,
3583
4045
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
4046
+ GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
3584
4047
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
3585
4048
  ListListingsSortByEnum: ListListingsSortByEnum$1,
3586
4049
  ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
@@ -3590,8 +4053,9 @@ var index = /*#__PURE__*/Object.freeze({
3590
4053
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
3591
4054
  MetadataApiFactory: MetadataApiFactory,
3592
4055
  MetadataApiFp: MetadataApiFp,
4056
+ MintRequestStatus: MintRequestStatus,
3593
4057
  NFTContractType: NFTContractType,
3594
- NativeItemItemTypeEnum: NativeItemItemTypeEnum,
4058
+ NativeItemTypeEnum: NativeItemTypeEnum,
3595
4059
  NftOwnersApi: NftOwnersApi,
3596
4060
  NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
3597
4061
  NftOwnersApiFactory: NftOwnersApiFactory,
@@ -3601,6 +4065,7 @@ var index = /*#__PURE__*/Object.freeze({
3601
4065
  NftsApiFactory: NftsApiFactory,
3602
4066
  NftsApiFp: NftsApiFp,
3603
4067
  OrderStatusName: OrderStatusName$1,
4068
+ OrderTypeEnum: OrderTypeEnum,
3604
4069
  OrdersApi: OrdersApi,
3605
4070
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3606
4071
  OrdersApiFactory: OrdersApiFactory,
@@ -3769,7 +4234,7 @@ class MultiRollupApiClients {
3769
4234
  }
3770
4235
 
3771
4236
  // eslint-disable-next-line @typescript-eslint/naming-convention
3772
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.7' };
4237
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.8' };
3773
4238
  const createConfig = ({ basePath, headers, }) => {
3774
4239
  if (!basePath.trim()) {
3775
4240
  throw Error('basePath can not be empty');
@@ -3829,7 +4294,7 @@ class APIError extends Error {
3829
4294
 
3830
4295
  /* eslint-disable implicit-arrow-linebreak */
3831
4296
  const defaultHeaders = {
3832
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.7',
4297
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.8',
3833
4298
  };
3834
4299
  /**
3835
4300
  * createAPIConfiguration to create a custom Configuration
@@ -3950,6 +4415,20 @@ class BlockchainData {
3950
4415
  throw formatError(err);
3951
4416
  });
3952
4417
  }
4418
+ /**
4419
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
4420
+ * @param request - the request object containing the parameters to be provided in the API request
4421
+ * @returns a promise that resolves with a list of activities
4422
+ * @throws {@link index.APIError}
4423
+ */
4424
+ async listActivityHistory(request) {
4425
+ return await this.activities
4426
+ .listActivityHistory(request)
4427
+ .then((res) => res.data)
4428
+ .catch((err) => {
4429
+ throw formatError(err);
4430
+ });
4431
+ }
3953
4432
  /**
3954
4433
  * Get a single activity by ID
3955
4434
  * @param request - the request object containing the parameters to be provided in the API request
@@ -4007,7 +4486,7 @@ class BlockchainData {
4007
4486
  });
4008
4487
  }
4009
4488
  /**
4010
- * Get collection by contract address
4489
+ * Get a collection by contract address
4011
4490
  * @param request - the request object containing the parameters to be provided in the API request
4012
4491
  * @returns a promise that resolves with a single collection
4013
4492
  * @throws {@link index.APIError}
@@ -4111,7 +4590,7 @@ class BlockchainData {
4111
4590
  * @throws {@link index.APIError}
4112
4591
  */
4113
4592
  async listAllNFTOwners(request) {
4114
- return await this.nfts
4593
+ return await this.nftOwners
4115
4594
  .listAllNFTOwners(request)
4116
4595
  .then((res) => res.data)
4117
4596
  .catch((err) => {
@@ -4174,6 +4653,20 @@ class BlockchainData {
4174
4653
  throw formatError(err);
4175
4654
  });
4176
4655
  }
4656
+ /**
4657
+ * List NFT Metadata by chain
4658
+ * @param request - the request object containing the parameters to be provided in the API request
4659
+ * @returns a promise that resolves with a list of Metadata
4660
+ * @throws {@link index.APIError}
4661
+ */
4662
+ async listNFTMetadataByChain(request) {
4663
+ return await this.metadata
4664
+ .listMetadataForChain(request)
4665
+ .then((res) => res.data)
4666
+ .catch((err) => {
4667
+ throw formatError(err);
4668
+ });
4669
+ }
4177
4670
  /**
4178
4671
  * Refresh collection metadata
4179
4672
  * @param request - the request object containing the parameters to be provided in the API request
@@ -4240,7 +4733,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4240
4733
  chainID,
4241
4734
  coreContractAddress,
4242
4735
  registrationContractAddress,
4243
- sdkVersion: 'ts-immutable-sdk-0.35.7',
4736
+ sdkVersion: 'ts-immutable-sdk-0.35.8',
4244
4737
  });
4245
4738
  /**
4246
4739
  * Sets `sdkVersion` at the time of build
@@ -30552,7 +31045,7 @@ const GAS_OVERRIDES = {
30552
31045
  maxPriorityFeePerGas: BigNumber$1.from(101e9),
30553
31046
  };
30554
31047
 
30555
- const SDK_VERSION_MARKER = '0.35.7';
31048
+ const SDK_VERSION_MARKER = '0.35.8';
30556
31049
  // This SDK version is replaced by the `yarn build` command ran on the root level
30557
31050
  const globalPackageVersion = () => SDK_VERSION_MARKER;
30558
31051