@imtbl/sdk 1.10.0-alpha.1 → 1.11.0

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
@@ -152,7 +152,7 @@ const flattenProperties$1 = (properties) => {
152
152
  };
153
153
 
154
154
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
155
- const SDK_VERSION$1 = '1.10.0-alpha.1';
155
+ const SDK_VERSION$1 = '1.11.0';
156
156
  const getReferrer$1 = () => {
157
157
  if (isNode$1()) {
158
158
  return '';
@@ -8419,6 +8419,85 @@ class NftOwnersApi extends BaseAPI$2 {
8419
8419
  */
8420
8420
  const NftsApiAxiosParamCreator = function (configuration) {
8421
8421
  return {
8422
+ /**
8423
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
8424
+ * @summary [Experimental] Mint NFTs
8425
+ * @param {string} contractAddress The address of contract
8426
+ * @param {string} chainName The name of chain
8427
+ * @param {CreateMintRequestRequest} createMintRequestRequest the request body
8428
+ * @param {*} [options] Override http request option.
8429
+ * @throws {RequiredError}
8430
+ */
8431
+ createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
8432
+ // verify required parameter 'contractAddress' is not null or undefined
8433
+ assertParamExists$2('createMintRequest', 'contractAddress', contractAddress);
8434
+ // verify required parameter 'chainName' is not null or undefined
8435
+ assertParamExists$2('createMintRequest', 'chainName', chainName);
8436
+ // verify required parameter 'createMintRequestRequest' is not null or undefined
8437
+ assertParamExists$2('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
8438
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
8439
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
8440
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
8441
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8442
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
8443
+ let baseOptions;
8444
+ if (configuration) {
8445
+ baseOptions = configuration.baseOptions;
8446
+ }
8447
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
8448
+ const localVarHeaderParameter = {};
8449
+ const localVarQueryParameter = {};
8450
+ // authentication ImmutableApiKey required
8451
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
8452
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8453
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
8454
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8455
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8456
+ localVarRequestOptions.data = serializeDataIfNeeded$2(createMintRequestRequest, localVarRequestOptions, configuration);
8457
+ return {
8458
+ url: toPathString$2(localVarUrlObj),
8459
+ options: localVarRequestOptions,
8460
+ };
8461
+ },
8462
+ /**
8463
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
8464
+ * @summary [Experimental] Get mint request by reference ID
8465
+ * @param {string} contractAddress The address of contract
8466
+ * @param {string} chainName The name of chain
8467
+ * @param {string} referenceId The ID of the mint request
8468
+ * @param {*} [options] Override http request option.
8469
+ * @throws {RequiredError}
8470
+ */
8471
+ getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
8472
+ // verify required parameter 'contractAddress' is not null or undefined
8473
+ assertParamExists$2('getMintRequest', 'contractAddress', contractAddress);
8474
+ // verify required parameter 'chainName' is not null or undefined
8475
+ assertParamExists$2('getMintRequest', 'chainName', chainName);
8476
+ // verify required parameter 'referenceId' is not null or undefined
8477
+ assertParamExists$2('getMintRequest', 'referenceId', referenceId);
8478
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
8479
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
8480
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
8481
+ .replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
8482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
8484
+ let baseOptions;
8485
+ if (configuration) {
8486
+ baseOptions = configuration.baseOptions;
8487
+ }
8488
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8489
+ const localVarHeaderParameter = {};
8490
+ const localVarQueryParameter = {};
8491
+ // authentication ImmutableApiKey required
8492
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
8493
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
8494
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8495
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8496
+ return {
8497
+ url: toPathString$2(localVarUrlObj),
8498
+ options: localVarRequestOptions,
8499
+ };
8500
+ },
8422
8501
  /**
8423
8502
  * Get NFT by token ID
8424
8503
  * @summary Get NFT by token ID
@@ -8499,6 +8578,53 @@ const NftsApiAxiosParamCreator = function (configuration) {
8499
8578
  options: localVarRequestOptions,
8500
8579
  };
8501
8580
  },
8581
+ /**
8582
+ * [Experimental] Retrieve the status of all mints for a given contract address
8583
+ * @summary [Experimental] List mint requests
8584
+ * @param {string} contractAddress The address of contract
8585
+ * @param {string} chainName The name of chain
8586
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
8587
+ * @param {number} [pageSize] Maximum number of items to return
8588
+ * @param {MintRequestStatus} [status] The status of the mint request
8589
+ * @param {*} [options] Override http request option.
8590
+ * @throws {RequiredError}
8591
+ */
8592
+ listMintRequests: async (contractAddress, chainName, pageCursor, pageSize, status, options = {}) => {
8593
+ // verify required parameter 'contractAddress' is not null or undefined
8594
+ assertParamExists$2('listMintRequests', 'contractAddress', contractAddress);
8595
+ // verify required parameter 'chainName' is not null or undefined
8596
+ assertParamExists$2('listMintRequests', 'chainName', chainName);
8597
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
8598
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
8599
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
8600
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8601
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
8602
+ let baseOptions;
8603
+ if (configuration) {
8604
+ baseOptions = configuration.baseOptions;
8605
+ }
8606
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
8607
+ const localVarHeaderParameter = {};
8608
+ const localVarQueryParameter = {};
8609
+ // authentication ImmutableApiKey required
8610
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
8611
+ if (pageCursor !== undefined) {
8612
+ localVarQueryParameter['page_cursor'] = pageCursor;
8613
+ }
8614
+ if (pageSize !== undefined) {
8615
+ localVarQueryParameter['page_size'] = pageSize;
8616
+ }
8617
+ if (status !== undefined) {
8618
+ localVarQueryParameter['status'] = status;
8619
+ }
8620
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
8621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8622
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
8623
+ return {
8624
+ url: toPathString$2(localVarUrlObj),
8625
+ options: localVarRequestOptions,
8626
+ };
8627
+ },
8502
8628
  /**
8503
8629
  * List NFTs by contract address
8504
8630
  * @summary List NFTs by contract address
@@ -8604,6 +8730,32 @@ const NftsApiAxiosParamCreator = function (configuration) {
8604
8730
  const NftsApiFp = function (configuration) {
8605
8731
  const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
8606
8732
  return {
8733
+ /**
8734
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
8735
+ * @summary [Experimental] Mint NFTs
8736
+ * @param {string} contractAddress The address of contract
8737
+ * @param {string} chainName The name of chain
8738
+ * @param {CreateMintRequestRequest} createMintRequestRequest the request body
8739
+ * @param {*} [options] Override http request option.
8740
+ * @throws {RequiredError}
8741
+ */
8742
+ async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
8743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
8744
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
8745
+ },
8746
+ /**
8747
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
8748
+ * @summary [Experimental] Get mint request by reference ID
8749
+ * @param {string} contractAddress The address of contract
8750
+ * @param {string} chainName The name of chain
8751
+ * @param {string} referenceId The ID of the mint request
8752
+ * @param {*} [options] Override http request option.
8753
+ * @throws {RequiredError}
8754
+ */
8755
+ async getMintRequest(contractAddress, chainName, referenceId, options) {
8756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
8757
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
8758
+ },
8607
8759
  /**
8608
8760
  * Get NFT by token ID
8609
8761
  * @summary Get NFT by token ID
@@ -8631,6 +8783,21 @@ const NftsApiFp = function (configuration) {
8631
8783
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
8632
8784
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
8633
8785
  },
8786
+ /**
8787
+ * [Experimental] Retrieve the status of all mints for a given contract address
8788
+ * @summary [Experimental] List mint requests
8789
+ * @param {string} contractAddress The address of contract
8790
+ * @param {string} chainName The name of chain
8791
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
8792
+ * @param {number} [pageSize] Maximum number of items to return
8793
+ * @param {MintRequestStatus} [status] The status of the mint request
8794
+ * @param {*} [options] Override http request option.
8795
+ * @throws {RequiredError}
8796
+ */
8797
+ async listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options) {
8798
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options);
8799
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
8800
+ },
8634
8801
  /**
8635
8802
  * List NFTs by contract address
8636
8803
  * @summary List NFTs by contract address
@@ -8671,6 +8838,26 @@ const NftsApiFp = function (configuration) {
8671
8838
  const NftsApiFactory = function (configuration, basePath, axios) {
8672
8839
  const localVarFp = NftsApiFp(configuration);
8673
8840
  return {
8841
+ /**
8842
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
8843
+ * @summary [Experimental] Mint NFTs
8844
+ * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
8845
+ * @param {*} [options] Override http request option.
8846
+ * @throws {RequiredError}
8847
+ */
8848
+ createMintRequest(requestParameters, options) {
8849
+ return localVarFp.createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(axios, basePath));
8850
+ },
8851
+ /**
8852
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
8853
+ * @summary [Experimental] Get mint request by reference ID
8854
+ * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
8855
+ * @param {*} [options] Override http request option.
8856
+ * @throws {RequiredError}
8857
+ */
8858
+ getMintRequest(requestParameters, options) {
8859
+ return localVarFp.getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(axios, basePath));
8860
+ },
8674
8861
  /**
8675
8862
  * Get NFT by token ID
8676
8863
  * @summary Get NFT by token ID
@@ -8691,6 +8878,16 @@ const NftsApiFactory = function (configuration, basePath, axios) {
8691
8878
  listAllNFTs(requestParameters, options) {
8692
8879
  return localVarFp.listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
8693
8880
  },
8881
+ /**
8882
+ * [Experimental] Retrieve the status of all mints for a given contract address
8883
+ * @summary [Experimental] List mint requests
8884
+ * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
8885
+ * @param {*} [options] Override http request option.
8886
+ * @throws {RequiredError}
8887
+ */
8888
+ listMintRequests(requestParameters, options) {
8889
+ return localVarFp.listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(axios, basePath));
8890
+ },
8694
8891
  /**
8695
8892
  * List NFTs by contract address
8696
8893
  * @summary List NFTs by contract address
@@ -8720,6 +8917,28 @@ const NftsApiFactory = function (configuration, basePath, axios) {
8720
8917
  * @extends {BaseAPI}
8721
8918
  */
