wallaby-cash 3.13.0 → 3.15.0
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/api.cjs +1 -1
- package/dist/api.js +1 -1
- package/dist/api.mjs +1 -1
- package/dist/generated/api.d.ts +18 -142
- package/dist/index.cjs +9 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/lib/system/index.d.ts +15 -12
- package/dist/package.json +7 -4
- package/dist/r/oci-3T3HuAKO.cjs +1 -0
- package/dist/r/oci-3T3HuAKO.cjs.map +1 -0
- package/dist/r/{oci-B2J75-_N.js → oci-DsJU4c2w.js} +1 -1
- package/dist/r/{oci-B2J75-_N.js.map → oci-DsJU4c2w.js.map} +1 -1
- package/dist/r/{oci-B2J75-_N.mjs → oci-DsJU4c2w.mjs} +1 -1
- package/dist/r/{oci-B2J75-_N.mjs.map → oci-DsJU4c2w.mjs.map} +1 -1
- package/dist/types/common.d.ts +9 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/verification.d.ts +91 -0
- package/dist/verification/index.d.ts +23 -0
- package/dist/verification/polymesh/base58.d.ts +7 -0
- package/dist/verification/polymesh/bytes.d.ts +4 -0
- package/dist/verification/polymesh/codecs.d.ts +196 -0
- package/dist/verification/polymesh/context.d.ts +69 -0
- package/dist/verification/polymesh/decode.d.ts +35 -0
- package/dist/verification/polymesh/errors.d.ts +28 -0
- package/dist/verification/polymesh/index.d.ts +15 -0
- package/dist/verification/polymesh/ss58.d.ts +8 -0
- package/dist/verification/polymesh/verify.d.ts +29 -0
- package/package.json +7 -4
- package/dist/r/oci-Br1lqryl.cjs +0 -1
- package/dist/r/oci-Br1lqryl.cjs.map +0 -1
package/dist/api.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./r/oci-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./r/oci-3T3HuAKO.cjs");exports.Api=e.A,exports.HttpClient=e.H;//# sourceMappingURL=api.cjs.map
|
package/dist/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Api,H as HttpClient}from"./r/oci-
|
|
1
|
+
export{A as Api,H as HttpClient}from"./r/oci-DsJU4c2w.js";//# sourceMappingURL=api.js.map
|
package/dist/api.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as Api,H as HttpClient}from"./r/oci-
|
|
1
|
+
export{A as Api,H as HttpClient}from"./r/oci-DsJU4c2w.mjs";//# sourceMappingURL=api.mjs.map
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -1384,12 +1384,12 @@ export interface BalanceResponseDto {
|
|
|
1384
1384
|
*/
|
|
1385
1385
|
assetSymbol: string;
|
|
1386
1386
|
/**
|
|
1387
|
-
* Asset balance
|
|
1387
|
+
* Asset balance as an exact decimal string. Null until a balance has been synced for the asset.
|
|
1388
1388
|
* @maxLength 256
|
|
1389
1389
|
* @pattern ^-?\d*\.?\d+$
|
|
1390
1390
|
* @example "181.2939"
|
|
1391
1391
|
*/
|
|
1392
|
-
balance: string;
|
|
1392
|
+
balance: string | null;
|
|
1393
1393
|
/**
|
|
1394
1394
|
* The last time the balance was updated
|
|
1395
1395
|
* @format date-time
|
|
@@ -1407,12 +1407,12 @@ export interface BalanceResponseDto {
|
|
|
1407
1407
|
*/
|
|
1408
1408
|
claimableBalance?: string;
|
|
1409
1409
|
/**
|
|
1410
|
-
* Locked asset balance
|
|
1410
|
+
* Locked asset balance as an exact decimal string, only relevant for assets that support it. May be null or omitted when the asset has none.
|
|
1411
1411
|
* @maxLength 256
|
|
1412
1412
|
* @pattern ^-?\d*\.?\d+$
|
|
1413
1413
|
* @example "181.2939"
|
|
1414
1414
|
*/
|
|
1415
|
-
lockedTokenBalance?: string;
|
|
1415
|
+
lockedTokenBalance?: string | null;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Staked asset value, this value is only relevant for assets that support it
|
|
1418
1418
|
* @maxLength 256
|
|
@@ -2927,10 +2927,10 @@ export interface GetAssetsConfigurationsParams {
|
|
|
2927
2927
|
*/
|
|
2928
2928
|
search?: string;
|
|
2929
2929
|
/**
|
|
2930
|
-
* Sort by
|
|
2930
|
+
* Sort by a column of the asset configuration. When omitted, assets are ordered by verified DESC, then symbol ASC. Results are always tie-broken by id, so paging is stable.
|
|
2931
2931
|
* @default "updatedAt"
|
|
2932
2932
|
*/
|
|
2933
|
-
sortBy?: "
|
|
2933
|
+
sortBy?: "symbol" | "verified";
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Sort order
|
|
2936
2936
|
* @default "DESC"
|
|
@@ -3116,10 +3116,10 @@ export interface GetDetailedRawTransactionDataByReferenceParams {
|
|
|
3116
3116
|
export type GetEstimateFeeData = FeeEstimatesResponseDto;
|
|
3117
3117
|
export interface GetEstimateFeeParams {
|
|
3118
3118
|
/**
|
|
3119
|
-
* Transfer or allowance amount
|
|
3120
|
-
* @example 100
|
|
3119
|
+
* Transfer or allowance amount in human-readable units (decimal string, e.g. "1.5"). Sent as a string to preserve precision.
|
|
3120
|
+
* @example "100"
|
|
3121
3121
|
*/
|
|
3122
|
-
amount:
|
|
3122
|
+
amount: string;
|
|
3123
3123
|
/**
|
|
3124
3124
|
* Asset symbol
|
|
3125
3125
|
* @minLength 1
|
|
@@ -3903,10 +3903,10 @@ export interface GetUserAssetsByWalletIdParams {
|
|
|
3903
3903
|
*/
|
|
3904
3904
|
search?: string;
|
|
3905
3905
|
/**
|
|
3906
|
-
* Sort by
|
|
3906
|
+
* Sort by a column of the wallet asset. When omitted, assets are ordered by assetSymbol ASC. Results are always tie-broken by id, so paging is stable.
|
|
3907
3907
|
* @default "updatedAt"
|
|
3908
3908
|
*/
|
|
3909
|
-
sortBy?: "createdAt" | "updatedAt";
|
|
3909
|
+
sortBy?: "assetSymbol" | "createdAt" | "updatedAt";
|
|
3910
3910
|
/**
|
|
3911
3911
|
* Sort order
|
|
3912
3912
|
* @default "DESC"
|
|
@@ -4087,22 +4087,6 @@ export interface ImportSeedPhraseV2RequestDto {
|
|
|
4087
4087
|
}
|
|
4088
4088
|
export type ImportWalletSeedPhraseData = WalletCreatedDto;
|
|
4089
4089
|
export type ImportWalletSeedPhraseV2Data = WalletCreatedDto;
|
|
4090
|
-
export type InitiateWalletRecoveryData = InitiateWalletRecoveryResponseDto;
|
|
4091
|
-
export interface InitiateWalletRecoveryDto {
|
|
4092
|
-
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
4093
|
-
clientAuthPubKey: string;
|
|
4094
|
-
/**
|
|
4095
|
-
* User reference UUID
|
|
4096
|
-
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
4097
|
-
*/
|
|
4098
|
-
externalUserId: string;
|
|
4099
|
-
}
|
|
4100
|
-
export interface InitiateWalletRecoveryResponseDto {
|
|
4101
|
-
/** @example "6e46405867c14273a6a48aae522e34be" */
|
|
4102
|
-
signatureMessage: string;
|
|
4103
|
-
/** @example "4ecb720b1392468c75803d6252ac987c113206955070b96df1208c1c480338168e1407cec4b5af2f91d12af9b725cbd85af994b29c6364971a7ef8d955be83dc" */
|
|
4104
|
-
wallabyAuthPubKey: string;
|
|
4105
|
-
}
|
|
4106
4090
|
export interface InviteMerchantAdminDto {
|
|
4107
4091
|
/**
|
|
4108
4092
|
* @format email
|
|
@@ -4505,7 +4489,6 @@ export interface PendingTransactionDto {
|
|
|
4505
4489
|
sender: string;
|
|
4506
4490
|
}
|
|
4507
4491
|
export type ReconstructSeedPhraseData = SeedPhraseReconstructResponseDto;
|
|
4508
|
-
export type RecoverWalletData = WalletCompleteRecoveryCodeResponseDto;
|
|
4509
4492
|
export type RefreshAccessTokenData = AuthRefreshAccessTokenResponseDto;
|
|
4510
4493
|
export type RemoveAssetData = RemoveMerchantAssetResponseDto;
|
|
4511
4494
|
export type RemoveAssetFromUserData = RemoveUserFromUserResponseDto;
|
|
@@ -7015,41 +6998,6 @@ export interface WalletBulkBalanceQueryDto {
|
|
|
7015
6998
|
*/
|
|
7016
6999
|
walletId: string;
|
|
7017
7000
|
}
|
|
7018
|
-
export interface WalletCompleteRecoveryCodeDto {
|
|
7019
|
-
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
7020
|
-
clientAuthPubKey: string;
|
|
7021
|
-
/**
|
|
7022
|
-
* Encrypted seed phrase with its corresponding wallabyAuthPubKey
|
|
7023
|
-
* @example {"iv":"02aeac54cb45283b427bd1a5028552c1","ephemPublicKey":"044acf39ed83c304f19f41ea66615d7a6c0068d5fc48ee181f2fb1091...","ciphertext":"5fbbcc1a44ee19f7499dbc39cfc4ce96","mac":"96490b293763f49a371d3a2040a2d2cb57f246ee88958009fe3c7ef2a38264a1"}
|
|
7024
|
-
*/
|
|
7025
|
-
encryptedSeed: EncryptedDataInterface;
|
|
7026
|
-
/**
|
|
7027
|
-
* User ID from the Republic
|
|
7028
|
-
* @example "6e464058-67c1-4273-a6a4-8aae522e34be"
|
|
7029
|
-
*/
|
|
7030
|
-
externalUserId: string;
|
|
7031
|
-
/**
|
|
7032
|
-
* Message retrieved from the backend
|
|
7033
|
-
* @example "717ea458b62a430cb37ced7c22ebec97"
|
|
7034
|
-
*/
|
|
7035
|
-
message: string;
|
|
7036
|
-
/**
|
|
7037
|
-
* Signature generated after signing the provided data field
|
|
7038
|
-
* @example "0xb44e88ff3c67de6e6548a6caf006bf6e1cb841119d0b9ea1b7e9b2d36a5e0ed42fd9f5e543243d1d73dc4b7800cc2026f74961f4edc769699678a316abb34e661c"
|
|
7039
|
-
*/
|
|
7040
|
-
signature: string;
|
|
7041
|
-
/**
|
|
7042
|
-
* ID of the wallet to recover. Validated to belong to the user and to match the addresses derived from the provided seed.
|
|
7043
|
-
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
7044
|
-
*/
|
|
7045
|
-
walletId: string;
|
|
7046
|
-
}
|
|
7047
|
-
export interface WalletCompleteRecoveryCodeResponseDto {
|
|
7048
|
-
/** Wallaby user */
|
|
7049
|
-
user: WalletRecoveryUserDto;
|
|
7050
|
-
/** Recovered wallet */
|
|
7051
|
-
wallet: Wallet;
|
|
7052
|
-
}
|
|
7053
7001
|
export interface WalletCreatedDto {
|
|
7054
7002
|
/**
|
|
7055
7003
|
* User Assets
|
|
@@ -7123,18 +7071,6 @@ export interface WalletKek {
|
|
|
7123
7071
|
/** Wallet ID */
|
|
7124
7072
|
walletId: string;
|
|
7125
7073
|
}
|
|
7126
|
-
export interface WalletRecoveryUserDto {
|
|
7127
|
-
/**
|
|
7128
|
-
* External User ID for Reference
|
|
7129
|
-
* @example "de86cbd2-aef6-45b1-9f9e-f75013a13381"
|
|
7130
|
-
*/
|
|
7131
|
-
externalUserId: string;
|
|
7132
|
-
/**
|
|
7133
|
-
* Wallaby user ID
|
|
7134
|
-
* @example "a4dedb83-4d59-41ca-84b5-4b24a98878d8"
|
|
7135
|
-
*/
|
|
7136
|
-
id: string;
|
|
7137
|
-
}
|
|
7138
7074
|
export interface WalletSeedImportRequestDto {
|
|
7139
7075
|
/** @example "e3421d7f9d6888ea83bef6b28ce0a2ab6eb6fe8a8fbfa3743240992590816b08f9a62edcc63296d056c552054d583fec36d23ef11dffb24c95aaf4a47d50dccc" */
|
|
7140
7076
|
clientAuthPubKey: string;
|
|
@@ -7571,10 +7507,10 @@ export declare namespace Assets {
|
|
|
7571
7507
|
*/
|
|
7572
7508
|
search?: string;
|
|
7573
7509
|
/**
|
|
7574
|
-
* Sort by
|
|
7510
|
+
* Sort by a column of the asset configuration. When omitted, assets are ordered by verified DESC, then symbol ASC. Results are always tie-broken by id, so paging is stable.
|
|
7575
7511
|
* @default "updatedAt"
|
|
7576
7512
|
*/
|
|
7577
|
-
sortBy?: "
|
|
7513
|
+
sortBy?: "symbol" | "verified";
|
|
7578
7514
|
/**
|
|
7579
7515
|
* Sort order
|
|
7580
7516
|
* @default "DESC"
|
|
@@ -8856,10 +8792,10 @@ export declare namespace Wallets {
|
|
|
8856
8792
|
*/
|
|
8857
8793
|
search?: string;
|
|
8858
8794
|
/**
|
|
8859
|
-
* Sort by
|
|
8795
|
+
* Sort by a column of the wallet asset. When omitted, assets are ordered by assetSymbol ASC. Results are always tie-broken by id, so paging is stable.
|
|
8860
8796
|
* @default "updatedAt"
|
|
8861
8797
|
*/
|
|
8862
|
-
sortBy?: "createdAt" | "updatedAt";
|
|
8798
|
+
sortBy?: "assetSymbol" | "createdAt" | "updatedAt";
|
|
8863
8799
|
/**
|
|
8864
8800
|
* Sort order
|
|
8865
8801
|
* @default "DESC"
|
|
@@ -9021,44 +8957,6 @@ export declare namespace Wallets {
|
|
|
9021
8957
|
};
|
|
9022
8958
|
type ResponseBody = UpdateUserAssetData;
|
|
9023
8959
|
}
|
|
9024
|
-
/**
|
|
9025
|
-
* No description
|
|
9026
|
-
* @tags Wallets, Recovery
|
|
9027
|
-
* @name InitiateWalletRecovery
|
|
9028
|
-
* @summary Wallet Recovery - Step 1: Initiate wallet recovery
|
|
9029
|
-
* @request POST:/api/v1/wallets/recover/init
|
|
9030
|
-
* @deprecated
|
|
9031
|
-
* @secure
|
|
9032
|
-
*/
|
|
9033
|
-
namespace InitiateWalletRecovery {
|
|
9034
|
-
type RequestParams = {};
|
|
9035
|
-
type RequestQuery = {};
|
|
9036
|
-
type RequestBody = InitiateWalletRecoveryDto;
|
|
9037
|
-
type RequestHeaders = {
|
|
9038
|
-
/** A unique identifier for the request, used for tracing and debugging */
|
|
9039
|
-
"x-client-request-id"?: string;
|
|
9040
|
-
};
|
|
9041
|
-
type ResponseBody = InitiateWalletRecoveryData;
|
|
9042
|
-
}
|
|
9043
|
-
/**
|
|
9044
|
-
* No description
|
|
9045
|
-
* @tags Wallets, Recovery
|
|
9046
|
-
* @name RecoverWallet
|
|
9047
|
-
* @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
|
|
9048
|
-
* @request POST:/api/v1/wallets/recover
|
|
9049
|
-
* @deprecated
|
|
9050
|
-
* @secure
|
|
9051
|
-
*/
|
|
9052
|
-
namespace RecoverWallet {
|
|
9053
|
-
type RequestParams = {};
|
|
9054
|
-
type RequestQuery = {};
|
|
9055
|
-
type RequestBody = WalletCompleteRecoveryCodeDto;
|
|
9056
|
-
type RequestHeaders = {
|
|
9057
|
-
/** A unique identifier for the request, used for tracing and debugging */
|
|
9058
|
-
"x-client-request-id"?: string;
|
|
9059
|
-
};
|
|
9060
|
-
type ResponseBody = RecoverWalletData;
|
|
9061
|
-
}
|
|
9062
8960
|
/**
|
|
9063
8961
|
* No description
|
|
9064
8962
|
* @tags Wallets, Swaps
|
|
@@ -9478,10 +9376,10 @@ export declare namespace Transactions {
|
|
|
9478
9376
|
type RequestParams = {};
|
|
9479
9377
|
type RequestQuery = {
|
|
9480
9378
|
/**
|
|
9481
|
-
* Transfer or allowance amount
|
|
9482
|
-
* @example 100
|
|
9379
|
+
* Transfer or allowance amount in human-readable units (decimal string, e.g. "1.5"). Sent as a string to preserve precision.
|
|
9380
|
+
* @example "100"
|
|
9483
9381
|
*/
|
|
9484
|
-
amount:
|
|
9382
|
+
amount: string;
|
|
9485
9383
|
/**
|
|
9486
9384
|
* Asset symbol
|
|
9487
9385
|
* @minLength 1
|
|
@@ -11548,28 +11446,6 @@ export declare class Api<SecurityDataType extends unknown> {
|
|
|
11548
11446
|
* @secure
|
|
11549
11447
|
*/
|
|
11550
11448
|
updateUserAsset: (query: UpdateUserAssetParams, data: UpdateUserAssetRequestDto, params?: RequestParams) => Promise<UpdateUserAssetResponseDto>;
|
|
11551
|
-
/**
|
|
11552
|
-
* No description
|
|
11553
|
-
*
|
|
11554
|
-
* @tags Wallets, Recovery
|
|
11555
|
-
* @name InitiateWalletRecovery
|
|
11556
|
-
* @summary Wallet Recovery - Step 1: Initiate wallet recovery
|
|
11557
|
-
* @request POST:/api/v1/wallets/recover/init
|
|
11558
|
-
* @deprecated
|
|
11559
|
-
* @secure
|
|
11560
|
-
*/
|
|
11561
|
-
initiateWalletRecovery: (data: InitiateWalletRecoveryDto, params?: RequestParams) => Promise<InitiateWalletRecoveryResponseDto>;
|
|
11562
|
-
/**
|
|
11563
|
-
* No description
|
|
11564
|
-
*
|
|
11565
|
-
* @tags Wallets, Recovery
|
|
11566
|
-
* @name RecoverWallet
|
|
11567
|
-
* @summary Wallet Recovery - Step 2 and final: Recover the lost wallet and its assets
|
|
11568
|
-
* @request POST:/api/v1/wallets/recover
|
|
11569
|
-
* @deprecated
|
|
11570
|
-
* @secure
|
|
11571
|
-
*/
|
|
11572
|
-
recoverWallet: (data: WalletCompleteRecoveryCodeDto, params?: RequestParams) => Promise<WalletCompleteRecoveryCodeResponseDto>;
|
|
11573
11449
|
/**
|
|
11574
11450
|
* No description
|
|
11575
11451
|
*
|