@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.js CHANGED
@@ -193,7 +193,7 @@ const flattenProperties$1 = (properties) => {
193
193
  };
194
194
 
195
195
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
196
- const SDK_VERSION$1 = '1.46.0';
196
+ const SDK_VERSION$1 = '1.46.1-alpha';
197
197
  const getFrameParentDomain$1 = () => {
198
198
  if (isNode$1()) {
199
199
  return '';
@@ -10936,13 +10936,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
10936
10936
  * @param {string} accountAddress Account address
10937
10937
  * @param {string} chainName The name of chain
10938
10938
  * @param {string} [contractAddress] The address of contract
10939
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
10939
10940
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
10940
10941
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
10941
10942
  * @param {number} [pageSize] Maximum number of items to return
10942
10943
  * @param {*} [options] Override http request option.
10943
10944
  * @throws {RequiredError}
10944
10945
  */
10945
- listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
10946
+ listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
10946
10947
  // verify required parameter 'accountAddress' is not null or undefined
10947
10948
  assertParamExists$2('listNFTsByAccountAddress', 'accountAddress', accountAddress);
10948
10949
  // verify required parameter 'chainName' is not null or undefined
@@ -10962,6 +10963,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
10962
10963
  if (contractAddress !== undefined) {
10963
10964
  localVarQueryParameter['contract_address'] = contractAddress;
10964
10965
  }
10966
+ if (tokenId) {
10967
+ localVarQueryParameter['token_id'] = tokenId;
10968
+ }
10965
10969
  if (fromUpdatedAt !== undefined) {
10966
10970
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
10967
10971
  fromUpdatedAt.toISOString() :
@@ -11080,14 +11084,15 @@ const NftsApiFp = function (configuration) {
11080
11084
  * @param {string} accountAddress Account address
11081
11085
  * @param {string} chainName The name of chain
11082
11086
  * @param {string} [contractAddress] The address of contract
11087
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
11083
11088
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
11084
11089
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
11085
11090
  * @param {number} [pageSize] Maximum number of items to return
11086
11091
  * @param {*} [options] Override http request option.
11087
11092
  * @throws {RequiredError}
11088
11093
  */
11089
- async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
11090
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
11094
+ async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
11095
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
11091
11096
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11092
11097
  },
11093
11098
  };
@@ -11167,7 +11172,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
11167
11172
  * @throws {RequiredError}
11168
11173
  */
11169
11174
  listNFTsByAccountAddress(requestParameters, options) {
11170
- return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
11175
+ return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
11171
11176
  },
11172
11177
  };
11173
11178
  };
@@ -11253,7 +11258,7 @@ class NftsApi extends BaseAPI$2 {
11253
11258
  * @memberof NftsApi
11254
11259
  */
11255
11260
  listNFTsByAccountAddress(requestParameters, options) {
11256
- 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));
11261
+ 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));
11257
11262
  }
11258
11263
  }
11259
11264
 
@@ -11457,7 +11462,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11457
11462
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
11458
11463
  * @param {string} [fromUpdatedAt] From updated at including given date
11459
11464
  * @param {number} [pageSize] Maximum number of orders to return per page
11460
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
11465
+ * @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;.
11461
11466
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
11462
11467
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
11463
11468
  * @param {*} [options] Override http request option.
@@ -11528,6 +11533,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11528
11533
  * @summary List all trades
11529
11534
  * @param {string} chainName
11530
11535
  * @param {string} [accountAddress]
11536
+ * @param {string} [sellItemContractAddress]
11531
11537
  * @param {string} [fromIndexedAt] From indexed at including given date
11532
11538
  * @param {number} [pageSize] Maximum number of trades to return per page
11533
11539
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -11536,7 +11542,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11536
11542
  * @param {*} [options] Override http request option.
11537
11543
  * @throws {RequiredError}
11538
11544
  */
