@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.
@@ -164,9 +164,10 @@ interface ActivityNFT {
164
164
  */
165
165
  'token_id': string;
166
166
  /**
167
- * The amount of tokens exchanged
167
+ * (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged
168
168
  * @type {string}
169
169
  * @memberof ActivityNFT
170
+ * @deprecated
170
171
  */
171
172
  'amount': string;
172
173
  }
@@ -1116,7 +1117,7 @@ interface NFTMetadataAttribute {
1116
1117
  */
1117
1118
 
1118
1119
  /**
1119
- * The NFT metadata
1120
+ * The NFT metadata. Total size of this object should not exceed 16 KiB
1120
1121
  * @export
1121
1122
  * @interface NFTMetadataRequest
1122
1123
  */
@@ -1772,6 +1773,18 @@ interface Token {
1772
1773
  * @memberof Token
1773
1774
  */
1774
1775
  'root_contract_address': string | null;
1776
+ /**
1777
+ * The id of the root chain for a bridged token
1778
+ * @type {string}
1779
+ * @memberof Token
1780
+ */
1781
+ 'root_chain_id'?: string | null;
1782
+ /**
1783
+ * The name of the bridge, for bridged tokens only
1784
+ * @type {string}
1785
+ * @memberof Token
1786
+ */
1787
+ 'bridge_used'?: string | null;
1775
1788
  /**
1776
1789
  * The symbol of token
1777
1790
  * @type {string}
@@ -2367,7 +2380,7 @@ type RefreshMetadataByID = RefreshMetadataByIDAllOf & RefreshableNFTAttributes;
2367
2380
  */
2368
2381
 
2369
2382
  /**
2370
- * Request body for refreshing metadata by id
2383
+ * Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB
2371
2384
  * @export
2372
2385
  * @interface RefreshMetadataByIDRequest
2373
2386
  */
@@ -2442,7 +2455,7 @@ type RefreshMetadataByTokenID = RefreshMetadataByTokenIDAllOf & RefreshableNFTAt
2442
2455
  */
2443
2456
  interface RefreshNFTMetadataByTokenIDRequest {
2444
2457
  /**
2445
- * List of nft metadata to be refreshed
2458
+ * List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB
2446
2459
  * @type {Array<RefreshMetadataByTokenID>}
2447
2460
  * @memberof RefreshNFTMetadataByTokenIDRequest
2448
2461
  */
@@ -3178,6 +3191,12 @@ interface NftsApiListNFTsByAccountAddressRequest {
3178
3191
  * @memberof NftsApiListNFTsByAccountAddress
3179
3192
  */
3180
3193
  readonly contractAddress?: string;
3194
+ /**
3195
+ * List of token IDs to filter by
3196
+ * @type {Array<string>}
3197
+ * @memberof NftsApiListNFTsByAccountAddress
3198
+ */
3199
+ readonly tokenId?: Array<string>;
3181
3200
  /**
3182
3201
  * Datetime to use as the oldest updated timestamp
3183
3202
  * @type {string}
@@ -1943,13 +1943,14 @@ const NftsApiAxiosParamCreator = function (configuration) {
1943
1943
  * @param {string} accountAddress Account address
1944
1944
  * @param {string} chainName The name of chain
1945
1945
  * @param {string} [contractAddress] The address of contract
1946
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
1946
1947
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1947
1948
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1948
1949
  * @param {number} [pageSize] Maximum number of items to return
1949
1950
  * @param {*} [options] Override http request option.
1950
1951
  * @throws {RequiredError}
1951
1952
  */
1952
- listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1953
+ listNFTsByAccountAddress: async (accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1953
1954
  // verify required parameter 'accountAddress' is not null or undefined
1954
1955
  assertParamExists('listNFTsByAccountAddress', 'accountAddress', accountAddress);
1955
1956
  // verify required parameter 'chainName' is not null or undefined
@@ -1969,6 +1970,9 @@ const NftsApiAxiosParamCreator = function (configuration) {
1969
1970
  if (contractAddress !== undefined) {
1970
1971
  localVarQueryParameter['contract_address'] = contractAddress;
1971
1972
  }
1973
+ if (tokenId) {
1974
+ localVarQueryParameter['token_id'] = tokenId;
1975
+ }
1972
1976
  if (fromUpdatedAt !== undefined) {
1973
1977
  localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1974
1978
  fromUpdatedAt.toISOString() :
@@ -2087,14 +2091,15 @@ const NftsApiFp = function (configuration) {
2087
2091
  * @param {string} accountAddress Account address
2088
2092
  * @param {string} chainName The name of chain
2089
2093
  * @param {string} [contractAddress] The address of contract
2094
+ * @param {Array<string>} [tokenId] List of token IDs to filter by
2090
2095
  * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
2091
2096
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2092
2097
  * @param {number} [pageSize] Maximum number of items to return
2093
2098
  * @param {*} [options] Override http request option.
2094
2099
  * @throws {RequiredError}
2095
2100
  */
2096
- async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
2097
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
2101
+ async listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options) {
2102
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTsByAccountAddress(accountAddress, chainName, contractAddress, tokenId, fromUpdatedAt, pageCursor, pageSize, options);
2098
2103
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2099
2104
  },
2100
2105
  };
@@ -2174,7 +2179,7 @@ const NftsApiFactory = function (configuration, basePath, axios) {
2174
2179
  * @throws {RequiredError}
2175
2180
  */
2176
2181
  listNFTsByAccountAddress(requestParameters, options) {
2177
- return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2182
+ return localVarFp.listNFTsByAccountAddress(requestParameters.accountAddress, requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
2178
2183
  },
2179
2184
  };
2180
2185
  };
@@ -2260,7 +2265,7 @@ class NftsApi extends BaseAPI {
2260
2265
  * @memberof NftsApi
2261
2266
  */
2262
2267
  listNFTsByAccountAddress(requestParameters, options) {
2263
- 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));
2268
+ 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));
2264
2269
  }
2265
2270
  }
2266
2271
 
@@ -2464,7 +2469,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2464
2469
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2465
2470
  * @param {string} [fromUpdatedAt] From updated at including given date
2466
2471
  * @param {number} [pageSize] Maximum number of orders to return per page
2467
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2472
+ * @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;.
2468
2473
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2469
2474
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2470
2475
  * @param {*} [options] Override http request option.
@@ -2535,6 +2540,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2535
2540
  * @summary List all trades
2536
2541
  * @param {string} chainName
2537
2542
  * @param {string} [accountAddress]
2543
+ * @param {string} [sellItemContractAddress]
2538
2544
  * @param {string} [fromIndexedAt] From indexed at including given date
2539
2545
  * @param {number} [pageSize] Maximum number of trades to return per page
2540
2546
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -2543,7 +2549,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2543
2549
  * @param {*} [options] Override http request option.
2544
2550
  * @throws {RequiredError}
2545
2551
  */
2546
- listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2552
+ listTrades: async (chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
2547
2553
  // verify required parameter 'chainName' is not null or undefined
2548
2554
  assertParamExists('listTrades', 'chainName', chainName);
2549
2555
  const localVarPath = `/v1/chains/{chain_name}/trades`
@@ -2560,6 +2566,9 @@ const OrdersApiAxiosParamCreator = function (configuration) {
2560
2566
  if (accountAddress !== undefined) {
2561
2567
  localVarQueryParameter['account_address'] = accountAddress;
2562
2568
  }
2569
+ if (sellItemContractAddress !== undefined) {
2570
+ localVarQueryParameter['sell_item_contract_address'] = sellItemContractAddress;
2571
+ }
2563
2572
  if (fromIndexedAt !== undefined) {
2564
2573
  localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
2565
2574
  fromIndexedAt.toISOString() :
@@ -2667,7 +2676,7 @@ const OrdersApiFp = function (configuration) {
2667
2676
  * @param {string} [sellItemTokenId] Sell item token identifier to filter by
2668
2677
  * @param {string} [fromUpdatedAt] From updated at including given date
2669
2678
  * @param {number} [pageSize] Maximum number of orders to return per page
2670
- * @param {ListListingsSortByEnum} [sortBy] Order field to sort by
2679
+ * @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;.
2671
2680
  * @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
2672
2681
  * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
2673
2682
  * @param {*} [options] Override http request option.
@@ -2682,6 +2691,7 @@ const OrdersApiFp = function (configuration) {
2682
2691
  * @summary List all trades
2683
2692
  * @param {string} chainName
2684
2693
  * @param {string} [accountAddress]
2694
+ * @param {string} [sellItemContractAddress]
2685
2695
  * @param {string} [fromIndexedAt] From indexed at including given date
2686
2696
  * @param {number} [pageSize] Maximum number of trades to return per page
2687
2697
  * @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
@@ -2690,8 +2700,8 @@ const OrdersApiFp = function (configuration) {
2690
2700
  * @param {*} [options] Override http request option.
2691
2701
  * @throws {RequiredError}
2692
2702
  */
2693
- async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2694
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2703
+ async listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
2704
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, sellItemContractAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
2695
2705
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2696
2706
  },
2697
2707
  };
@@ -2771,7 +2781,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2771
2781
  * @throws {RequiredError}
2772
2782
  */
2773
2783
  listTrades(requestParameters, options) {
2774
- return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
2784
+ 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));
2775
2785
  },
2776
2786
  };
2777
2787
  };
@@ -2857,7 +2867,7 @@ class OrdersApi extends BaseAPI {
2857
2867
  * @memberof OrdersApi
2858
2868
  */
2859
2869
  listTrades(requestParameters, options) {
2860
- 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));
2870
+ 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));
2861
2871
  }
