@imtbl/sdk 0.35.7-alpha → 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.cjs CHANGED
@@ -395,15 +395,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
395
395
  * @param {string} [tokenId] An `uint256` token id as string
396
396
  * @param {string} [accountAddress] The account address activity contains
397
397
  * @param {ActivityType} [activityType] The activity type
398
- * @param {string} [fromIndexedAt] From indexed at including given date
399
- * @param {string} [toIndexedAt] To indexed at including given date
400
398
  * @param {string} [transactionHash] The transaction hash of activity
401
399
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
402
400
  * @param {number} [pageSize] Maximum number of items to return
403
401
  * @param {*} [options] Override http request option.
404
402
  * @throws {RequiredError}
405
403
  */
406
- listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options = {}) => {
404
+ listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options = {}) => {
407
405
  // verify required parameter 'chainName' is not null or undefined
408
406
  assertParamExists$1('listActivities', 'chainName', chainName);
409
407
  const localVarPath = `/v1/chains/{chain_name}/activities`
@@ -429,16 +427,6 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
429
427
  if (activityType !== undefined) {
430
428
  localVarQueryParameter['activity_type'] = activityType;
431
429
  }
432
- if (fromIndexedAt !== undefined) {
433
- localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
434
- fromIndexedAt.toISOString() :
435
- fromIndexedAt;
436
- }
437
- if (toIndexedAt !== undefined) {
438
- localVarQueryParameter['to_indexed_at'] = (toIndexedAt instanceof Date) ?
439
- toIndexedAt.toISOString() :
440
- toIndexedAt;
441
- }
442
430
  if (transactionHash !== undefined) {
443
431
  localVarQueryParameter['transaction_hash'] = transactionHash;
444
432
  }
@@ -456,6 +444,61 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
456
444
  options: localVarRequestOptions,
457
445
  };
458
446
  },
447
+ /**
448
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
449
+ * @summary List history of activities
450
+ * @param {string} chainName The name of chain
451
+ * @param {string} fromUpdatedAt From indexed at including given date
452
+ * @param {string} [toUpdatedAt] To indexed at including given date
453
+ * @param {string} [contractAddress] The contract address of the collection
454
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
455
+ * @param {number} [pageSize] Maximum number of items to return
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
460
+ // verify required parameter 'chainName' is not null or undefined
461
+ assertParamExists$1('listActivityHistory', 'chainName', chainName);
462
+ // verify required parameter 'fromUpdatedAt' is not null or undefined
463
+ assertParamExists$1('listActivityHistory', 'fromUpdatedAt', fromUpdatedAt);
464
+ const localVarPath = `/v1/chains/{chain_name}/activity-history`
465
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
468
+ let baseOptions;
469
+ if (configuration) {
470
+ baseOptions = configuration.baseOptions;
471
+ }
472
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
473
+ const localVarHeaderParameter = {};
474
+ const localVarQueryParameter = {};
475
+ if (fromUpdatedAt !== undefined) {
476
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
477
+ fromUpdatedAt.toISOString() :
478
+ fromUpdatedAt;
479
+ }
480
+ if (toUpdatedAt !== undefined) {
481
+ localVarQueryParameter['to_updated_at'] = (toUpdatedAt instanceof Date) ?
482
+ toUpdatedAt.toISOString() :
483
+ toUpdatedAt;
484
+ }
485
+ if (contractAddress !== undefined) {
486
+ localVarQueryParameter['contract_address'] = contractAddress;
487
+ }
488
+ if (pageCursor !== undefined) {
489
+ localVarQueryParameter['page_cursor'] = pageCursor;
490
+ }
491
+ if (pageSize !== undefined) {
492
+ localVarQueryParameter['page_size'] = pageSize;
493
+ }
494
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
497
+ return {
498
+ url: toPathString$1(localVarUrlObj),
499
+ options: localVarRequestOptions,
500
+ };
501
+ },
459
502
  };
460
503
  };
461
504
  /**
@@ -485,16 +528,30 @@ const ActivitiesApiFp = function (configuration) {
485
528
  * @param {string} [tokenId] An `uint256` token id as string
486
529
  * @param {string} [accountAddress] The account address activity contains
487
530
  * @param {ActivityType} [activityType] The activity type
488
- * @param {string} [fromIndexedAt] From indexed at including given date
489
- * @param {string} [toIndexedAt] To indexed at including given date
490
531
  * @param {string} [transactionHash] The transaction hash of activity
491
532
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
492
533
  * @param {number} [pageSize] Maximum number of items to return
493
534
  * @param {*} [options] Override http request option.
494
535
  * @throws {RequiredError}
495
536
  */
496
- async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options) {
497
- const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, fromIndexedAt, toIndexedAt, transactionHash, pageCursor, pageSize, options);
537
+ async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options) {
538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options);
539
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
540
+ },
541
+ /**
542
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
543
+ * @summary List history of activities
544
+ * @param {string} chainName The name of chain
545
+ * @param {string} fromUpdatedAt From indexed at including given date
546
+ * @param {string} [toUpdatedAt] To indexed at including given date
547
+ * @param {string} [contractAddress] The contract address of the collection
548
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
549
+ * @param {number} [pageSize] Maximum number of items to return
550
+ * @param {*} [options] Override http request option.
551
+ * @throws {RequiredError}
552
+ */
553
+ async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
498
555
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
499
556
  },
500
557
  };
@@ -524,7 +581,17 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
524
581
  * @throws {RequiredError}
525
582
  */
526
583
  listActivities(requestParameters, options) {
527
- 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));
584
+ 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));
585
+ },
586
+ /**
587
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
588
+ * @summary List history of activities
589
+ * @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ listActivityHistory(requestParameters, options) {
594
+ return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
528
595
  },
529
596
  };
530
597
  };
@@ -555,7 +622,18 @@ class ActivitiesApi extends BaseAPI$1 {
555
622
  * @memberof ActivitiesApi
556
623
  */