11539
- listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11545
+ listTrades: async (chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
11540
11546
  // verify required parameter 'chainName' is not null or undefined
11541
11547
  assertParamExists$2('listTrades', 'chainName', chainName);
11542
11548
  const localVarPath = `/v1/chains/{chain_name}/trades`
@@ -11553,6 +11559,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
11553
11559
  if (accountAddress !== undefined) {
11554
11560
  localVarQueryParameter['account_address'] = accountAddress;
11555
11561
  }
11562
+ if (sellItemContractAddress !== undefined) {
11563
+ localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
11564
+ }
11556
11565
  if (fromIndexedAt !== undefined) {
11557
11566
  localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
11558
11567
  fromIndexedAt.toISOString() :
@@ -11660,7 +11669,7 @@ const OrdersApiFp = function (configuration) {
11660
11669
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
11661
11670
  * @param {string} [fromUpdatedAt] From updated at including given date
11662
11671
  * @param {number} [pageSize] Maximum number of orders to return per page
11663
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
11672
+ * @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;.
11664
11673
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
11665
11674
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
11666
11675
  * @param {*} [options] Override http request option.
@@ -11675,6 +11684,7 @@ const OrdersApiFp = function (configuration) {
11675
11684
  * @summary List all trades
11676
11685
  * @param {string} chainName
11677
11686
  * @param {string} [accountAddress]
11687
+ * @param {string} [sellItemContractAddress]
11678
11688
  * @param {string} [fromIndexedAt] From indexed at including given date
11679
11689
  * @param {number} [pageSize] Maximum number of trades to return per page
11680
11690
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -11683,8 +11693,8 @@ const OrdersApiFp = function (configuration) {
11683
11693
  * @param {*} [options] Override http request option.
11684
11694
  * @throws {RequiredError}
11685
11695
  */
11686
- async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11687
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11696
+ async listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
11697
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
11688
11698
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
11689
11699
  },
11690
11700
  };
@@ -11764,7 +11774,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
11764
11774
  * @throws {RequiredError}
11765
11775
  */
11766
11776
  listTrades(requestParameters, options) {
11767
- return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
11777
+ 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));
11768
11778
  },
11769
11779
  };
11770
11780
  };
@@ -11850,7 +11860,7 @@ let OrdersApi$2 = class OrdersApi extends BaseAPI$2 {
11850
11860
  * @memberof OrdersApi
11851
11861
  */
11852
11862
  listTrades(requestParameters, options) {
11853
- 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));
11863
+ 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));
11854
11864
  }
11855
11865
  };
11856
11866
  /**
@@ -12335,6 +12345,37 @@ const PassportProfileApiAxiosParamCreator = function (configuration) {
12335
12345
  options: localVarRequestOptions,
12336
12346
  };
12337
12347
  },
12348
+ /**
12349
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12350
+ * @summary Link wallet v2
12351
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
12352
+ * @param {*} [options] Override http request option.
12353
+ * @throws {RequiredError}
12354
+ */
12355
+ linkWalletV2: async (linkWalletV2Request, options = {}) => {
12356
+ const localVarPath = `/passport-profile/v2/linked-wallets`;
12357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
12359
+ let baseOptions;
12360
+ if (configuration) {
12361
+ baseOptions = configuration.baseOptions;
12362
+ }
12363
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
12364
+ const localVarHeaderParameter = {};
12365
+ const localVarQueryParameter = {};
12366
+ // authentication BearerAuth required
12367
+ // http bearer authentication required
12368
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
12369
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12370
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
12371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12372
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
12373
+ localVarRequestOptions.data = serializeDataIfNeeded$2(linkWalletV2Request, localVarRequestOptions, configuration);
12374
+ return {
12375
+ url: toPathString$2(localVarUrlObj),
12376
+ options: localVarRequestOptions,
12377
+ };
12378
+ },
12338
12379
  };
12339
12380
  };
12340
12381
  /**
@@ -12354,6 +12395,17 @@ const PassportProfileApiFp = function (configuration) {
12354
12395
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfo(options);
12355
12396
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12356
12397
  },
12398
+ /**
12399
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12400
+ * @summary Link wallet v2
12401
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
12402
+ * @param {*} [options] Override http request option.
12403
+ * @throws {RequiredError}
12404
+ */
12405
+ async linkWalletV2(linkWalletV2Request, options) {
12406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkWalletV2(linkWalletV2Request, options);
12407
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
12408
+ },
12357
12409
  };