2862
2872
  }
2863
2873
  /**
@@ -3342,6 +3352,37 @@ const PassportProfileApiAxiosParamCreator = function (configuration) {
3342
3352
  options: localVarRequestOptions,
3343
3353
  };
3344
3354
  },
3355
+ /**
3356
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
3357
+ * @summary Link wallet v2
3358
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
3359
+ * @param {*} [options] Override http request option.
3360
+ * @throws {RequiredError}
3361
+ */
3362
+ linkWalletV2: async (linkWalletV2Request, options = {}) => {
3363
+ const localVarPath = `/passport-profile/v2/linked-wallets`;
3364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3365
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3366
+ let baseOptions;
3367
+ if (configuration) {
3368
+ baseOptions = configuration.baseOptions;
3369
+ }
3370
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3371
+ const localVarHeaderParameter = {};
3372
+ const localVarQueryParameter = {};
3373
+ // authentication BearerAuth required
3374
+ // http bearer authentication required
3375
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3376
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3377
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3378
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3379
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3380
+ localVarRequestOptions.data = serializeDataIfNeeded(linkWalletV2Request, localVarRequestOptions, configuration);
3381
+ return {
3382
+ url: toPathString(localVarUrlObj),
3383
+ options: localVarRequestOptions,
3384
+ };
3385
+ },
3345
3386
  };