557
624
  listActivities(requestParameters, options) {
558
- 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));
625
+ 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));
626
+ }
627
+ /**
628
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
629
+ * @summary List history of activities
630
+ * @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ * @memberof ActivitiesApi
634
+ */
635
+ listActivityHistory(requestParameters, options) {
636
+ 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));
559
637
  }
560
638
  }
561
639
 
@@ -1077,8 +1155,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1077
1155
  };
1078
1156
  },
1079
1157
  /**
1080
- * Get a list of metadata by from the a given contract
1081
- * @summary Get a list of metadata by from the a given contract
1158
+ * Get a list of metadata from the given contract
1159
+ * @summary Get a list of metadata from the given contract
1082
1160
  * @param {string} chainName The name of chain
1083
1161
  * @param {string} contractAddress The address of metadata contract
1084
1162
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
@@ -1123,6 +1201,49 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1123
1201
  options: localVarRequestOptions,
1124
1202
  };
1125
1203
  },
1204
+ /**
1205
+ * Get a list of metadata from the given chain
1206
+ * @summary Get a list of metadata from the given chain
1207
+ * @param {string} chainName The name of chain
1208
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1209
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1210
+ * @param {number} [pageSize] Maximum number of items to return
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ */
1214
+ listMetadataForChain: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1215
+ // verify required parameter 'chainName' is not null or undefined
1216
+ assertParamExists$1('listMetadataForChain', 'chainName', chainName);
1217
+ const localVarPath = `/v1/chains/{chain_name}/metadata`
1218
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1219
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1220
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1221
+ let baseOptions;
1222
+ if (configuration) {
1223
+ baseOptions = configuration.baseOptions;
1224
+ }
1225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1226
+ const localVarHeaderParameter = {};
1227
+ const localVarQueryParameter = {};
1228
+ if (fromUpdatedAt !== undefined) {
1229
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1230
+ fromUpdatedAt.toISOString() :
1231
+ fromUpdatedAt;
1232
+ }
1233
+ if (pageCursor !== undefined) {
1234
+ localVarQueryParameter['page_cursor'] = pageCursor;
1235
+ }
1236
+ if (pageSize !== undefined) {
1237
+ localVarQueryParameter['page_size'] = pageSize;
1238
+ }
1239
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1242
+ return {
1243
+ url: toPathString$1(localVarUrlObj),
1244
+ options: localVarRequestOptions,
1245
+ };
1246
+ },
1126
1247
  /**
1127
1248
  * Refresh stacked metadata
1128
1249
  * @summary Refresh stacked metadata
@@ -1226,8 +1347,8 @@ const MetadataApiFp = function (configuration) {
1226
1347
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1227
1348
  },
1228
1349
  /**
1229
- * Get a list of metadata by from the a given contract
1230
- * @summary Get a list of metadata by from the a given contract
1350
+ * Get a list of metadata from the given contract
1351
+ * @summary Get a list of metadata from the given contract
1231
1352
  * @param {string} chainName The name of chain
1232
1353
  * @param {string} contractAddress The address of metadata contract
1233
1354
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
@@ -1240,6 +1361,20 @@ const MetadataApiFp = function (configuration) {
1240
1361
  const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
1241
1362
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1242
1363
  },
1364
+ /**
1365
+ * Get a list of metadata from the given chain
1366
+ * @summary Get a list of metadata from the given chain
1367
+ * @param {string} chainName The name of chain
1368
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1369
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1370
+ * @param {number} [pageSize] Maximum number of items to return
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ */
1374
+ async listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1376
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1377
+ },
1243
1378
  /**
1244
1379
  * Refresh stacked metadata
1245
1380
  * @summary Refresh stacked metadata
@@ -1286,8 +1421,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1286
1421
  return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
1287
1422
  },
1288
1423
  /**
1289
- * Get a list of metadata by from the a given contract
1290
- * @summary Get a list of metadata by from the a given contract
1424
+ * Get a list of metadata from the given contract
1425
+ * @summary Get a list of metadata from the given contract
1291
1426
  * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1292
1427
  * @param {*} [options] Override http request option.
1293
1428
  * @throws {RequiredError}
@@ -1295,6 +1430,16 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1295
1430
  listMetadata(requestParameters, options) {
1296
1431
  return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1297
1432
  },
1433
+ /**
1434
+ * Get a list of metadata from the given chain
1435
+ * @summary Get a list of metadata from the given chain
1436
+ * @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ */
1440
+ listMetadataForChain(requestParameters, options) {
1441
+ return localVarFp.listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1442
+ },
1298
1443
  /**
1299
1444
  * Refresh stacked metadata
1300
1445
  * @summary Refresh stacked metadata
@@ -1336,8 +1481,8 @@ class MetadataApi extends BaseAPI$1 {
1336
1481
  return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
1337
1482
  }
1338
1483
  /**
1339
- * Get a list of metadata by from the a given contract
1340
- * @summary Get a list of metadata by from the a given contract
1484
+ * Get a list of metadata from the given contract
1485
+ * @summary Get a list of metadata from the given contract
1341
1486
  * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1342
1487
  * @param {*} [options] Override http request option.
1343
1488
  * @throws {RequiredError}
@@ -1346,6 +1491,17 @@ class MetadataApi extends BaseAPI$1 {
1346
1491
  listMetadata(requestParameters, options) {
1347
1492
  return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1348
1493
  }
1494
+ /**
1495
+ * Get a list of metadata from the given chain
1496
+ * @summary Get a list of metadata from the given chain
1497
+ * @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
1498
+ * @param {*} [options] Override http request option.
1499
+ * @throws {RequiredError}
1500
+ * @memberof MetadataApi
1501
+ */
1502
+ listMetadataForChain(requestParameters, options) {
1503
+ return MetadataApiFp(this.configuration).listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1504
+ }
1349
1505
  /**
1350
1506
  * Refresh stacked metadata
1351
1507
  * @summary Refresh stacked metadata
@@ -1389,6 +1545,49 @@ class MetadataApi extends BaseAPI$1 {
1389
1545
  */