12358
12410
  };
12359
12411
  /**
@@ -12372,6 +12424,16 @@ const PassportProfileApiFactory = function (configuration, basePath, axios) {
12372
12424
  getUserInfo(options) {
12373
12425
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
12374
12426
  },
12427
+ /**
12428
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12429
+ * @summary Link wallet v2
12430
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
12431
+ * @param {*} [options] Override http request option.
12432
+ * @throws {RequiredError}
12433
+ */
12434
+ linkWalletV2(requestParameters = {}, options) {
12435
+ return localVarFp.linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(axios, basePath));
12436
+ },
12375
12437
  };
12376
12438
  };
12377
12439
  /**
@@ -12391,6 +12453,17 @@ class PassportProfileApi extends BaseAPI$2 {
12391
12453
  getUserInfo(options) {
12392
12454
  return PassportProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
12393
12455
  }
12456
+ /**
12457
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
12458
+ * @summary Link wallet v2
12459
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
12460
+ * @param {*} [options] Override http request option.
12461
+ * @throws {RequiredError}
12462
+ * @memberof PassportProfileApi
12463
+ */
12464
+ linkWalletV2(requestParameters = {}, options) {
12465
+ return PassportProfileApiFp(this.configuration).linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(this.axios, this.basePath));
12466
+ }
12394
12467
  }
12395
12468
 
12396
12469
  /* tslint:disable */
@@ -12901,7 +12974,8 @@ const CancelledOrderStatusNameEnum = {
12901
12974
  };
12902
12975
  const CancelledOrderStatusCancellationTypeEnum = {
12903
12976
  OnChain: 'ON_CHAIN',
12904
- OffChain: 'OFF_CHAIN'
12977
+ OffChain: 'OFF_CHAIN',
12978
+ Underfunded: 'UNDERFUNDED'
12905
12979
  };
12906
12980
 
12907
12981
  /* tslint:disable */
@@ -13151,6 +13225,31 @@ const FilledOrderStatusNameEnum = {
13151
13225
  Filled: 'FILLED'
13152
13226
  };
13153
13227
 
13228
+ /* tslint:disable */
13229
+ /* eslint-disable */
13230
+ /**
13231
+ * Immutable zkEVM API
13232
+ * Immutable Multi Rollup API
13233
+ *
13234
+ * The version of the OpenAPI document: 1.0.0
13235
+ * Contact: support@immutable.com
13236
+ *
13237
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13238
+ * https://openapi-generator.tech
13239
+ * Do not edit the class manually.
13240
+ */
13241
+ /**
13242
+ *
13243
+ * @export
13244
+ * @enum {string}
13245
+ */
13246
+ const ImmutableVerificationStatusEnum = {
13247
+ Verified: 'verified',
13248
+ Unverified: 'unverified',
13249
+ Spam: 'spam',
13250
+ Inactive: 'inactive'
13251
+ };
13252
+
13154
13253
  /* tslint:disable */
13155
13254
  /* eslint-disable */
13156
13255
  /**
@@ -13276,6 +13375,55 @@ const Network = {
13276
13375
  ZkEvm: 'zkEvm'
13277
13376
  };
13278
13377
 
13378
+ /* tslint:disable */
13379
+ /* eslint-disable */
13380
+ /**
13381
+ * Immutable zkEVM API
13382
+ * Immutable Multi Rollup API
13383
+ *
13384
+ * The version of the OpenAPI document: 1.0.0
13385
+ * Contact: support@immutable.com
13386
+ *
13387
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13388
+ * https://openapi-generator.tech
13389
+ * Do not edit the class manually.
13390
+ */
13391
+ /**
13392
+ * The action an admin can take on an operator allowlist request
13393
+ * @export
13394
+ * @enum {string}
13395
+ */
13396
+ const OperatorAllowlistAdminAction = {
13397
+ Approve: 'approve',
13398
+ Reject: 'reject'
13399
+ };
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 status of a contract on the operator allowlist
13416
+ * @export
13417
+ * @enum {string}
13418
+ */
13419
+ const OperatorAllowlistStatus = {
13420
+ Requested: 'requested',
13421
+ Approved: 'approved',
13422
+ Rejected: 'rejected',
13423
+ Removed: 'removed',
13424
+ Added: 'added'
13425
+ };
13426
+
13279
13427
  /* tslint:disable */
