@imtbl/sdk 0.33.0 → 0.34.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blockchain_data.js +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets.js +56 -56
- package/dist/checkout.d.ts +11 -18
- package/dist/checkout.js +26 -23
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +11 -11
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +116 -216
- package/dist/index.d.ts +23 -11
- package/dist/index.js +117 -217
- package/dist/orderbook.d.ts +9 -1
- package/dist/orderbook.js +3 -1
- package/dist/passport.d.ts +10 -10
- package/dist/passport.js +91 -194
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14563,7 +14563,7 @@ declare enum Networks {
|
|
|
14563
14563
|
}
|
|
14564
14564
|
interface OidcConfiguration {
|
|
14565
14565
|
clientId: string;
|
|
14566
|
-
logoutRedirectUri
|
|
14566
|
+
logoutRedirectUri?: string;
|
|
14567
14567
|
logoutMode?: 'redirect' | 'silent';
|
|
14568
14568
|
redirectUri: string;
|
|
14569
14569
|
scope?: string;
|
|
@@ -14697,14 +14697,8 @@ declare class Passport {
|
|
|
14697
14697
|
*/
|
|
14698
14698
|
connectImxSilent(): Promise<IMXProvider | null>;
|
|
14699
14699
|
connectImx(): Promise<IMXProvider>;
|
|
14700
|
-
connectImxDeviceFlow(deviceCode: string, interval: number, timeoutMs?: number): Promise<IMXProvider | null>;
|
|
14701
14700
|
getPKCEAuthorizationUrl(): string;
|
|
14702
14701
|
connectImxPKCEFlow(authorizationCode: string, state: string): Promise<IMXProvider | null>;
|
|
14703
|
-
/**
|
|
14704
|
-
* @returns {boolean} the stored device flow credentials if they exist
|
|
14705
|
-
*/
|
|
14706
|
-
checkStoredDeviceFlowCredentials(): DeviceTokenResponse | null;
|
|
14707
|
-
connectImxWithCredentials(tokenResponse: DeviceTokenResponse): Promise<IMXProvider | null>;
|
|
14708
14702
|
connectEvm(): Provider;
|
|
14709
14703
|
/**
|
|
14710
14704
|
*
|
|
@@ -14717,17 +14711,23 @@ declare class Passport {
|
|
|
14717
14711
|
login(options?: {
|
|
14718
14712
|
useCachedSession: boolean;
|
|
14719
14713
|
}): Promise<UserProfile | null>;
|
|
14720
|
-
loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
|
|
14721
14714
|
loginCallback(): Promise<void>;
|
|
14715
|
+
loginWithDeviceFlow(): Promise<DeviceConnectResponse>;
|
|
14716
|
+
loginWithDeviceFlowCallback(deviceCode: string, interval: number, timeoutMs?: number): Promise<UserProfile>;
|
|
14722
14717
|
logout(): Promise<void>;
|
|
14718
|
+
/**
|
|
14719
|
+
* Logs the user out of Passport when using device flow authentication.
|
|
14720
|
+
*
|
|
14721
|
+
* @returns {Promise<string>} The device flow end session endpoint. Consumers are responsible for
|
|
14722
|
+
* opening this URL in the same browser that was used to log the user in.
|
|
14723
|
+
*/
|
|
14724
|
+
logoutDeviceFlow(): Promise<string>;
|
|
14723
14725
|
/**
|
|
14724
14726
|
* This method should only be called from the logout redirect uri
|
|
14725
14727
|
* when logout mode is 'silent'.
|
|
14726
14728
|
*/
|
|
14727
14729
|
logoutSilentCallback(url: string): Promise<void>;
|
|
14728
|
-
logoutDeviceFlow(): Promise<void>;
|
|
14729
14730
|
getUserInfo(): Promise<UserProfile | undefined>;
|
|
14730
|
-
getUserInfoDeviceFlow(): Promise<UserProfile | undefined>;
|
|
14731
14731
|
getIdToken(): Promise<string | undefined>;
|
|
14732
14732
|
getAccessToken(): Promise<string | undefined>;
|
|
14733
14733
|
getLinkedAddresses(): Promise<string[]>;
|
|
@@ -15314,7 +15314,7 @@ declare class OrdersService {
|
|
|
15314
15314
|
* @returns ListListingsResult OK response.
|
|
15315
15315
|
* @throws ApiError
|
|
15316
15316
|
*/
|
|
15317
|
-
listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
|
|
15317
|
+
listListings({ chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, }: {
|
|
15318
15318
|
chainName: ChainName$1;
|
|
15319
15319
|
/**
|
|
15320
15320
|
* Order status to filter by
|
|
@@ -15328,6 +15328,14 @@ declare class OrdersService {
|
|
|
15328
15328
|
* Buy item contract address to filter by
|
|
15329
15329
|
*/
|
|
15330
15330
|
buyItemContractAddress?: string;
|
|
15331
|
+
/**
|
|
15332
|
+
* The account address of the user who created the listing
|
|
15333
|
+
*/
|
|
15334
|
+
accountAddress?: string;
|
|
15335
|
+
/**
|
|
15336
|
+
* The metadata_id of the sell item
|
|
15337
|
+
*/
|
|
15338
|
+
sellItemMetadataId?: string;
|
|
15331
15339
|
/**
|
|
15332
15340
|
* Sell item token identifier to filter by
|
|
15333
15341
|
*/
|
|
@@ -18282,6 +18290,8 @@ type checkout_d_ConnectWidgetConfiguration = ConnectWidgetConfiguration;
|
|
|
18282
18290
|
type checkout_d_ConnectWidgetParams = ConnectWidgetParams;
|
|
18283
18291
|
type checkout_d_ConnectionFailed = ConnectionFailed;
|
|
18284
18292
|
type checkout_d_ConnectionSuccess = ConnectionSuccess;
|
|
18293
|
+
type checkout_d_CreateProviderParams = CreateProviderParams;
|
|
18294
|
+
type checkout_d_CreateProviderResult = CreateProviderResult;
|
|
18285
18295
|
type checkout_d_DexConfig = DexConfig;
|
|
18286
18296
|
type checkout_d_ERC20ItemRequirement = ERC20ItemRequirement;
|
|
18287
18297
|
type checkout_d_ERC721Balance = ERC721Balance;
|
|
@@ -18470,6 +18480,8 @@ declare namespace checkout_d {
|
|
|
18470
18480
|
checkout_d_ConnectWidgetParams as ConnectWidgetParams,
|
|
18471
18481
|
checkout_d_ConnectionFailed as ConnectionFailed,
|
|
18472
18482
|
checkout_d_ConnectionSuccess as ConnectionSuccess,
|
|
18483
|
+
checkout_d_CreateProviderParams as CreateProviderParams,
|
|
18484
|
+
checkout_d_CreateProviderResult as CreateProviderResult,
|
|
18473
18485
|
checkout_d_DexConfig as DexConfig,
|
|
18474
18486
|
checkout_d_ERC20ItemRequirement as ERC20ItemRequirement,
|
|
18475
18487
|
checkout_d_ERC721Balance as ERC721Balance,
|