@imtbl/sdk 1.45.10-alpha.2 → 1.45.10-alpha.4

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.
@@ -2870,6 +2870,37 @@ interface MetadataApiRefreshNFTMetadataByTokenIDRequest {
2870
2870
  readonly refreshNFTMetadataByTokenIDRequest: RefreshNFTMetadataByTokenIDRequest$1;
2871
2871
  }
2872
2872
 
2873
+ /**
2874
+ * Request parameters for listAllNFTOwners operation in NftOwnersApi.
2875
+ * @export
2876
+ * @interface NftOwnersApiListAllNFTOwnersRequest
2877
+ */
2878
+ interface NftOwnersApiListAllNFTOwnersRequest {
2879
+ /**
2880
+ * The name of chain
2881
+ * @type {string}
2882
+ * @memberof NftOwnersApiListAllNFTOwners
2883
+ */
2884
+ readonly chainName: string;
2885
+ /**
2886
+ * Datetime to use as the oldest updated timestamp
2887
+ * @type {string}
2888
+ * @memberof NftOwnersApiListAllNFTOwners
2889
+ */
2890
+ readonly fromUpdatedAt?: string;
2891
+ /**
2892
+ * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2893
+ * @type {string}
2894
+ * @memberof NftOwnersApiListAllNFTOwners
2895
+ */
2896
+ readonly pageCursor?: string;
2897
+ /**
2898
+ * Maximum number of items to return
2899
+ * @type {number}
2900
+ * @memberof NftOwnersApiListAllNFTOwners
2901
+ */
2902
+ readonly pageSize?: number;
2903
+ }
2873
2904
  /**
2874
2905
  * Request parameters for listNFTOwners operation in NftOwnersApi.
2875
2906
  * @export
@@ -7881,7 +7912,7 @@ declare class BlockchainData {
7881
7912
  * @returns a promise that resolves with a list of NFT owners
7882
7913
  * @throws {@link index.APIError}
7883
7914
  */
7884
- listAllNFTOwners(request: NftOwnersApiListNFTOwnersRequest): Promise<ListNFTOwnersResult$1>;
7915
+ listAllNFTOwners(request: NftOwnersApiListAllNFTOwnersRequest): Promise<ListNFTOwnersResult$1>;
7885
7916
  /**
7886
7917
  * List ERC20 Token contracts
7887
7918
  * @param request - the request object containing the parameters to be provided in the API request
@@ -5339,7 +5339,7 @@ const flattenProperties = (properties) => {
5339
5339
  };
5340
5340
 
5341
5341
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
5342
- const SDK_VERSION = '1.45.10-alpha.2';
5342
+ const SDK_VERSION = '1.45.10-alpha.4';
5343
5343
  const getFrameParentDomain = () => {
5344
5344
  if (isNode()) {
5345
5345
  return '';
@@ -5610,7 +5610,7 @@ class APIError extends Error {
5610
5610
 
5611
5611
  /* eslint-disable implicit-arrow-linebreak */
5612
5612
  const defaultHeaders = {
5613
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.10-alpha.2',
5613
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.10-alpha.4',
5614
5614
  };
5615
5615
  /**
5616
5616
  * createAPIConfiguration to create a custom Configuration
@@ -15789,6 +15789,8 @@ type SaleWidgetConfiguration = {
15789
15789
  hideExcludedPaymentTypes?: boolean;
15790
15790
  } & WidgetConfiguration;
15791
15791
 
15792
+ type CheckoutWidgetConfiguration = {} & WidgetConfiguration;
15793
+
15792
15794
  /**
15793
15795
  * Enum representing the events emitted by the widgets.
15794
15796
  */
@@ -15799,7 +15801,8 @@ declare enum IMTBLWidgetEvents {
15799
15801
  IMTBL_SWAP_WIDGET_EVENT = "imtbl-swap-widget",
15800
15802
  IMTBL_BRIDGE_WIDGET_EVENT = "imtbl-bridge-widget",
15801
15803
  IMTBL_ONRAMP_WIDGET_EVENT = "imtbl-onramp-widget",
15802
- IMTBL_SALE_WIDGET_EVENT = "imtbl-sale-widget"
15804
+ IMTBL_SALE_WIDGET_EVENT = "imtbl-sale-widget",
15805
+ IMTBL_CHECKOUT_WIDGET_EVENT = "imtbl-checkout-widget"
15803
15806
  }
