@imtbl/sdk 1.46.0 → 1.46.1-alpha

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
@@ -216,7 +216,7 @@ const flattenProperties$1 = (properties) => {
216
216
  };
217
217
 
218
218
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
219
- const SDK_VERSION$1 = '1.46.0';
219
+ const SDK_VERSION$1 = '1.46.1-alpha';
220
220
  const getFrameParentDomain$1 = () => {
221
221
  if (isNode$1()) {
222
222
  return '';
@@ -10959,13 +10959,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
10959
10959
  * @param {string} accountAddress Account address
10960
10960
  * @param {string} chainName The name of chain
10961
10961
  * @param {string} [contractAddress] The address of contract
10962
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
10962
10963
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
10963
10964
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
10964
10965
  * @param {number} [pageSize] Maximum number of items to return
10965
10966
  * @param {*} [options] Override http request option.
10966
10967
  * @throws {RequiredError}
10967
10968
  */
10968
- listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
10969
+ listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
10969
10970
  // verify required parameter 'accountAddress' is not null or undefined
10970
10971
  assertParamExists$2('listNFTsByAccountAddress', 'accountAddress', accountAddress);
10971
10972
  // verify required parameter 'chainName' is not null or undefined
@@ -10985,6 +10986,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
10985
10986
  if (contractAddress !== undefined) {
10986
10987
  localVarQueryParameter['contract_address'] = contractAddress;
10987
10988
  }
10989
+ if (tokenId) {
10990
+ localVarQueryParameter['token_id'] = tokenId;
10991
+ }
10988
10992
  if (fromUpdatedAt !== undefined) {
10989
10993
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
10990
10994
  fromUpdatedAt.toISOString() :
@@ -11103,14 +11107,15 @@ const NftsApiFp = function (configuration) {
11103
11107
  * @param {string} accountAddress Account address
11104
11108
  * @param {string} chainName The name of chain
11105
11109
  * @param {string} [contractAddress] The address of contract
11110
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
11106
11111
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
11107
11112
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
11108
11113
  * @param {number} [pageSize] Maximum number of items to return
11109
11114
  * @param {*} [options] Override http request option.
11110
11115
  * @throws {RequiredError}
11111
11116
  */
11112
- async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
11113
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
11117
+ async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
11118
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
11114
11119
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11115
11120
  },
11116
11121
  };
@@ -11190,7 +11195,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
11190
11195
  * @throws {RequiredError}
11191
11196
  */
11192
11197
  listNFTsByAccountAddress(requestParameters, options) {
11193
- return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
11198
+ return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
11194
11199
  },
11195
11200
  };
11196
11201
  };
@@ -11276,7 +11281,7 @@ class NftsApi extends BaseAPI$2 {
11276
11281
  * @memberof NftsApi
11277
11282
  */
11278
11283
  listNFTsByAccountAddress(requestParameters, options) {
11279
- return NftsApiFp(this.configuration).listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
11284
+ return NftsApiFp(this.configuration).listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
11280
11285
  }
11281
11286
  }
11282
11287
 
@@ -11480,7 +11485,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11480
11485
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
11481
11486
  * @param {string} [fromUpdatedAt] From updated at including given date
11482
11487
  * @param {number} [pageSize] Maximum number of orders to return per page
11483
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
11488
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by. &#x60;buy_item_amount&#x60; sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for &#x60;buy_item_amount&#x60;.
11484
11489
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
11485
11490
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
11486
11491
  * @param {*} [options] Override http request option.
@@ -11551,6 +11556,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11551
11556
  * @summary List all trades
11552
11557
  * @param {string} chainName
11553
11558
  * @param {string} [accountAddress]
11559
+ * @param {string} [sellItemContractAddress]
11554
11560
  * @param {string} [fromIndexedAt] From indexed at including given date
11555
11561
  * @param {number} [pageSize] Maximum number of trades to return per page
11556
11562
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -11559,7 +11565,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11559
11565
  * @param {*} [options] Override http request option.
11560
11566
  * @throws {RequiredError}
11561
11567
  */