1390
1546
  const NftOwnersApiAxiosParamCreator = function (configuration) {
1391
1547
  return {
1548
+ /**
1549
+ * List all NFT owners on a chain
1550
+ * @summary List all NFT owners
1551
+ * @param {string} chainName The name of chain
1552
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1553
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1554
+ * @param {number} [pageSize] Maximum number of items to return
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1559
+ // verify required parameter 'chainName' is not null or undefined
1560
+ assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
1561
+ const localVarPath = `/v1/chains/{chain_name}/nft-owners`
1562
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1563
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1564
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1565
+ let baseOptions;
1566
+ if (configuration) {
1567
+ baseOptions = configuration.baseOptions;
1568
+ }
1569
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1570
+ const localVarHeaderParameter = {};
1571
+ const localVarQueryParameter = {};
1572
+ if (fromUpdatedAt !== undefined) {
1573
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1574
+ fromUpdatedAt.toISOString() :
1575
+ fromUpdatedAt;
1576
+ }
1577
+ if (pageCursor !== undefined) {
1578
+ localVarQueryParameter['page_cursor'] = pageCursor;
1579
+ }
1580
+ if (pageSize !== undefined) {
1581
+ localVarQueryParameter['page_size'] = pageSize;
1582
+ }
1583
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1584
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1585
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1586
+ return {
1587
+ url: toPathString$1(localVarUrlObj),
1588
+ options: localVarRequestOptions,
1589
+ };
1590
+ },
1392
1591
  /**
1393
1592
  * List NFT owners by token ID
1394
1593
  * @summary List NFT owners by token ID
@@ -1490,6 +1689,20 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
1490
1689
  const NftOwnersApiFp = function (configuration) {
1491
1690
  const localVarAxiosParamCreator = NftOwnersApiAxiosParamCreator(configuration);
1492
1691
  return {
1692
+ /**
1693
+ * List all NFT owners on a chain
1694
+ * @summary List all NFT owners
1695
+ * @param {string} chainName The name of chain
1696
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1697
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1698
+ * @param {number} [pageSize] Maximum number of items to return
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1703
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1704
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1705
+ },
1493
1706
  /**
1494
1707
  * List NFT owners by token ID
1495
1708
  * @summary List NFT owners by token ID
@@ -1529,6 +1742,16 @@ const NftOwnersApiFp = function (configuration) {
1529
1742
  const NftOwnersApiFactory = function (configuration, basePath, axios) {
1530
1743
  const localVarFp = NftOwnersApiFp(configuration);
1531
1744
  return {
1745
+ /**
1746
+ * List all NFT owners on a chain
1747
+ * @summary List all NFT owners
1748
+ * @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
1749
+ * @param {*} [options] Override http request option.
1750
+ * @throws {RequiredError}
1751
+ */
1752
+ listAllNFTOwners(requestParameters, options) {
1753
+ return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1754
+ },
1532
1755
  /**
1533
1756
  * List NFT owners by token ID
1534
1757
  * @summary List NFT owners by token ID
@@ -1558,6 +1781,17 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
1558
1781
  * @extends {BaseAPI}
1559
1782
  */
1560
1783
  class NftOwnersApi extends BaseAPI$1 {
1784
+ /**
1785
+ * List all NFT owners on a chain
1786
+ * @summary List all NFT owners
1787
+ * @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ * @memberof NftOwnersApi
1791
+ */
1792
+ listAllNFTOwners(requestParameters, options) {
1793
+ return NftOwnersApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1794
+ }
1561
1795
  /**
1562
1796
  * List NFT owners by token ID
1563
1797
  * @summary List NFT owners by token ID
@@ -1638,51 +1872,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
1638
1872
  options: localVarRequestOptions,
1639
1873
  };
1640
1874
  },
1641
- /**
1642
- * List all NFT owners on a chain
1643
- * @summary List all NFT owners
1644
- * @param {string} chainName The name of chain
1645
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1646
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1647
- * @param {number} [pageSize] Maximum number of items to return
1648
- * @param {*} [options] Override http request option.
1649
- * @throws {RequiredError}
1650
- */
1651
- listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1652
- // verify required parameter 'chainName' is not null or undefined
1653
- assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
1654
- // verify required parameter 'fromUpdatedAt' is not null or undefined
1655
- assertParamExists$1('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
1656
- const localVarPath = `/v1/chains/{chain_name}/nft-owners`
1657
- .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1658
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1659
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1660
- let baseOptions;
1661
- if (configuration) {
1662
- baseOptions = configuration.baseOptions;
1663
- }
1664
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1665
- const localVarHeaderParameter = {};
1666
- const localVarQueryParameter = {};
1667
- if (fromUpdatedAt !== undefined) {
1668
- localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1669
- fromUpdatedAt.toISOString() :
1670
- fromUpdatedAt;
1671
- }
1672
- if (pageCursor !== undefined) {
1673
- localVarQueryParameter['page_cursor'] = pageCursor;
1674
- }
1675
- if (pageSize !== undefined) {
1676
- localVarQueryParameter['page_size'] = pageSize;
1677
- }
1678
- setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1679
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1680
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1681
- return {
1682
- url: toPathString$1(localVarUrlObj),
1683
- options: localVarRequestOptions,
1684
- };
1685
- },
1686
1875
  /**
1687
1876
  * List all NFTs on a chain
1688
1877
  * @summary List all NFTs
@@ -1840,20 +2029,6 @@ const NftsApiFp = function (configuration) {
1840
2029
  const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
1841
2030
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1842
2031
  },
1843
- /**
1844
- * List all NFT owners on a chain
1845
- * @summary List all NFT owners
1846
- * @param {string} chainName The name of chain
1847
- * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1848
- * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1849
- * @param {number} [pageSize] Maximum number of items to return
1850
- * @param {*} [options] Override http request option.
1851
- * @throws {RequiredError}
1852
- */
1853
- async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1854
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1855
- return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1856
- },
1857
2032
  /**
1858
2033
  * List all NFTs on a chain
1859
2034
  * @summary List all NFTs
@@ -1917,16 +2092,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
1917
2092
  getNFT(requestParameters, options) {
1918
2093
  return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
1919
2094
  },
1920
- /**
1921
- * List all NFT owners on a chain
1922
- * @summary List all NFT owners
1923
- * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
1924
- * @param {*} [options] Override http request option.
1925
- * @throws {RequiredError}
1926
- */
1927
- listAllNFTOwners(requestParameters, options) {
1928
- return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
1929
- },
1930
2095
  /**
1931
2096
  * List all NFTs on a chain
1932
2097
  * @summary List all NFTs
@@ -1977,17 +2142,6 @@ class NftsApi extends BaseAPI$1 {
1977
2142
  getNFT(requestParameters, options) {
1978
2143
  return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
1979
2144
  }
1980
- /**
1981
- * List all NFT owners on a chain
1982
- * @summary List all NFT owners
1983
- * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
1984
- * @param {*} [options] Override http request option.
1985
- * @throws {RequiredError}
1986
- * @memberof NftsApi
1987
- */
1988
- listAllNFTOwners(requestParameters, options) {
1989
- return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1990
- }
1991
2145
  /**
1992
2146
  * List all NFTs on a chain
1993
2147
  * @summary List all NFTs
@@ -2217,7 +2371,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2217
2371
  * @param {OrderStatusName} [status] Order status to filter by
2218
2372
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2219
2373
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2374
+ * @param {string} [accountAddress] The account address of the user who created the listing
2375
+ * @param {string} [sellItemMetadataId] The metadata_id of the sell item
2220
2376
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2377
+ * @param {string} [fromUpdatedAt] From updated at including given date
2221
2378
  * @param {number} [pageSize] Maximum number of orders to return per page
2222
2379
  * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2223
2380
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2225,7 +2382,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2225
2382
  * @param {*} [options] Override http request option.
2226
2383
  * @throws {RequiredError}
2227
2384
  */
2228
- listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2385
+ listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2229
2386
  // verify required parameter 'chainName' is not null or undefined
2230
2387
  assertParamExists$1('listListings', 'chainName', chainName);
2231
2388
  const localVarPath = `/v1/chains/{chain_name}/orders/listings`
@@ -2248,9 +2405,20 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2248
2405
  if (buyItemContractAddress !== undefined) {
2249
2406
  localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
2250
2407
  }
2408
+ if (accountAddress !== undefined) {
2409
+ localVarQueryParameter['account_address'] = accountAddress;
2410
+ }
2411
+ if (sellItemMetadataId !== undefined) {
2412
+ localVarQueryParameter['sell_item_metadata_id'] = sellItemMetadataId;
2413
+ }
2251
2414
  if (sellItemTokenId !== undefined) {
2252
2415
  localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
2253
2416
  }
2417
+ if (fromUpdatedAt !== undefined) {
2418
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
2419
+ fromUpdatedAt.toISOString() :
2420
+ fromUpdatedAt;
2421
+ }
2254
2422
  if (pageSize !== undefined) {
2255
2423
  localVarQueryParameter['page_size'] = pageSize;
2256
2424
  }
@@ -2276,6 +2444,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2276
2444
  * @summary List all trades
2277
2445
  * @param {string} chainName
2278
2446
  * @param {string} [accountAddress]
2447
+ * @param {string} [fromIndexedAt] From indexed at including given date
2279
2448
  * @param {number} [pageSize] Maximum number of trades to return per page
2280
2449
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2281
2450
  * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2283,7 +2452,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2283
2452
  * @param {*} [options] Override http request option.
2284
2453
  * @throws {RequiredError}
2285
2454
  */
2286
- listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2455
+ listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2287
2456
  // verify required parameter 'chainName' is not null or undefined
2288
2457
  assertParamExists$1('listTrades', 'chainName', chainName);
2289
2458
  const localVarPath = `/v1/chains/{chain_name}/trades`
@@ -2300,6 +2469,11 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2300
2469
  if (accountAddress !== undefined) {
2301
2470
  localVarQueryParameter['account_address'] = accountAddress;
2302
2471
  }
2472
+ if (fromIndexedAt !== undefined) {
2473
+ localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
2474
+ fromIndexedAt.toISOString() :
2475
+ fromIndexedAt;
2476
+ }
2303
2477
  if (pageSize !== undefined) {
2304
2478
  localVarQueryParameter['page_size'] = pageSize;
2305
2479
  }
@@ -2396,7 +2570,10 @@ const OrdersApiFp = function (configuration) {
2396
2570
  * @param {OrderStatusName} [status] Order status to filter by
2397
2571
  * @param {string} [sellItemContractAddress] Sell item contract address to filter by
2398
2572
  * @param {string} [buyItemContractAddress] Buy item contract address to filter by
2573
+ * @param {string} [accountAddress] The account address of the user who created the listing
2574
+ * @param {string} [sellItemMetadataId] The metadata_id of the sell item
2399
2575
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2576
+ * @param {string} [fromUpdatedAt] From updated at including given date
2400
2577
  * @param {number} [pageSize] Maximum number of orders to return per page
2401
2578
  * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2402
2579
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2404,8 +2581,8 @@ const OrdersApiFp = function (configuration) {
2404
2581
  * @param {*} [options] Override http request option.
2405
2582
  * @throws {RequiredError}
2406
2583
  */
2407
- async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
2408
- const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
2584
+ async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2409
2586
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2410
2587
  },
2411
2588
  /**
@@ -2413,6 +2590,7 @@ const OrdersApiFp = function (configuration) {
2413
2590
  * @summary List all trades
2414
2591
  * @param {string} chainName
2415
2592
  * @param {string} [accountAddress]
2593
+ * @param {string} [fromIndexedAt] From indexed at including given date
2416
2594
  * @param {number} [pageSize] Maximum number of trades to return per page
2417
2595
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
2418
2596
  * @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
@@ -2420,8 +2598,8 @@ const OrdersApiFp = function (configuration) {
2420
2598
  * @param {*} [options] Override http request option.
2421
2599
  * @throws {RequiredError}
2422
2600
  */
2423
- async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
2424
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
2601
+ async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2425
2603
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2426
2604
  },
2427
2605
  };
@@ -2491,7 +2669,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2491
2669
  * @throws {RequiredError}
2492
2670
  */
2493
2671
  listListings(requestParameters, options) {
2494
- 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));
2672
+ 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));
2495
2673
  },