15804
15807
  /**
15805
15808
  * Enum for events raised for about provider objects
@@ -16185,6 +16188,9 @@ type OnRampFailed = {
16185
16188
  timestamp: number;
16186
16189
  };
16187
16190
 
16191
+ declare enum CheckoutEventType {
16192
+ }
16193
+
16188
16194
  declare enum ConnectTargetLayer {
16189
16195
  LAYER1 = "LAYER1",
16190
16196
  LAYER2 = "LAYER2"
@@ -16311,6 +16317,11 @@ type SaleItem = {
16311
16317
  description: string;
16312
16318
  };
16313
16319
 
16320
+ type CheckoutWidgetParams = {
16321
+ /** The language to use for the checkout widget */
16322
+ language?: WidgetLanguage;
16323
+ };
16324
+
16314
16325
  /**
16315
16326
  * Enum representing the list of widget types.
16316
16327
  */
@@ -16320,7 +16331,8 @@ declare enum WidgetType {
16320
16331
  SWAP = "swap",
16321
16332
  BRIDGE = "bridge",
16322
16333
  ONRAMP = "onramp",
16323
- SALE = "sale"
16334
+ SALE = "sale",
16335
+ CHECKOUT = "checkout"
16324
16336
  }
16325
16337
  /**
16326
16338
  * Widget properties definition for each widget. Used for creating and updating widgets
@@ -16336,6 +16348,7 @@ type WidgetConfigurations = {
16336
16348
  [WidgetType.BRIDGE]: BridgeWidgetConfiguration;
16337
16349
  [WidgetType.ONRAMP]: OnrampWidgetConfiguration;
16338
16350
  [WidgetType.SALE]: SaleWidgetConfiguration;
16351
+ [WidgetType.CHECKOUT]: CheckoutWidgetConfiguration;
16339
16352
  };
16340
16353
  type WidgetParameters = {
16341
16354
  [WidgetType.CONNECT]: ConnectWidgetParams;
@@ -16344,6 +16357,7 @@ type WidgetParameters = {
16344
16357
  [WidgetType.BRIDGE]: BridgeWidgetParams;
16345
16358
  [WidgetType.ONRAMP]: OnRampWidgetParams;
16346
16359
  [WidgetType.SALE]: SaleWidgetParams;
16360
+ [WidgetType.CHECKOUT]: CheckoutWidgetParams;
16347
16361
  };
16348
16362
  /**
16349
16363
  * Represents all the possible event types that are emitted by the widgets.
@@ -16355,6 +16369,7 @@ type WidgetEventTypes = {
16355
16369
  [WidgetType.BRIDGE]: BridgeEventType | OrchestrationEventType;
16356
16370
  [WidgetType.ONRAMP]: OnRampEventType | OrchestrationEventType;
16357
16371
  [WidgetType.SALE]: SaleEventType | OrchestrationEventType;
16372
+ [WidgetType.CHECKOUT]: CheckoutEventType | OrchestrationEventType;
16358
16373
  };
16359
16374
  type OrchestrationMapping = {
16360
16375
  [OrchestrationEventType.REQUEST_CONNECT]: RequestConnectEvent;
@@ -16413,6 +16428,7 @@ type WidgetEventData = {
16413
16428
  [SaleEventType.REQUEST_SWAP]: {};
16414
16429
  [SaleEventType.REQUEST_ONRAMP]: {};
16415
16430
  } & OrchestrationMapping & ProviderEventMapping;
16431
+ [WidgetType.CHECKOUT]: {} & OrchestrationMapping & ProviderEventMapping;
16416
16432
  };
16417
16433
  /**
16418
16434
  * Represents an event emitted by a widget. The event type should match the event data
@@ -16887,4 +16903,4 @@ declare class BlockExplorerService {
16887
16903
  static getTransactionLink(chainId: ChainId, hash: string): string | undefined;
16888
16904
  }
16889
16905
 
16890
- export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BlockExplorerService, BridgeClaimWithdrawalFailed, BridgeClaimWithdrawalSuccess, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeTransactionSent, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyOverrides, BuyParams, BuyResult, BuyResultFailed, BuyResultFulfillmentsUnsettled, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CancelOverrides, CancelParams, CancelResult, CancelResultFailed, CancelResultFulfillmentsUnsettled, CancelResultGasless, CancelResultSuccess, ChainId, ChainName, ChainSlug, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutErrorType, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutStatus, CheckoutSwapConfiguration, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, CreateProviderParams, CreateProviderResult, DexConfig, EIP1193Provider, EIP6963ProviderDetail, EIP6963ProviderInfo, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, FailedGaslessCancellation, Fee, FeePercentage, FeeToken, FeeType, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetTokenInfoParams, GetWalletAllowListParams, GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, LanguageChanged, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, PendingGaslessCancellation, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SalePaymentMethod, SalePaymentToken, SalePaymentTypes, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SuccessfulGaslessCancellation, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletConnectConfig, WalletConnectManager, WalletConnectProviderChanged, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetLanguage, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, validateProvider };
16906
+ export { AllowedNetworkConfig, AvailableRoutingOptions, BalanceDelta, BlockExplorerService, BridgeClaimWithdrawalFailed, BridgeClaimWithdrawalSuccess, BridgeEventType, BridgeFailed, BridgeFundingStep, BridgeTransactionSent, BridgeWidgetConfiguration, BridgeWidgetParams, BuyOrder, BuyOverrides, BuyParams, BuyResult, BuyResultFailed, BuyResultFulfillmentsUnsettled, BuyResultInsufficientFunds, BuyResultSuccess, BuyToken, CancelOverrides, CancelParams, CancelResult, CancelResultFailed, CancelResultFulfillmentsUnsettled, CancelResultGasless, CancelResultSuccess, ChainId, ChainName, ChainSlug, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutBridgeConfiguration, CheckoutConfiguration, CheckoutErrorType, CheckoutEventType, CheckoutModuleConfiguration, CheckoutOnRampConfiguration, CheckoutStatus, CheckoutSwapConfiguration, CheckoutWidgetConfiguration, CheckoutWidgetParams, CheckoutWidgetsConfig, ConnectEventType, ConnectParams, ConnectResult, ConnectTargetLayer, ConnectWidgetConfiguration, ConnectWidgetParams, ConnectionFailed, ConnectionSuccess, CreateProviderParams, CreateProviderResult, DexConfig, EIP1193Provider, EIP6963ProviderDetail, EIP6963ProviderInfo, ERC20ItemRequirement, ERC721Balance, ERC721ItemRequirement, ErrorType, ExchangeType, FailedGaslessCancellation, Fee, FeePercentage, FeeToken, FeeType, FiatRampParams, FulfillmentTransaction, FundingItem, FundingRoute, FundingStep, FundingStepType, GasAmount, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasToken, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetTokenInfoParams, GetWalletAllowListParams, GetWalletAllowListResult, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, IWidgetsFactory, ItemBalance, ItemType, LanguageChanged, NativeItemRequirement, NetworkFilter, NetworkFilterTypes, NetworkInfo, NoRouteOptions, NoRoutesFound, OnRampEventType, OnRampFailed, OnRampFundingStep, OnRampProviderFees, OnRampSuccess, OnRampWidgetParams, OnrampWidgetConfiguration, OrchestrationEvent, OrchestrationEventData, OrchestrationEventType, OrderFee, PendingGaslessCancellation, ProviderEvent, ProviderEventType, ProviderUpdated, RemoteConfiguration, RequestBridgeEvent, RequestConnectEvent, RequestOnrampEvent, RequestSwapEvent, RequestWalletEvent, RoutesFound, RoutingOutcome, RoutingOutcomeType, SaleEventType, SaleFailed, SaleItem, SalePaymentMethod, SalePaymentToken, SalePaymentTypes, SaleSuccess, SaleTransactionSuccess, SaleWidgetConfiguration, SaleWidgetParams, SellOrder, SellParams, SellResult, SellResultFailed, SellResultInsufficientFunds, SellResultSuccess, SellToken, SemanticVersion, SendTransactionParams, SendTransactionResult, SmartCheckoutInsufficient, SmartCheckoutParams, SmartCheckoutResult, SmartCheckoutRouter, SmartCheckoutSufficient, SuccessfulGaslessCancellation, SwapEventType, SwapFailed, SwapFundingStep, SwapRejected, SwapSuccess, SwapWidgetConfiguration, SwapWidgetParams, SwitchNetworkParams, SwitchNetworkResult, TokenAmountEstimate, TokenBalance, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, TransactionRequirement, WalletConnectConfig, WalletConnectManager, WalletConnectProviderChanged, WalletDisconnect, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitch, WalletProviderName, WalletProviderRdns, WalletWidgetConfiguration, WalletWidgetParams, Widget, WidgetConfiguration, WidgetConfigurations, WidgetEvent, WidgetEventData, WidgetEventTypes, WidgetLanguage, WidgetParameters, WidgetProperties, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, validateProvider };
package/dist/checkout.js CHANGED
@@ -157,7 +157,7 @@ const flattenProperties$1 = (properties) => {
157
157
  };
158
158
 
159
159
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
160
- const SDK_VERSION$1 = '1.45.10-alpha.2';
160
+ const SDK_VERSION$1 = '1.45.10-alpha.4';
161
161
  const getFrameParentDomain$1 = () => {
162
162
  if (isNode$1()) {
163
163
  return '';
@@ -19586,7 +19586,7 @@ const flattenProperties = (properties) => {
19586
19586
  };
19587
19587
 
19588
19588
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
19589
- const SDK_VERSION = '1.45.10-alpha.2';
19589
+ const SDK_VERSION = '1.45.10-alpha.4';
19590
19590
  const getFrameParentDomain = () => {
19591
19591
  if (isNode()) {
19592
19592
  return '';
@@ -31126,7 +31126,7 @@ class APIError extends Error {
31126
31126
 
31127
31127
  /* eslint-disable implicit-arrow-linebreak */
