wallaby-cash 2.3.9 → 3.0.1-alpha.2

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.
@@ -124,18 +124,8 @@ export type AddNewDeviceData = AddNewDeviceResponseDto;
124
124
  export interface AddNewDeviceRequestDto {
125
125
  /** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
126
126
  clientAuthPubKey: string;
127
- /**
128
- * Message retrieved from the backend
129
- * @example "717ea458b62a430cb37ced7c22ebec97"
130
- */
131
- message: string;
132
127
  /** Backup share encrypted by the Wallaby pub key */
133
- share: KeyShareDto;
134
- /**
135
- * Signature generated after signing the provided data field
136
- * @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
137
- */
138
- signature: string;
128
+ encryptedBackupShare: SymmetricEncrypted | AsymmetricEncryptedDto;
139
129
  /**
140
130
  * The ID of the wallet to add a new device to
141
131
  * @format uuid
@@ -1062,6 +1052,15 @@ export interface BalanceQueryDto {
1062
1052
  * @example "ERC_20"
1063
1053
  */
1064
1054
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1055
+ /**
1056
+ * Wallet ID
1057
+ * @format uuid
1058
+ * @minLength 36
1059
+ * @maxLength 36
1060
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1061
+ * @example "123e4567-e89b-12d3-a456-426614174000"
1062
+ */
1063
+ walletId?: string;
1065
1064
  }
1066
1065
  export interface BalanceResponseDto {
1067
1066
  /**
@@ -1138,6 +1137,15 @@ export interface BalanceResponseDto {
1138
1137
  * @example "20"
1139
1138
  */
1140
1139
  unlockedTokenBalance?: string;
1140
+ /**
1141
+ * Wallet ID
1142
+ * @format uuid
1143
+ * @minLength 36
1144
+ * @maxLength 36
1145
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1146
+ * @example "123e4567-e89b-12d3-a456-426614174000"
1147
+ */
1148
+ walletId?: string;
1141
1149
  }
1142
1150
  export interface BulkBalanceQueryDto {
1143
1151
  /**
@@ -1891,6 +1899,15 @@ export interface FetchBalanceParams {
1891
1899
  * @example "ERC_20"
1892
1900
  */
1893
1901
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1902
+ /**
1903
+ * Wallet ID
1904
+ * @format uuid
1905
+ * @minLength 36
1906
+ * @maxLength 36
1907
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1908
+ * @example "123e4567-e89b-12d3-a456-426614174000"
1909
+ */
1910
+ walletId?: string;
1894
1911
  }
1895
1912
  export type FetchBulkBalanceData = BulkBalanceResponseDto;
1896
1913
  export type FetchEvmTokenAssetInfoData = AssetTokenInfoResponseDto;
@@ -1964,6 +1981,15 @@ export interface FetchOnlyBalanceParams {
1964
1981
  * @example "ERC_20"
1965
1982
  */
1966
1983
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1984
+ /**
1985
+ * Wallet ID
1986
+ * @format uuid
1987
+ * @minLength 36
1988
+ * @maxLength 36
1989
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1990
+ * @example "123e4567-e89b-12d3-a456-426614174000"
1991
+ */
1992
+ walletId?: string;
1967
1993
  }
1968
1994
  export type FetchTransactionByHashOrReferenceData = TransactionStatusDataResponseDto;