11562
- listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11568
+ listTrades: async (chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11563
11569
  // verify required parameter 'chainName' is not null or undefined
11564
11570
  assertParamExists$2('listTrades', 'chainName', chainName);
11565
11571
  const localVarPath = `/v1/chains/{chain_name}/trades`
@@ -11576,6 +11582,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11576
11582
  if (accountAddress !== undefined) {
11577
11583
  localVarQueryParameter['account_address'] = accountAddress;
11578
11584
  }
11585
+ if (sellItemContractAddress !== undefined) {
11586
+ localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
11587
+ }
11579
11588
  if (fromIndexedAt !== undefined) {
11580
11589
  localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
11581
11590
  fromIndexedAt.toISOString() :
@@ -11683,7 +11692,7 @@ const OrdersApiFp = function (configuration) {
11683
11692
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
11684
11693
  * @param {string} [fromUpdatedAt] From updated at including given date
11685
11694
  * @param {number} [pageSize] Maximum number of orders to return per page
11686
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
11695
+ * @param {ListListingsSortByEnum} [sortBy] Order field to sort by. &#x60;buy_item_amount&#x60; sorts by per token price, for example if 5 ERC-1155s are on sale for 10eth, it’s sorted as 2eth for &#x60;buy_item_amount&#x60;.
11687
11696
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
11688
11697
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
11689
11698
  * @param {*} [options] Override http request option.
@@ -11698,6 +11707,7 @@ const OrdersApiFp = function (configuration) {
11698
11707
  * @summary List all trades
11699
11708
  * @param {string} chainName
11700
11709
  * @param {string} [accountAddress]
11710
+ * @param {string} [sellItemContractAddress]
11701
11711
  * @param {string} [fromIndexedAt] From indexed at including given date
11702
11712
  * @param {number} [pageSize] Maximum number of trades to return per page
11703
11713
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -11706,8 +11716,8 @@ const OrdersApiFp = function (configuration) {
11706
11716
  * @param {*} [options] Override http request option.
11707
11717
  * @throws {RequiredError}
11708
11718
  */
11709
- async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11710
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11719
+ async listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11720
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11711
11721
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11712
11722
  },
11713
11723
  };
@@ -11787,7 +11797,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
11787
11797
  * @throws {RequiredError}
11788
11798
  */
11789
11799
  listTrades(requestParameters, options) {
11790
- return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
11800
+ return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.sellItemContractAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
11791
11801
  },
11792
11802
  };
11793
11803
  };
@@ -11873,7 +11883,7 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
11873
11883
  * @memberof OrdersApi
11874
11884
  */
11875
11885
  listTrades(requestParameters, options) {
11876
- 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));
11886
+ return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.sellItemContractAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
11877
11887
  }
11878
11888
  };
11879
11889
  /**
@@ -12358,6 +12368,37 @@ const PassportProfileApiAxiosParamCreator = function (configuration) {
12358
12368
  options: localVarRequestOptions,
12359
12369
  };
12360
12370
  },
12371
+ /**
12372
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12373
+ * @summary Link wallet v2
12374
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
12375
+ * @param {*} [options] Override http request option.
12376
+ * @throws {RequiredError}
12377
+ */
12378
+ linkWalletV2: async (linkWalletV2Request, options = {}) => {
12379
+ const localVarPath = `/passport-profile/v2/linked-wallets`;
12380
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12381
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
12382
+ let baseOptions;
12383
+ if (configuration) {
12384
+ baseOptions = configuration.baseOptions;
12385
+ }
12386
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
12387
+ const localVarHeaderParameter = {};
12388
+ const localVarQueryParameter = {};
12389
+ // authentication BearerAuth required
12390
+ // http bearer authentication required
12391
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
12392
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12393
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
12394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12395
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12396
+ localVarRequestOptions.data = serializeDataIfNeeded$2(linkWalletV2Request, localVarRequestOptions, configuration);
12397
+ return {
12398
+ url: toPathString$2(localVarUrlObj),
12399
+ options: localVarRequestOptions,
12400
+ };
12401
+ },
12361
12402
  };
12362
12403
  };
