@ledgerhq/revault-api 1.33.0 → 1.34.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/lib/{app-types-cjzmhBDS.d.mts → app-types-CAcz9y3Z.d.mts} +53 -8
- package/lib/fakes.d.mts +4 -3
- package/lib/fakes.mjs +26 -1
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +36 -14
- package/package.json +1 -1
|
@@ -113,6 +113,15 @@ declare const zAccountResponse: z__default.ZodObject<{
|
|
|
113
113
|
}, {
|
|
114
114
|
type: "TEZOS_LIKE";
|
|
115
115
|
address: string | null;
|
|
116
|
+
}>, z__default.ZodObject<{
|
|
117
|
+
type: z__default.ZodLiteral<"SUI_LIKE">;
|
|
118
|
+
address: z__default.ZodNullable<z__default.ZodString>;
|
|
119
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
120
|
+
type: "SUI_LIKE";
|
|
121
|
+
address: string | null;
|
|
122
|
+
}, {
|
|
123
|
+
type: "SUI_LIKE";
|
|
124
|
+
address: string | null;
|
|
116
125
|
}>]>;
|
|
117
126
|
governance: z__default.ZodDiscriminatedUnion<"type", [z__default.ZodObject<{
|
|
118
127
|
type: z__default.ZodLiteral<"CLASSIC">;
|
|
@@ -195,6 +204,9 @@ declare const zAccountResponse: z__default.ZodObject<{
|
|
|
195
204
|
} | {
|
|
196
205
|
type: "STELLAR_LIKE";
|
|
197
206
|
address: string | null;
|
|
207
|
+
} | {
|
|
208
|
+
type: "SUI_LIKE";
|
|
209
|
+
address: string | null;
|
|
198
210
|
} | {
|
|
199
211
|
type: "TEZOS_LIKE";
|
|
200
212
|
address: string | null;
|
|
@@ -251,6 +263,9 @@ declare const zAccountResponse: z__default.ZodObject<{
|
|
|
251
263
|
} | {
|
|
252
264
|
type: "STELLAR_LIKE";
|
|
253
265
|
address: string | null;
|
|
266
|
+
} | {
|
|
267
|
+
type: "SUI_LIKE";
|
|
268
|
+
address: string | null;
|
|
254
269
|
} | {
|
|
255
270
|
type: "TEZOS_LIKE";
|
|
256
271
|
address: string | null;
|
|
@@ -1118,6 +1133,34 @@ declare const zAccountLiveData: z__default.ZodDiscriminatedUnion<"type", [z__def
|
|
|
1118
1133
|
total: string;
|
|
1119
1134
|
pending: string;
|
|
1120
1135
|
}>;
|
|
1136
|
+
} & {
|
|
1137
|
+
type: z__default.ZodLiteral<"SUI_LIKE">;
|
|
1138
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1139
|
+
type: "SUI_LIKE";
|
|
1140
|
+
id: string;
|
|
1141
|
+
balance: {
|
|
1142
|
+
total: string;
|
|
1143
|
+
pending: string;
|
|
1144
|
+
};
|
|
1145
|
+
}, {
|
|
1146
|
+
type: "SUI_LIKE";
|
|
1147
|
+
id: string;
|
|
1148
|
+
balance: {
|
|
1149
|
+
total: string;
|
|
1150
|
+
pending: string;
|
|
1151
|
+
};
|
|
1152
|
+
}>, z__default.ZodObject<{
|
|
1153
|
+
id: z__default.ZodString;
|
|
1154
|
+
balance: z__default.ZodObject<{
|
|
1155
|
+
total: z__default.ZodString;
|
|
1156
|
+
pending: z__default.ZodString;
|
|
1157
|
+
}, "strip", z__default.ZodTypeAny, {
|
|
1158
|
+
total: string;
|
|
1159
|
+
pending: string;
|
|
1160
|
+
}, {
|
|
1161
|
+
total: string;
|
|
1162
|
+
pending: string;
|
|
1163
|
+
}>;
|
|
1121
1164
|
} & {
|
|
1122
1165
|
type: z__default.ZodLiteral<"TEZOS_LIKE">;
|
|
1123
1166
|
staking: z__default.ZodOptional<z__default.ZodNullable<z__default.ZodObject<{
|
|
@@ -28040,10 +28083,11 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
28040
28083
|
TRC20_LIKE: "TRC20_LIKE";
|
|
28041
28084
|
GENERIC_LIKE: "GENERIC_LIKE";
|
|
28042
28085
|
RAW_SIGNING: "RAW_SIGNING";
|
|
28086
|
+
SUI_LIKE: "SUI_LIKE";
|
|
28043
28087
|
}>;
|
|
28044
28088
|
}, "strip", z__default.ZodTypeAny, {
|
|
28045
28089
|
name: string;
|
|
28046
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
28090
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
28047
28091
|
derivationPath: string;
|
|
28048
28092
|
currency: string;
|
|
28049
28093
|
index: number;
|
|
@@ -28091,7 +28135,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
28091
28135
|
contractAddress?: string | undefined;
|
|
28092
28136
|
}, {
|
|
28093
28137
|
name: string;
|
|
28094
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
28138
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
28095
28139
|
derivationPath: string;
|
|
28096
28140
|
currency: string;
|
|
28097
28141
|
index: number;
|
|
@@ -28222,7 +28266,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
28222
28266
|
id: string;
|
|
28223
28267
|
data: {
|
|
28224
28268
|
name: string;
|
|
28225
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
28269
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
28226
28270
|
derivationPath: string;
|
|
28227
28271
|
currency: string;
|
|
28228
28272
|
index: number;
|
|
@@ -28302,7 +28346,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
28302
28346
|
id: string;
|
|
28303
28347
|
data: {
|
|
28304
28348
|
name: string;
|
|
28305
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
28349
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
28306
28350
|
derivationPath: string;
|
|
28307
28351
|
currency: string;
|
|
28308
28352
|
index: number;
|
|
@@ -40853,10 +40897,11 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
40853
40897
|
TRC20_LIKE: "TRC20_LIKE";
|
|
40854
40898
|
GENERIC_LIKE: "GENERIC_LIKE";
|
|
40855
40899
|
RAW_SIGNING: "RAW_SIGNING";
|
|
40900
|
+
SUI_LIKE: "SUI_LIKE";
|
|
40856
40901
|
}>;
|
|
40857
40902
|
}, "strip", z__default.ZodTypeAny, {
|
|
40858
40903
|
name: string;
|
|
40859
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
40904
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
40860
40905
|
derivationPath: string;
|
|
40861
40906
|
currency: string;
|
|
40862
40907
|
index: number;
|
|
@@ -40904,7 +40949,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
40904
40949
|
contractAddress?: string | undefined;
|
|
40905
40950
|
}, {
|
|
40906
40951
|
name: string;
|
|
40907
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
40952
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
40908
40953
|
derivationPath: string;
|
|
40909
40954
|
currency: string;
|
|
40910
40955
|
index: number;
|
|
@@ -41035,7 +41080,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
41035
41080
|
id: string;
|
|
41036
41081
|
data: {
|
|
41037
41082
|
name: string;
|
|
41038
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
41083
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
41039
41084
|
derivationPath: string;
|
|
41040
41085
|
currency: string;
|
|
41041
41086
|
index: number;
|
|
@@ -41115,7 +41160,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<"type", [z
|
|
|
41115
41160
|
id: string;
|
|
41116
41161
|
data: {
|
|
41117
41162
|
name: string;
|
|
41118
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
41163
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
41119
41164
|
derivationPath: string;
|
|
41120
41165
|
currency: string;
|
|
41121
41166
|
index: number;
|
package/lib/fakes.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequestType, VaultRequest, VaultRequestReview, Account } from '@prisma/client';
|
|
2
|
-
import { x as UserChallenge, A as AccountResponse, t as VaultRequestResponse } from './app-types-
|
|
2
|
+
import { x as UserChallenge, A as AccountResponse, t as VaultRequestResponse } from './app-types-CAcz9y3Z.mjs';
|
|
3
3
|
import z__default from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -2304,10 +2304,11 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
|
|
|
2304
2304
|
TRC20_LIKE: "TRC20_LIKE";
|
|
2305
2305
|
GENERIC_LIKE: "GENERIC_LIKE";
|
|
2306
2306
|
RAW_SIGNING: "RAW_SIGNING";
|
|
2307
|
+
SUI_LIKE: "SUI_LIKE";
|
|
2307
2308
|
}>;
|
|
2308
2309
|
}, "strip", z__default.ZodTypeAny, {
|
|
2309
2310
|
name: string;
|
|
2310
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
2311
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
2311
2312
|
derivationPath: string;
|
|
2312
2313
|
currency: string;
|
|
2313
2314
|
index: number;
|
|
@@ -2355,7 +2356,7 @@ declare const zCreateAccountRequestData: z__default.ZodObject<Omit<{
|
|
|
2355
2356
|
contractAddress?: string | undefined;
|
|
2356
2357
|
}, {
|
|
2357
2358
|
name: string;
|
|
2358
|
-
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE";
|
|
2359
|
+
type: "RAW_SIGNING" | "BITCOIN_LIKE" | "ETHEREUM_LIKE" | "ERC20_LIKE" | "BEP20_LIKE" | "CARDANO_LIKE" | "SOLANA_LIKE" | "TEZOS_LIKE" | "STELLAR_LIKE" | "RIPPLE_LIKE" | "POLKADOT_LIKE" | "TRC20_LIKE" | "GENERIC_LIKE" | "SUI_LIKE";
|
|
2359
2360
|
derivationPath: string;
|
|
2360
2361
|
currency: string;
|
|
2361
2362
|
index: number;
|
package/lib/fakes.mjs
CHANGED
|
@@ -740,6 +740,10 @@ var zStellarLikeAssetFields = z.object({
|
|
|
740
740
|
type: z.literal(AccountType.STELLAR_LIKE).describe("Account type"),
|
|
741
741
|
address: z.string().describe("Account address").nullable()
|
|
742
742
|
}).describe("Stellar-like");
|
|
743
|
+
var zSuiLikeAssetFields = z.object({
|
|
744
|
+
type: z.literal(AccountType.SUI_LIKE).describe("Account type"),
|
|
745
|
+
address: z.string().describe("Account address").nullable()
|
|
746
|
+
}).describe("Sui-like");
|
|
743
747
|
var zTezosLikeAssetFields = z.object({
|
|
744
748
|
type: z.literal(AccountType.TEZOS_LIKE).describe("Account type"),
|
|
745
749
|
address: z.string().describe("Account address").nullable()
|
|
@@ -755,7 +759,8 @@ var zAccountAssetStaticFields = z.discriminatedUnion("type", [
|
|
|
755
759
|
zRippleLikeAssetFields,
|
|
756
760
|
zSolanaLikeAssetFields,
|
|
757
761
|
zStellarLikeAssetFields,
|
|
758
|
-
zTezosLikeAssetFields
|
|
762
|
+
zTezosLikeAssetFields,
|
|
763
|
+
zSuiLikeAssetFields
|
|
759
764
|
]).describe("Account asset fields");
|
|
760
765
|
var zReviewStepWithUsers = z.object({
|
|
761
766
|
quorum: z.number().min(0).describe("Number of required approvals for the step"),
|
|
@@ -1144,6 +1149,9 @@ var zSolanaLikeLiveData = zCommonLiveData.merge(zSolanaLikeStakingFields).descri
|
|
|
1144
1149
|
var zStellarLikeLiveData = zCommonLiveData.extend({
|
|
1145
1150
|
type: z7.literal(AccountType.STELLAR_LIKE).describe("Account type")
|
|
1146
1151
|
}).describe("Stellar-like");
|
|
1152
|
+
var zSuiLikeLiveData = zCommonLiveData.extend({
|
|
1153
|
+
type: z7.literal(AccountType.SUI_LIKE).describe("Account type")
|
|
1154
|
+
}).describe("Sui-like");
|
|
1147
1155
|
var zTezosLikeLiveData = zCommonLiveData.merge(zTezosLikeStakingFields).describe("Tezos-like");
|
|
1148
1156
|
z7.discriminatedUnion("type", [
|
|
1149
1157
|
zBitcoinLikeLiveData,
|
|
@@ -1156,6 +1164,7 @@ z7.discriminatedUnion("type", [
|
|
|
1156
1164
|
zRippleLikeLiveData,
|
|
1157
1165
|
zSolanaLikeLiveData,
|
|
1158
1166
|
zStellarLikeLiveData,
|
|
1167
|
+
zSuiLikeLiveData,
|
|
1159
1168
|
zTezosLikeLiveData
|
|
1160
1169
|
]);
|
|
1161
1170
|
|
|
@@ -1330,6 +1339,11 @@ var getAccountAssetStaticFields = (account) => {
|
|
|
1330
1339
|
type: account.type,
|
|
1331
1340
|
address: account.address
|
|
1332
1341
|
};
|
|
1342
|
+
case AccountType.SUI_LIKE:
|
|
1343
|
+
return {
|
|
1344
|
+
type: account.type,
|
|
1345
|
+
address: account.address
|
|
1346
|
+
};
|
|
1333
1347
|
case AccountType.RIPPLE_LIKE:
|
|
1334
1348
|
return {
|
|
1335
1349
|
type: account.type,
|
|
@@ -2016,6 +2030,17 @@ var genAssetFieldsForType = (type) => {
|
|
|
2016
2030
|
hsmXpub,
|
|
2017
2031
|
hsmChainCode
|
|
2018
2032
|
};
|
|
2033
|
+
case "SUI_LIKE":
|
|
2034
|
+
return {
|
|
2035
|
+
type,
|
|
2036
|
+
currency: faker.helpers.arrayElement(["sui"]),
|
|
2037
|
+
derivationPath: "44'/784'/0'",
|
|
2038
|
+
address: faker.string.alphanumeric({ length: 34, casing: "mixed" }),
|
|
2039
|
+
contractAddress: faker.string.alphanumeric({ length: 34, casing: "mixed" }),
|
|
2040
|
+
xpub: null,
|
|
2041
|
+
hsmXpub,
|
|
2042
|
+
hsmChainCode: null
|
|
2043
|
+
};
|
|
2019
2044
|
case "GENERIC_LIKE":
|
|
2020
2045
|
return {
|
|
2021
2046
|
type,
|