1969
1995
  export interface FetchTransactionByHashOrReferenceParams {
@@ -2055,11 +2081,6 @@ export interface GenerateMissingAddressRequestDto {
2055
2081
  walletId: string;
2056
2082
  }
2057
2083
  export interface GenerateMissingAddressResponseDto {
2058
- /**
2059
- * Wallet address information for the chains supported by the wallet. Use `walletAddressesInfo` instead.
2060
- * @deprecated
2061
- */
2062
- walletAddressInfo: WalletAddressInfo;
2063
2084
  /**
2064
2085
  * Array of encrypted shares which will be utilized to reconstruct the seed to generate the missing addresses
2065
2086
  * @maxItems 100
@@ -2988,11 +3009,6 @@ export interface GetUserAssetResponseDto {
2988
3009
  groupedAssets: object[];
2989
3010
  /** Pagination data */
2990
3011
  pagination: PaginationDto;
2991
- /**
2992
- * Wallet address information for the chains supported by the wallet. Use `walletAddressesInfo` instead.
2993
- * @deprecated
2994
- */
2995
- walletAddressInfo: WalletAddressInfo;
2996
3012
  /** Typed list of wallet addresses. */
2997
3013
  walletAddressesInfo: WalletAddressesInfoEntry[];
2998
3014
  }
@@ -4010,23 +4026,6 @@ export interface ResolvePendingTransactionResponseDto {
4010
4026
  */
4011
4027
  status: "confirmed" | "denied";
4012
4028
  }
4013
- export type RetrieveSharesData = WalletSharesRetrievedDto;
4014
- export interface RetrieveWalletShareRequestDto {
4015
- /** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
4016
- clientAuthPubKey: string;
4017
- /**
4018
- * Message retrieved from the backend
4019
- * @example "717ea458b62a430cb37ced7c22ebec97"
4020
- */
4021
- message: string;
4022
- /**
4023
- * Signature generated after signing the provided data field
4024
- * @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
4025
- */
4026
- signature: string;
4027
- /** The wallet ID to retrieve shares from */
4028
- walletId: string;
4029
- }
4030
4029
  export type RevokeMerchantAdminsData = GetMerchantUsersResponseDto;
4031
4030
  export interface RevokeMerchantAdminsParams {
4032
4031
  /**
@@ -5913,19 +5912,13 @@ export interface WallabyAuthPubKeyResponseDto {
5913
5912
  wallabyAuthPubKey: string;
5914
5913
  }
5915
5914
  export interface Wallet {
5916
- /** The default Algo address */
5917
- algoAddress: string;
5918
5915
  /** Total number of assets in the wallet */
5919
5916
  assetsCount: number;
5920
- /** The default BTC address */
5921
- btcAddress: string;
5922
5917
  /**
5923
5918
  * How the wallet was created
5924
5919
  * @example "user_created"
5925
5920
  */
5926
5921
  creationType?: "user_imported" | "user_created" | null;
5927
- /** The default EVM address */
5928
- evmAddress: string;
5929
5922
  /** Wallet ID */
5930
5923
  id: string;
5931
5924
  keyShares: KeyShare;
@@ -5957,17 +5950,6 @@ export interface WalletAddress {
5957
5950
  /** Wallet ID */
5958
5951
  walletId: string;
5959
5952
  }
5960
- export interface WalletAddressInfo {
5961
- algoAddress: string;
5962
- aptAddress: string;
5963
- btcAddress: string;
5964
- ccAddress: string;
5965
- evmAddress: string;
5966
- injAddress: string;
5967
- polyxAddress: string;
5968
- solAddress: string;
5969
- suiAddress: string;
5970
- }
5971
5953
  export interface WalletAddressType {
5972
5954
  /** Address Type ID */
5973
5955
  id: number;
@@ -6053,6 +6035,8 @@ export interface WalletCreatedDto {
6053
6035
  wallabyAuthPubKey: string;
6054
6036
  /** Wallet Info */
6055
6037
  wallet: WalletDto;
6038
+ /** Typed list of wallet addresses. */
6039
+ walletAddressesInfo: WalletAddressesInfoEntry[];
6056
6040
  }
6057
6041
  export interface WalletDto {
6058
6042
  /**
@@ -7308,24 +7292,6 @@ export declare namespace Wallets {
7308
7292
  };
7309
7293
  type ResponseBody = ImportWalletSeedPhraseV2Data;
7310
7294
  }
7311
- /**
7312
- * No description
7313
- * @tags Wallets, MPC
7314
- * @name RetrieveShares
7315
- * @summary Retrieve shares which belong to the user on a specified wallet
7316
- * @request POST:/api/v1/wallets/retrieve-shares
7317
- * @secure
7318
- */
7319
- namespace RetrieveShares {
7320
- type RequestParams = {};
7321
- type RequestQuery = {};
7322
- type RequestBody = RetrieveWalletShareRequestDto;
7323
- type RequestHeaders = {
7324
- /** A unique identifier for the request, used for tracing and debugging */
7325
- "x-client-request-id"?: string;
7326
- };
7327
- type ResponseBody = RetrieveSharesData;
7328
- }
7329
7295
  /**
7330
7296
  * No description
7331
7297
  * @tags Wallets, MPC
@@ -8146,6 +8112,24 @@ export declare namespace Transactions {
8146
8112
  };
8147
8113
  type ResponseBody = GetEstimateFeeData;
8148
8114
  }
8115
+ /**
8116
+ * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
8117
+ * @tags Transactions, Raw, Transactions
8118
+ * @name SignAndBroadcastRawTx
8119
+ * @summary Sign and broadcast raw transaction API
8120
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
8121
+ * @secure
8122
+ */
8123
+ namespace SignAndBroadcastRawTx {
8124
+ type RequestParams = {};
8125
+ type RequestQuery = {};
8126
+ type RequestBody = RawTxRequestDto;
8127
+ type RequestHeaders = {
8128
+ /** A unique identifier for the request, used for tracing and debugging */
8129
+ "x-client-request-id"?: string;
8130
+ };
8131
+ type ResponseBody = SignAndBroadcastRawTxData;
8132
+ }
8149
8133
  /**
8150
8134
  * No description
8151
8135
  * @tags Transactions, Query
@@ -8177,24 +8161,6 @@ export declare namespace Transactions {
8177
8161
  };
8178
8162
  type ResponseBody = FetchTransactionByHashOrReferenceData;
8179
8163
  }
8180
- /**
8181
- * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
8182
- * @tags Transactions, Raw, Transactions
8183
- * @name SignAndBroadcastRawTx
8184
- * @summary Sign and broadcast raw transaction API
8185
- * @request POST:/api/v1/transactions/sign-broadcast-rawtx
8186
- * @secure
8187
- */
8188
- namespace SignAndBroadcastRawTx {
8189
- type RequestParams = {};
8190
- type RequestQuery = {};
8191
- type RequestBody = RawTxRequestDto;
8192
- type RequestHeaders = {
8193
- /** A unique identifier for the request, used for tracing and debugging */
8194
- "x-client-request-id"?: string;
8195
- };
8196
- type ResponseBody = SignAndBroadcastRawTxData;
8197
- }
8198
8164
  /**
8199
8165
  * No description
8200
8166
  * @tags Transactions, Transactions, Multisig, Raw
@@ -8476,6 +8442,15 @@ export declare namespace Query {
8476
8442
  * @example "ERC_20"
8477
8443
  */
8478
8444
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
8445
+ /**
8446
+ * Wallet ID
8447
+ * @format uuid
8448
+ * @minLength 36
8449
+ * @maxLength 36
8450
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8451
+ * @example "123e4567-e89b-12d3-a456-426614174000"
8452
+ */
8453
+ walletId?: string;
8479
8454
  };
8480
8455
  type RequestBody = never;
8481
8456
  type RequestHeaders = {
@@ -8521,6 +8496,15 @@ export declare namespace Query {
8521
8496
  * @example "ERC_20"
8522
8497
  */
8523
8498
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
8499
+ /**
8500
+ * Wallet ID
8501
+ * @format uuid
8502
+ * @minLength 36
8503
+ * @maxLength 36
8504
+ * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8505
+ * @example "123e4567-e89b-12d3-a456-426614174000"
8506
+ */
8507
+ walletId?: string;
8524
8508
  };
8525
8509
  type RequestBody = never;
8526
8510
  type RequestHeaders = {
@@ -10016,16 +10000,6 @@ export declare class Api<SecurityDataType extends unknown> {
10016
10000
  * @secure
10017
10001
  */
10018
10002
  importWalletSeedPhraseV2: (data: ImportSeedPhraseV2RequestDto, params?: RequestParams) => Promise<WalletCreatedDto>;
10019
- /**
10020
- * No description
10021
- *
10022
- * @tags Wallets, MPC
10023
- * @name RetrieveShares
10024
- * @summary Retrieve shares which belong to the user on a specified wallet
10025
- * @request POST:/api/v1/wallets/retrieve-shares
10026
- * @secure
10027
- */
10028
- retrieveShares: (data: RetrieveWalletShareRequestDto, params?: RequestParams) => Promise<WalletSharesRetrievedDto>;
10029
10003
  /**
10030
10004
  * No description
10031
10005
  *
@@ -10308,16 +10282,6 @@ export declare class Api<SecurityDataType extends unknown> {
10308
10282
  * @secure
10309
10283
  */
10310
10284
  getEstimateFee: (query: GetEstimateFeeParams, params?: RequestParams) => Promise<FeeEstimatesResponseDto>;
10311
- /**
10312
- * No description
10313
- *
10314
- * @tags Transactions, Query
10315
- * @name FetchTransactionByHashOrReference
10316
- * @summary Fetch transaction status data using a reference or transaction hash
10317
- * @request GET:/api/v1/transactions/status
10318
- * @secure
10319
- */
10320
- fetchTransactionByHashOrReference: (query: FetchTransactionByHashOrReferenceParams, params?: RequestParams) => Promise<TransactionStatusDataResponseDto>;
10321
10285
  /**
10322
10286
  * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
10323
10287
  *
@@ -10328,6 +10292,16 @@ export declare class Api<SecurityDataType extends unknown> {
10328
10292
  * @secure
10329
10293
  */
10330
10294
  signAndBroadcastRawTx: (data: RawTxRequestDto, params?: RequestParams) => Promise<TransactionResponseDto>;
10295
+ /**
10296
+ * No description
10297
+ *
10298
+ * @tags Transactions, Query
10299
+ * @name FetchTransactionByHashOrReference
10300
+ * @summary Fetch transaction status data using a reference or transaction hash
10301
+ * @request GET:/api/v1/transactions/status
10302
+ * @secure
10303
+ */
10304
+ fetchTransactionByHashOrReference: (query: FetchTransactionByHashOrReferenceParams, params?: RequestParams) => Promise<TransactionStatusDataResponseDto>;
10331
10305
  /**
10332
10306
  * No description
10333
10307
  *