3346
3387
  };
3347
3388
  /**
@@ -3361,6 +3402,17 @@ const PassportProfileApiFp = function (configuration) {
3361
3402
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfo(options);
3362
3403
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3363
3404
  },
3405
+ /**
3406
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
3407
+ * @summary Link wallet v2
3408
+ * @param {LinkWalletV2Request} [linkWalletV2Request]
3409
+ * @param {*} [options] Override http request option.
3410
+ * @throws {RequiredError}
3411
+ */
3412
+ async linkWalletV2(linkWalletV2Request, options) {
3413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.linkWalletV2(linkWalletV2Request, options);
3414
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3415
+ },
3364
3416
  };
3365
3417
  };
3366
3418
  /**
@@ -3379,6 +3431,16 @@ const PassportProfileApiFactory = function (configuration, basePath, axios) {
3379
3431
  getUserInfo(options) {
3380
3432
  return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
3381
3433
  },
3434
+ /**
3435
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
3436
+ * @summary Link wallet v2
3437
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
3438
+ * @param {*} [options] Override http request option.
3439
+ * @throws {RequiredError}
3440
+ */
3441
+ linkWalletV2(requestParameters = {}, options) {
3442
+ return localVarFp.linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(axios, basePath));
3443
+ },
3382
3444
  };
3383
3445
  };
