@imtbl/sdk 1.46.0 → 1.46.1-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -12760,9 +12760,10 @@ interface ActivityNFT$1 {
12760
12760
  */
12761
12761
  'token_id': string;
12762
12762
  /**
12763
- * The amount of tokens exchanged
12763
+ * (deprecated - will never be filled, use amount on Activity instead) The amount of tokens exchanged
12764
12764
  * @type {string}
12765
12765
  * @memberof ActivityNFT
12766
+ * @deprecated
12766
12767
  */
12767
12768
  'amount': string;
12768
12769
  }
@@ -13712,7 +13713,7 @@ interface NFTMetadataAttribute$1 {
13712
13713
  */
13713
13714
 
13714
13715
  /**
13715
- * The NFT metadata
13716
+ * The NFT metadata. Total size of this object should not exceed 16 KiB
13716
13717
  * @export
13717
13718
  * @interface NFTMetadataRequest
13718
13719
  */
@@ -14368,6 +14369,18 @@ interface Token$1 {
14368
14369
  * @memberof Token
14369
14370
  */
14370
14371
  'root_contract_address': string | null;
14372
+ /**
14373
+ * The id of the root chain for a bridged token
14374
+ * @type {string}
14375
+ * @memberof Token
14376
+ */
14377
+ 'root_chain_id'?: string | null;
14378
+ /**
14379
+ * The name of the bridge, for bridged tokens only
14380
+ * @type {string}
14381
+ * @memberof Token
14382
+ */
14383
+ 'bridge_used'?: string | null;
14371
14384
  /**
14372
14385
  * The symbol of token
14373
14386
  * @type {string}
@@ -14963,7 +14976,7 @@ type RefreshMetadataByID$1 = RefreshMetadataByIDAllOf$1 & RefreshableNFTAttribut
14963
14976
  */
14964
14977
 
14965
14978
  /**
14966
- * Request body for refreshing metadata by id
14979
+ * Request body for refreshing metadata by id. Total size of this list should not exceed 228 KiB
14967
14980
  * @export
14968
14981
  * @interface RefreshMetadataByIDRequest
14969
14982
  */
@@ -15038,7 +15051,7 @@ type RefreshMetadataByTokenID$1 = RefreshMetadataByTokenIDAllOf$1 & RefreshableN
15038
15051
  */
15039
15052
  interface RefreshNFTMetadataByTokenIDRequest$1 {
15040
15053
  /**
15041
- * List of nft metadata to be refreshed
15054
+ * List of nft metadata to be refreshed. Total size of the list should not exceed 228 KiB
15042
15055
  * @type {Array<RefreshMetadataByTokenID>}
15043
15056
  * @memberof RefreshNFTMetadataByTokenIDRequest
15044
15057
  */
@@ -15774,6 +15787,12 @@ interface NftsApiListNFTsByAccountAddressRequest {
15774
15787
  * @memberof NftsApiListNFTsByAccountAddress
15775
15788
  */
15776
15789
  readonly contractAddress?: string;
15790
+ /**
15791
+ * List of token IDs to filter by
15792
+ * @type {Array<string>}
15793
+ * @memberof NftsApiListNFTsByAccountAddress
15794
+ */
15795
+ readonly tokenId?: Array<string>;
15777
15796
  /**
15778
15797
  * Datetime to use as the oldest updated timestamp
15779
15798
  * @type {string}
@@ -20587,7 +20606,12 @@ declare enum PassportErrorType {
20587
20606
  CANCEL_ORDER_ERROR = "CANCEL_ORDER_ERROR",
20588
20607
  EXCHANGE_TRANSFER_ERROR = "EXCHANGE_TRANSFER_ERROR",
20589
20608
  CREATE_TRADE_ERROR = "CREATE_TRADE_ERROR",
20590
- OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR"
20609
+ OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR",
20610
+ LINK_WALLET_ALREADY_LINKED_ERROR = "LINK_WALLET_ALREADY_LINKED_ERROR",
20611
+ LINK_WALLET_MAX_WALLETS_LINKED_ERROR = "LINK_WALLET_MAX_WALLETS_LINKED_ERROR",
20612
+ LINK_WALLET_VALIDATION_ERROR = "LINK_WALLET_VALIDATION_ERROR",
20613
+ LINK_WALLET_DUPLICATE_NONCE_ERROR = "LINK_WALLET_DUPLICATE_NONCE_ERROR",
20614
+ LINK_WALLET_GENERIC_ERROR = "LINK_WALLET_GENERIC_ERROR"
20591
20615
  }
20592
20616
  declare class PassportError extends Error {
20593
20617
  type: PassportErrorType;
@@ -27063,6 +27087,20 @@ type DeviceTokenResponse = {
27063
27087
  token_type: string;
27064
27088
  expires_in: number;
27065
27089
  };
27090
+ type LinkWalletParams = {
27091
+ type: string;
27092
+ walletAddress: string;
27093
+ signature: string;
27094
+ nonce: string;
27095
+ };
27096
+ type LinkedWallet = {
27097
+ address: string;
27098
+ type: string;
27099
+ created_at: string;
27100
+ updated_at: string;
27101
+ name?: string;
27102
+ clientName: string;
27103
+ };
27066
27104
 
27067
27105
  /**
27068
27106
  * ProviderErrors should take priority over RpcErrorCodes
@@ -27198,6 +27236,7 @@ declare class Passport {
27198
27236
  getIdToken(): Promise<string | undefined>;
27199
27237
  getAccessToken(): Promise<string | undefined>;
27200
27238
  getLinkedAddresses(): Promise<string[]>;
27239
+ linkExternalWallet(params: LinkWalletParams): Promise<LinkedWallet>;
27201
27240
  }
27202
27241
 
27203
27242
  type passport_d_AccountsChangedEvent = AccountsChangedEvent;
@@ -27208,6 +27247,8 @@ declare const passport_d_JsonRpcError: typeof JsonRpcError;
27208
27247
  type passport_d_JsonRpcRequestCallback = JsonRpcRequestCallback;
27209
27248
  type passport_d_JsonRpcRequestPayload = JsonRpcRequestPayload;
27210
27249
  type passport_d_JsonRpcResponsePayload = JsonRpcResponsePayload;
27250
+ type passport_d_LinkWalletParams = LinkWalletParams;
27251
+ type passport_d_LinkedWallet = LinkedWallet;
27211
27252
  type passport_d_Passport = Passport;
27212
27253
  declare const passport_d_Passport: typeof Passport;
27213
27254
  type passport_d_PassportError = PassportError;
@@ -27231,6 +27272,8 @@ declare namespace passport_d {
27231
27272
  passport_d_JsonRpcRequestCallback as JsonRpcRequestCallback,
27232
27273
  passport_d_JsonRpcRequestPayload as JsonRpcRequestPayload,
27233
27274
  passport_d_JsonRpcResponsePayload as JsonRpcResponsePayload,
27275
+ passport_d_LinkWalletParams as LinkWalletParams,
27276
+ passport_d_LinkedWallet as LinkedWallet,
27234
27277
  passport_d_Passport as Passport,
27235
27278
  passport_d_PassportError as PassportError,
27236
27279
  passport_d_PassportModuleConfiguration as PassportModuleConfiguration,
@@ -30222,6 +30265,7 @@ declare class CheckoutConfiguration {
30222
30265
  readonly remote: RemoteConfigFetcher;
30223
30266
  readonly environment: Environment;
30224
30267
  readonly networkMap: NetworkMap;
30268
+ readonly publishableKey: string;
30225
30269
  constructor(config: CheckoutModuleConfiguration, httpClient: HttpClient);
30226
30270
  }
30227
30271
 
@@ -30329,7 +30373,14 @@ type SaleWidgetConfiguration = {
30329
30373
  hideExcludedPaymentTypes?: boolean;
30330
30374
  } & WidgetConfiguration;
30331
30375
 
30332
- type CheckoutWidgetConfiguration = {} & WidgetConfiguration;
30376
+ type CheckoutWidgetConfiguration = {
30377
+ connect?: Omit<ConnectWidgetConfiguration, 'WidgetConfiguration'>;
30378
+ wallet?: Omit<WalletWidgetConfiguration, 'WidgetConfiguration'>;
30379
+ swap?: Omit<SwapWidgetConfiguration, 'WidgetConfiguration'>;
30380
+ bridge?: Omit<BridgeWidgetConfiguration, 'WidgetConfiguration'>;
30381
+ onRamp?: Omit<OnrampWidgetConfiguration, 'WidgetConfiguration'>;
30382
+ sale?: Omit<SaleWidgetConfiguration, 'WidgetConfiguration'>;
30383
+ } & WidgetConfiguration;
30333
30384
 
30334
30385
  /**
30335
30386
  * Enum representing the events emitted by the widgets.
@@ -30857,10 +30908,37 @@ type SaleItem = {
30857
30908
  description: string;
30858
30909
  };
30859
30910
 
30911
+ declare enum CheckoutFlowType {
30912
+ CONNECT = "connect",
30913
+ WALLET = "wallet",
30914
+ SWAP = "swap",
30915
+ BRIDGE = "bridge",
30916
+ ONRAMP = "on-ramp",
30917
+ SALE = "sale"
30918
+ }
30919
+ type CheckoutWidgetConnectFlowParams = {
30920
+ flow: CheckoutFlowType.CONNECT;
30921
+ } & ConnectWidgetParams;
30922
+ type CheckoutWidgetWalletFlowParams = {
30923
+ flow: CheckoutFlowType.WALLET;
30924
+ } & WalletWidgetParams;
30925
+ type CheckouWidgetSwapFlowParams = {
30926
+ flow: CheckoutFlowType.SWAP;
30927
+ } & SwapWidgetParams;
30928
+ type CheckouWidgetBridgeFlowParams = {
30929
+ flow: CheckoutFlowType.BRIDGE;
30930
+ } & BridgeWidgetParams;
30931
+ type CheckouWidgetOnRampFlowParams = {
30932
+ flow: CheckoutFlowType.ONRAMP;
30933
+ } & OnRampWidgetParams;
30934
+ type CheckouWidgetSaleFlowParams = {
30935
+ flow: CheckoutFlowType.SALE;
30936
+ } & SaleWidgetParams;
30937
+ type CheckoutWidgetFlowParams = CheckoutWidgetConnectFlowParams | CheckoutWidgetWalletFlowParams | CheckouWidgetSwapFlowParams | CheckouWidgetBridgeFlowParams | CheckouWidgetOnRampFlowParams | CheckouWidgetSaleFlowParams;
30860
30938
  type CheckoutWidgetParams = {
30861
30939
  /** The language to use for the checkout widget */
30862
30940
  language?: WidgetLanguage;
30863
- };
30941
+ } & CheckoutWidgetFlowParams;
30864
30942
 
30865
30943
  /**
30866
30944
  * Enum representing the list of widget types.
@@ -31481,6 +31559,10 @@ type checkout_d_ChainSlug = ChainSlug;
31481
31559
  declare const checkout_d_ChainSlug: typeof ChainSlug;
31482
31560
  type checkout_d_CheckConnectionParams = CheckConnectionParams;
31483
31561
  type checkout_d_CheckConnectionResult = CheckConnectionResult;
31562
+ type checkout_d_CheckouWidgetBridgeFlowParams = CheckouWidgetBridgeFlowParams;
31563
+ type checkout_d_CheckouWidgetOnRampFlowParams = CheckouWidgetOnRampFlowParams;
31564
+ type checkout_d_CheckouWidgetSaleFlowParams = CheckouWidgetSaleFlowParams;
31565
+ type checkout_d_CheckouWidgetSwapFlowParams = CheckouWidgetSwapFlowParams;
31484
31566
  type checkout_d_Checkout = Checkout;
31485
31567
  declare const checkout_d_Checkout: typeof Checkout;
31486
31568
  type checkout_d_CheckoutBridgeConfiguration = CheckoutBridgeConfiguration;
@@ -31490,13 +31572,18 @@ type checkout_d_CheckoutErrorType = CheckoutErrorType;
31490
31572
  declare const checkout_d_CheckoutErrorType: typeof CheckoutErrorType;
31491
31573
  type checkout_d_CheckoutEventType = CheckoutEventType;
31492
31574
  declare const checkout_d_CheckoutEventType: typeof CheckoutEventType;
31575
+ type checkout_d_CheckoutFlowType = CheckoutFlowType;
31576
+ declare const checkout_d_CheckoutFlowType: typeof CheckoutFlowType;
31493
31577
  type checkout_d_CheckoutModuleConfiguration = CheckoutModuleConfiguration;
31494
31578
  type checkout_d_CheckoutOnRampConfiguration = CheckoutOnRampConfiguration;
31495
31579
  type checkout_d_CheckoutStatus = CheckoutStatus;
31496
31580
  declare const checkout_d_CheckoutStatus: typeof CheckoutStatus;
31497
31581
  type checkout_d_CheckoutSwapConfiguration = CheckoutSwapConfiguration;
31498
31582
  type checkout_d_CheckoutWidgetConfiguration = CheckoutWidgetConfiguration;
31583
+ type checkout_d_CheckoutWidgetConnectFlowParams = CheckoutWidgetConnectFlowParams;
31584
+ type checkout_d_CheckoutWidgetFlowParams = CheckoutWidgetFlowParams;
31499
31585
  type checkout_d_CheckoutWidgetParams = CheckoutWidgetParams;
31586
+ type checkout_d_CheckoutWidgetWalletFlowParams = CheckoutWidgetWalletFlowParams;
31500
31587
  type checkout_d_CheckoutWidgetsConfig = CheckoutWidgetsConfig;
31501
31588
  type checkout_d_ConnectEventType = ConnectEventType;
31502
31589
  declare const checkout_d_ConnectEventType: typeof ConnectEventType;
@@ -31713,17 +31800,25 @@ declare namespace checkout_d {
31713
31800
  checkout_d_ChainSlug as ChainSlug,
31714
31801
  checkout_d_CheckConnectionParams as CheckConnectionParams,
31715
31802
  checkout_d_CheckConnectionResult as CheckConnectionResult,
31803
+ checkout_d_CheckouWidgetBridgeFlowParams as CheckouWidgetBridgeFlowParams,
31804
+ checkout_d_CheckouWidgetOnRampFlowParams as CheckouWidgetOnRampFlowParams,
31805
+ checkout_d_CheckouWidgetSaleFlowParams as CheckouWidgetSaleFlowParams,
31806
+ checkout_d_CheckouWidgetSwapFlowParams as CheckouWidgetSwapFlowParams,
31716
31807
  checkout_d_Checkout as Checkout,
31717
31808
  checkout_d_CheckoutBridgeConfiguration as CheckoutBridgeConfiguration,
31718
31809
  checkout_d_CheckoutConfiguration as CheckoutConfiguration,
31719
31810
  checkout_d_CheckoutErrorType as CheckoutErrorType,
31720
31811
  checkout_d_CheckoutEventType as CheckoutEventType,
31812
+ checkout_d_CheckoutFlowType as CheckoutFlowType,
31721
31813
  checkout_d_CheckoutModuleConfiguration as CheckoutModuleConfiguration,
31722
31814
  checkout_d_CheckoutOnRampConfiguration as CheckoutOnRampConfiguration,
31723
31815
  checkout_d_CheckoutStatus as CheckoutStatus,
31724
31816
  checkout_d_CheckoutSwapConfiguration as CheckoutSwapConfiguration,
31725
31817
  checkout_d_CheckoutWidgetConfiguration as CheckoutWidgetConfiguration,
31818
+ checkout_d_CheckoutWidgetConnectFlowParams as CheckoutWidgetConnectFlowParams,
31819
+ checkout_d_CheckoutWidgetFlowParams as CheckoutWidgetFlowParams,
31726
31820
  checkout_d_CheckoutWidgetParams as CheckoutWidgetParams,
31821
+ checkout_d_CheckoutWidgetWalletFlowParams as CheckoutWidgetWalletFlowParams,
31727
31822
  checkout_d_CheckoutWidgetsConfig as CheckoutWidgetsConfig,
31728
31823
  checkout_d_ConnectEventType as ConnectEventType,
31729
31824
  checkout_d_ConnectParams as ConnectParams,