13280
13428
  /* eslint-disable */
13281
13429
  /**
@@ -13320,6 +13468,32 @@ const OrderStatusName$1 = {
13320
13468
  Cancelled: 'CANCELLED'
13321
13469
  };
13322
13470
 
13471
+ /* tslint:disable */
13472
+ /* eslint-disable */
13473
+ /**
13474
+ * Immutable zkEVM API
13475
+ * Immutable Multi Rollup API
13476
+ *
13477
+ * The version of the OpenAPI document: 1.0.0
13478
+ * Contact: support@immutable.com
13479
+ *
13480
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13481
+ * https://openapi-generator.tech
13482
+ * Do not edit the class manually.
13483
+ */
13484
+ /**
13485
+ * The tier of the organisation
13486
+ * @export
13487
+ * @enum {string}
13488
+ */
13489
+ const OrganisationTier = {
13490
+ Common: 'common',
13491
+ Uncommon: 'uncommon',
13492
+ Rare: 'rare',
13493
+ Epic: 'epic',
13494
+ Legendary: 'legendary'
13495
+ };
13496
+
13323
13497
  /* tslint:disable */
13324
13498
  /* eslint-disable */
13325
13499
  /**
@@ -13389,6 +13563,23 @@ const SeaportCreateListingMetadataTypedDataTypeEnum = {
13389
13563
  SeaportCreateListingMetadata: 'SEAPORT_CREATE_LISTING_METADATA'
13390
13564
  };
13391
13565
 
13566
+ /* tslint:disable */
13567
+ /* eslint-disable */
13568
+ /**
13569
+ * Immutable zkEVM API
13570
+ * Immutable Multi Rollup API
13571
+ *
13572
+ * The version of the OpenAPI document: 1.0.0
13573
+ * Contact: support@immutable.com
13574
+ *
13575
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13576
+ * https://openapi-generator.tech
13577
+ * Do not edit the class manually.
13578
+ */
13579
+ const SeaportERC1155ItemTypeEnum = {
13580
+ Erc1155: 'ERC1155'
13581
+ };
13582
+
13392
13583
  /* tslint:disable */
13393
13584
  /* eslint-disable */
13394
13585
  /**
@@ -13497,6 +13688,29 @@ const TokenContractType$1 = {
13497
13688
  Erc20: 'ERC20'
13498
13689
  };
13499
13690
 
13691
+ /* tslint:disable */
13692
+ /* eslint-disable */
13693
+ /**
13694
+ * Immutable zkEVM API
13695
+ * Immutable Multi Rollup API
13696
+ *
13697
+ * The version of the OpenAPI document: 1.0.0
13698
+ * Contact: support@immutable.com
13699
+ *
13700
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13701
+ * https://openapi-generator.tech
13702
+ * Do not edit the class manually.
13703
+ */
13704
+ /**
13705
+ * Contract type for token (ERC721/ERC1155)
13706
+ * @export
13707
+ * @enum {string}
13708
+ */
13709
+ const TokenType = {
13710
+ Erc721: 'ERC721',
13711
+ Erc1155: 'ERC1155'
13712
+ };
13713
+
13500
13714
  /* tslint:disable */
13501
13715
  /* eslint-disable */