8722
8919
  class NftsApi extends BaseAPI$2 {
8920
+ /**
8921
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
8922
+ * @summary [Experimental] Mint NFTs
8923
+ * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
8924
+ * @param {*} [options] Override http request option.
8925
+ * @throws {RequiredError}
8926
+ * @memberof NftsApi
8927
+ */
8928
+ createMintRequest(requestParameters, options) {
8929
+ return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
8930
+ }
8931
+ /**
8932
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
8933
+ * @summary [Experimental] Get mint request by reference ID
8934
+ * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
8935
+ * @param {*} [options] Override http request option.
8936
+ * @throws {RequiredError}
8937
+ * @memberof NftsApi
8938
+ */
8939
+ getMintRequest(requestParameters, options) {
8940
+ return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
8941
+ }
8723
8942
  /**
8724
8943
  * Get NFT by token ID
8725
8944
  * @summary Get NFT by token ID
@@ -8742,6 +8961,17 @@ class NftsApi extends BaseAPI$2 {
8742
8961
  listAllNFTs(requestParameters, options) {
8743
8962
  return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
8744
8963
  }
8964
+ /**
8965
+ * [Experimental] Retrieve the status of all mints for a given contract address
8966
+ * @summary [Experimental] List mint requests
8967
+ * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
8968
+ * @param {*} [options] Override http request option.
8969
+ * @throws {RequiredError}
8970
+ * @memberof NftsApi
8971
+ */
8972
+ listMintRequests(requestParameters, options) {
8973
+ return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
8974
+ }
8745
8975
  /**
8746
8976
  * List NFTs by contract address
8747
8977
  * @summary List NFTs by contract address
@@ -11276,7 +11506,7 @@ class MultiRollupApiClients {
11276
11506
  }
11277
11507
 
11278
11508
  // eslint-disable-next-line @typescript-eslint/naming-convention
11279
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.10.0-alpha.1' };
11509
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.11.0' };
11280
11510
  const createConfig = ({ basePath, headers, }) => {
11281
11511
  if (!basePath.trim()) {
11282
11512
  throw Error('basePath can not be empty');
@@ -11348,7 +11578,7 @@ class APIError extends Error {
11348
11578
 
11349
11579
  /* eslint-disable implicit-arrow-linebreak */
11350
11580
  const defaultHeaders = {
11351
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.10.0-alpha.1',
11581
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.11.0',
11352
11582
  };
11353
11583
  /**
11354
11584
  * createAPIConfiguration to create a custom Configuration
@@ -11609,6 +11839,51 @@ class BlockchainData {
11609
11839
  throw formatError(err);
11610
11840
  });
11611
11841
  }
11842
+ /**
11843
+ * Create a mint request to mint a set of NFTs for a given collection
11844
+ * @experimental
11845
+ * @param request - the request object containing the parameters to be provided in the API request
11846
+ * @returns a promise that resolves with the remaining rate limits
11847
+ * @throws {@link index.APIError}
11848
+ */
11849
+ async createMintRequest(request) {
11850
+ return await this.nfts
11851
+ .createMintRequest(request)
11852
+ .then((res) => res.data)
11853
+ .catch((err) => {
11854
+ throw formatError(err);
11855
+ });
11856
+ }
11857
+ /**
11858
+ * List all mint requests for a given contract address
11859
+ * @experimental
11860
+ * @param request - the request object containing the parameters to be provided in the API request
11861
+ * @returns a promise that resolves with a list of mint requests
11862
+ * @throws {@link index.APIError}
11863
+ */
11864
+ async listMintRequests(request) {
11865
+ return await this.nfts
11866
+ .listMintRequests(request)
11867
+ .then((res) => res.data)
11868
+ .catch((err) => {
11869
+ throw formatError(err);
11870
+ });
11871
+ }
11872
+ /**
11873
+ * Retrieve the status of a single mint request identified by its reference ID
11874
+ * @experimental
11875
+ * @param request - the request object containing the parameters to be provided in the API request
11876
+ * @returns a promise that resolves with a single mint request
11877
+ * @throws {@link index.APIError}
11878
+ */
11879
+ async getMintRequest(request) {
11880
+ return await this.nfts
11881
+ .getMintRequest(request)
11882
+ .then((res) => res.data)
11883
+ .catch((err) => {
11884
+ throw formatError(err);
11885
+ });
11886
+ }
11612
11887
  /**
11613
11888
  * List NFT owners by token ID
11614
11889
  * @param request - the request object containing the parameters to be provided in the API request
@@ -11781,7 +12056,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
11781
12056
  chainID,
11782
12057
  coreContractAddress,
11783
12058
  registrationContractAddress,
11784
- sdkVersion: 'ts-immutable-sdk-1.10.0-alpha.1',
12059
+ sdkVersion: 'ts-immutable-sdk-1.11.0',
11785
12060
  });
11786
12061
  /**
11787
12062
  * Sets `sdkVersion` at the time of build
@@ -37463,7 +37738,7 @@ const flattenProperties = (properties) => {
37463
37738
  };
37464
37739
 
37465
37740
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
37466
- const SDK_VERSION = '1.10.0-alpha.1';
37741
+ const SDK_VERSION = '1.11.0';
37467
37742
  const getReferrer = () => {
37468
37743
  if (isNode()) {
37469
37744
  return '';
@@ -42633,7 +42908,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
42633
42908
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
42634
42909
  };
42635
42910
 
42636
- const SDK_VERSION_MARKER = '1.10.0-alpha.1';
42911
+ const SDK_VERSION_MARKER = '1.11.0';
42637
42912
  // This SDK version is replaced by the `yarn build` command ran on the root level
42638
42913
  const globalPackageVersion = () => SDK_VERSION_MARKER;
42639
42914
 
package/dist/orderbook.js CHANGED
@@ -131,7 +131,7 @@ const flattenProperties = (properties) => {
131
131
  };
132
132
 
133
133
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
134
- const SDK_VERSION = '1.10.0-alpha.1';
134
+ const SDK_VERSION = '1.11.0';
135
135
  const getReferrer = () => {
136
136
  if (isNode()) {
137
137
  return '';
package/dist/passport.js CHANGED
@@ -7465,6 +7465,85 @@ class NftOwnersApi extends BaseAPI$2 {
7465
7465
  */
7466
7466
  const NftsApiAxiosParamCreator = function (configuration) {
7467
7467
  return {
7468
+ /**
7469
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
7470
+ * @summary [Experimental] Mint NFTs
7471
+ * @param {string} contractAddress The address of contract
7472
+ * @param {string} chainName The name of chain
7473
+ * @param {CreateMintRequestRequest} createMintRequestRequest the request body
7474
+ * @param {*} [options] Override http request option.
7475
+ * @throws {RequiredError}
7476
+ */
7477
+ createMintRequest: async (contractAddress, chainName, createMintRequestRequest, options = {}) => {
7478
+ // verify required parameter 'contractAddress' is not null or undefined
7479
+ assertParamExists$2('createMintRequest', 'contractAddress', contractAddress);
7480
+ // verify required parameter 'chainName' is not null or undefined
7481
+ assertParamExists$2('createMintRequest', 'chainName', chainName);
7482
+ // verify required parameter 'createMintRequestRequest' is not null or undefined
7483
+ assertParamExists$2('createMintRequest', 'createMintRequestRequest', createMintRequestRequest);
7484
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
7485
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
7486
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
7487
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7488
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
7489
+ let baseOptions;
7490
+ if (configuration) {
7491
+ baseOptions = configuration.baseOptions;
7492
+ }
7493
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
7494
+ const localVarHeaderParameter = {};
7495
+ const localVarQueryParameter = {};
7496
+ // authentication ImmutableApiKey required
7497
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
7498
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7499
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
7500
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7501
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7502
+ localVarRequestOptions.data = serializeDataIfNeeded$2(createMintRequestRequest, localVarRequestOptions, configuration);
7503
+ return {
7504
+ url: toPathString$2(localVarUrlObj),
7505
+ options: localVarRequestOptions,
7506
+ };
7507
+ },
7508
+ /**
7509
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
7510
+ * @summary [Experimental] Get mint request by reference ID
7511
+ * @param {string} contractAddress The address of contract
7512
+ * @param {string} chainName The name of chain
7513
+ * @param {string} referenceId The ID of the mint request
7514
+ * @param {*} [options] Override http request option.
7515
+ * @throws {RequiredError}
7516
+ */
7517
+ getMintRequest: async (contractAddress, chainName, referenceId, options = {}) => {
7518
+ // verify required parameter 'contractAddress' is not null or undefined
7519
+ assertParamExists$2('getMintRequest', 'contractAddress', contractAddress);
7520
+ // verify required parameter 'chainName' is not null or undefined
7521
+ assertParamExists$2('getMintRequest', 'chainName', chainName);
7522
+ // verify required parameter 'referenceId' is not null or undefined
7523
+ assertParamExists$2('getMintRequest', 'referenceId', referenceId);
7524
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}`
7525
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
7526
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
7527
+ .replace(`{${"reference_id"}}`, encodeURIComponent(String(referenceId)));
7528
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7529
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
7530
+ let baseOptions;
7531
+ if (configuration) {
7532
+ baseOptions = configuration.baseOptions;
7533
+ }
7534
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7535
+ const localVarHeaderParameter = {};
7536
+ const localVarQueryParameter = {};
7537
+ // authentication ImmutableApiKey required
7538
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
7539
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
7540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7541
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7542
+ return {
7543
+ url: toPathString$2(localVarUrlObj),
7544
+ options: localVarRequestOptions,
7545
+ };
7546
+ },
7468
7547
  /**
7469
7548
  * Get NFT by token ID
7470
7549
  * @summary Get NFT by token ID
@@ -7545,6 +7624,53 @@ const NftsApiAxiosParamCreator = function (configuration) {
7545
7624
  options: localVarRequestOptions,
7546
7625
  };
7547
7626
  },
7627
+ /**
7628
+ * [Experimental] Retrieve the status of all mints for a given contract address
7629
+ * @summary [Experimental] List mint requests
7630
+ * @param {string} contractAddress The address of contract
7631
+ * @param {string} chainName The name of chain
7632
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
7633
+ * @param {number} [pageSize] Maximum number of items to return
7634
+ * @param {MintRequestStatus} [status] The status of the mint request
7635
+ * @param {*} [options] Override http request option.
7636
+ * @throws {RequiredError}
7637
+ */
7638
+ listMintRequests: async (contractAddress, chainName, pageCursor, pageSize, status, options = {}) => {
7639
+ // verify required parameter 'contractAddress' is not null or undefined
7640
+ assertParamExists$2('listMintRequests', 'contractAddress', contractAddress);
7641
+ // verify required parameter 'chainName' is not null or undefined
7642
+ assertParamExists$2('listMintRequests', 'chainName', chainName);
7643
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests`
7644
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
7645
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
7646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7647
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
7648
+ let baseOptions;
7649
+ if (configuration) {
7650
+ baseOptions = configuration.baseOptions;
7651
+ }
7652
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
7653
+ const localVarHeaderParameter = {};
7654
+ const localVarQueryParameter = {};
7655
+ // authentication ImmutableApiKey required
7656
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-key", configuration);
7657
+ if (pageCursor !== undefined) {
7658
+ localVarQueryParameter['page_cursor'] = pageCursor;
7659
+ }
7660
+ if (pageSize !== undefined) {
7661
+ localVarQueryParameter['page_size'] = pageSize;
7662
+ }
7663
+ if (status !== undefined) {
7664
+ localVarQueryParameter['status'] = status;
7665
+ }
7666
+ setSearchParams$2(localVarUrlObj, localVarQueryParameter);
7667
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7668
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
7669
+ return {
7670
+ url: toPathString$2(localVarUrlObj),
7671
+ options: localVarRequestOptions,
7672
+ };
7673
+ },
7548
7674
  /**
7549
7675
  * List NFTs by contract address
7550
7676
  * @summary List NFTs by contract address
@@ -7650,6 +7776,32 @@ const NftsApiAxiosParamCreator = function (configuration) {
7650
7776
  const NftsApiFp = function (configuration) {
7651
7777
  const localVarAxiosParamCreator = NftsApiAxiosParamCreator(configuration);
7652
7778
  return {
7779
+ /**
7780
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
7781
+ * @summary [Experimental] Mint NFTs
7782
+ * @param {string} contractAddress The address of contract
7783
+ * @param {string} chainName The name of chain
7784
+ * @param {CreateMintRequestRequest} createMintRequestRequest the request body
7785
+ * @param {*} [options] Override http request option.
7786
+ * @throws {RequiredError}
7787
+ */
7788
+ async createMintRequest(contractAddress, chainName, createMintRequestRequest, options) {
7789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMintRequest(contractAddress, chainName, createMintRequestRequest, options);
7790
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
7791
+ },
7792
+ /**
7793
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
7794
+ * @summary [Experimental] Get mint request by reference ID
7795
+ * @param {string} contractAddress The address of contract
7796
+ * @param {string} chainName The name of chain
7797
+ * @param {string} referenceId The ID of the mint request
7798
+ * @param {*} [options] Override http request option.
7799
+ * @throws {RequiredError}
7800
+ */
7801
+ async getMintRequest(contractAddress, chainName, referenceId, options) {
7802
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMintRequest(contractAddress, chainName, referenceId, options);
7803
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
7804
+ },
7653
7805
  /**
7654
7806
  * Get NFT by token ID
7655
7807
  * @summary Get NFT by token ID
@@ -7677,6 +7829,21 @@ const NftsApiFp = function (configuration) {
7677
7829
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
7678
7830
  return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
7679
7831
  },
7832
+ /**
7833
+ * [Experimental] Retrieve the status of all mints for a given contract address
7834
+ * @summary [Experimental] List mint requests
7835
+ * @param {string} contractAddress The address of contract
7836
+ * @param {string} chainName The name of chain
7837
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
7838
+ * @param {number} [pageSize] Maximum number of items to return
7839
+ * @param {MintRequestStatus} [status] The status of the mint request
7840
+ * @param {*} [options] Override http request option.
7841
+ * @throws {RequiredError}
7842
+ */
7843
+ async listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options) {
7844
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMintRequests(contractAddress, chainName, pageCursor, pageSize, status, options);
7845
+ return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
7846
+ },
7680
7847
  /**
7681
7848
  * List NFTs by contract address
7682
7849
  * @summary List NFTs by contract address
@@ -7717,6 +7884,28 @@ const NftsApiFp = function (configuration) {
7717
7884
  * @extends {BaseAPI}
7718
7885
  */
7719
7886
  class NftsApi extends BaseAPI$2 {
7887
+ /**
7888
+ * [Experimental] Create a mint request to mint a set of NFTs for a given collection
7889
+ * @summary [Experimental] Mint NFTs
7890
+ * @param {NftsApiCreateMintRequestRequest} requestParameters Request parameters.
7891
+ * @param {*} [options] Override http request option.
7892
+ * @throws {RequiredError}
7893
+ * @memberof NftsApi
7894
+ */
7895
+ createMintRequest(requestParameters, options) {
7896
+ return NftsApiFp(this.configuration).createMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.createMintRequestRequest, options).then((request) => request(this.axios, this.basePath));
7897
+ }
7898
+ /**
7899
+ * [Experimental] Retrieve the status of a mint request identified by its reference_id
7900
+ * @summary [Experimental] Get mint request by reference ID
7901
+ * @param {NftsApiGetMintRequestRequest} requestParameters Request parameters.
7902
+ * @param {*} [options] Override http request option.
7903
+ * @throws {RequiredError}
7904
+ * @memberof NftsApi
7905
+ */
7906
+ getMintRequest(requestParameters, options) {
7907
+ return NftsApiFp(this.configuration).getMintRequest(requestParameters.contractAddress, requestParameters.chainName, requestParameters.referenceId, options).then((request) => request(this.axios, this.basePath));
7908
+ }
7720
7909
  /**
7721
7910
  * Get NFT by token ID
7722
7911
  * @summary Get NFT by token ID
@@ -7739,6 +7928,17 @@ class NftsApi extends BaseAPI$2 {
7739
7928
  listAllNFTs(requestParameters, options) {
7740
7929
  return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
7741
7930
  }
7931
+ /**
7932
+ * [Experimental] Retrieve the status of all mints for a given contract address
7933
+ * @summary [Experimental] List mint requests
7934
+ * @param {NftsApiListMintRequestsRequest} requestParameters Request parameters.
7935
+ * @param {*} [options] Override http request option.
7936
+ * @throws {RequiredError}
7937
+ * @memberof NftsApi
7938
+ */
7939
+ listMintRequests(requestParameters, options) {
7940
+ return NftsApiFp(this.configuration).listMintRequests(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
7941
+ }
7742
7942
  /**
7743
7943
  * List NFTs by contract address
7744
7944
  * @summary List NFTs by contract address
@@ -9146,7 +9346,7 @@ class MultiRollupApiClients {
9146
9346
  }
9147
9347
 
9148
9348
  // eslint-disable-next-line @typescript-eslint/naming-convention
9149
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.10.0-alpha.1' };
9349
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.11.0' };
9150
9350
  const createConfig = ({ basePath, headers, }) => {
9151
9351
  if (!basePath.trim()) {
9152
9352
  throw Error('basePath can not be empty');
@@ -9325,7 +9525,7 @@ const flattenProperties = (properties) => {
9325
9525
  };
9326
9526
 
9327
9527
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
9328
- const SDK_VERSION = '1.10.0-alpha.1';
9528
+ const SDK_VERSION = '1.11.0';
9329
9529
  const getReferrer = () => {
9330
9530
  if (isNode()) {
9331
9531
  return '';
@@ -9538,7 +9738,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9538
9738
  chainID,
9539
9739
  coreContractAddress,
9540
9740
  registrationContractAddress,
9541
- sdkVersion: 'ts-immutable-sdk-1.10.0-alpha.1',
9741
+ sdkVersion: 'ts-immutable-sdk-1.11.0',
9542
9742
  });
9543
9743
  /**
9544
9744
  * Sets `sdkVersion` at the time of build