3384
3446
  /**
@@ -3398,6 +3460,17 @@ class PassportProfileApi extends BaseAPI {
3398
3460
  getUserInfo(options) {
3399
3461
  return PassportProfileApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
3400
3462
  }
3463
+ /**
3464
+ * Link an external EOA wallet to an Immutable Passport account by providing an EIP-712 signature.
3465
+ * @summary Link wallet v2
3466
+ * @param {PassportProfileApiLinkWalletV2Request} requestParameters Request parameters.
3467
+ * @param {*} [options] Override http request option.
3468
+ * @throws {RequiredError}
3469
+ * @memberof PassportProfileApi
3470
+ */
3471
+ linkWalletV2(requestParameters = {}, options) {
3472
+ return PassportProfileApiFp(this.configuration).linkWalletV2(requestParameters.linkWalletV2Request, options).then((request) => request(this.axios, this.basePath));
3473
+ }
3401
3474
  }
3402
3475
 
3403
3476
  /* tslint:disable */
@@ -3908,7 +3981,8 @@ const CancelledOrderStatusNameEnum = {
3908
3981
  };
3909
3982
  const CancelledOrderStatusCancellationTypeEnum = {
3910
3983
  OnChain: 'ON_CHAIN',
3911
- OffChain: 'OFF_CHAIN'
3984
+ OffChain: 'OFF_CHAIN',
3985
+ Underfunded: 'UNDERFUNDED'
3912
3986
  };
3913
3987
 
3914
3988
  /* tslint:disable */
@@ -4158,6 +4232,31 @@ const FilledOrderStatusNameEnum = {
4158
4232
  Filled: 'FILLED'
4159
4233
  };
4160
4234
 
4235
+ /* tslint:disable */
4236
+ /* eslint-disable */
4237
+ /**
4238
+ * Immutable zkEVM API
4239
+ * Immutable Multi Rollup API
4240
+ *
4241
+ * The version of the OpenAPI document: 1.0.0
4242
+ * Contact: support@immutable.com
4243
+ *
4244
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4245
+ * https://openapi-generator.tech
4246
+ * Do not edit the class manually.
4247
+ */
4248
+ /**
4249
+ *
4250
+ * @export
4251
+ * @enum {string}
4252
+ */
4253
+ const ImmutableVerificationStatusEnum = {
4254
+ Verified: 'verified',
4255
+ Unverified: 'unverified',
4256
+ Spam: 'spam',
4257
+ Inactive: 'inactive'
4258
+ };
4259
+
4161
4260
  /* tslint:disable */
4162
4261
  /* eslint-disable */
4163
4262
  /**
@@ -4283,6 +4382,55 @@ const Network = {
4283
4382
  ZkEvm: 'zkEvm'
4284
4383
  };
4285
4384
 
4385
+ /* tslint:disable */
4386
+ /* eslint-disable */
4387
+ /**
4388
+ * Immutable zkEVM API
4389
+ * Immutable Multi Rollup API
4390
+ *
4391
+ * The version of the OpenAPI document: 1.0.0
4392
+ * Contact: support@immutable.com
4393
+ *
4394
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4395
+ * https://openapi-generator.tech
4396
+ * Do not edit the class manually.
4397
+ */
4398
+ /**
4399
+ * The action an admin can take on an operator allowlist request
4400
+ * @export
4401
+ * @enum {string}
4402
+ */
4403
+ const OperatorAllowlistAdminAction = {
4404
+ Approve: 'approve',
4405
+ Reject: 'reject'
4406
+ };
4407
+
4408
+ /* tslint:disable */
4409
+ /* eslint-disable */
4410
+ /**
4411
+ * Immutable zkEVM API
4412
+ * Immutable Multi Rollup API
4413
+ *
4414
+ * The version of the OpenAPI document: 1.0.0
4415
+ * Contact: support@immutable.com
4416
+ *
4417
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4418
+ * https://openapi-generator.tech
4419
+ * Do not edit the class manually.
4420
+ */
4421
+ /**
4422
+ * The status of a contract on the operator allowlist
4423
+ * @export
4424
+ * @enum {string}
4425
+ */
4426
+ const OperatorAllowlistStatus = {
4427
+ Requested: 'requested',
4428
+ Approved: 'approved',
4429
+ Rejected: 'rejected',
4430
+ Removed: 'removed',
4431
+ Added: 'added'
4432
+ };
4433
+
4286
4434
  /* tslint:disable */
4287
4435
  /* eslint-disable */