13502
13716
  /**
@@ -13634,6 +13848,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
13634
13848
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
13635
13849
  FeeTypeEnum: FeeTypeEnum,
13636
13850
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
13851
+ ImmutableVerificationStatusEnum: ImmutableVerificationStatusEnum,
13637
13852
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
13638
13853
  ListListingsBuyItemTypeEnum: ListListingsBuyItemTypeEnum,
13639
13854
  ListListingsSortByEnum: ListListingsSortByEnum,
@@ -13657,12 +13872,15 @@ var index$1 = /*#__PURE__*/Object.freeze({
13657
13872
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
13658
13873
  NftsApiFactory: NftsApiFactory,
13659
13874
  NftsApiFp: NftsApiFp,
13875
+ OperatorAllowlistAdminAction: OperatorAllowlistAdminAction,
13876
+ OperatorAllowlistStatus: OperatorAllowlistStatus,
13660
13877
  OrderStatusName: OrderStatusName$1,
13661
13878
  OrderTypeEnum: OrderTypeEnum,
13662
13879
  OrdersApi: OrdersApi$2,
13663
13880
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
13664
13881
  OrdersApiFactory: OrdersApiFactory,
13665
13882
  OrdersApiFp: OrdersApiFp,
13883
+ OrganisationTier: OrganisationTier,
13666
13884
  PassportApi: PassportApi,
13667
13885
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
13668
13886
  PassportApiFactory: PassportApiFactory,
@@ -13675,12 +13893,14 @@ var index$1 = /*#__PURE__*/Object.freeze({
13675
13893
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
13676
13894
  SaleFeeTypeEnum: SaleFeeTypeEnum$1,
13677
13895
  SeaportCreateListingMetadataTypedDataTypeEnum: SeaportCreateListingMetadataTypedDataTypeEnum,
13896
+ SeaportERC1155ItemTypeEnum: SeaportERC1155ItemTypeEnum,
13678
13897
  SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
13679
13898
  SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
13680
13899
  SeaportFeeTypeEnum: SeaportFeeTypeEnum,
13681
13900
  SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
13682
13901
  SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
13683
13902
  TokenContractType: TokenContractType$1,
13903
+ TokenType: TokenType,
13684
13904
  TokensApi: TokensApi$2,
13685
13905
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
13686
13906
  TokensApiFactory: TokensApiFactory,
@@ -14258,7 +14478,7 @@ class MultiRollupApiClients {
14258
14478
  }
14259
14479
 
14260
14480
  // eslint-disable-next-line @typescript-eslint/naming-convention
14261
- const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.46.0' };
14481
+ const defaultHeaders$2 = { 'x-sdk-version': 'ts-immutable-sdk-1.46.1-alpha' };
14262
14482
  const createConfig$1 = ({ basePath, headers, }) => {
14263
14483
  if (!basePath.trim()) {
14264
14484
  throw Error('basePath can not be empty');
@@ -14330,7 +14550,7 @@ class APIError extends Error {
14330
14550
 
14331
14551
  /* eslint-disable implicit-arrow-linebreak */
14332
14552
  const defaultHeaders$1 = {
14333
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.0',
14553
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.1-alpha',
14334
14554
  };
14335
14555
  /**
14336
14556
  * createAPIConfiguration to create a custom Configuration
@@ -14804,7 +15024,7 @@ var blockchain_data = /*#__PURE__*/Object.freeze({
14804
15024
  /* eslint-disable @typescript-eslint/naming-convention */
14805
15025
  class ApiConfiguration extends index$2.Configuration {
14806
15026
  }
14807
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.46.0' };
15027
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.46.1-alpha' };
14808
15028
  /**
14809
15029
  * @dev use createImmutableXConfiguration instead
14810
15030
  */
@@ -14845,7 +15065,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
14845
15065
  coreContractAddress,
14846
15066
  registrationContractAddress,
14847
15067
  registrationV4ContractAddress,
14848
- sdkVersion: 'ts-immutable-sdk-1.46.0',
15068
+ sdkVersion: 'ts-immutable-sdk-1.46.1-alpha',
14849
15069
  baseConfig,
14850
15070
  });
14851
15071
  const production = ({ baseConfig }) => createImmutableXConfiguration({
@@ -27733,6 +27953,11 @@ var PassportErrorType;
27733
27953
  PassportErrorType["EXCHANGE_TRANSFER_ERROR"] = "EXCHANGE_TRANSFER_ERROR";
27734
27954
  PassportErrorType["CREATE_TRADE_ERROR"] = "CREATE_TRADE_ERROR";
27735
27955
  PassportErrorType["OPERATION_NOT_SUPPORTED_ERROR"] = "OPERATION_NOT_SUPPORTED_ERROR";
27956
+ PassportErrorType["LINK_WALLET_ALREADY_LINKED_ERROR"] = "LINK_WALLET_ALREADY_LINKED_ERROR";
27957
+ PassportErrorType["LINK_WALLET_MAX_WALLETS_LINKED_ERROR"] = "LINK_WALLET_MAX_WALLETS_LINKED_ERROR";
27958
+ PassportErrorType["LINK_WALLET_VALIDATION_ERROR"] = "LINK_WALLET_VALIDATION_ERROR";
27959
+ PassportErrorType["LINK_WALLET_DUPLICATE_NONCE_ERROR"] = "LINK_WALLET_DUPLICATE_NONCE_ERROR";
27960
+ PassportErrorType["LINK_WALLET_GENERIC_ERROR"] = "LINK_WALLET_GENERIC_ERROR";
27736
27961
  })(PassportErrorType || (PassportErrorType = {}));
27737
27962
  function isAPIError(error) {
27738
27963
  return 'code' in error && 'message' in error;
@@ -31320,6 +31545,59 @@ class Passport {
31320
31545
  const getUserInfoResult = await this.multiRollupApiClients.passportProfileApi.getUserInfo({ headers });
31321
31546
  return getUserInfoResult.data.linked_addresses;
31322
31547
  }
31548
+ async linkExternalWallet(params) {
31549
+ track('passport', 'linkWallet', { type: params.type });
31550
+ const user = await this.authManager.getUser();
31551
+ if (!user) {
31552
+ throw new PassportError('User is not logged in', PassportErrorType.NOT_LOGGED_IN_ERROR);
31553
+ }
31554
+ const isRegisteredWithIMX = isUserImx(user);
31555
+ const isRegisteredWithZkEvm = isUserZkEvm(user);
31556
+ if (!isRegisteredWithIMX && !isRegisteredWithZkEvm) {
31557
+ throw new PassportError('User has not been registered', PassportErrorType.USER_NOT_REGISTERED_ERROR);
31558
+ }
31559
+ const headers = { Authorization: `Bearer ${user.accessToken}` };
31560
+ const linkWalletV2Request = {
31561
+ type: params.type,
31562
+ wallet_address: params.walletAddress,
31563
+ signature: params.signature,
31564
+ nonce: params.nonce,
31565
+ };
31566
+ try {
31567
+ const linkWalletV2Result = await this.multiRollupApiClients
31568
+ .passportProfileApi.linkWalletV2({ linkWalletV2Request }, { headers });
31569
+ return { ...linkWalletV2Result.data };
31570
+ }
31571
+ catch (error) {
31572
+ trackError$1('passport', 'linkWallet', error);
31573
+ if (isAxiosError$2(error) && error.response) {
31574
+ if (error.response.data && isAPIError(error.response.data)) {
31575
+ const { code, message } = error.response.data;
31576
+ switch (code) {
31577
+ case 'ALREADY_LINKED':
31578
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_ALREADY_LINKED_ERROR);
31579
+ case 'MAX_WALLETS_LINKED':
31580
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);
31581
+ case 'DUPLICATE_NONCE':
31582
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_DUPLICATE_NONCE_ERROR);
31583
+ case 'VALIDATION_ERROR':
31584
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_VALIDATION_ERROR);
31585
+ default:
31586
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31587
+ }
31588
+ }
31589
+ else if (error.response.status) {
31590
+ // Handle unexpected error with a generic error message
31591
+ throw new PassportError(`Link wallet request failed with status code ${error.response.status}`, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31592
+ }
31593
+ }
31594
+ let message = 'Link wallet request failed';
31595
+ if (error instanceof Error) {
31596
+ message += `: ${error.message}`;
31597
+ }
31598
+ throw new PassportError(message, PassportErrorType.LINK_WALLET_GENERIC_ERROR);
31599
+ }
31600
+ }
31323
31601
  }
31324
31602
 
31325
31603
  var passport = /*#__PURE__*/Object.freeze({
@@ -52616,7 +52894,7 @@ const flattenProperties = (properties) => {
52616
52894
  };
52617
52895
 
52618
52896
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
52619
- const SDK_VERSION = '1.46.0';
52897
+ const SDK_VERSION = '1.46.1-alpha';
52620
52898
  const getFrameParentDomain = () => {
52621
52899
  if (isNode()) {
52622
52900
  return '';
@@ -57014,6 +57292,16 @@ var ConnectTargetLayer;
57014
57292
  ConnectTargetLayer["LAYER2"] = "LAYER2";
57015
57293
  })(ConnectTargetLayer || (ConnectTargetLayer = {}));
57016
57294
 
57295
+ var CheckoutFlowType;
57296
+ (function (CheckoutFlowType) {
57297
+ CheckoutFlowType["CONNECT"] = "connect";
57298
+ CheckoutFlowType["WALLET"] = "wallet";
57299
+ CheckoutFlowType["SWAP"] = "swap";
57300
+ CheckoutFlowType["BRIDGE"] = "bridge";
57301
+ CheckoutFlowType["ONRAMP"] = "on-ramp";
57302
+ CheckoutFlowType["SALE"] = "sale";
57303
+ })(CheckoutFlowType || (CheckoutFlowType = {}));
57304
+
57017
57305
  /**
57018
57306
  * Enum representing the themes for the widgets.
57019
57307
  */
@@ -57944,7 +58232,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
57944
58232
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
57945
58233
  };
57946
58234
 
57947
- const SDK_VERSION_MARKER = '1.46.0';
58235
+ const SDK_VERSION_MARKER = '1.46.1-alpha';
57948
58236
  // This SDK version is replaced by the `yarn build` command ran on the root level
57949
58237
  const globalPackageVersion = () => SDK_VERSION_MARKER;
57950
58238
 
@@ -58073,6 +58361,7 @@ class CheckoutConfiguration {
58073
58361
  remote;
58074
58362
  environment;
58075
58363
  networkMap;
58364
+ publishableKey;
58076
58365
  constructor(config, httpClient) {
58077
58366
  if (!Object.values(Environment$1).includes(config.baseConfig.environment)) {
58078
58367
  throw new CheckoutConfigurationError('Invalid checkout configuration of environment');
@@ -58083,6 +58372,7 @@ class CheckoutConfiguration {
58083
58372
  this.isOnRampEnabled = config.onRamp?.enable ?? DEFAULT_ON_RAMP_ENABLED;
58084
58373
  this.isSwapEnabled = config.swap?.enable ?? DEFAULT_SWAP_ENABLED;
58085
58374
  this.isBridgeEnabled = config.bridge?.enable ?? DEFAULT_BRIDGE_ENABLED;
58375
+ this.publishableKey = config.publishableKey ?? '<no-publishable-key>';
58086
58376
  this.networkMap = networkMap(this.isProduction, this.isDevelopment);
58087
58377
  this.remote = new RemoteConfigFetcher(httpClient, {
58088
58378
  isDevelopment: this.isDevelopment,
@@ -62509,6 +62799,7 @@ var checkout = /*#__PURE__*/Object.freeze({
62509
62799
  CheckoutConfiguration: CheckoutConfiguration,
62510
62800
  get CheckoutErrorType () { return CheckoutErrorType; },
62511
62801
  get CheckoutEventType () { return CheckoutEventType; },
62802
+ get CheckoutFlowType () { return CheckoutFlowType; },
62512
62803
  get CheckoutStatus () { return CheckoutStatus; },
62513
62804
  get ConnectEventType () { return ConnectEventType; },
62514
62805
  get ConnectTargetLayer () { return ConnectTargetLayer; },