12363
12404
  /**
@@ -12377,6 +12418,17 @@ const PassportProfileApiFp = function (configuration) {
12377
12418
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfo(options);
12378
12419
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12379
12420
  },
12421
+ /**
12422
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12423
+ * @summary Link wallet v2
12424
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
12425
+ * @param {*} [options] Override http request option.
12426
+ * @throws {RequiredError}
12427
+ */
12428
+ async linkWalletV2(linkWalletV2Request, options) {
12429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkWalletV2(linkWalletV2Request, options);
12430
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12431
+ },
12380
12432
  };
12381
12433
  };
12382
12434
  /**
@@ -12395,6 +12447,16 @@ const PassportProfileApiFactory = function (configuration, basePath, axios) {
12395
12447
  getUserInfo(options) {
12396
12448
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
12397
12449
  },
12450
+ /**
12451
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12452
+ * @summary Link wallet v2
12453
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
12454
+ * @param {*} [options] Override http request option.
12455
+ * @throws {RequiredError}
12456
+ */
12457
+ linkWalletV2(requestParameters = {}, options) {
12458
+ return localVarFp.linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(axios, basePath));
12459
+ },
12398
12460
  };
12399
12461
  };
12400
12462
  /**
@@ -12414,6 +12476,17 @@ class PassportProfileApi extends BaseAPI$2 {
12414
12476
  getUserInfo(options) {
12415
12477
  return PassportProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
12416
12478
  }
12479
+ /**
12480
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12481
+ * @summary Link wallet v2
12482
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
12483
+ * @param {*} [options] Override http request option.
12484
+ * @throws {RequiredError}
12485
+ * @memberof PassportProfileApi
12486
+ */
12487
+ linkWalletV2(requestParameters = {}, options) {
12488
+ return PassportProfileApiFp(this.configuration).linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(this.axios, this.basePath));
12489
+ }
12417
12490
  }
12418
12491
 
12419
12492
  /* tslint:disable */
@@ -12924,7 +12997,8 @@ const CancelledOrderStatusNameEnum = {
12924
12997
  };
12925
12998
  const CancelledOrderStatusCancellationTypeEnum = {
12926
12999
  OnChain: 'ON_CHAIN',
12927
- OffChain: 'OFF_CHAIN'
13000
+ OffChain: 'OFF_CHAIN',
13001
+ Underfunded: 'UNDERFUNDED'
12928
13002
  };
12929
13003
 
12930
13004
  /* tslint:disable */
@@ -13174,6 +13248,31 @@ const FilledOrderStatusNameEnum = {
13174
13248
  Filled: 'FILLED'
13175
13249
  };
13176
13250
 
13251
+ /* tslint:disable */
13252
+ /* eslint-disable */
13253
+ /**
13254
+ * Immutable zkEVM API
13255
+ * Immutable Multi Rollup API
13256
+ *
13257
+ * The version of the OpenAPI document: 1.0.0
13258
+ * Contact: support@immutable.com
13259
+ *
13260
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13261
+ * https://openapi-generator.tech
13262
+ * Do not edit the class manually.
13263
+ */
13264
+ /**
13265
+ *
13266
+ * @export
13267
+ * @enum {string}
13268
+ */
13269
+ const ImmutableVerificationStatusEnum = {
13270
+ Verified: 'verified',
13271
+ Unverified: 'unverified',
13272
+ Spam: 'spam',
13273
+ Inactive: 'inactive'
13274
+ };
13275
+
13177
13276
  /* tslint:disable */
13178
13277
  /* eslint-disable */