31128
31128
  const defaultHeaders = {
31129
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.10-alpha.2',
31129
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-1.45.10-alpha.4',
31130
31130
  };
31131
31131
  /**
31132
31132
  * createAPIConfiguration to create a custom Configuration
@@ -31602,6 +31602,7 @@ var IMTBLWidgetEvents;
31602
31602
  IMTBLWidgetEvents["IMTBL_BRIDGE_WIDGET_EVENT"] = "imtbl-bridge-widget";
31603
31603
  IMTBLWidgetEvents["IMTBL_ONRAMP_WIDGET_EVENT"] = "imtbl-onramp-widget";
31604
31604
  IMTBLWidgetEvents["IMTBL_SALE_WIDGET_EVENT"] = "imtbl-sale-widget";
31605
+ IMTBLWidgetEvents["IMTBL_CHECKOUT_WIDGET_EVENT"] = "imtbl-checkout-widget";
31605
31606
  })(IMTBLWidgetEvents || (IMTBLWidgetEvents = {}));
31606
31607
  /**
31607
31608
  * Enum for events raised for about provider objects
@@ -31709,6 +31710,10 @@ var OnRampEventType;
31709
31710
  OnRampEventType["LANGUAGE_CHANGED"] = "language-changed";
31710
31711
  })(OnRampEventType || (OnRampEventType = {}));
31711
31712
 
31713
+ var CheckoutEventType;
31714
+ (function (CheckoutEventType) {
31715
+ })(CheckoutEventType || (CheckoutEventType = {}));
31716
+
31712
31717
  /**
31713
31718
  * Enum representing the list of widget types.
31714
31719
  */
