@imtbl/sdk 1.26.2-alpha.2 → 1.26.3
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/blockchain_data.d.ts +58 -2
- package/dist/blockchain_data.js +158 -108
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/checkout.d.ts +30 -95
- package/dist/checkout.js +160 -110
- package/dist/config.js +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +195 -138
- package/dist/index.d.ts +88 -97
- package/dist/index.js +195 -138
- package/dist/orderbook.js +1 -1
- package/dist/passport.d.ts +30 -95
- package/dist/passport.js +45 -118
- package/dist/x.d.ts +30 -95
- package/dist/x.js +24 -24
- package/package.json +1 -1
package/dist/passport.d.ts
CHANGED
|
@@ -4917,12 +4917,6 @@ interface GetPrimarySaleOKBody {
|
|
|
4917
4917
|
* @interface Project
|
|
4918
4918
|
*/
|
|
4919
4919
|
interface Project {
|
|
4920
|
-
/**
|
|
4921
|
-
* API key for the project. This is only for zkevm project. This API is not for increasing rate limit yet.
|
|
4922
|
-
* @type {string}
|
|
4923
|
-
* @memberof Project
|
|
4924
|
-
*/
|
|
4925
|
-
'api_key'?: string;
|
|
4926
4920
|
/**
|
|
4927
4921
|
* The project ChainType
|
|
4928
4922
|
* @type {string}
|
|
@@ -4930,73 +4924,13 @@ interface Project {
|
|
|
4930
4924
|
*/
|
|
4931
4925
|
'chain_type'?: string;
|
|
4932
4926
|
/**
|
|
4933
|
-
* The
|
|
4934
|
-
* @type {string}
|
|
4935
|
-
* @memberof Project
|
|
4936
|
-
*/
|
|
4937
|
-
'collection_limit_expires_at': string;
|
|
4938
|
-
/**
|
|
4939
|
-
* The total monthly collection limit
|
|
4940
|
-
* @type {number}
|
|
4941
|
-
* @memberof Project
|
|
4942
|
-
*/
|
|
4943
|
-
'collection_monthly_limit': number;
|
|
4944
|
-
/**
|
|
4945
|
-
* The number of collection remaining in the current period
|
|
4946
|
-
* @type {number}
|
|
4947
|
-
* @memberof Project
|
|
4948
|
-
*/
|
|
4949
|
-
'collection_remaining': number;
|
|
4950
|
-
/**
|
|
4951
|
-
* The company name
|
|
4952
|
-
* @type {string}
|
|
4953
|
-
* @memberof Project
|
|
4954
|
-
*/
|
|
4955
|
-
'company_name': string;
|
|
4956
|
-
/**
|
|
4957
|
-
* The project contact email (must be registered as a developer account with Immutable at https://hub.immutable.com)
|
|
4927
|
+
* The project group ID
|
|
4958
4928
|
* @type {string}
|
|
4959
4929
|
* @memberof Project
|
|
4960
4930
|
*/
|
|
4961
|
-
'
|
|
4962
|
-
/**
|
|
4963
|
-
* The environment ID
|
|
4964
|
-
* @type {string}
|
|
4965
|
-
* @memberof Project
|
|
4966
|
-
*/
|
|
4967
|
-
'environment_id'?: string;
|
|
4968
|
-
/**
|
|
4969
|
-
* The user environment name correlating to this project
|
|
4970
|
-
* @type {string}
|
|
4971
|
-
* @memberof Project
|
|
4972
|
-
*/
|
|
4973
|
-
'environment_name'?: string;
|
|
4974
|
-
/**
|
|
4975
|
-
* The project ID
|
|
4976
|
-
* @type {number}
|
|
4977
|
-
* @memberof Project
|
|
4978
|
-
*/
|
|
4979
|
-
'id': number;
|
|
4980
|
-
/**
|
|
4981
|
-
* The current period expiry date for mint operation limit
|
|
4982
|
-
* @type {string}
|
|
4983
|
-
* @memberof Project
|
|
4984
|
-
*/
|
|
4985
|
-
'mint_limit_expires_at': string;
|
|
4986
|
-
/**
|
|
4987
|
-
* The total monthly mint operation limit
|
|
4988
|
-
* @type {number}
|
|
4989
|
-
* @memberof Project
|
|
4990
|
-
*/
|
|
4991
|
-
'mint_monthly_limit': number;
|
|
4992
|
-
/**
|
|
4993
|
-
* The number of mint operation remaining in the current period
|
|
4994
|
-
* @type {number}
|
|
4995
|
-
* @memberof Project
|
|
4996
|
-
*/
|
|
4997
|
-
'mint_remaining': number;
|
|
4931
|
+
'id': string;
|
|
4998
4932
|
/**
|
|
4999
|
-
* The project name
|
|
4933
|
+
* The project group name
|
|
5000
4934
|
* @type {string}
|
|
5001
4935
|
* @memberof Project
|
|
5002
4936
|
*/
|
|
@@ -5007,24 +4941,6 @@ interface Project {
|
|
|
5007
4941
|
* @memberof Project
|
|
5008
4942
|
*/
|
|
5009
4943
|
'org_id'?: string;
|
|
5010
|
-
/**
|
|
5011
|
-
* Project group id
|
|
5012
|
-
* @type {string}
|
|
5013
|
-
* @memberof Project
|
|
5014
|
-
*/
|
|
5015
|
-
'project_group_id'?: string;
|
|
5016
|
-
/**
|
|
5017
|
-
* The public publishable_key for the project
|
|
5018
|
-
* @type {string}
|
|
5019
|
-
* @memberof Project
|
|
5020
|
-
*/
|
|
5021
|
-
'publishable_key'?: string;
|
|
5022
|
-
/**
|
|
5023
|
-
* The public publishable_key created time
|
|
5024
|
-
* @type {string}
|
|
5025
|
-
* @memberof Project
|
|
5026
|
-
*/
|
|
5027
|
-
'publishable_key_created_at'?: string;
|
|
5028
4944
|
}
|
|
5029
4945
|
|
|
5030
4946
|
/**
|
|
@@ -6341,7 +6257,7 @@ interface GetSignableWithdrawalResponseV2 {
|
|
|
6341
6257
|
*/
|
|
6342
6258
|
'asset_id': string;
|
|
6343
6259
|
/**
|
|
6344
|
-
*
|
|
6260
|
+
* Expiration timestamp for this withdrawal
|
|
6345
6261
|
* @type {number}
|
|
6346
6262
|
* @memberof GetSignableWithdrawalResponseV2
|
|
6347
6263
|
*/
|
|
@@ -6642,6 +6558,25 @@ interface ListDepositsResponse {
|
|
|
6642
6558
|
*/
|
|
6643
6559
|
type MintToken = Token;
|
|
6644
6560
|
|
|
6561
|
+
/**
|
|
6562
|
+
* Immutable X API
|
|
6563
|
+
* Immutable X API
|
|
6564
|
+
*
|
|
6565
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6566
|
+
* Contact: support@immutable.com
|
|
6567
|
+
*
|
|
6568
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
6569
|
+
* https://openapi-generator.tech
|
|
6570
|
+
* Do not edit the class manually.
|
|
6571
|
+
*/
|
|
6572
|
+
|
|
6573
|
+
/**
|
|
6574
|
+
* @type MintTokenOAIGen
|
|
6575
|
+
* Details of the asset which has been minted
|
|
6576
|
+
* @export
|
|
6577
|
+
*/
|
|
6578
|
+
type MintTokenOAIGen = MintToken;
|
|
6579
|
+
|
|
6645
6580
|
/**
|
|
6646
6581
|
* Immutable X API
|
|
6647
6582
|
* Immutable X API
|
|
@@ -6680,10 +6615,10 @@ interface Mint {
|
|
|
6680
6615
|
'timestamp': string;
|
|
6681
6616
|
/**
|
|
6682
6617
|
*
|
|
6683
|
-
* @type {
|
|
6618
|
+
* @type {MintTokenOAIGen}
|
|
6684
6619
|
* @memberof Mint
|
|
6685
6620
|
*/
|
|
6686
|
-
'token':
|
|
6621
|
+
'token': MintTokenOAIGen;
|
|
6687
6622
|
/**
|
|
6688
6623
|
* Sequential ID of transaction in Immutable X
|
|
6689
6624
|
* @type {number}
|
|
@@ -12335,8 +12270,8 @@ interface WithdrawalsApiListWithdrawalsRequest$1 {
|
|
|
12335
12270
|
*/
|
|
12336
12271
|
declare class WithdrawalsApi$1 extends BaseAPI {
|
|
12337
12272
|
/**
|
|
12338
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
12339
|
-
* @summary Creates a withdrawal
|
|
12273
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
12274
|
+
* @summary Creates a withdrawal
|
|
12340
12275
|
* @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
|
|
12341
12276
|
* @param {*} [options] Override http request option.
|
|
12342
12277
|
* @throws {RequiredError}
|
|
@@ -12344,8 +12279,8 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12344
12279
|
*/
|
|
12345
12280
|
createWithdrawal(requestParameters: WithdrawalsApiCreateWithdrawalRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12346
12281
|
/**
|
|
12347
|
-
* Creates a withdrawal. Use https://docs.
|
|
12348
|
-
* @summary Creates a withdrawal of a token for
|
|
12282
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
12283
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
12349
12284
|
* @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
|
|
12350
12285
|
* @param {*} [options] Override http request option.
|
|
12351
12286
|
* @throws {RequiredError}
|
|
@@ -12353,7 +12288,7 @@ declare class WithdrawalsApi$1 extends BaseAPI {
|
|
|
12353
12288
|
*/
|
|
12354
12289
|
createWithdrawalV2(requestParameters: WithdrawalsApiCreateWithdrawalV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
|
|
12355
12290
|
/**
|
|
12356
|
-
* Gets details of a signable withdrawal
|
|
12291
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
12357
12292
|
* @summary Gets details of a signable withdrawal
|
|
12358
12293
|
* @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
|
|
12359
12294
|
* @param {*} [options] Override http request option.
|
package/dist/passport.js
CHANGED
|
@@ -37,7 +37,7 @@ import { v1 } from '@0xsequence/core';
|
|
|
37
37
|
*/
|
|
38
38
|
// Some imports not used depending on template conditions
|
|
39
39
|
// @ts-ignore
|
|
40
|
-
const BASE_PATH$1 = "https://api.
|
|
40
|
+
const BASE_PATH$1 = "https://api.immutable.com".replace(/\/+$/, "");
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
43
|
* @export
|
|
@@ -6340,8 +6340,8 @@ let UsersApi$1 = class UsersApi extends BaseAPI$1 {
|
|
|
6340
6340
|
const WithdrawalsApiAxiosParamCreator = function (configuration) {
|
|
6341
6341
|
return {
|
|
6342
6342
|
/**
|
|
6343
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
6344
|
-
* @summary Creates a withdrawal
|
|
6343
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
6344
|
+
* @summary Creates a withdrawal
|
|
6345
6345
|
* @param {string} xImxEthAddress eth address
|
|
6346
6346
|
* @param {string} xImxEthSignature eth signature
|
|
6347
6347
|
* @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
|
|
@@ -6382,8 +6382,8 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
|
|
|
6382
6382
|
};
|
|
6383
6383
|
},
|
|
6384
6384
|
/**
|
|
6385
|
-
* Creates a withdrawal. Use https://docs.
|
|
6386
|
-
* @summary Creates a withdrawal of a token for
|
|
6385
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
6386
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
6387
6387
|
* @param {string} xImxEthAddress eth address
|
|
6388
6388
|
* @param {string} xImxEthSignature eth signature
|
|
6389
6389
|
* @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
|
|
@@ -6424,7 +6424,7 @@ const WithdrawalsApiAxiosParamCreator = function (configuration) {
|
|
|
6424
6424
|
};
|
|
6425
6425
|
},
|
|
6426
6426
|
/**
|
|
6427
|
-
* Gets details of a signable withdrawal
|
|
6427
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
6428
6428
|
* @summary Gets details of a signable withdrawal
|
|
6429
6429
|
* @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
|
|
6430
6430
|
* @param {*} [options] Override http request option.
|
|
@@ -6619,8 +6619,8 @@ const WithdrawalsApiFp = function (configuration) {
|
|
|
6619
6619
|
const localVarAxiosParamCreator = WithdrawalsApiAxiosParamCreator(configuration);
|
|
6620
6620
|
return {
|
|
6621
6621
|
/**
|
|
6622
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
6623
|
-
* @summary Creates a withdrawal
|
|
6622
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
6623
|
+
* @summary Creates a withdrawal
|
|
6624
6624
|
* @param {string} xImxEthAddress eth address
|
|
6625
6625
|
* @param {string} xImxEthSignature eth signature
|
|
6626
6626
|
* @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
|
|
@@ -6632,8 +6632,8 @@ const WithdrawalsApiFp = function (configuration) {
|
|
|
6632
6632
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
6633
6633
|
},
|
|
6634
6634
|
/**
|
|
6635
|
-
* Creates a withdrawal. Use https://docs.
|
|
6636
|
-
* @summary Creates a withdrawal of a token for
|
|
6635
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
6636
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
6637
6637
|
* @param {string} xImxEthAddress eth address
|
|
6638
6638
|
* @param {string} xImxEthSignature eth signature
|
|
6639
6639
|
* @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
|
|
@@ -6645,7 +6645,7 @@ const WithdrawalsApiFp = function (configuration) {
|
|
|
6645
6645
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
6646
6646
|
},
|
|
6647
6647
|
/**
|
|
6648
|
-
* Gets details of a signable withdrawal
|
|
6648
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
6649
6649
|
* @summary Gets details of a signable withdrawal
|
|
6650
6650
|
* @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
|
|
6651
6651
|
* @param {*} [options] Override http request option.
|
|
@@ -6715,8 +6715,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
|
|
|
6715
6715
|
const localVarFp = WithdrawalsApiFp(configuration);
|
|
6716
6716
|
return {
|
|
6717
6717
|
/**
|
|
6718
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
6719
|
-
* @summary Creates a withdrawal
|
|
6718
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
6719
|
+
* @summary Creates a withdrawal
|
|
6720
6720
|
* @param {string} xImxEthAddress eth address
|
|
6721
6721
|
* @param {string} xImxEthSignature eth signature
|
|
6722
6722
|
* @param {CreateWithdrawalRequest} createWithdrawalRequest create a withdrawal
|
|
@@ -6727,8 +6727,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
|
|
|
6727
6727
|
return localVarFp.createWithdrawal(xImxEthAddress, xImxEthSignature, createWithdrawalRequest, options).then((request) => request(axios, basePath));
|
|
6728
6728
|
},
|
|
6729
6729
|
/**
|
|
6730
|
-
* Creates a withdrawal. Use https://docs.
|
|
6731
|
-
* @summary Creates a withdrawal of a token for
|
|
6730
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
6731
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
6732
6732
|
* @param {string} xImxEthAddress eth address
|
|
6733
6733
|
* @param {string} xImxEthSignature eth signature
|
|
6734
6734
|
* @param {CreateWithdrawalRequestV2} createWithdrawalRequestV2 create a withdrawal
|
|
@@ -6739,7 +6739,7 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
|
|
|
6739
6739
|
return localVarFp.createWithdrawalV2(xImxEthAddress, xImxEthSignature, createWithdrawalRequestV2, options).then((request) => request(axios, basePath));
|
|
6740
6740
|
},
|
|
6741
6741
|
/**
|
|
6742
|
-
* Gets details of a signable withdrawal
|
|
6742
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
6743
6743
|
* @summary Gets details of a signable withdrawal
|
|
6744
6744
|
* @param {GetSignableWithdrawalRequest} getSignableWithdrawalRequest get details of signable withdrawal
|
|
6745
6745
|
* @param {*} [options] Override http request option.
|
|
@@ -6805,8 +6805,8 @@ const WithdrawalsApiFactory = function (configuration, basePath, axios) {
|
|
|
6805
6805
|
*/
|
|
6806
6806
|
let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
|
|
6807
6807
|
/**
|
|
6808
|
-
* Creates a withdrawal. Use https://docs.x.immutable.com/reference
|
|
6809
|
-
* @summary Creates a withdrawal
|
|
6808
|
+
* Creates a withdrawal. Use https://docs.x.immutable.com/reference/#/operations/getSignableWithdrawal to get request body params. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/createWithdrawalV2.
|
|
6809
|
+
* @summary Creates a withdrawal
|
|
6810
6810
|
* @param {WithdrawalsApiCreateWithdrawalRequest} requestParameters Request parameters.
|
|
6811
6811
|
* @param {*} [options] Override http request option.
|
|
6812
6812
|
* @throws {RequiredError}
|
|
@@ -6816,8 +6816,8 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
|
|
|
6816
6816
|
return WithdrawalsApiFp(this.configuration).createWithdrawal(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6817
6817
|
}
|
|
6818
6818
|
/**
|
|
6819
|
-
* Creates a withdrawal. Use https://docs.
|
|
6820
|
-
* @summary Creates a withdrawal of a token for
|
|
6819
|
+
* Creates a withdrawal. Use https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2 to get request body params.
|
|
6820
|
+
* @summary Creates a withdrawal of a token for when StarkEx contract that is higher than v3
|
|
6821
6821
|
* @param {WithdrawalsApiCreateWithdrawalV2Request} requestParameters Request parameters.
|
|
6822
6822
|
* @param {*} [options] Override http request option.
|
|
6823
6823
|
* @throws {RequiredError}
|
|
@@ -6827,7 +6827,7 @@ let WithdrawalsApi$1 = class WithdrawalsApi extends BaseAPI$1 {
|
|
|
6827
6827
|
return WithdrawalsApiFp(this.configuration).createWithdrawalV2(requestParameters.xImxEthAddress, requestParameters.xImxEthSignature, requestParameters.createWithdrawalRequestV2, options).then((request) => request(this.axios, this.basePath));
|
|
6828
6828
|
}
|
|
6829
6829
|
/**
|
|
6830
|
-
* Gets details of a signable withdrawal
|
|
6830
|
+
* Gets details of a signable withdrawal. This endpoint will be deprecated once StarkEx contract gets upgraded to v4, check https://docs.immutable.com/x/reference/#/operations/getSignableWithdrawalV2.
|
|
6831
6831
|
* @summary Gets details of a signable withdrawal
|
|
6832
6832
|
* @param {WithdrawalsApiGetSignableWithdrawalRequest} requestParameters Request parameters.
|
|
6833
6833
|
* @param {*} [options] Override http request option.
|
|
@@ -8957,13 +8957,14 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
8957
8957
|
* @summary List all collections
|
|
8958
8958
|
* @param {string} chainName The name of chain
|
|
8959
8959
|
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
8960
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
8960
8961
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
8961
8962
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
8962
8963
|
* @param {number} [pageSize] Maximum number of items to return
|
|
8963
8964
|
* @param {*} [options] Override http request option.
|
|
8964
8965
|
* @throws {RequiredError}
|
|
8965
8966
|
*/
|
|
8966
|
-
listCollections: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8967
|
+
listCollections: async (chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
8967
8968
|
// verify required parameter 'chainName' is not null or undefined
|
|
8968
8969
|
assertParamExists$2('listCollections', 'chainName', chainName);
|
|
8969
8970
|
const localVarPath = `/v1/chains/{chain_name}/collections`
|
|
@@ -8980,6 +8981,9 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
|
|
|
8980
8981
|
if (contractAddress) {
|
|
8981
8982
|
localVarQueryParameter['contract_address'] = contractAddress;
|
|
8982
8983
|
}
|
|
8984
|
+
if (verificationStatus) {
|
|
8985
|
+
localVarQueryParameter['verification_status'] = verificationStatus;
|
|
8986
|
+
}
|
|
8983
8987
|
if (fromUpdatedAt !== undefined) {
|
|
8984
8988
|
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
8985
8989
|
fromUpdatedAt.toISOString() :
|
|
@@ -9109,14 +9113,15 @@ const CollectionsApiFp = function (configuration) {
|
|
|
9109
9113
|
* @summary List all collections
|
|
9110
9114
|
* @param {string} chainName The name of chain
|
|
9111
9115
|
* @param {Array<string>} [contractAddress] List of contract addresses to filter by
|
|
9116
|
+
* @param {Array<AssetVerificationStatus>} [verificationStatus] List of verification status to filter by
|
|
9112
9117
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
9113
9118
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
9114
9119
|
* @param {number} [pageSize] Maximum number of items to return
|
|
9115
9120
|
* @param {*} [options] Override http request option.
|
|
9116
9121
|
* @throws {RequiredError}
|
|
9117
9122
|
*/
|
|
9118
|
-
async listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
9119
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
9123
|
+
async listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
9124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, contractAddress, verificationStatus, fromUpdatedAt, pageCursor, pageSize, options);
|
|
9120
9125
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
9121
9126
|
},
|
|
9122
9127
|
/**
|
|
@@ -9175,7 +9180,7 @@ let CollectionsApi$2 = class CollectionsApi extends BaseAPI$2 {
|
|
|
9175
9180
|
* @memberof CollectionsApi
|
|
9176
9181
|
*/
|
|
9177
9182
|
listCollections(requestParameters, options) {
|
|
9178
|
-
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
9183
|
+
return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.contractAddress, requestParameters.verificationStatus, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
9179
9184
|
}
|
|
9180
9185
|
/**
|
|
9181
9186
|
* List collections by NFT owner account address
|
|
@@ -10721,63 +10726,6 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
10721
10726
|
options: localVarRequestOptions,
|
|
10722
10727
|
};
|
|
10723
10728
|
},
|
|
10724
|
-
/**
|
|
10725
|
-
* Get transaction metadata for a given encoded transaction
|
|
10726
|
-
* @summary Get transaction metadata
|
|
10727
|
-
* @param {string} chainName
|
|
10728
|
-
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
10729
|
-
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
10730
|
-
* @param {string} transactionId ID of the given transaction to be decoded
|
|
10731
|
-
* @param {string} transactionData Encoded transaction data
|
|
10732
|
-
* @param {*} [options] Override http request option.
|
|
10733
|
-
* @deprecated
|
|
10734
|
-
* @throws {RequiredError}
|
|
10735
|
-
*/
|
|
10736
|
-
getTransactionMetadataDeprecated: async (chainName, contractAddress, methodId, transactionId, transactionData, options = {}) => {
|
|
10737
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
10738
|
-
assertParamExists$2('getTransactionMetadataDeprecated', 'chainName', chainName);
|
|
10739
|
-
// verify required parameter 'contractAddress' is not null or undefined
|
|
10740
|
-
assertParamExists$2('getTransactionMetadataDeprecated', 'contractAddress', contractAddress);
|
|
10741
|
-
// verify required parameter 'methodId' is not null or undefined
|
|
10742
|
-
assertParamExists$2('getTransactionMetadataDeprecated', 'methodId', methodId);
|
|
10743
|
-
// verify required parameter 'transactionId' is not null or undefined
|
|
10744
|
-
assertParamExists$2('getTransactionMetadataDeprecated', 'transactionId', transactionId);
|
|
10745
|
-
// verify required parameter 'transactionData' is not null or undefined
|
|
10746
|
-
assertParamExists$2('getTransactionMetadataDeprecated', 'transactionData', transactionData);
|
|
10747
|
-
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
10748
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
10749
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10750
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$2);
|
|
10751
|
-
let baseOptions;
|
|
10752
|
-
if (configuration) {
|
|
10753
|
-
baseOptions = configuration.baseOptions;
|
|
10754
|
-
}
|
|
10755
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10756
|
-
const localVarHeaderParameter = {};
|
|
10757
|
-
const localVarQueryParameter = {};
|
|
10758
|
-
// authentication BearerAuth required
|
|
10759
|
-
// http bearer authentication required
|
|
10760
|
-
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
10761
|
-
if (contractAddress !== undefined) {
|
|
10762
|
-
localVarQueryParameter['contract_address'] = contractAddress;
|
|
10763
|
-
}
|
|
10764
|
-
if (methodId !== undefined) {
|
|
10765
|
-
localVarQueryParameter['method_id'] = methodId;
|
|
10766
|
-
}
|
|
10767
|
-
if (transactionId !== undefined) {
|
|
10768
|
-
localVarQueryParameter['transaction_id'] = transactionId;
|
|
10769
|
-
}
|
|
10770
|
-
if (transactionData !== undefined) {
|
|
10771
|
-
localVarQueryParameter['transaction_data'] = transactionData;
|
|
10772
|
-
}
|
|
10773
|
-
setSearchParams$2(localVarUrlObj, localVarQueryParameter);
|
|
10774
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10775
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10776
|
-
return {
|
|
10777
|
-
url: toPathString$2(localVarUrlObj),
|
|
10778
|
-
options: localVarRequestOptions,
|
|
10779
|
-
};
|
|
10780
|
-
},
|
|
10781
10729
|
};
|
|
10782
10730
|
};
|
|
10783
10731
|
/**
|
|
@@ -10860,22 +10808,6 @@ const PassportApiFp = function (configuration) {
|
|
|
10860
10808
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadata(chainName, getTransactionMetadataRequest, options);
|
|
10861
10809
|
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
10862
10810
|
},
|
|
10863
|
-
/**
|
|
10864
|
-
* Get transaction metadata for a given encoded transaction
|
|
10865
|
-
* @summary Get transaction metadata
|
|
10866
|
-
* @param {string} chainName
|
|
10867
|
-
* @param {string} contractAddress The address of the contract intended for interaction with this transaction
|
|
10868
|
-
* @param {string} methodId The method ID of the contract intended for interaction with this transaction
|
|
10869
|
-
* @param {string} transactionId ID of the given transaction to be decoded
|
|
10870
|
-
* @param {string} transactionData Encoded transaction data
|
|
10871
|
-
* @param {*} [options] Override http request option.
|
|
10872
|
-
* @deprecated
|
|
10873
|
-
* @throws {RequiredError}
|
|
10874
|
-
*/
|
|
10875
|
-
async getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options) {
|
|
10876
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransactionMetadataDeprecated(chainName, contractAddress, methodId, transactionId, transactionData, options);
|
|
10877
|
-
return createRequestFunction$2(localVarAxiosArgs, globalAxios$1, BASE_PATH$2, configuration);
|
|
10878
|
-
},
|
|
10879
10811
|
};
|
|
10880
10812
|
};
|
|
10881
10813
|
/**
|
|
@@ -10954,18 +10886,6 @@ class PassportApi extends BaseAPI$2 {
|
|
|
10954
10886
|
getTransactionMetadata(requestParameters, options) {
|
|
10955
10887
|
return PassportApiFp(this.configuration).getTransactionMetadata(requestParameters.chainName, requestParameters.getTransactionMetadataRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10956
10888
|
}
|
|
10957
|
-
/**
|
|
10958
|
-
* Get transaction metadata for a given encoded transaction
|
|
10959
|
-
* @summary Get transaction metadata
|
|
10960
|
-
* @param {PassportApiGetTransactionMetadataDeprecatedRequest} requestParameters Request parameters.
|
|
10961
|
-
* @param {*} [options] Override http request option.
|
|
10962
|
-
* @deprecated
|
|
10963
|
-
* @throws {RequiredError}
|
|
10964
|
-
* @memberof PassportApi
|
|
10965
|
-
*/
|
|
10966
|
-
getTransactionMetadataDeprecated(requestParameters, options) {
|
|
10967
|
-
return PassportApiFp(this.configuration).getTransactionMetadataDeprecated(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, requestParameters.transactionId, requestParameters.transactionData, options).then((request) => request(this.axios, this.basePath));
|
|
10968
|
-
}
|
|
10969
10889
|
}
|
|
10970
10890
|
|
|
10971
10891
|
/* tslint:disable */
|
|
@@ -11446,7 +11366,7 @@ class MultiRollupApiClients {
|
|
|
11446
11366
|
}
|
|
11447
11367
|
|
|
11448
11368
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
11449
|
-
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.
|
|
11369
|
+
const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
|
|
11450
11370
|
const createConfig$1 = ({ basePath, headers, }) => {
|
|
11451
11371
|
if (!basePath.trim()) {
|
|
11452
11372
|
throw Error('basePath can not be empty');
|
|
@@ -11625,7 +11545,7 @@ const flattenProperties = (properties) => {
|
|
|
11625
11545
|
};
|
|
11626
11546
|
|
|
11627
11547
|
// WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
|
|
11628
|
-
const SDK_VERSION = '1.26.
|
|
11548
|
+
const SDK_VERSION = '1.26.3';
|
|
11629
11549
|
const getReferrer = () => {
|
|
11630
11550
|
if (isNode()) {
|
|
11631
11551
|
return '';
|
|
@@ -11875,7 +11795,7 @@ const addKeysToHeadersOverride = (baseConfig, overrides) => {
|
|
|
11875
11795
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
11876
11796
|
class ApiConfiguration extends index$2.Configuration {
|
|
11877
11797
|
}
|
|
11878
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.
|
|
11798
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.26.3' };
|
|
11879
11799
|
/**
|
|
11880
11800
|
* @dev use createImmutableXConfiguration instead
|
|
11881
11801
|
*/
|
|
@@ -11914,7 +11834,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
11914
11834
|
chainID,
|
|
11915
11835
|
coreContractAddress,
|
|
11916
11836
|
registrationContractAddress,
|
|
11917
|
-
sdkVersion: 'ts-immutable-sdk-1.26.
|
|
11837
|
+
sdkVersion: 'ts-immutable-sdk-1.26.3',
|
|
11918
11838
|
baseConfig,
|
|
11919
11839
|
});
|
|
11920
11840
|
const production = ({ baseConfig }) => createImmutableXConfiguration({
|
|
@@ -21963,10 +21883,17 @@ class Passport {
|
|
|
21963
21883
|
catch (err) {
|
|
21964
21884
|
logger.warn('Failed to logout from confirmation screen', err);
|
|
21965
21885
|
}
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
21886
|
+
if (this.config.oidcConfiguration.logoutMode === 'silent') {
|
|
21887
|
+
await Promise.allSettled([
|
|
21888
|
+
this.authManager.logout(),
|
|
21889
|
+
this.magicAdapter.logout(),
|
|
21890
|
+
]);
|
|
21891
|
+
}
|
|
21892
|
+
else {
|
|
21893
|
+
// We need to ensure that the Magic wallet is logged out BEFORE redirecting
|
|
21894
|
+
await this.magicAdapter.logout();
|
|
21895
|
+
await this.authManager.logout();
|
|
21896
|
+
}
|
|
21970
21897
|
this.passportEventEmitter.emit(PassportEvents.LOGGED_OUT);
|
|
21971
21898
|
}
|
|
21972
21899
|
/**
|