13179
13278
  /**
@@ -13299,6 +13398,55 @@ const Network = {
13299
13398
  ZkEvm: 'zkEvm'
13300
13399
  };
13301
13400
 
13401
+ /* tslint:disable */
13402
+ /* eslint-disable */
13403
+ /**
13404
+ * Immutable zkEVM API
13405
+ * Immutable Multi Rollup API
13406
+ *
13407
+ * The version of the OpenAPI document: 1.0.0
13408
+ * Contact: support@immutable.com
13409
+ *
13410
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13411
+ * https://openapi-generator.tech
13412
+ * Do not edit the class manually.
13413
+ */
13414
+ /**
13415
+ * The action an admin can take on an operator allowlist request
13416
+ * @export
13417
+ * @enum {string}
13418
+ */
13419
+ const OperatorAllowlistAdminAction = {
13420
+ Approve: 'approve',
13421
+ Reject: 'reject'
13422
+ };
13423
+
13424
+ /* tslint:disable */
13425
+ /* eslint-disable */
13426
+ /**
13427
+ * Immutable zkEVM API
13428
+ * Immutable Multi Rollup API
13429
+ *
13430
+ * The version of the OpenAPI document: 1.0.0
13431
+ * Contact: support@immutable.com
13432
+ *
13433
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13434
+ * https://openapi-generator.tech
13435
+ * Do not edit the class manually.
13436
+ */
13437
+ /**
13438
+ * The status of a contract on the operator allowlist
13439
+ * @export
13440
+ * @enum {string}
13441
+ */
13442
+ const OperatorAllowlistStatus = {
13443
+ Requested: 'requested',
13444
+ Approved: 'approved',
13445
+ Rejected: 'rejected',
13446
+ Removed: 'removed',
13447
+ Added: 'added'
13448
+ };
13449
+
13302
13450
  /* tslint:disable */
13303
13451
  /* eslint-disable */
13304
13452
  /**
@@ -13343,6 +13491,32 @@ const OrderStatusName$1 = {
13343
13491
  Cancelled: 'CANCELLED'
13344
13492
  };
13345
13493
 
13494
+ /* tslint:disable */
13495
+ /* eslint-disable */
13496
+ /**
13497
+ * Immutable zkEVM API
13498
+ * Immutable Multi Rollup API
13499
+ *
13500
+ * The version of the OpenAPI document: 1.0.0
13501
+ * Contact: support@immutable.com
13502
+ *
13503
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13504
+ * https://openapi-generator.tech
13505
+ * Do not edit the class manually.
13506
+ */
13507
+ /**
13508
+ * The tier of the organisation
13509
+ * @export
13510
+ * @enum {string}
13511
+ */
13512
+ const OrganisationTier = {
13513
+ Common: 'common',
13514
+ Uncommon: 'uncommon',
13515
+ Rare: 'rare',
13516
+ Epic: 'epic',
13517
+ Legendary: 'legendary'
13518
+ };
13519
+
13346
13520
  /* tslint:disable */
13347
13521
  /* eslint-disable */
13348
13522
  /**
@@ -13412,6 +13586,23 @@ const SeaportCreateListingMetadataTypedDataTypeEnum = {
13412
13586
  SeaportCreateListingMetadata: 'SEAPORT_CREATE_LISTING_METADATA'
13413
13587
  };
13414
13588
 
13589
+ /* tslint:disable */
13590
+ /* eslint-disable */
13591
+ /**
13592
+ * Immutable zkEVM API
13593
+ * Immutable Multi Rollup API
13594
+ *
13595
+ * The version of the OpenAPI document: 1.0.0
13596
+ * Contact: support@immutable.com
13597
+ *
13598
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13599
+ * https://openapi-generator.tech
13600
+ * Do not edit the class manually.
13601
+ */
13602
+ const SeaportERC1155ItemTypeEnum = {
13603
+ Erc1155: 'ERC1155'
13604
+ };
13605
+
13415
13606
  /* tslint:disable */
13416
13607
  /* eslint-disable */
13417
13608
  /**
@@ -13520,6 +13711,29 @@ const TokenContractType$1 = {
13520
13711
  Erc20: 'ERC20'
13521
13712
  };
13522
13713
 
13714
+ /* tslint:disable */
13715
+ /* eslint-disable */
13716
+ /**
13717
+ * Immutable zkEVM API
13718
+ * Immutable Multi Rollup API
13719
+ *
13720
+ * The version of the OpenAPI document: 1.0.0
13721
+ * Contact: support@immutable.com
13722
+ *
13723
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13724
+ * https://openapi-generator.tech
13725
+ * Do not edit the class manually.
13726
+ */
13727
+ /**
13728
+ * Contract type for token (ERC721/ERC1155)
13729
+ * @export
13730
+ * @enum {string}
13731
+ */
13732
+ const TokenType = {
13733
+ Erc721: 'ERC721',
13734
+ Erc1155: 'ERC1155'
13735
+ };
13736
+
13523
13737
  /* tslint:disable */