4288
4436
  /**
@@ -4327,6 +4475,32 @@ const OrderStatusName = {
4327
4475
  Cancelled: 'CANCELLED'
4328
4476
  };
4329
4477
 
4478
+ /* tslint:disable */
4479
+ /* eslint-disable */
4480
+ /**
4481
+ * Immutable zkEVM API
4482
+ * Immutable Multi Rollup API
4483
+ *
4484
+ * The version of the OpenAPI document: 1.0.0
4485
+ * Contact: support@immutable.com
4486
+ *
4487
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4488
+ * https://openapi-generator.tech
4489
+ * Do not edit the class manually.
4490
+ */
4491
+ /**
4492
+ * The tier of the organisation
4493
+ * @export
4494
+ * @enum {string}
4495
+ */
4496
+ const OrganisationTier = {
4497
+ Common: 'common',
4498
+ Uncommon: 'uncommon',
4499
+ Rare: 'rare',
4500
+ Epic: 'epic',
4501
+ Legendary: 'legendary'
4502
+ };
4503
+
4330
4504
  /* tslint:disable */
4331
4505
  /* eslint-disable */
4332
4506
  /**
@@ -4396,6 +4570,23 @@ const SeaportCreateListingMetadataTypedDataTypeEnum = {
4396
4570
  SeaportCreateListingMetadata: 'SEAPORT_CREATE_LISTING_METADATA'
4397
4571
  };
4398
4572
 
4573
+ /* tslint:disable */
4574
+ /* eslint-disable */
4575
+ /**
4576
+ * Immutable zkEVM API
4577
+ * Immutable Multi Rollup API
4578
+ *
4579
+ * The version of the OpenAPI document: 1.0.0
4580
+ * Contact: support@immutable.com
4581
+ *
4582
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4583
+ * https://openapi-generator.tech
4584
+ * Do not edit the class manually.
4585
+ */
4586
+ const SeaportERC1155ItemTypeEnum = {
4587
+ Erc1155: 'ERC1155'
4588
+ };
4589
+
4399
4590
  /* tslint:disable */
4400
4591
  /* eslint-disable */
4401
4592
  /**
@@ -4504,6 +4695,29 @@ const TokenContractType$1 = {
4504
4695
  Erc20: 'ERC20'
4505
4696
  };
4506
4697
 
4698
+ /* tslint:disable */
4699
+ /* eslint-disable */
4700
+ /**
4701
+ * Immutable zkEVM API
4702
+ * Immutable Multi Rollup API
4703
+ *
4704
+ * The version of the OpenAPI document: 1.0.0
4705
+ * Contact: support@immutable.com
4706
+ *
4707
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4708
+ * https://openapi-generator.tech
4709
+ * Do not edit the class manually.
4710
+ */
4711
+ /**
4712
+ * Contract type for token (ERC721/ERC1155)
4713
+ * @export
4714
+ * @enum {string}
4715
+ */
4716
+ const TokenType = {
4717
+ Erc721: 'ERC721',
4718
+ Erc1155: 'ERC1155'
4719
+ };
4720
+
4507
4721
  /* tslint:disable */
4508
4722
  /* eslint-disable */