2496
2674
  /**
2497
2675
  * List all trades
@@ -2501,7 +2679,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2501
2679
  * @throws {RequiredError}
2502
2680
  */
2503
2681
  listTrades(requestParameters, options) {
2504
- return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2682
+ return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2505
2683
  },
2506
2684
  };
2507
2685
  };
@@ -2576,7 +2754,7 @@ class OrdersApi extends BaseAPI$1 {
2576
2754
  * @memberof OrdersApi
2577
2755
  */
2578
2756
  listListings(requestParameters, options) {
2579
- 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));
2757
+ 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));
2580
2758
  }
2581
2759
  /**
2582
2760
  * List all trades
@@ -2587,7 +2765,7 @@ class OrdersApi extends BaseAPI$1 {
2587
2765
  * @memberof OrdersApi
2588
2766
  */
2589
2767
  listTrades(requestParameters, options) {
2590
- 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));
2768
+ 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));
2591
2769
  }
2592
2770
  }
2593
2771
  /**
@@ -2708,6 +2886,50 @@ const PassportApiAxiosParamCreator = function (configuration) {
2708
2886
  options: localVarRequestOptions,
2709
2887
  };
2710
2888
  },
2889
+ /**
2890
+ * Get a contract abi by contract address and method id
2891
+ * @summary Get a contract abi
2892
+ * @param {string} chainName
2893
+ * @param {string} contractAddress contract address
2894
+ * @param {string} methodId method id
2895
+ * @param {*} [options] Override http request option.
2896
+ * @throws {RequiredError}
2897
+ */
2898
+ getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
2899
+ // verify required parameter 'chainName' is not null or undefined
2900
+ assertParamExists$1('getContractAbi', 'chainName', chainName);
2901
+ // verify required parameter 'contractAddress' is not null or undefined
2902
+ assertParamExists$1('getContractAbi', 'contractAddress', contractAddress);
2903
+ // verify required parameter 'methodId' is not null or undefined
2904
+ assertParamExists$1('getContractAbi', 'methodId', methodId);
2905
+ const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
2906
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
2907
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2908
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
2909
+ let baseOptions;
2910
+ if (configuration) {
2911
+ baseOptions = configuration.baseOptions;
2912
+ }
2913
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2914
+ const localVarHeaderParameter = {};
2915
+ const localVarQueryParameter = {};
2916
+ // authentication BearerAuth required
2917
+ // http bearer authentication required
2918
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
2919
+ if (contractAddress !== undefined) {
2920
+ localVarQueryParameter['contract_address'] = contractAddress;
2921
+ }
2922
+ if (methodId !== undefined) {
2923
+ localVarQueryParameter['method_id'] = methodId;
2924
+ }
2925
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
2926
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2927
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2928
+ return {
2929
+ url: toPathString$1(localVarUrlObj),
2930
+ options: localVarRequestOptions,
2931
+ };
2932
+ },
2711
2933
  /**
2712
2934
  * Get all the Ethereum linked addresses for a user based on its userId
2713
2935
  * @summary Get Ethereum linked addresses for a user
@@ -2808,6 +3030,19 @@ const PassportApiFp = function (configuration) {
2808
3030
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options);
2809
3031
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2810
3032
  },
3033
+ /**
3034
+ * Get a contract abi by contract address and method id
3035
+ * @summary Get a contract abi
3036
+ * @param {string} chainName
3037
+ * @param {string} contractAddress contract address
3038
+ * @param {string} methodId method id
3039
+ * @param {*} [options] Override http request option.
3040
+ * @throws {RequiredError}
3041
+ */
3042
+ async getContractAbi(chainName, contractAddress, methodId, options) {
3043
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
3044
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
3045
+ },
2811
3046
  /**
2812
3047
  * Get all the Ethereum linked addresses for a user based on its userId
2813
3048
  * @summary Get Ethereum linked addresses for a user
@@ -2860,6 +3095,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
2860
3095
  createCounterfactualAddressDeprecated(requestParameters, options) {
2861
3096
  return localVarFp.createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(axios, basePath));
2862
3097
  },
3098
+ /**
3099
+ * Get a contract abi by contract address and method id
3100
+ * @summary Get a contract abi
3101
+ * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
3102
+ * @param {*} [options] Override http request option.
3103
+ * @throws {RequiredError}
3104
+ */
3105
+ getContractAbi(requestParameters, options) {
3106
+ return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
3107
+ },
2863
3108
  /**
2864
3109
  * Get all the Ethereum linked addresses for a user based on its userId
2865
3110
  * @summary Get Ethereum linked addresses for a user
@@ -2911,6 +3156,17 @@ class PassportApi extends BaseAPI$1 {
2911
3156
  createCounterfactualAddressDeprecated(requestParameters, options) {
2912
3157
  return PassportApiFp(this.configuration).createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(this.axios, this.basePath));
2913
3158
  }
3159
+ /**
3160
+ * Get a contract abi by contract address and method id
3161
+ * @summary Get a contract abi
3162
+ * @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
3163
+ * @param {*} [options] Override http request option.
3164
+ * @throws {RequiredError}
3165
+ * @memberof PassportApi
3166
+ */
3167
+ getContractAbi(requestParameters, options) {
3168
+ return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
3169
+ }
2914
3170
  /**
2915
3171
  * Get all the Ethereum linked addresses for a user based on its userId
2916
3172
  * @summary Get Ethereum linked addresses for a user
@@ -3215,6 +3471,125 @@ let Configuration$2 = class Configuration {
3215
3471
  }
3216
3472
  };
3217
3473
 
3474
+ /* tslint:disable */
3475
+ /* eslint-disable */
3476
+ /**
3477
+ * Immutable zkEVM API
3478
+ * Immutable Multi Rollup API
3479
+ *
3480
+ * The version of the OpenAPI document: 1.0.0
3481
+ * Contact: support@immutable.com
3482
+ *
3483
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3484
+ * https://openapi-generator.tech
3485
+ * Do not edit the class manually.
3486
+ */
3487
+ const APIError400AllOfCodeEnum = {
3488
+ ValidationError: 'VALIDATION_ERROR'
3489
+ };
3490
+
3491
+ /* tslint:disable */
3492
+ /* eslint-disable */
3493
+ /**
3494
+ * Immutable zkEVM API
3495
+ * Immutable Multi Rollup API
3496
+ *
3497
+ * The version of the OpenAPI document: 1.0.0
3498
+ * Contact: support@immutable.com
3499
+ *
3500
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3501
+ * https://openapi-generator.tech
3502
+ * Do not edit the class manually.
3503
+ */
3504
+ const APIError401AllOfCodeEnum = {
3505
+ UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
3506
+ };
3507
+
3508
+ /* tslint:disable */
3509
+ /* eslint-disable */
3510
+ /**
3511
+ * Immutable zkEVM API
3512
+ * Immutable Multi Rollup API
3513
+ *
3514
+ * The version of the OpenAPI document: 1.0.0
3515
+ * Contact: support@immutable.com
3516
+ *
3517
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3518
+ * https://openapi-generator.tech
3519
+ * Do not edit the class manually.
3520
+ */
3521
+ const APIError403AllOfCodeEnum = {
3522
+ AuthenticationError: 'AUTHENTICATION_ERROR'
3523
+ };
3524
+
3525
+ /* tslint:disable */
3526
+ /* eslint-disable */
3527
+ /**
3528
+ * Immutable zkEVM API
3529
+ * Immutable Multi Rollup API
3530
+ *
3531
+ * The version of the OpenAPI document: 1.0.0
3532
+ * Contact: support@immutable.com
3533
+ *
3534
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3535
+ * https://openapi-generator.tech
3536
+ * Do not edit the class manually.
3537
+ */
3538
+ const APIError404AllOfCodeEnum = {
3539
+ ResourceNotFound: 'RESOURCE_NOT_FOUND'
3540
+ };
3541
+
3542
+ /* tslint:disable */
3543
+ /* eslint-disable */
3544
+ /**
3545
+ * Immutable zkEVM API
3546
+ * Immutable Multi Rollup API
3547
+ *
3548
+ * The version of the OpenAPI document: 1.0.0
3549
+ * Contact: support@immutable.com
3550
+ *
3551
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3552
+ * https://openapi-generator.tech
3553
+ * Do not edit the class manually.
3554
+ */
3555
+ const APIError429AllOfCodeEnum = {
3556
+ TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
3557
+ };
3558
+
3559
+ /* tslint:disable */
3560
+ /* eslint-disable */
3561
+ /**
3562
+ * Immutable zkEVM API
3563
+ * Immutable Multi Rollup API
3564
+ *
3565
+ * The version of the OpenAPI document: 1.0.0
3566
+ * Contact: support@immutable.com
3567
+ *
3568
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3569
+ * https://openapi-generator.tech
3570
+ * Do not edit the class manually.
3571
+ */
3572
+ const APIError500AllOfCodeEnum = {
3573
+ InternalServerError: 'INTERNAL_SERVER_ERROR'
3574
+ };
3575
+
3576
+ /* tslint:disable */
3577
+ /* eslint-disable */
3578
+ /**
3579
+ * Immutable zkEVM API
3580
+ * Immutable Multi Rollup API
3581
+ *
3582
+ * The version of the OpenAPI document: 1.0.0
3583
+ * Contact: support@immutable.com
3584
+ *
3585
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3586
+ * https://openapi-generator.tech
3587
+ * Do not edit the class manually.
3588
+ */
3589
+ const APIError501AllOfCodeEnum = {
3590
+ NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3591
+ };
3592
+
3218
3593
  /* tslint:disable */