13524
13738
  /* eslint-disable */
13525
13739
  /**
@@ -13657,6 +13871,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13657
13871
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
13658
13872
  FeeTypeEnum: FeeTypeEnum,
13659
13873
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
13874
+ ImmutableVerificationStatusEnum: ImmutableVerificationStatusEnum,
13660
13875
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
13661
13876
  ListListingsBuyItemTypeEnum: ListListingsBuyItemTypeEnum,
13662
13877
  ListListingsSortByEnum: ListListingsSortByEnum,
@@ -13680,12 +13895,15 @@ var index$1 = /*#__PURE__*/Object.freeze({
13680
13895
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
13681
13896
  NftsApiFactory: NftsApiFactory,
13682
13897
  NftsApiFp: NftsApiFp,
13898
+ OperatorAllowlistAdminAction: OperatorAllowlistAdminAction,
13899
+ OperatorAllowlistStatus: OperatorAllowlistStatus,
13683
13900
  OrderStatusName: OrderStatusName$1,
13684
13901
  OrderTypeEnum: OrderTypeEnum,
13685
13902
  OrdersApi: OrdersApi$2,
13686
13903
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
13687
13904
  OrdersApiFactory: OrdersApiFactory,
13688
13905
  OrdersApiFp: OrdersApiFp,
13906
+ OrganisationTier: OrganisationTier,
13689
13907
  PassportApi: PassportApi,
13690
13908
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
13691
13909
  PassportApiFactory: PassportApiFactory,
@@ -13698,12 +13916,14 @@ var index$1 = /*#__PURE__*/Object.freeze({
13698
13916
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
13699
13917
  SaleFeeTypeEnum: SaleFeeTypeEnum$1,
13700
13918
  SeaportCreateListingMetadataTypedDataTypeEnum: SeaportCreateListingMetadataTypedDataTypeEnum,
13919
+ SeaportERC1155ItemTypeEnum: SeaportERC1155ItemTypeEnum,
13701
13920
  SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
13702
13921
  SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
13703
13922
  SeaportFeeTypeEnum: SeaportFeeTypeEnum,
13704
13923
  SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
13705
13924
  SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
13706
13925
  TokenContractType: TokenContractType$1,
13926
+ TokenType: TokenType,
13707
13927
  TokensApi: TokensApi$2,
13708
13928
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
13709
13929
  TokensApiFactory: TokensApiFactory,
@@ -14281,7 +14501,7 @@ class MultiRollupApiClients {
14281
14501
  }
14282
14502
 
14283
14503
  // eslint-disable-next-line @typescript-eslint/naming-convention
14284
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.46.0' };
14504
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.46.1-alpha' };
14285
14505
  const createConfig$1 = ({ basePath, headers, }) => {
14286
14506
  if (!basePath.trim()) {
14287
14507
  throw Error('basePath can not be empty');
@@ -14353,7 +14573,7 @@ class APIError extends Error {
14353
14573
 
14354
14574
  /* eslint-disable implicit-arrow-linebreak */
14355
14575
  const defaultHeaders$1 = {
14356
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.0',
14576
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.1-alpha',
14357
14577
  };
14358
14578
  /**
14359
14579
  * createAPIConfiguration to create a custom Configuration
@@ -14827,7 +15047,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14827
15047
  /* eslint-disable @typescript-eslint/naming-convention */
14828
15048
  class ApiConfiguration extends index$2.Configuration {
14829
15049
  }
14830
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.46.0' };
15050
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.46.1-alpha' };
14831
15051
  /**
14832
15052
  * @dev use createImmutableXConfiguration instead
14833
15053
  */
@@ -14868,7 +15088,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14868
15088
  coreContractAddress,
14869
15089
  registrationContractAddress,
14870
15090
  registrationV4ContractAddress,
14871
- sdkVersion: 'ts-immutable-sdk-1.46.0',
15091
+ sdkVersion: 'ts-immutable-sdk-1.46.1-alpha',
14872
15092
  baseConfig,
14873
15093
  });
14874
15094
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -27756,6 +27976,11 @@ var PassportErrorType;
27756
27976
  PassportErrorType["EXCHANGE_TRANSFER_ERROR"] = "EXCHANGE_TRANSFER_ERROR";
27757
27977
  PassportErrorType["CREATE_TRADE_ERROR"] = "CREATE_TRADE_ERROR";
27758
27978
  PassportErrorType["OPERATION_NOT_SUPPORTED_ERROR"] = "OPERATION_NOT_SUPPORTED_ERROR";
27979
+ PassportErrorType["LINK_WALLET_ALREADY_LINKED_ERROR"] = "LINK_WALLET_ALREADY_LINKED_ERROR";
27980
+ PassportErrorType["LINK_WALLET_MAX_WALLETS_LINKED_ERROR"] = "LINK_WALLET_MAX_WALLETS_LINKED_ERROR";
27981
+ PassportErrorType["LINK_WALLET_VALIDATION_ERROR"] = "LINK_WALLET_VALIDATION_ERROR";
27982
+ PassportErrorType["LINK_WALLET_DUPLICATE_NONCE_ERROR"] = "LINK_WALLET_DUPLICATE_NONCE_ERROR";
27983
+ PassportErrorType["LINK_WALLET_GENERIC_ERROR"] = "LINK_WALLET_GENERIC_ERROR";
27759
27984
  })(PassportErrorType || (PassportErrorType = {}));
27760
27985
  function isAPIError(error) {
27761
27986
  return 'code' in error && 'message' in error;
@@ -31343,6 +31568,59 @@ class Passport {
31343
31568
  const getUserInfoResult = await this.multiRollupApiClients.passportProfileApi.getUserInfo({ headers });
31344
31569
  return getUserInfoResult.data.linked_addresses;
31345
31570
  }
31571
+ async linkExternalWallet(params) {
31572
+ track('passport', 'linkWallet', { type: params.type });
31573
+ const user = await this.authManager.getUser();
31574
+ if (!user) {
31575
+ throw new PassportError('User is not logged in', PassportErrorType.NOT_LOGGED_IN_ERROR);
31576
+ }
31577
+ const isRegisteredWithIMX = isUserImx(user);
31578
+ const isRegisteredWithZkEvm = isUserZkEvm(user);
31579
+ if (!isRegisteredWithIMX && !isRegisteredWithZkEvm) {
31580
+ throw new PassportError('User has not been registered', PassportErrorType.USER_NOT_REGISTERED_ERROR);
31581
+ }
31582
+ const headers = { Authorization: `Bearer ${user.accessToken}` };
31583
+ const linkWalletV2Request = {
31584
+ type: params.type,
31585
+ wallet_address: params.walletAddress,
31586
+ signature: params.signature,
31587
+ nonce: params.nonce,
31588
+ };
31589
+ try {
31590
+ const linkWalletV2Result = await this.multiRollupApiClients
31591
+ .passportProfileApi.linkWalletV2({ linkWalletV2Request }, { headers });
31592
+ return { ...linkWalletV2Result.data };
31593
+ }
31594
+ catch (error) {
31595
+ trackError$1('passport', 'linkWallet', error);
31596
+ if (globalAxios$1.isAxiosError(error) && error.response) {
31597
+ if (error.response.data && isAPIError(error.response.data)) {
31598
+ const { code, message } = error.response.data;
31599
+ switch (code) {
31600
+ case 'ALREADY_LINKED':
31601
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_ALREADY_LINKED_ERROR);
31602
+ case 'MAX_WALLETS_LINKED':
31603
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);
31604
+ case 'DUPLICATE_NONCE':
31605
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_DUPLICATE_NONCE_ERROR);
31606
+ case 'VALIDATION_ERROR':
31607
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_VALIDATION_ERROR);
31608
+ default:
31609
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31610
+ }
31611
+ }
31612
+ else if (error.response.status) {
31613
+ // Handle unexpected error with a generic error message
31614
+ throw new PassportError(`Link wallet request failed with status code ${error.response.status}`, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31615
+ }
31616
+ }
31617
+ let message = 'Link wallet request failed';
31618
+ if (error instanceof Error) {
31619
+ message += `: ${error.message}`;
31620
+ }
31621
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31622
+ }
31623
+ }
31346
31624
  }