4509
4723
  /**
@@ -4641,6 +4855,7 @@ var index$1 = /*#__PURE__*/Object.freeze({
4641
4855
  FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
4642
4856
  FeeTypeEnum: FeeTypeEnum,
4643
4857
  FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
4858
+ ImmutableVerificationStatusEnum: ImmutableVerificationStatusEnum,
4644
4859
  InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
4645
4860
  ListListingsBuyItemTypeEnum: ListListingsBuyItemTypeEnum,
4646
4861
  ListListingsSortByEnum: ListListingsSortByEnum,
@@ -4664,12 +4879,15 @@ var index$1 = /*#__PURE__*/Object.freeze({
4664
4879
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
4665
4880
  NftsApiFactory: NftsApiFactory,
4666
4881
  NftsApiFp: NftsApiFp,
4882
+ OperatorAllowlistAdminAction: OperatorAllowlistAdminAction,
4883
+ OperatorAllowlistStatus: OperatorAllowlistStatus,
4667
4884
  OrderStatusName: OrderStatusName,
4668
4885
  OrderTypeEnum: OrderTypeEnum,
4669
4886
  OrdersApi: OrdersApi,
4670
4887
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
4671
4888
  OrdersApiFactory: OrdersApiFactory,
4672
4889
  OrdersApiFp: OrdersApiFp,
4890
+ OrganisationTier: OrganisationTier,
4673
4891
  PassportApi: PassportApi,
4674
4892
  PassportApiAxiosParamCreator: PassportApiAxiosParamCreator,
4675
4893
  PassportApiFactory: PassportApiFactory,
@@ -4682,12 +4900,14 @@ var index$1 = /*#__PURE__*/Object.freeze({
4682
4900
  ProtocolDataOrderTypeEnum: ProtocolDataOrderTypeEnum,
4683
4901
  SaleFeeTypeEnum: SaleFeeTypeEnum$1,
4684
4902
  SeaportCreateListingMetadataTypedDataTypeEnum: SeaportCreateListingMetadataTypedDataTypeEnum,
4903
+ SeaportERC1155ItemTypeEnum: SeaportERC1155ItemTypeEnum,
4685
4904
  SeaportERC20ItemTypeEnum: SeaportERC20ItemTypeEnum,
4686
4905
  SeaportERC721ItemTypeEnum: SeaportERC721ItemTypeEnum,
4687
4906
  SeaportFeeTypeEnum: SeaportFeeTypeEnum,
4688
4907
  SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum: SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum,
4689
4908
  SeaportNativeItemTypeEnum: SeaportNativeItemTypeEnum,
4690
4909
  TokenContractType: TokenContractType$1,
4910
+ TokenType: TokenType,
4691
4911
  TokensApi: TokensApi,
4692
4912
  TokensApiAxiosParamCreator: TokensApiAxiosParamCreator,
4693
4913
  TokensApiFactory: TokensApiFactory,
@@ -5302,7 +5522,7 @@ const flattenProperties = (properties) => {
5302
5522
  };
5303
5523
 
5304
5524
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
5305
- const SDK_VERSION = '1.46.0';
5525
+ const SDK_VERSION = '1.46.1-alpha';
5306
5526
  const getFrameParentDomain = () => {
5307
5527
  if (isNode()) {
5308
5528
  return '';
@@ -5573,7 +5793,7 @@ class APIError extends Error {
5573
5793
 
5574
5794
  /* eslint-disable implicit-arrow-linebreak */
5575
5795
  const defaultHeaders = {
5576
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.0',
5796
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.46.1-alpha',
5577
5797
  };
5578
5798
  /**
5579
5799
  * createAPIConfiguration to create a custom Configuration
package/dist/orderbook.js CHANGED
@@ -149,7 +149,7 @@ const flattenProperties = (properties) => {
149
149
  };
150
150
 
151
151
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
152
- const SDK_VERSION = '1.46.0';
152
+ const SDK_VERSION = '1.46.1-alpha';
153
153
  const getFrameParentDomain = () => {
154
154
  if (isNode()) {
155
155
  return '';
@@ -1,25 +1,3 @@
1
- declare enum PassportErrorType {
2
- AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
3
- INVALID_CONFIGURATION = "INVALID_CONFIGURATION",
4
- WALLET_CONNECTION_ERROR = "WALLET_CONNECTION_ERROR",
5
- NOT_LOGGED_IN_ERROR = "NOT_LOGGED_IN_ERROR",
6
- SILENT_LOGIN_ERROR = "SILENT_LOGIN_ERROR",
7
- REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
8
- USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
9
- USER_NOT_REGISTERED_ERROR = "USER_NOT_REGISTERED_ERROR",
10
- LOGOUT_ERROR = "LOGOUT_ERROR",
11
- TRANSFER_ERROR = "TRANSFER_ERROR",
12
- CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
13
- CANCEL_ORDER_ERROR = "CANCEL_ORDER_ERROR",
14
- EXCHANGE_TRANSFER_ERROR = "EXCHANGE_TRANSFER_ERROR",
15
- CREATE_TRADE_ERROR = "CREATE_TRADE_ERROR",
16
- OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR"
17
- }
18
- declare class PassportError extends Error {
19
- type: PassportErrorType;
20
- constructor(message: string, type: PassportErrorType);
21
- }
22
-
23
1
  // TypeScript Version: 4.7
24
2
  type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null;
25
3
 
@@ -12437,6 +12415,33 @@ declare class ImxApiClients {
12437
12415
  constructor(config: ImmutableAPIConfiguration);
12438
12416
  }
12439
12417
 
12418
+ declare enum PassportErrorType {
12419
+ AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
12420
+ INVALID_CONFIGURATION = "INVALID_CONFIGURATION",
12421
+ WALLET_CONNECTION_ERROR = "WALLET_CONNECTION_ERROR",
12422
+ NOT_LOGGED_IN_ERROR = "NOT_LOGGED_IN_ERROR",
12423
+ SILENT_LOGIN_ERROR = "SILENT_LOGIN_ERROR",
12424
+ REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
12425
+ USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
12426
+ USER_NOT_REGISTERED_ERROR = "USER_NOT_REGISTERED_ERROR",
12427
+ LOGOUT_ERROR = "LOGOUT_ERROR",
12428
+ TRANSFER_ERROR = "TRANSFER_ERROR",
12429
+ CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
12430
+ CANCEL_ORDER_ERROR = "CANCEL_ORDER_ERROR",
12431
+ EXCHANGE_TRANSFER_ERROR = "EXCHANGE_TRANSFER_ERROR",
12432
+ CREATE_TRADE_ERROR = "CREATE_TRADE_ERROR",
12433
+ OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR",
12434
+ LINK_WALLET_ALREADY_LINKED_ERROR = "LINK_WALLET_ALREADY_LINKED_ERROR",
12435
+ LINK_WALLET_MAX_WALLETS_LINKED_ERROR = "LINK_WALLET_MAX_WALLETS_LINKED_ERROR",
12436
+ LINK_WALLET_VALIDATION_ERROR = "LINK_WALLET_VALIDATION_ERROR",
12437
+ LINK_WALLET_DUPLICATE_NONCE_ERROR = "LINK_WALLET_DUPLICATE_NONCE_ERROR",
12438
+ LINK_WALLET_GENERIC_ERROR = "LINK_WALLET_GENERIC_ERROR"
12439
+ }
12440
+ declare class PassportError extends Error {
12441
+ type: PassportErrorType;
12442
+ constructor(message: string, type: PassportErrorType);
12443
+ }
12444
+
12440
12445
  declare enum Environment {
12441
12446
  PRODUCTION = "production",
12442
12447
  SANDBOX = "sandbox"
@@ -13563,6 +13568,20 @@ type DeviceTokenResponse = {
13563
13568
  token_type: string;
13564
13569
  expires_in: number;
13565
13570
  };
13571
+ type LinkWalletParams = {
13572
+ type: string;
13573
+ walletAddress: string;
13574
+ signature: string;
13575
+ nonce: string;
13576
+ };
13577
+ type LinkedWallet = {
13578
+ address: string;
13579
+ type: string;
13580
+ created_at: string;
13581
+ updated_at: string;
13582
+ name?: string;
13583
+ clientName: string;
13584
+ };
13566
13585
 
13567
13586
  /**
13568
13587
  * ProviderErrors should take priority over RpcErrorCodes
@@ -13698,6 +13717,7 @@ declare class Passport {
13698
13717
  getIdToken(): Promise<string | undefined>;
13699
13718
  getAccessToken(): Promise<string | undefined>;
13700
13719
  getLinkedAddresses(): Promise<string[]>;
13720
+ linkExternalWallet(params: LinkWalletParams): Promise<LinkedWallet>;
13701
13721
  }
13702
13722
 
13703
- export { AccountsChangedEvent, DeviceConnectResponse, DeviceTokenResponse, JsonRpcError, JsonRpcRequestCallback, JsonRpcRequestPayload, JsonRpcResponsePayload, Passport, PassportError, PassportModuleConfiguration, PassportOverrides, Provider, ProviderErrorCode, ProviderEvent, RequestArguments, RpcErrorCode, TypedDataPayload, UserProfile };
13723
+ export { AccountsChangedEvent, DeviceConnectResponse, DeviceTokenResponse, JsonRpcError, JsonRpcRequestCallback, JsonRpcRequestPayload, JsonRpcResponsePayload, LinkWalletParams, LinkedWallet, Passport, PassportError, PassportModuleConfiguration, PassportOverrides, Provider, ProviderErrorCode, ProviderEvent, RequestArguments, RpcErrorCode, TypedDataPayload, UserProfile };