@ledgerhq/revault-api 1.43.0 → 1.43.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.
- package/lib/{app-types-BxhO5dk7.d.mts → app-types-TiTgl5lF.d.mts} +268 -5
- package/lib/fakes.d.mts +48 -4
- package/lib/fakes.mjs +1114 -29
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +311 -165
- package/package.json +2 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import z__default, { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const zEstimatedFees: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
4
|
+
type: z__default.ZodLiteral<"BITCOIN_LIKE">;
|
|
5
|
+
fee: z__default.ZodString;
|
|
6
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
4
7
|
type: z__default.ZodLiteral<"ETHEREUM_LIKE">;
|
|
5
8
|
baseFees: z__default.ZodString;
|
|
6
9
|
gasLimit: z__default.ZodString;
|
|
@@ -44,7 +47,27 @@ declare const zTransactionData: z__default.ZodDiscriminatedUnion<[z__default.Zod
|
|
|
44
47
|
currency: z__default.ZodString;
|
|
45
48
|
recipient: z__default.ZodString;
|
|
46
49
|
amount: z__default.ZodString;
|
|
50
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
47
51
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
52
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
53
|
+
currency: z__default.ZodString;
|
|
54
|
+
recipient: z__default.ZodString;
|
|
55
|
+
amount: z__default.ZodString;
|
|
56
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
57
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
58
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
59
|
+
currency: z__default.ZodString;
|
|
60
|
+
transferProposal: z__default.ZodObject<{
|
|
61
|
+
amount: z__default.ZodString;
|
|
62
|
+
contractId: z__default.ZodString;
|
|
63
|
+
instrumentId: z__default.ZodString;
|
|
64
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
65
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
66
|
+
sender: z__default.ZodString;
|
|
67
|
+
recipient: z__default.ZodString;
|
|
68
|
+
}, z__default.core.$strip>;
|
|
69
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
70
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
48
71
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
49
72
|
currency: z__default.ZodString;
|
|
50
73
|
transferProposal: z__default.ZodObject<{
|
|
@@ -636,6 +659,8 @@ declare const zTransactionResponse: z__default.ZodDiscriminatedUnion<[z__default
|
|
|
636
659
|
recipients: z__default.ZodArray<z__default.ZodString>;
|
|
637
660
|
type: z__default.ZodEnum<{
|
|
638
661
|
CANTON_LIKE_SEND: "CANTON_LIKE_SEND";
|
|
662
|
+
CANTON_LIKE_SEND_TOKEN: "CANTON_LIKE_SEND_TOKEN";
|
|
663
|
+
CANTON_LIKE_WITHDRAW: "CANTON_LIKE_WITHDRAW";
|
|
639
664
|
CANTON_LIKE_RECEIVE: "CANTON_LIKE_RECEIVE";
|
|
640
665
|
CANTON_LIKE_PRE_APPROVAL: "CANTON_LIKE_PRE_APPROVAL";
|
|
641
666
|
CANTON_LIKE_TAP: "CANTON_LIKE_TAP";
|
|
@@ -941,6 +966,7 @@ declare const zAccountResponse: z__default.ZodObject<{
|
|
|
941
966
|
currency: z__default.ZodString;
|
|
942
967
|
network: z__default.ZodString;
|
|
943
968
|
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
969
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
944
970
|
index: z__default.ZodNumber;
|
|
945
971
|
derivationPath: z__default.ZodString;
|
|
946
972
|
status: z__default.ZodEnum<{
|
|
@@ -1223,6 +1249,7 @@ declare const zBalance: z__default.ZodObject<{
|
|
|
1223
1249
|
currency: z__default.ZodObject<{
|
|
1224
1250
|
network: z__default.ZodString;
|
|
1225
1251
|
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
1252
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
1226
1253
|
}, z__default.core.$strip>;
|
|
1227
1254
|
}, z__default.core.$strip>;
|
|
1228
1255
|
declare const zStake: z__default.ZodObject<{
|
|
@@ -1284,6 +1311,7 @@ declare const zAssetResponse: z__default.ZodDiscriminatedUnion<[z__default.ZodOb
|
|
|
1284
1311
|
network: z__default.ZodString;
|
|
1285
1312
|
assetType: z__default.ZodLiteral<"TOKEN">;
|
|
1286
1313
|
contractAddress: z__default.ZodString;
|
|
1314
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
1287
1315
|
metaCurrencyId: z__default.ZodNullable<z__default.ZodString>;
|
|
1288
1316
|
}, z__default.core.$strip>], "assetType">;
|
|
1289
1317
|
type AssetResponse = z__default.infer<typeof zAssetResponse>;
|
|
@@ -1353,6 +1381,53 @@ declare const zTokenResponse: z__default.ZodObject<{
|
|
|
1353
1381
|
}, z__default.core.$strip>;
|
|
1354
1382
|
type TokenResponse = z__default.infer<typeof zTokenResponse>;
|
|
1355
1383
|
|
|
1384
|
+
declare const zGroupResponse: z__default.ZodObject<{
|
|
1385
|
+
id: z__default.ZodString;
|
|
1386
|
+
legacyId: z__default.ZodNumber;
|
|
1387
|
+
name: z__default.ZodString;
|
|
1388
|
+
description: z__default.ZodNullable<z__default.ZodString>;
|
|
1389
|
+
status: z__default.ZodEnum<{
|
|
1390
|
+
ACTIVE: "ACTIVE";
|
|
1391
|
+
INACTIVE: "INACTIVE";
|
|
1392
|
+
}>;
|
|
1393
|
+
members: z__default.ZodArray<z__default.ZodObject<{
|
|
1394
|
+
id: z__default.ZodString;
|
|
1395
|
+
legacyId: z__default.ZodNumber;
|
|
1396
|
+
legacyViewAll: z__default.ZodBoolean;
|
|
1397
|
+
workspaceName: z__default.ZodString;
|
|
1398
|
+
name: z__default.ZodString;
|
|
1399
|
+
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
1400
|
+
deviceType: z__default.ZodEnum<{
|
|
1401
|
+
PSD: "PSD";
|
|
1402
|
+
SOFT_PSD: "SOFT_PSD";
|
|
1403
|
+
API: "API";
|
|
1404
|
+
}>;
|
|
1405
|
+
role: z__default.ZodEnum<{
|
|
1406
|
+
ADMIN: "ADMIN";
|
|
1407
|
+
OPERATOR: "OPERATOR";
|
|
1408
|
+
READ_ONLY_API_KEY: "READ_ONLY_API_KEY";
|
|
1409
|
+
}>;
|
|
1410
|
+
pubKey: z__default.ZodString;
|
|
1411
|
+
status: z__default.ZodEnum<{
|
|
1412
|
+
ACTIVE: "ACTIVE";
|
|
1413
|
+
INACTIVE: "INACTIVE";
|
|
1414
|
+
}>;
|
|
1415
|
+
isSuspended: z__default.ZodBoolean;
|
|
1416
|
+
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
1417
|
+
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
1418
|
+
}, z__default.core.$strip>>;
|
|
1419
|
+
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
1420
|
+
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
1421
|
+
}, z__default.core.$strip>;
|
|
1422
|
+
type GroupResponse = z__default.infer<typeof zGroupResponse>;
|
|
1423
|
+
declare const zGroupSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
1424
|
+
status: "status";
|
|
1425
|
+
name: "name";
|
|
1426
|
+
createdAt: "createdAt";
|
|
1427
|
+
updatedAt: "updatedAt";
|
|
1428
|
+
}>>;
|
|
1429
|
+
type GroupSortBy = z__default.infer<typeof zGroupSortBy>;
|
|
1430
|
+
|
|
1356
1431
|
declare const zSoftChallenge: z.ZodObject<{
|
|
1357
1432
|
challengeType: z.ZodLiteral<"SOFT">;
|
|
1358
1433
|
}, z.core.$strip>;
|
|
@@ -1549,6 +1624,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
1549
1624
|
currency: z__default.ZodString;
|
|
1550
1625
|
recipient: z__default.ZodString;
|
|
1551
1626
|
amount: z__default.ZodString;
|
|
1627
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
1552
1628
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
1553
1629
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
1554
1630
|
amount: z__default.ZodString;
|
|
@@ -1727,6 +1803,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
1727
1803
|
currency: z__default.ZodString;
|
|
1728
1804
|
recipient: z__default.ZodString;
|
|
1729
1805
|
amount: z__default.ZodString;
|
|
1806
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
1730
1807
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
1731
1808
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
1732
1809
|
amount: z__default.ZodString;
|
|
@@ -1895,6 +1972,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
1895
1972
|
currency: z__default.ZodString;
|
|
1896
1973
|
recipient: z__default.ZodString;
|
|
1897
1974
|
amount: z__default.ZodString;
|
|
1975
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
1898
1976
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
1899
1977
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
1900
1978
|
amount: z__default.ZodString;
|
|
@@ -2072,7 +2150,27 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
2072
2150
|
currency: z__default.ZodString;
|
|
2073
2151
|
recipient: z__default.ZodString;
|
|
2074
2152
|
amount: z__default.ZodString;
|
|
2153
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
2075
2154
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
2155
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
2156
|
+
currency: z__default.ZodString;
|
|
2157
|
+
recipient: z__default.ZodString;
|
|
2158
|
+
amount: z__default.ZodString;
|
|
2159
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
2160
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
2161
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
2162
|
+
currency: z__default.ZodString;
|
|
2163
|
+
transferProposal: z__default.ZodObject<{
|
|
2164
|
+
amount: z__default.ZodString;
|
|
2165
|
+
contractId: z__default.ZodString;
|
|
2166
|
+
instrumentId: z__default.ZodString;
|
|
2167
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
2168
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
2169
|
+
sender: z__default.ZodString;
|
|
2170
|
+
recipient: z__default.ZodString;
|
|
2171
|
+
}, z__default.core.$strip>;
|
|
2172
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
2173
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
2076
2174
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
2077
2175
|
currency: z__default.ZodString;
|
|
2078
2176
|
transferProposal: z__default.ZodObject<{
|
|
@@ -2928,7 +3026,8 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
2928
3026
|
name: z__default.ZodString;
|
|
2929
3027
|
currency: z__default.ZodString;
|
|
2930
3028
|
index: z__default.ZodOptional<z__default.ZodNumber>;
|
|
2931
|
-
contractAddress: z__default.
|
|
3029
|
+
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
3030
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
2932
3031
|
governance: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
2933
3032
|
type: z__default.ZodLiteral<"CLASSIC">;
|
|
2934
3033
|
policy: z__default.ZodUnion<readonly [z__default.ZodObject<{
|
|
@@ -3152,6 +3251,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
3152
3251
|
currency: z__default.ZodString;
|
|
3153
3252
|
recipient: z__default.ZodString;
|
|
3154
3253
|
amount: z__default.ZodString;
|
|
3254
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
3155
3255
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
3156
3256
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3157
3257
|
amount: z__default.ZodString;
|
|
@@ -3330,6 +3430,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
3330
3430
|
currency: z__default.ZodString;
|
|
3331
3431
|
recipient: z__default.ZodString;
|
|
3332
3432
|
amount: z__default.ZodString;
|
|
3433
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
3333
3434
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
3334
3435
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3335
3436
|
amount: z__default.ZodString;
|
|
@@ -3498,6 +3599,7 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
3498
3599
|
currency: z__default.ZodString;
|
|
3499
3600
|
recipient: z__default.ZodString;
|
|
3500
3601
|
amount: z__default.ZodString;
|
|
3602
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
3501
3603
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
3502
3604
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3503
3605
|
amount: z__default.ZodString;
|
|
@@ -3675,7 +3777,27 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
3675
3777
|
currency: z__default.ZodString;
|
|
3676
3778
|
recipient: z__default.ZodString;
|
|
3677
3779
|
amount: z__default.ZodString;
|
|
3780
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
3678
3781
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
3782
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3783
|
+
currency: z__default.ZodString;
|
|
3784
|
+
recipient: z__default.ZodString;
|
|
3785
|
+
amount: z__default.ZodString;
|
|
3786
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
3787
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
3788
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3789
|
+
currency: z__default.ZodString;
|
|
3790
|
+
transferProposal: z__default.ZodObject<{
|
|
3791
|
+
amount: z__default.ZodString;
|
|
3792
|
+
contractId: z__default.ZodString;
|
|
3793
|
+
instrumentId: z__default.ZodString;
|
|
3794
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
3795
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
3796
|
+
sender: z__default.ZodString;
|
|
3797
|
+
recipient: z__default.ZodString;
|
|
3798
|
+
}, z__default.core.$strip>;
|
|
3799
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
3800
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
3679
3801
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
3680
3802
|
currency: z__default.ZodString;
|
|
3681
3803
|
transferProposal: z__default.ZodObject<{
|
|
@@ -4531,7 +4653,8 @@ declare const zVaultRequestCreateInput: z__default.ZodObject<{
|
|
|
4531
4653
|
name: z__default.ZodString;
|
|
4532
4654
|
currency: z__default.ZodString;
|
|
4533
4655
|
index: z__default.ZodOptional<z__default.ZodNumber>;
|
|
4534
|
-
contractAddress: z__default.
|
|
4656
|
+
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
4657
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
4535
4658
|
governance: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
4536
4659
|
type: z__default.ZodLiteral<"CLASSIC">;
|
|
4537
4660
|
policy: z__default.ZodUnion<readonly [z__default.ZodObject<{
|
|
@@ -5141,6 +5264,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
5141
5264
|
currency: z__default.ZodString;
|
|
5142
5265
|
recipient: z__default.ZodString;
|
|
5143
5266
|
amount: z__default.ZodString;
|
|
5267
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
5144
5268
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
5145
5269
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
5146
5270
|
amount: z__default.ZodString;
|
|
@@ -5405,6 +5529,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
5405
5529
|
currency: z__default.ZodString;
|
|
5406
5530
|
recipient: z__default.ZodString;
|
|
5407
5531
|
amount: z__default.ZodString;
|
|
5532
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
5408
5533
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
5409
5534
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
5410
5535
|
amount: z__default.ZodString;
|
|
@@ -5616,6 +5741,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
5616
5741
|
currency: z__default.ZodString;
|
|
5617
5742
|
recipient: z__default.ZodString;
|
|
5618
5743
|
amount: z__default.ZodString;
|
|
5744
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
5619
5745
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
5620
5746
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
5621
5747
|
amount: z__default.ZodString;
|
|
@@ -5879,7 +6005,27 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
5879
6005
|
currency: z__default.ZodString;
|
|
5880
6006
|
recipient: z__default.ZodString;
|
|
5881
6007
|
amount: z__default.ZodString;
|
|
6008
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
5882
6009
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
6010
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
6011
|
+
currency: z__default.ZodString;
|
|
6012
|
+
recipient: z__default.ZodString;
|
|
6013
|
+
amount: z__default.ZodString;
|
|
6014
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
6015
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
6016
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
6017
|
+
currency: z__default.ZodString;
|
|
6018
|
+
transferProposal: z__default.ZodObject<{
|
|
6019
|
+
amount: z__default.ZodString;
|
|
6020
|
+
contractId: z__default.ZodString;
|
|
6021
|
+
instrumentId: z__default.ZodString;
|
|
6022
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
6023
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
6024
|
+
sender: z__default.ZodString;
|
|
6025
|
+
recipient: z__default.ZodString;
|
|
6026
|
+
}, z__default.core.$strip>;
|
|
6027
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
6028
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
5883
6029
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
5884
6030
|
currency: z__default.ZodString;
|
|
5885
6031
|
transferProposal: z__default.ZodObject<{
|
|
@@ -7469,7 +7615,8 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
7469
7615
|
}, z__default.core.$strip> | z__default.ZodObject<{
|
|
7470
7616
|
type: z__default.ZodLiteral<"CREATE_ACCOUNT">;
|
|
7471
7617
|
data: z__default.ZodObject<{
|
|
7472
|
-
contractAddress: z__default.
|
|
7618
|
+
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
7619
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
7473
7620
|
currency: z__default.ZodString;
|
|
7474
7621
|
name: z__default.ZodString;
|
|
7475
7622
|
governance: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
@@ -8586,6 +8733,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
8586
8733
|
currency: z__default.ZodString;
|
|
8587
8734
|
recipient: z__default.ZodString;
|
|
8588
8735
|
amount: z__default.ZodString;
|
|
8736
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
8589
8737
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
8590
8738
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
8591
8739
|
amount: z__default.ZodString;
|
|
@@ -8850,6 +8998,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
8850
8998
|
currency: z__default.ZodString;
|
|
8851
8999
|
recipient: z__default.ZodString;
|
|
8852
9000
|
amount: z__default.ZodString;
|
|
9001
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
8853
9002
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
8854
9003
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
8855
9004
|
amount: z__default.ZodString;
|
|
@@ -9061,6 +9210,7 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
9061
9210
|
currency: z__default.ZodString;
|
|
9062
9211
|
recipient: z__default.ZodString;
|
|
9063
9212
|
amount: z__default.ZodString;
|
|
9213
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
9064
9214
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
9065
9215
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
9066
9216
|
amount: z__default.ZodString;
|
|
@@ -9324,7 +9474,27 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
9324
9474
|
currency: z__default.ZodString;
|
|
9325
9475
|
recipient: z__default.ZodString;
|
|
9326
9476
|
amount: z__default.ZodString;
|
|
9477
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
9327
9478
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
9479
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
9480
|
+
currency: z__default.ZodString;
|
|
9481
|
+
recipient: z__default.ZodString;
|
|
9482
|
+
amount: z__default.ZodString;
|
|
9483
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
9484
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
9485
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
9486
|
+
currency: z__default.ZodString;
|
|
9487
|
+
transferProposal: z__default.ZodObject<{
|
|
9488
|
+
amount: z__default.ZodString;
|
|
9489
|
+
contractId: z__default.ZodString;
|
|
9490
|
+
instrumentId: z__default.ZodString;
|
|
9491
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
9492
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
9493
|
+
sender: z__default.ZodString;
|
|
9494
|
+
recipient: z__default.ZodString;
|
|
9495
|
+
}, z__default.core.$strip>;
|
|
9496
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
9497
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
9328
9498
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
9329
9499
|
currency: z__default.ZodString;
|
|
9330
9500
|
transferProposal: z__default.ZodObject<{
|
|
@@ -10914,7 +11084,8 @@ declare const zVaultRequestResponse: z__default.ZodDiscriminatedUnion<[z__defaul
|
|
|
10914
11084
|
}, z__default.core.$strip> | z__default.ZodObject<{
|
|
10915
11085
|
type: z__default.ZodLiteral<"CREATE_ACCOUNT">;
|
|
10916
11086
|
data: z__default.ZodObject<{
|
|
10917
|
-
contractAddress: z__default.
|
|
11087
|
+
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
11088
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
10918
11089
|
currency: z__default.ZodString;
|
|
10919
11090
|
name: z__default.ZodString;
|
|
10920
11091
|
governance: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
@@ -11592,4 +11763,96 @@ declare const zApproveVaultRequestInput: z__default.ZodObject<{
|
|
|
11592
11763
|
}, z__default.core.$strip>;
|
|
11593
11764
|
type ApproveVaultRequestInput = z__default.infer<typeof zApproveVaultRequestInput>;
|
|
11594
11765
|
|
|
11595
|
-
|
|
11766
|
+
declare const zUserResponse: z__default.ZodObject<{
|
|
11767
|
+
id: z__default.ZodString;
|
|
11768
|
+
legacyId: z__default.ZodNumber;
|
|
11769
|
+
legacyViewAll: z__default.ZodBoolean;
|
|
11770
|
+
workspaceName: z__default.ZodString;
|
|
11771
|
+
name: z__default.ZodString;
|
|
11772
|
+
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
11773
|
+
deviceType: z__default.ZodEnum<{
|
|
11774
|
+
PSD: "PSD";
|
|
11775
|
+
SOFT_PSD: "SOFT_PSD";
|
|
11776
|
+
API: "API";
|
|
11777
|
+
}>;
|
|
11778
|
+
role: z__default.ZodEnum<{
|
|
11779
|
+
ADMIN: "ADMIN";
|
|
11780
|
+
OPERATOR: "OPERATOR";
|
|
11781
|
+
READ_ONLY_API_KEY: "READ_ONLY_API_KEY";
|
|
11782
|
+
}>;
|
|
11783
|
+
pubKey: z__default.ZodString;
|
|
11784
|
+
status: z__default.ZodEnum<{
|
|
11785
|
+
ACTIVE: "ACTIVE";
|
|
11786
|
+
INACTIVE: "INACTIVE";
|
|
11787
|
+
}>;
|
|
11788
|
+
isSuspended: z__default.ZodBoolean;
|
|
11789
|
+
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
11790
|
+
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
11791
|
+
}, z__default.core.$strip>;
|
|
11792
|
+
type UserResponse = z__default.infer<typeof zUserResponse>;
|
|
11793
|
+
declare const zAdminResponse: z__default.ZodObject<{
|
|
11794
|
+
id: z__default.ZodString;
|
|
11795
|
+
legacyId: z__default.ZodNumber;
|
|
11796
|
+
legacyViewAll: z__default.ZodBoolean;
|
|
11797
|
+
workspaceName: z__default.ZodString;
|
|
11798
|
+
name: z__default.ZodString;
|
|
11799
|
+
deviceUserId: z__default.ZodNullable<z__default.ZodString>;
|
|
11800
|
+
deviceType: z__default.ZodEnum<{
|
|
11801
|
+
PSD: "PSD";
|
|
11802
|
+
SOFT_PSD: "SOFT_PSD";
|
|
11803
|
+
API: "API";
|
|
11804
|
+
}>;
|
|
11805
|
+
pubKey: z__default.ZodString;
|
|
11806
|
+
status: z__default.ZodEnum<{
|
|
11807
|
+
ACTIVE: "ACTIVE";
|
|
11808
|
+
INACTIVE: "INACTIVE";
|
|
11809
|
+
}>;
|
|
11810
|
+
isSuspended: z__default.ZodBoolean;
|
|
11811
|
+
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
11812
|
+
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
11813
|
+
role: z__default.ZodLiteral<"ADMIN">;
|
|
11814
|
+
}, z__default.core.$strip>;
|
|
11815
|
+
type AdminResponse = z__default.infer<typeof zAdminResponse>;
|
|
11816
|
+
declare const zUserSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
11817
|
+
status: "status";
|
|
11818
|
+
name: "name";
|
|
11819
|
+
createdAt: "createdAt";
|
|
11820
|
+
updatedAt: "updatedAt";
|
|
11821
|
+
role: "role";
|
|
11822
|
+
}>>;
|
|
11823
|
+
type UserSortBy = z__default.infer<typeof zUserSortBy>;
|
|
11824
|
+
|
|
11825
|
+
declare const zWhitelistAddressResponse: z__default.ZodObject<{
|
|
11826
|
+
name: z__default.ZodString;
|
|
11827
|
+
currency: z__default.ZodString;
|
|
11828
|
+
address: z__default.ZodString;
|
|
11829
|
+
destinationTags: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
|
|
11830
|
+
}, z__default.core.$strip>;
|
|
11831
|
+
declare const zWhitelistResponse: z__default.ZodObject<{
|
|
11832
|
+
id: z__default.ZodString;
|
|
11833
|
+
legacyId: z__default.ZodNumber;
|
|
11834
|
+
name: z__default.ZodString;
|
|
11835
|
+
status: z__default.ZodEnum<{
|
|
11836
|
+
ACTIVE: "ACTIVE";
|
|
11837
|
+
INACTIVE: "INACTIVE";
|
|
11838
|
+
}>;
|
|
11839
|
+
addresses: z__default.ZodArray<z__default.ZodObject<{
|
|
11840
|
+
name: z__default.ZodString;
|
|
11841
|
+
currency: z__default.ZodString;
|
|
11842
|
+
address: z__default.ZodString;
|
|
11843
|
+
destinationTags: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
|
|
11844
|
+
}, z__default.core.$strip>>;
|
|
11845
|
+
createdAt: z__default.ZodCoercedDate<unknown>;
|
|
11846
|
+
updatedAt: z__default.ZodCoercedDate<unknown>;
|
|
11847
|
+
description: z__default.ZodNullable<z__default.ZodString>;
|
|
11848
|
+
}, z__default.core.$strip>;
|
|
11849
|
+
type WhitelistResponse = z__default.infer<typeof zWhitelistResponse>;
|
|
11850
|
+
declare const zWhitelistSortBy: z__default.ZodDefault<z__default.ZodEnum<{
|
|
11851
|
+
status: "status";
|
|
11852
|
+
name: "name";
|
|
11853
|
+
createdAt: "createdAt";
|
|
11854
|
+
updatedAt: "updatedAt";
|
|
11855
|
+
}>>;
|
|
11856
|
+
type WhitelistSortBy = z__default.infer<typeof zWhitelistSortBy>;
|
|
11857
|
+
|
|
11858
|
+
export { type AssetResponse as A, zChallengeResponse as B, type CurrencyResponse as C, type ChallengeResponse as D, genTransactionSchemas as E, zApproveVaultRequestInput as F, type GroupResponse as G, type ApproveVaultRequestInput as H, type Challenge as I, zUserResponse as J, zAdminResponse as K, type AdminResponse as L, zUserSortBy as M, type UserSortBy as N, zWhitelistAddressResponse as O, zWhitelistResponse as P, zWhitelistSortBy as Q, type RequestSortBy as R, type SoftChallenge as S, type TransactionResponse as T, type UserResponse as U, type VaultRequestCreateInput as V, type WhitelistResponse as W, type WhitelistSortBy as X, type TransactionData as Y, type AccountFreshAddress as a, type AccountLiveDataResponse as b, type AccountResponse as c, type AccountSortBy as d, zAccountLiveDataResponse as e, zAccountResponse as f, zAccountSortBy as g, zBalance as h, zStake as i, zStakeSortBy as j, zStakingValidator as k, zStakingValidatorSortBy as l, zEstimatedFees as m, type TokenResponse as n, zAssetCapabilitiesResponse as o, zAssetResponse as p, zCurrencyResponse as q, zTokenResponse as r, zGroupResponse as s, zGroupSortBy as t, type GroupSortBy as u, zVaultRequestCreateInput as v, zVaultRequestResponse as w, type VaultRequestResponse as x, zRequestSortBy as y, zAccountFreshAddress as z };
|
package/lib/fakes.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AssetResponse,
|
|
2
|
-
import {
|
|
1
|
+
import { A as AssetResponse, Y as TransactionData, I as Challenge, c as AccountResponse, G as GroupResponse, U as UserResponse, x as VaultRequestResponse, W as WhitelistResponse } from './app-types-TiTgl5lF.mjs';
|
|
2
|
+
import { Group, User, RequestType, VaultRequestReview, VaultRequest, Account, Whitelist } from '@prisma/client';
|
|
3
3
|
import z__default from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -26,7 +26,27 @@ declare const zCreateTransactionRequestData: z__default.ZodObject<{
|
|
|
26
26
|
currency: z__default.ZodString;
|
|
27
27
|
recipient: z__default.ZodString;
|
|
28
28
|
amount: z__default.ZodString;
|
|
29
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
29
30
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
31
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
32
|
+
currency: z__default.ZodString;
|
|
33
|
+
recipient: z__default.ZodString;
|
|
34
|
+
amount: z__default.ZodString;
|
|
35
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
36
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_SEND_TOKEN">;
|
|
37
|
+
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
38
|
+
currency: z__default.ZodString;
|
|
39
|
+
transferProposal: z__default.ZodObject<{
|
|
40
|
+
amount: z__default.ZodString;
|
|
41
|
+
contractId: z__default.ZodString;
|
|
42
|
+
instrumentId: z__default.ZodString;
|
|
43
|
+
expiresAtMicros: z__default.ZodNumber;
|
|
44
|
+
memo: z__default.ZodNullable<z__default.ZodString>;
|
|
45
|
+
sender: z__default.ZodString;
|
|
46
|
+
recipient: z__default.ZodString;
|
|
47
|
+
}, z__default.core.$strip>;
|
|
48
|
+
reason: z__default.ZodNullable<z__default.ZodString>;
|
|
49
|
+
type: z__default.ZodLiteral<"CANTON_LIKE_WITHDRAW">;
|
|
30
50
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
31
51
|
currency: z__default.ZodString;
|
|
32
52
|
transferProposal: z__default.ZodObject<{
|
|
@@ -627,6 +647,10 @@ declare const zWorkspaceRuleRequestData: z__default.ZodObject<{
|
|
|
627
647
|
}, z__default.core.$strip>;
|
|
628
648
|
type WorkspaceRuleRequestData = z__default.infer<typeof zWorkspaceRuleRequestData>;
|
|
629
649
|
|
|
650
|
+
type GroupWithMembers = Group & {
|
|
651
|
+
members: User[];
|
|
652
|
+
};
|
|
653
|
+
|
|
630
654
|
declare const zCreateGroupRequestData: z__default.ZodObject<{
|
|
631
655
|
name: z__default.ZodString;
|
|
632
656
|
description: z__default.ZodNullable<z__default.ZodString>;
|
|
@@ -641,7 +665,8 @@ declare const zEditGroupRequestData: z__default.ZodObject<{
|
|
|
641
665
|
type EditGroupRequestData = z__default.infer<typeof zEditGroupRequestData>;
|
|
642
666
|
|
|
643
667
|
declare const zCreateAccountRequestData: z__default.ZodObject<{
|
|
644
|
-
contractAddress: z__default.
|
|
668
|
+
contractAddress: z__default.ZodNullable<z__default.ZodString>;
|
|
669
|
+
tokenIdentifier: z__default.ZodNullable<z__default.ZodString>;
|
|
645
670
|
currency: z__default.ZodString;
|
|
646
671
|
name: z__default.ZodString;
|
|
647
672
|
governance: z__default.ZodDiscriminatedUnion<[z__default.ZodObject<{
|
|
@@ -853,6 +878,7 @@ declare const zTradelinkCreateSettlementRequestData: z__default.ZodObject<{
|
|
|
853
878
|
currency: z__default.ZodString;
|
|
854
879
|
recipient: z__default.ZodString;
|
|
855
880
|
amount: z__default.ZodString;
|
|
881
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
856
882
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
857
883
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
858
884
|
amount: z__default.ZodString;
|
|
@@ -1018,6 +1044,7 @@ declare const zTradelinkWithdrawRequestData: z__default.ZodObject<{
|
|
|
1018
1044
|
currency: z__default.ZodString;
|
|
1019
1045
|
recipient: z__default.ZodString;
|
|
1020
1046
|
amount: z__default.ZodString;
|
|
1047
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
1021
1048
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
1022
1049
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
1023
1050
|
amount: z__default.ZodString;
|
|
@@ -1178,6 +1205,7 @@ declare const zTradelinkArbitrationRequestData: z__default.ZodObject<{
|
|
|
1178
1205
|
currency: z__default.ZodString;
|
|
1179
1206
|
recipient: z__default.ZodString;
|
|
1180
1207
|
amount: z__default.ZodString;
|
|
1208
|
+
executeBeforeSeconds: z__default.ZodOptional<z__default.ZodNumber>;
|
|
1181
1209
|
type: z__default.ZodLiteral<"CANTON_LIKE_SEND">;
|
|
1182
1210
|
}, z__default.core.$strip>, z__default.ZodObject<{
|
|
1183
1211
|
amount: z__default.ZodString;
|
|
@@ -1318,6 +1346,18 @@ declare const zTradelinkArbitrationRequestData: z__default.ZodObject<{
|
|
|
1318
1346
|
}, z__default.core.$strip>;
|
|
1319
1347
|
type TradelinkArbitrationRequestData = z__default.infer<typeof zTradelinkArbitrationRequestData>;
|
|
1320
1348
|
|
|
1349
|
+
declare const genCreateTransactionData: <T extends TransactionData["type"]>(opts?: {
|
|
1350
|
+
accountId?: string;
|
|
1351
|
+
transaction?: Partial<TransactionData> & {
|
|
1352
|
+
type: T;
|
|
1353
|
+
};
|
|
1354
|
+
}) => {
|
|
1355
|
+
accountId: string;
|
|
1356
|
+
transaction: Extract<TransactionData, {
|
|
1357
|
+
type: T;
|
|
1358
|
+
}>;
|
|
1359
|
+
};
|
|
1360
|
+
|
|
1321
1361
|
declare const zCreateApiKeyRequestData: z__default.ZodObject<{
|
|
1322
1362
|
name: z__default.ZodString;
|
|
1323
1363
|
entities: z__default.ZodArray<z__default.ZodString>;
|
|
@@ -1489,6 +1529,7 @@ type RequestDataTypes = {
|
|
|
1489
1529
|
type RequestWith<D> = VaultRequest & {
|
|
1490
1530
|
data: D;
|
|
1491
1531
|
};
|
|
1532
|
+
declare const genRequestData: <T extends keyof RequestDataTypes>(type: T, opts?: Partial<RequestDataTypes[T]>) => RequestDataTypes[T];
|
|
1492
1533
|
type VaultRequestOpts<T extends keyof RequestDataTypes> = {
|
|
1493
1534
|
type: T;
|
|
1494
1535
|
data: RequestDataTypes[T];
|
|
@@ -1500,5 +1541,8 @@ declare const genVaultRequestReview: (opts?: Partial<VaultRequestReview & {
|
|
|
1500
1541
|
|
|
1501
1542
|
declare function genVaultRequestResponse<T extends keyof RequestDataTypes>(opts: Parameters<typeof genVaultRequest<T>>[0], reviews?: VaultRequestReview[]): VaultRequestResponse;
|
|
1502
1543
|
declare function genAccountResponse(overrides?: Partial<Account>): AccountResponse;
|
|
1544
|
+
declare function genUserResponse(overrides?: Partial<User>): UserResponse;
|
|
1545
|
+
declare function genGroupResponse(overrides?: Partial<GroupWithMembers>): GroupResponse;
|
|
1546
|
+
declare function genWhitelistResponse(overrides?: Partial<Whitelist>): WhitelistResponse;
|
|
1503
1547
|
|
|
1504
|
-
export { genAccountResponse, genVaultRequestResponse, genVaultRequestReview };
|
|
1548
|
+
export { genAccountResponse, genCreateTransactionData, genGroupResponse, genRequestData, genUserResponse, genVaultRequestResponse, genVaultRequestReview, genWhitelistResponse };
|