31347
31625
 
31348
31626
  var passport = /*#__PURE__*/Object.freeze({
@@ -52639,7 +52917,7 @@ const flattenProperties = (properties) => {
52639
52917
  };
52640
52918
 
52641
52919
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52642
- const SDK_VERSION = '1.46.0';
52920
+ const SDK_VERSION = '1.46.1-alpha';
52643
52921
  const getFrameParentDomain = () => {
52644
52922
  if (isNode()) {
52645
52923
  return '';
@@ -57037,6 +57315,16 @@ var ConnectTargetLayer;
57037
57315
  ConnectTargetLayer["LAYER2"] = "LAYER2";
57038
57316
  })(ConnectTargetLayer || (ConnectTargetLayer = {}));
57039
57317
 
57318
+ var CheckoutFlowType;
57319
+ (function (CheckoutFlowType) {
57320
+ CheckoutFlowType["CONNECT"] = "connect";
57321
+ CheckoutFlowType["WALLET"] = "wallet";
57322
+ CheckoutFlowType["SWAP"] = "swap";
57323
+ CheckoutFlowType["BRIDGE"] = "bridge";
57324
+ CheckoutFlowType["ONRAMP"] = "on-ramp";
57325
+ CheckoutFlowType["SALE"] = "sale";
57326
+ })(CheckoutFlowType || (CheckoutFlowType = {}));
57327
+
57040
57328
  /**
57041
57329
  * Enum representing the themes for the widgets.
57042
57330
  */
@@ -57967,7 +58255,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57967
58255
  maxPriorityFeePerGas: ethers.BigNumber.from(10e9),
57968
58256
  };
57969
58257
 
57970
- const SDK_VERSION_MARKER = '1.46.0';
58258
+ const SDK_VERSION_MARKER = '1.46.1-alpha';
57971
58259
  // This SDK version is replaced by the `yarn build` command ran on the root level
57972
58260
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57973
58261
 
@@ -58096,6 +58384,7 @@ class CheckoutConfiguration {
58096
58384
  remote;
58097
58385
  environment;
58098
58386
  networkMap;
58387
+ publishableKey;
58099
58388
  constructor(config, httpClient) {
58100
58389
  if (!Object.values(Environment$1).includes(config.baseConfig.environment)) {
58101
58390
  throw new CheckoutConfigurationError('Invalid checkout configuration of environment');
@@ -58106,6 +58395,7 @@ class CheckoutConfiguration {
58106
58395
  this.isOnRampEnabled = config.onRamp?.enable ?? DEFAULT_ON_RAMP_ENABLED;
58107
58396
  this.isSwapEnabled = config.swap?.enable ?? DEFAULT_SWAP_ENABLED;
58108
58397
  this.isBridgeEnabled = config.bridge?.enable ?? DEFAULT_BRIDGE_ENABLED;
58398
+ this.publishableKey = config.publishableKey ?? '<no-publishable-key>';
58109
58399
  this.networkMap = networkMap(this.isProduction, this.isDevelopment);
58110
58400
  this.remote = new RemoteConfigFetcher(httpClient, {
58111
58401
  isDevelopment: this.isDevelopment,
@@ -62532,6 +62822,7 @@ var checkout = /*#__PURE__*/Object.freeze({
62532
62822
  CheckoutConfiguration: CheckoutConfiguration,
62533
62823
  get CheckoutErrorType () { return CheckoutErrorType; },
62534
62824
  get CheckoutEventType () { return CheckoutEventType; },
62825
+ get CheckoutFlowType () { return CheckoutFlowType; },
62535
62826
  get CheckoutStatus () { return CheckoutStatus; },
62536
62827
  get ConnectEventType () { return ConnectEventType; },
62537
62828
  get ConnectTargetLayer () { return ConnectTargetLayer; },