@@ -31720,6 +31725,7 @@ var WidgetType;
31720
31725
  WidgetType["BRIDGE"] = "bridge";
31721
31726
  WidgetType["ONRAMP"] = "onramp";
31722
31727
  WidgetType["SALE"] = "sale";
31728
+ WidgetType["CHECKOUT"] = "checkout";
31723
31729
  })(WidgetType || (WidgetType = {}));
31724
31730
 
31725
31731
  var ConnectTargetLayer;
@@ -32658,7 +32664,7 @@ const IMMUTABLE_ZKVEM_GAS_OVERRIDES = {
32658
32664
  maxPriorityFeePerGas: BigNumber$1.from(10e9),
32659
32665
  };
32660
32666
 
32661
- const SDK_VERSION_MARKER = '1.45.10-alpha.2';
32667
+ const SDK_VERSION_MARKER = '1.45.10-alpha.4';
32662
32668
  // This SDK version is replaced by the `yarn build` command ran on the root level
32663
32669
  const globalPackageVersion = () => SDK_VERSION_MARKER;
32664
32670
 
@@ -37212,4 +37218,4 @@ class BlockExplorerService {
37212
37218
  }
37213
37219
  }
37214
37220
 
37215
- export { BlockExplorerService, BridgeEventType, ChainId, ChainName, ChainSlug, Checkout, CheckoutConfiguration, CheckoutErrorType, CheckoutStatus, ConnectEventType, ConnectTargetLayer, ExchangeType, FeeType, FundingStepType, GasEstimateType, GasTokenType, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, ItemType, NetworkFilterTypes, OnRampEventType, OrchestrationEventType, ProviderEventType, RoutingOutcomeType, SaleEventType, SalePaymentTypes, SwapEventType, TokenFilterTypes, TransactionOrGasType, WalletEventType, WalletFilterTypes, WalletProviderName, WalletProviderRdns, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, validateProvider };
37221
+ export { BlockExplorerService, BridgeEventType, ChainId, ChainName, ChainSlug, Checkout, CheckoutConfiguration, CheckoutErrorType, CheckoutEventType, CheckoutStatus, ConnectEventType, ConnectTargetLayer, ExchangeType, FeeType, FundingStepType, GasEstimateType, GasTokenType, IMMUTABLE_API_BASE_URL, IMTBLWidgetEvents, ItemType, NetworkFilterTypes, OnRampEventType, OrchestrationEventType, ProviderEventType, RoutingOutcomeType, SaleEventType, SalePaymentTypes, SwapEventType, TokenFilterTypes, TransactionOrGasType, WalletEventType, WalletFilterTypes, WalletProviderName, WalletProviderRdns, WidgetTheme, WidgetType, getMetaMaskProviderDetail, getPassportProviderDetail, validateProvider };
package/dist/config.js CHANGED
@@ -144,7 +144,7 @@ const flattenProperties = (properties) => {
144
144
  };
145
145
 
146
146
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
147
- const SDK_VERSION = '1.45.10-alpha.2';
147
+ const SDK_VERSION = '1.45.10-alpha.4';
148
148
  const getFrameParentDomain = () => {
149
149
  if (isNode()) {
150
150
  return '';