3219
3594
  /* eslint-disable */
3220
3595
  /**
@@ -3299,7 +3674,25 @@ const CancelledOrderStatusCancellationTypeEnum = {
3299
3674
  * @enum {string}
3300
3675
  */
3301
3676
  const CollectionContractType = {
3302
- Erc721: 'ERC721'
3677
+ Erc721: 'ERC721',
3678
+ Erc1155: 'ERC1155'
3679
+ };
3680
+
3681
+ /* tslint:disable */
3682
+ /* eslint-disable */
3683
+ /**
3684
+ * Immutable zkEVM API
3685
+ * Immutable Multi Rollup API
3686
+ *
3687
+ * The version of the OpenAPI document: 1.0.0
3688
+ * Contact: support@immutable.com
3689
+ *
3690
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3691
+ * https://openapi-generator.tech
3692
+ * Do not edit the class manually.
3693
+ */
3694
+ const ERC1155ItemTypeEnum = {
3695
+ Erc1155: 'ERC1155'
3303
3696
  };
3304
3697
 
3305
3698
  /* tslint:disable */
@@ -3315,7 +3708,7 @@ const CollectionContractType = {
3315
3708
  * https://openapi-generator.tech
3316
3709
  * Do not edit the class manually.
3317
3710
  */
3318
- const ERC20ItemItemTypeEnum = {
3711
+ const ERC20ItemTypeEnum = {
3319
3712
  Erc20: 'ERC20'
3320
3713
  };
3321
3714
 
@@ -3332,7 +3725,7 @@ const ERC20ItemItemTypeEnum = {
3332
3725
  * https://openapi-generator.tech
3333
3726
  * Do not edit the class manually.
3334
3727
  */
3335
- const ERC721ItemItemTypeEnum = {
3728
+ const ERC721ItemTypeEnum = {
3336
3729
  Erc721: 'ERC721'
3337
3730
  };
3338
3731
 
@@ -3367,7 +3760,7 @@ const ExpiredOrderStatusNameEnum = {
3367
3760
  * Do not edit the class manually.
3368
3761
  */
3369
3762
  const FailedOrderCancellationReasonCodeEnum = {
3370
- AlreadyFilled: 'ALREADY_FILLED'
3763
+ Filled: 'FILLED'
3371
3764
  };
3372
3765
 
3373
3766
  /* tslint:disable */
@@ -3383,7 +3776,7 @@ const FailedOrderCancellationReasonCodeEnum = {
3383
3776
  * https://openapi-generator.tech
3384
3777
  * Do not edit the class manually.
3385
3778
  */
3386
- const FeeFeeTypeEnum = {
3779
+ const FeeTypeEnum = {
3387
3780
  Royalty: 'ROYALTY',
3388
3781
  MakerEcosystem: 'MAKER_ECOSYSTEM',
3389
3782
  TakerEcosystem: 'TAKER_ECOSYSTEM',
@@ -3407,6 +3800,23 @@ const FilledOrderStatusNameEnum = {
3407
3800
  Filled: 'FILLED'
3408
3801
  };
3409
3802
 
3803
+ /* tslint:disable */
3804
+ /* eslint-disable */
3805
+ /**
3806
+ * Immutable zkEVM API
3807
+ * Immutable Multi Rollup API
3808
+ *
3809
+ * The version of the OpenAPI document: 1.0.0
3810
+ * Contact: support@immutable.com
3811
+ *
3812
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3813
+ * https://openapi-generator.tech
3814
+ * Do not edit the class manually.
3815
+ */
3816
+ const GetContractAbiResTransactionTypeEnum = {
3817
+ Erc20Approve: 'ERC20_APPROVE'
3818
+ };
3819
+
3410
3820
  /* tslint:disable */
3411
3821
  /* eslint-disable */
3412
3822
  /**
@@ -3424,6 +3834,30 @@ const InactiveOrderStatusNameEnum = {
3424
3834
  Inactive: 'INACTIVE'
3425
3835
  };
3426
3836
 
3837
+ /* tslint:disable */
3838
+ /* eslint-disable */
3839
+ /**
3840
+ * Immutable zkEVM API
3841
+ * Immutable Multi Rollup API
3842
+ *
3843
+ * The version of the OpenAPI document: 1.0.0
3844
+ * Contact: support@immutable.com
3845
+ *
3846
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3847
+ * https://openapi-generator.tech
3848
+ * Do not edit the class manually.
3849
+ */
3850
+ /**
3851
+ * The status of the mint request
3852
+ * @export
3853
+ * @enum {string}
3854
+ */
3855
+ const MintRequestStatus = {
3856
+ Pending: 'pending',
3857
+ Succeeded: 'succeeded',
3858
+ Failed: 'failed'
3859
+ };
3860
+
3427
3861
  /* tslint:disable */
3428
3862
  /* eslint-disable */
3429
3863
  /**
@@ -3459,8 +3893,28 @@ const NFTContractType = {
3459
3893
  * https://openapi-generator.tech
3460
3894
  * Do not edit the class manually.
3461
3895
  */
3462
- const NativeItemItemTypeEnum = {
3463
- Native: 'NATIVE'
3896
+ const NativeItemTypeEnum = {
3897
+ Native: 'NATIVE',
3898
+ Erc20: 'ERC20',
3899
+ Erc721: 'ERC721',
3900
+ Erc1155: 'ERC1155'
3901
+ };
3902
+
3903
+ /* tslint:disable */
3904
+ /* eslint-disable */
3905
+ /**
3906
+ * Immutable zkEVM API
3907
+ * Immutable Multi Rollup API
3908
+ *
3909
+ * The version of the OpenAPI document: 1.0.0
3910
+ * Contact: support@immutable.com
3911
+ *
3912
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3913
+ * https://openapi-generator.tech
3914
+ * Do not edit the class manually.
3915
+ */
3916
+ const OrderTypeEnum = {
3917
+ Listing: 'LISTING'
3464
3918
  };
3465
3919
 
3466
3920
  /* tslint:disable */
@@ -3579,6 +4033,13 @@ const TokenContractType = {
3579
4033
 
3580
4034
  var index = /*#__PURE__*/Object.freeze({
3581
4035
  __proto__: null,
4036
+ APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
4037
+ APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
4038
+ APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
4039
+ APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
4040
+ APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
4041
+ APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
4042
+ APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3582
4043
  ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
3583
4044
  ActivitiesApi: ActivitiesApi,
3584
4045
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
@@ -3597,12 +4058,14 @@ var index = /*#__PURE__*/Object.freeze({
3597
4058
  CollectionsApiFactory: CollectionsApiFactory,
3598
4059
  CollectionsApiFp: CollectionsApiFp,
3599
4060
  Configuration: Configuration$2,
3600
- ERC20ItemItemTypeEnum: ERC20ItemItemTypeEnum,
3601
- ERC721ItemItemTypeEnum: ERC721ItemItemTypeEnum,
4061
+ ERC1155ItemTypeEnum: ERC1155ItemTypeEnum,
4062
+ ERC20ItemTypeEnum: ERC20ItemTypeEnum,
4063
+ ERC721ItemTypeEnum: ERC721ItemTypeEnum,
3602
4064
  ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
3603
4065
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
3604
- FeeFeeTypeEnum: FeeFeeTypeEnum,
4066
+ FeeTypeEnum: FeeTypeEnum,
3605
4067
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
4068
+ GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
3606
4069
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
3607
4070
  ListListingsSortByEnum: ListListingsSortByEnum$1,
3608
4071
  ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
@@ -3612,8 +4075,9 @@ var index = /*#__PURE__*/Object.freeze({
3612
4075
  MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
3613
4076
  MetadataApiFactory: MetadataApiFactory,
3614
4077
  MetadataApiFp: MetadataApiFp,
4078
+ MintRequestStatus: MintRequestStatus,
3615
4079
  NFTContractType: NFTContractType,
3616
- NativeItemItemTypeEnum: NativeItemItemTypeEnum,
4080
+ NativeItemTypeEnum: NativeItemTypeEnum,
3617
4081
  NftOwnersApi: NftOwnersApi,
3618
4082
  NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
3619
4083
  NftOwnersApiFactory: NftOwnersApiFactory,
@@ -3623,6 +4087,7 @@ var index = /*#__PURE__*/Object.freeze({
3623
4087
  NftsApiFactory: NftsApiFactory,
3624
4088
  NftsApiFp: NftsApiFp,
3625
4089
  OrderStatusName: OrderStatusName$1,
4090
+ OrderTypeEnum: OrderTypeEnum,
3626
4091
  OrdersApi: OrdersApi,
3627
4092
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3628
4093
  OrdersApiFactory: OrdersApiFactory,
@@ -3791,7 +4256,7 @@ class MultiRollupApiClients {
3791
4256
  }
3792
4257
 
3793
4258
  // eslint-disable-next-line @typescript-eslint/naming-convention
3794
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.7-alpha' };
4259
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.35.8' };
3795
4260
  const createConfig = ({ basePath, headers, }) => {
3796
4261
  if (!basePath.trim()) {
3797
4262
  throw Error('basePath can not be empty');
@@ -3851,7 +4316,7 @@ class APIError extends Error {
3851
4316
 
3852
4317
  /* eslint-disable implicit-arrow-linebreak */
3853
4318
  const defaultHeaders = {
3854
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.7-alpha',
4319
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.8',
3855
4320
  };
3856
4321
  /**
3857
4322
  * createAPIConfiguration to create a custom Configuration
@@ -3972,6 +4437,20 @@ class BlockchainData {
3972
4437
  throw formatError(err);
3973
4438
  });
3974
4439
  }
4440
+ /**
4441
+ * List activities sorted by updated_at timestamp ascending, useful for time based data replication
4442
+ * @param request - the request object containing the parameters to be provided in the API request
4443
+ * @returns a promise that resolves with a list of activities
4444
+ * @throws {@link index.APIError}
4445
+ */
4446
+ async listActivityHistory(request) {
4447
+ return await this.activities
4448
+ .listActivityHistory(request)
4449
+ .then((res) => res.data)
4450
+ .catch((err) => {
4451
+ throw formatError(err);
4452
+ });
4453
+ }
3975
4454
  /**
3976
4455
  * Get a single activity by ID
3977
4456
  * @param request - the request object containing the parameters to be provided in the API request
@@ -4029,7 +4508,7 @@ class BlockchainData {
4029
4508
  });
4030
4509
  }
4031
4510
  /**
4032
- * Get collection by contract address
4511
+ * Get a collection by contract address
4033
4512
  * @param request - the request object containing the parameters to be provided in the API request
4034
4513
  * @returns a promise that resolves with a single collection
4035
4514
  * @throws {@link index.APIError}
@@ -4133,7 +4612,7 @@ class BlockchainData {
4133
4612
  * @throws {@link index.APIError}
4134
4613
  */
4135
4614
  async listAllNFTOwners(request) {
4136
- return await this.nfts
4615
+ return await this.nftOwners
4137
4616
  .listAllNFTOwners(request)
4138
4617
  .then((res) => res.data)
4139
4618
  .catch((err) => {
@@ -4196,6 +4675,20 @@ class BlockchainData {
4196
4675
  throw formatError(err);
4197
4676
  });
4198
4677
  }
4678
+ /**
4679
+ * List NFT Metadata by chain
4680
+ * @param request - the request object containing the parameters to be provided in the API request
4681
+ * @returns a promise that resolves with a list of Metadata
4682
+ * @throws {@link index.APIError}
4683
+ */
4684
+ async listNFTMetadataByChain(request) {
4685
+ return await this.metadata
4686
+ .listMetadataForChain(request)
4687
+ .then((res) => res.data)
4688
+ .catch((err) => {
4689
+ throw formatError(err);
4690
+ });
4691
+ }
4199
4692
  /**
4200
4693
  * Refresh collection metadata
4201
4694
  * @param request - the request object containing the parameters to be provided in the API request
@@ -4262,7 +4755,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
4262
4755
  chainID,
4263
4756
  coreContractAddress,
4264
4757
  registrationContractAddress,
4265
- sdkVersion: 'ts-immutable-sdk-0.35.7-alpha',
4758
+ sdkVersion: 'ts-immutable-sdk-0.35.8',
4266
4759
  });
4267
4760
  /**
4268
4761
  * Sets `sdkVersion` at the time of build
@@ -30574,7 +31067,7 @@ const GAS_OVERRIDES = {
30574
31067
  maxPriorityFeePerGas: ethers.BigNumber.from(101e9),
30575
31068
  };
30576
31069
 
30577
- const SDK_VERSION_MARKER = '0.35.7-alpha';
31070
+ const SDK_VERSION_MARKER = '0.35.8';
30578
31071
  // This SDK version is replaced by the `yarn build` command ran on the root level
30579
31072
  const globalPackageVersion = () => SDK_VERSION_MARKER;
30580
31073