@ledgerhq/revault-api 1.83.1 → 1.85.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-lib-CylpEF5I.d.mts → app-lib-D-2gZGYR.d.mts} +19477 -9305
- package/lib/fakes.d.mts +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +53 -53
- package/lib/index.mjs.map +1 -1
- package/lib/internal/app-lib.d.mts +863 -880
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Er as zOidcConfig, F as RuntimeInternalApiCapabilityProvider, I as RateLimitMetricsMeta, P as BackofficePermissionMeta, Sa as SendOnlyTransactionData, Tn as UserRole, X as BackofficePermission, Y as ActivityTracer, ai as HsmCertificate, bo as HsmWorkspaceComparison, cn as GateUserType, it as VaultRequestResponse, nn as ActivationStatus, po as Note, tt as RequestReview, un as MaintenanceMode, wa as TransactionData, wn as UserDeviceType } from "../app-lib-D-2gZGYR.mjs";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import "trpc-to-openapi";
|
|
4
4
|
//#region src/core/workspaces/schemas.d.ts
|
|
@@ -13,8 +13,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
13
13
|
debugAuthToken?: string;
|
|
14
14
|
rootAuthToken?: string;
|
|
15
15
|
backofficeRequiredPermission?: BackofficePermission;
|
|
16
|
-
core: unknown;
|
|
17
|
-
prisma: ExtendedPrismaClient;
|
|
18
16
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
19
17
|
user: {
|
|
20
18
|
id: string;
|
|
@@ -40,6 +38,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
40
38
|
authorization: string | null;
|
|
41
39
|
readOnly: boolean;
|
|
42
40
|
activityTracer: ActivityTracer;
|
|
41
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
43
42
|
};
|
|
44
43
|
meta: {
|
|
45
44
|
[x: string]: unknown;
|
|
@@ -83,8 +82,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
83
82
|
debugAuthToken?: string;
|
|
84
83
|
rootAuthToken?: string;
|
|
85
84
|
backofficeRequiredPermission?: BackofficePermission;
|
|
86
|
-
core: unknown;
|
|
87
|
-
prisma: ExtendedPrismaClient;
|
|
88
85
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
89
86
|
user: {
|
|
90
87
|
id: string;
|
|
@@ -110,6 +107,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
110
107
|
authorization: string | null;
|
|
111
108
|
readOnly: boolean;
|
|
112
109
|
activityTracer: ActivityTracer;
|
|
110
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
113
111
|
};
|
|
114
112
|
meta: {
|
|
115
113
|
[x: string]: unknown;
|
|
@@ -181,8 +179,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
181
179
|
debugAuthToken?: string;
|
|
182
180
|
rootAuthToken?: string;
|
|
183
181
|
backofficeRequiredPermission?: BackofficePermission;
|
|
184
|
-
core: unknown;
|
|
185
|
-
prisma: ExtendedPrismaClient;
|
|
186
182
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
187
183
|
user: {
|
|
188
184
|
id: string;
|
|
@@ -208,6 +204,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
208
204
|
authorization: string | null;
|
|
209
205
|
readOnly: boolean;
|
|
210
206
|
activityTracer: ActivityTracer;
|
|
207
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
211
208
|
};
|
|
212
209
|
meta: {
|
|
213
210
|
[x: string]: unknown;
|
|
@@ -430,8 +427,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
430
427
|
debugAuthToken?: string;
|
|
431
428
|
rootAuthToken?: string;
|
|
432
429
|
backofficeRequiredPermission?: BackofficePermission;
|
|
433
|
-
core: unknown;
|
|
434
|
-
prisma: ExtendedPrismaClient;
|
|
435
430
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
436
431
|
user: {
|
|
437
432
|
id: string;
|
|
@@ -457,6 +452,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
457
452
|
authorization: string | null;
|
|
458
453
|
readOnly: boolean;
|
|
459
454
|
activityTracer: ActivityTracer;
|
|
455
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
460
456
|
};
|
|
461
457
|
meta: {
|
|
462
458
|
[x: string]: unknown;
|
|
@@ -513,7 +509,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
513
509
|
workspaceName: string;
|
|
514
510
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
515
511
|
step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
|
|
516
|
-
skipWrappingKey: boolean;
|
|
517
512
|
claimedDevices: {
|
|
518
513
|
pubKey: string;
|
|
519
514
|
deviceUserId: string;
|
|
@@ -656,7 +651,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
656
651
|
workspaceName: string;
|
|
657
652
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
658
653
|
step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
|
|
659
|
-
skipWrappingKey: boolean;
|
|
660
654
|
claimedDevices: {
|
|
661
655
|
pubKey: string;
|
|
662
656
|
deviceUserId: string;
|
|
@@ -802,7 +796,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
802
796
|
workspaceName: string;
|
|
803
797
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
804
798
|
step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
|
|
805
|
-
skipWrappingKey: boolean;
|
|
806
799
|
claimedDevices: {
|
|
807
800
|
pubKey: string;
|
|
808
801
|
deviceUserId: string;
|
|
@@ -940,8 +933,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
940
933
|
debugAuthToken?: string;
|
|
941
934
|
rootAuthToken?: string;
|
|
942
935
|
backofficeRequiredPermission?: BackofficePermission;
|
|
943
|
-
core: unknown;
|
|
944
|
-
prisma: ExtendedPrismaClient;
|
|
945
936
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
946
937
|
user: {
|
|
947
938
|
id: string;
|
|
@@ -967,6 +958,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
967
958
|
authorization: string | null;
|
|
968
959
|
readOnly: boolean;
|
|
969
960
|
activityTracer: ActivityTracer;
|
|
961
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
970
962
|
};
|
|
971
963
|
meta: {
|
|
972
964
|
[x: string]: unknown;
|
|
@@ -1102,8 +1094,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1102
1094
|
debugAuthToken?: string;
|
|
1103
1095
|
rootAuthToken?: string;
|
|
1104
1096
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1105
|
-
core: unknown;
|
|
1106
|
-
prisma: ExtendedPrismaClient;
|
|
1107
1097
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1108
1098
|
user: {
|
|
1109
1099
|
id: string;
|
|
@@ -1129,6 +1119,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1129
1119
|
authorization: string | null;
|
|
1130
1120
|
readOnly: boolean;
|
|
1131
1121
|
activityTracer: ActivityTracer;
|
|
1122
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
1132
1123
|
};
|
|
1133
1124
|
meta: {
|
|
1134
1125
|
[x: string]: unknown;
|
|
@@ -1172,6 +1163,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1172
1163
|
role?: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY" | undefined;
|
|
1173
1164
|
deviceType?: "API" | "PSD" | "SOFT_PSD" | undefined;
|
|
1174
1165
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1166
|
+
id?: string | undefined;
|
|
1167
|
+
name?: string | undefined;
|
|
1175
1168
|
ids?: string[] | undefined;
|
|
1176
1169
|
sortBy?: "createdAt" | "name" | "role" | "status" | "updatedAt" | undefined;
|
|
1177
1170
|
sortOrder?: "asc" | "desc" | undefined;
|
|
@@ -1268,8 +1261,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1268
1261
|
debugAuthToken?: string;
|
|
1269
1262
|
rootAuthToken?: string;
|
|
1270
1263
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1271
|
-
core: unknown;
|
|
1272
|
-
prisma: ExtendedPrismaClient;
|
|
1273
1264
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1274
1265
|
user: {
|
|
1275
1266
|
id: string;
|
|
@@ -1295,6 +1286,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1295
1286
|
authorization: string | null;
|
|
1296
1287
|
readOnly: boolean;
|
|
1297
1288
|
activityTracer: ActivityTracer;
|
|
1289
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
1298
1290
|
};
|
|
1299
1291
|
meta: {
|
|
1300
1292
|
[x: string]: unknown;
|
|
@@ -1420,8 +1412,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1420
1412
|
debugAuthToken?: string;
|
|
1421
1413
|
rootAuthToken?: string;
|
|
1422
1414
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1423
|
-
core: unknown;
|
|
1424
|
-
prisma: ExtendedPrismaClient;
|
|
1425
1415
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1426
1416
|
user: {
|
|
1427
1417
|
id: string;
|
|
@@ -1447,6 +1437,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1447
1437
|
authorization: string | null;
|
|
1448
1438
|
readOnly: boolean;
|
|
1449
1439
|
activityTracer: ActivityTracer;
|
|
1440
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
1450
1441
|
};
|
|
1451
1442
|
meta: {
|
|
1452
1443
|
[x: string]: unknown;
|
|
@@ -1516,6 +1507,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1516
1507
|
pageSize?: number | undefined;
|
|
1517
1508
|
workspaceName?: string | string[] | undefined;
|
|
1518
1509
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1510
|
+
id?: string | undefined;
|
|
1519
1511
|
name?: string | undefined;
|
|
1520
1512
|
governanceType?: "CLASSIC" | "RAW_SIGNING" | "TRADELINK" | undefined;
|
|
1521
1513
|
sortBy?: "createdAt" | "currency" | "index" | "name" | "updatedAt" | undefined;
|
|
@@ -1745,8 +1737,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1745
1737
|
debugAuthToken?: string;
|
|
1746
1738
|
rootAuthToken?: string;
|
|
1747
1739
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1748
|
-
core: unknown;
|
|
1749
|
-
prisma: ExtendedPrismaClient;
|
|
1750
1740
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1751
1741
|
user: {
|
|
1752
1742
|
id: string;
|
|
@@ -1772,6 +1762,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1772
1762
|
authorization: string | null;
|
|
1773
1763
|
readOnly: boolean;
|
|
1774
1764
|
activityTracer: ActivityTracer;
|
|
1765
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
1775
1766
|
};
|
|
1776
1767
|
meta: {
|
|
1777
1768
|
[x: string]: unknown;
|
|
@@ -1813,6 +1804,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1813
1804
|
pageSize?: number | undefined;
|
|
1814
1805
|
workspaceName?: string | string[] | undefined;
|
|
1815
1806
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1807
|
+
id?: string | undefined;
|
|
1808
|
+
name?: string | undefined;
|
|
1816
1809
|
sortBy?: "createdAt" | "name" | "status" | "updatedAt" | undefined;
|
|
1817
1810
|
sortOrder?: "asc" | "desc" | undefined;
|
|
1818
1811
|
};
|
|
@@ -1932,8 +1925,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1932
1925
|
debugAuthToken?: string;
|
|
1933
1926
|
rootAuthToken?: string;
|
|
1934
1927
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1935
|
-
core: unknown;
|
|
1936
|
-
prisma: ExtendedPrismaClient;
|
|
1937
1928
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1938
1929
|
user: {
|
|
1939
1930
|
id: string;
|
|
@@ -1959,6 +1950,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1959
1950
|
authorization: string | null;
|
|
1960
1951
|
readOnly: boolean;
|
|
1961
1952
|
activityTracer: ActivityTracer;
|
|
1953
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
1962
1954
|
};
|
|
1963
1955
|
meta: {
|
|
1964
1956
|
[x: string]: unknown;
|
|
@@ -2000,6 +1992,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2000
1992
|
pageSize?: number | undefined;
|
|
2001
1993
|
workspaceName?: string | string[] | undefined;
|
|
2002
1994
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1995
|
+
id?: string | undefined;
|
|
1996
|
+
name?: string | undefined;
|
|
2003
1997
|
address?: string | undefined;
|
|
2004
1998
|
currency?: string | undefined;
|
|
2005
1999
|
sortBy?: "addressCount" | "createdAt" | "name" | "status" | "updatedAt" | undefined;
|
|
@@ -2107,8 +2101,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2107
2101
|
debugAuthToken?: string;
|
|
2108
2102
|
rootAuthToken?: string;
|
|
2109
2103
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2110
|
-
core: unknown;
|
|
2111
|
-
prisma: ExtendedPrismaClient;
|
|
2112
2104
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2113
2105
|
user: {
|
|
2114
2106
|
id: string;
|
|
@@ -2134,6 +2126,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2134
2126
|
authorization: string | null;
|
|
2135
2127
|
readOnly: boolean;
|
|
2136
2128
|
activityTracer: ActivityTracer;
|
|
2129
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
2137
2130
|
};
|
|
2138
2131
|
meta: {
|
|
2139
2132
|
[x: string]: unknown;
|
|
@@ -2243,8 +2236,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2243
2236
|
debugAuthToken?: string;
|
|
2244
2237
|
rootAuthToken?: string;
|
|
2245
2238
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2246
|
-
core: unknown;
|
|
2247
|
-
prisma: ExtendedPrismaClient;
|
|
2248
2239
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2249
2240
|
user: {
|
|
2250
2241
|
id: string;
|
|
@@ -2270,6 +2261,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2270
2261
|
authorization: string | null;
|
|
2271
2262
|
readOnly: boolean;
|
|
2272
2263
|
activityTracer: ActivityTracer;
|
|
2264
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
2273
2265
|
};
|
|
2274
2266
|
meta: {
|
|
2275
2267
|
[x: string]: unknown;
|
|
@@ -2651,8 +2643,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2651
2643
|
debugAuthToken?: string;
|
|
2652
2644
|
rootAuthToken?: string;
|
|
2653
2645
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2654
|
-
core: unknown;
|
|
2655
|
-
prisma: ExtendedPrismaClient;
|
|
2656
2646
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2657
2647
|
user: {
|
|
2658
2648
|
id: string;
|
|
@@ -2678,6 +2668,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2678
2668
|
authorization: string | null;
|
|
2679
2669
|
readOnly: boolean;
|
|
2680
2670
|
activityTracer: ActivityTracer;
|
|
2671
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
2681
2672
|
};
|
|
2682
2673
|
meta: {
|
|
2683
2674
|
[x: string]: unknown;
|
|
@@ -2768,8 +2759,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2768
2759
|
debugAuthToken?: string;
|
|
2769
2760
|
rootAuthToken?: string;
|
|
2770
2761
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2771
|
-
core: unknown;
|
|
2772
|
-
prisma: ExtendedPrismaClient;
|
|
2773
2762
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2774
2763
|
user: {
|
|
2775
2764
|
id: string;
|
|
@@ -2795,6 +2784,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2795
2784
|
authorization: string | null;
|
|
2796
2785
|
readOnly: boolean;
|
|
2797
2786
|
activityTracer: ActivityTracer;
|
|
2787
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
2798
2788
|
};
|
|
2799
2789
|
meta: {
|
|
2800
2790
|
[x: string]: unknown;
|
|
@@ -2973,8 +2963,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2973
2963
|
debugAuthToken?: string;
|
|
2974
2964
|
rootAuthToken?: string;
|
|
2975
2965
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2976
|
-
core: unknown;
|
|
2977
|
-
prisma: ExtendedPrismaClient;
|
|
2978
2966
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2979
2967
|
user: {
|
|
2980
2968
|
id: string;
|
|
@@ -3000,6 +2988,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3000
2988
|
authorization: string | null;
|
|
3001
2989
|
readOnly: boolean;
|
|
3002
2990
|
activityTracer: ActivityTracer;
|
|
2991
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
3003
2992
|
};
|
|
3004
2993
|
meta: {
|
|
3005
2994
|
[x: string]: unknown;
|
|
@@ -3088,71 +3077,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3088
3077
|
id: string;
|
|
3089
3078
|
};
|
|
3090
3079
|
output: ({
|
|
3091
|
-
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
3092
|
-
data: {
|
|
3093
|
-
previousPublicKeys: string[];
|
|
3094
|
-
requestedPublicKeys: string[];
|
|
3095
|
-
};
|
|
3096
|
-
id: string;
|
|
3097
|
-
legacyId: number;
|
|
3098
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3099
|
-
reviewSteps: {
|
|
3100
|
-
stageName: string;
|
|
3101
|
-
quorum: number;
|
|
3102
|
-
}[];
|
|
3103
|
-
currentStepIndex: number;
|
|
3104
|
-
expiresAt: Date;
|
|
3105
|
-
targetId: string | null;
|
|
3106
|
-
note: Note | null;
|
|
3107
|
-
reviews: RequestReview[];
|
|
3108
|
-
createdAt: Date;
|
|
3109
|
-
updatedAt: Date;
|
|
3110
|
-
createdById: string;
|
|
3111
|
-
inflight?: {
|
|
3112
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3113
|
-
retryAfter: Date;
|
|
3114
|
-
} | undefined;
|
|
3115
|
-
scanHistory?: {
|
|
3116
|
-
type: "creation" | "pre_signature";
|
|
3117
|
-
timestamp: string;
|
|
3118
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3119
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3120
|
-
message: string;
|
|
3121
|
-
tinyUrl: string;
|
|
3122
|
-
}[] | undefined;
|
|
3123
|
-
} | {
|
|
3124
|
-
type: "UPDATE_QUORUM";
|
|
3125
|
-
data: {
|
|
3126
|
-
quorum: number;
|
|
3127
|
-
};
|
|
3128
|
-
id: string;
|
|
3129
|
-
legacyId: number;
|
|
3130
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3131
|
-
reviewSteps: {
|
|
3132
|
-
stageName: string;
|
|
3133
|
-
quorum: number;
|
|
3134
|
-
}[];
|
|
3135
|
-
currentStepIndex: number;
|
|
3136
|
-
expiresAt: Date;
|
|
3137
|
-
targetId: string | null;
|
|
3138
|
-
note: Note | null;
|
|
3139
|
-
reviews: RequestReview[];
|
|
3140
|
-
createdAt: Date;
|
|
3141
|
-
updatedAt: Date;
|
|
3142
|
-
createdById: string;
|
|
3143
|
-
inflight?: {
|
|
3144
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3145
|
-
retryAfter: Date;
|
|
3146
|
-
} | undefined;
|
|
3147
|
-
scanHistory?: {
|
|
3148
|
-
type: "creation" | "pre_signature";
|
|
3149
|
-
timestamp: string;
|
|
3150
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3151
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3152
|
-
message: string;
|
|
3153
|
-
tinyUrl: string;
|
|
3154
|
-
}[] | undefined;
|
|
3155
|
-
} | {
|
|
3156
3080
|
type: "CREATE_TRANSACTION";
|
|
3157
3081
|
data: {
|
|
3158
3082
|
accountId: string;
|
|
@@ -3187,33 +3111,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3187
3111
|
tinyUrl: string;
|
|
3188
3112
|
}[] | undefined;
|
|
3189
3113
|
} | {
|
|
3190
|
-
type: "
|
|
3114
|
+
type: "UPDATE_QUORUM";
|
|
3191
3115
|
data: {
|
|
3192
|
-
|
|
3193
|
-
type: "EIP191";
|
|
3194
|
-
data: string;
|
|
3195
|
-
} | {
|
|
3196
|
-
type: "EIP712";
|
|
3197
|
-
data: {
|
|
3198
|
-
types: Record<string, {
|
|
3199
|
-
name: string;
|
|
3200
|
-
type: string;
|
|
3201
|
-
}[]>;
|
|
3202
|
-
primaryType: string;
|
|
3203
|
-
domain: Record<string, any>;
|
|
3204
|
-
message: Record<string, any>;
|
|
3205
|
-
};
|
|
3206
|
-
} | {
|
|
3207
|
-
type: "CIP8";
|
|
3208
|
-
data: string;
|
|
3209
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
3210
|
-
} | {
|
|
3211
|
-
type: "BIP137";
|
|
3212
|
-
data: string;
|
|
3213
|
-
};
|
|
3214
|
-
accountId: string;
|
|
3215
|
-
address: string;
|
|
3216
|
-
derivationPath: string;
|
|
3116
|
+
quorum: number;
|
|
3217
3117
|
};
|
|
3218
3118
|
id: string;
|
|
3219
3119
|
legacyId: number;
|
|
@@ -3279,13 +3179,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3279
3179
|
tinyUrl: string;
|
|
3280
3180
|
}[] | undefined;
|
|
3281
3181
|
} | {
|
|
3282
|
-
type: "
|
|
3182
|
+
type: "EDIT_ACCOUNT";
|
|
3283
3183
|
data: {
|
|
3284
3184
|
name: string;
|
|
3285
|
-
currency: string;
|
|
3286
|
-
contractAddress: string | null;
|
|
3287
|
-
tokenIdentifier: string | null;
|
|
3288
|
-
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
3289
3185
|
governance: {
|
|
3290
3186
|
type: "CLASSIC";
|
|
3291
3187
|
policy: {
|
|
@@ -3309,7 +3205,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3309
3205
|
};
|
|
3310
3206
|
} | {
|
|
3311
3207
|
type: "TRADELINK";
|
|
3312
|
-
assetManagerId: string;
|
|
3313
3208
|
exchangeConfigs: {
|
|
3314
3209
|
exchangeId: string;
|
|
3315
3210
|
repledgeAuthorized: boolean;
|
|
@@ -3327,10 +3222,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3327
3222
|
}[];
|
|
3328
3223
|
};
|
|
3329
3224
|
};
|
|
3330
|
-
portfolioIds?: string[] | undefined;
|
|
3331
|
-
index: number;
|
|
3332
|
-
derivationPath: string;
|
|
3333
|
-
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
3334
3225
|
};
|
|
3335
3226
|
id: string;
|
|
3336
3227
|
legacyId: number;
|
|
@@ -3360,49 +3251,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3360
3251
|
tinyUrl: string;
|
|
3361
3252
|
}[] | undefined;
|
|
3362
3253
|
} | {
|
|
3363
|
-
type: "
|
|
3254
|
+
type: "CREATE_GROUP";
|
|
3364
3255
|
data: {
|
|
3365
3256
|
name: string;
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
policy: {
|
|
3369
|
-
policyId: string;
|
|
3370
|
-
} | {
|
|
3371
|
-
rules: {
|
|
3372
|
-
reviewSteps: ({
|
|
3373
|
-
quorum: number;
|
|
3374
|
-
userIds: string[];
|
|
3375
|
-
} | {
|
|
3376
|
-
quorum: number;
|
|
3377
|
-
groupId: string;
|
|
3378
|
-
})[];
|
|
3379
|
-
threshold?: {
|
|
3380
|
-
min: string | null;
|
|
3381
|
-
max: string | null;
|
|
3382
|
-
} | undefined;
|
|
3383
|
-
whitelistIds?: string[] | undefined;
|
|
3384
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3385
|
-
}[];
|
|
3386
|
-
};
|
|
3387
|
-
} | {
|
|
3388
|
-
type: "TRADELINK";
|
|
3389
|
-
exchangeConfigs: {
|
|
3390
|
-
exchangeId: string;
|
|
3391
|
-
repledgeAuthorized: boolean;
|
|
3392
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
3393
|
-
}[];
|
|
3394
|
-
} | {
|
|
3395
|
-
type: "RAW_SIGNING";
|
|
3396
|
-
policy: {
|
|
3397
|
-
rules: {
|
|
3398
|
-
operationType: "SIGN_DIGESTS";
|
|
3399
|
-
reviewSteps: {
|
|
3400
|
-
quorum: number;
|
|
3401
|
-
userIds: string[];
|
|
3402
|
-
}[];
|
|
3403
|
-
}[];
|
|
3404
|
-
};
|
|
3405
|
-
};
|
|
3257
|
+
description: string | null;
|
|
3258
|
+
members: string[];
|
|
3406
3259
|
};
|
|
3407
3260
|
id: string;
|
|
3408
3261
|
legacyId: number;
|
|
@@ -3432,25 +3285,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3432
3285
|
tinyUrl: string;
|
|
3433
3286
|
}[] | undefined;
|
|
3434
3287
|
} | {
|
|
3435
|
-
type: "
|
|
3288
|
+
type: "EDIT_GROUP";
|
|
3436
3289
|
data: {
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
reviewSteps: ({
|
|
3441
|
-
quorum: number;
|
|
3442
|
-
userIds: string[];
|
|
3443
|
-
} | {
|
|
3444
|
-
quorum: number;
|
|
3445
|
-
groupId: string;
|
|
3446
|
-
})[];
|
|
3447
|
-
threshold?: {
|
|
3448
|
-
min: string | null;
|
|
3449
|
-
max: string | null;
|
|
3450
|
-
} | undefined;
|
|
3451
|
-
whitelistIds?: string[] | undefined;
|
|
3452
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3453
|
-
}[];
|
|
3290
|
+
name: string;
|
|
3291
|
+
description: string | null;
|
|
3292
|
+
members: string[];
|
|
3454
3293
|
};
|
|
3455
3294
|
id: string;
|
|
3456
3295
|
legacyId: number;
|
|
@@ -3480,11 +3319,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3480
3319
|
tinyUrl: string;
|
|
3481
3320
|
}[] | undefined;
|
|
3482
3321
|
} | {
|
|
3483
|
-
type: "
|
|
3322
|
+
type: "CREATE_WHITELIST";
|
|
3484
3323
|
data: {
|
|
3485
3324
|
name: string;
|
|
3486
3325
|
description: string | null;
|
|
3487
|
-
|
|
3326
|
+
addresses: {
|
|
3327
|
+
name: string;
|
|
3328
|
+
currency: string;
|
|
3329
|
+
address: string;
|
|
3330
|
+
destinationTag?: string | undefined;
|
|
3331
|
+
}[];
|
|
3332
|
+
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3488
3333
|
};
|
|
3489
3334
|
id: string;
|
|
3490
3335
|
legacyId: number;
|
|
@@ -3514,11 +3359,15 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3514
3359
|
tinyUrl: string;
|
|
3515
3360
|
}[] | undefined;
|
|
3516
3361
|
} | {
|
|
3517
|
-
type: "
|
|
3362
|
+
type: "EDIT_WHITELIST";
|
|
3518
3363
|
data: {
|
|
3519
3364
|
name: string;
|
|
3520
|
-
|
|
3521
|
-
|
|
3365
|
+
addresses: {
|
|
3366
|
+
name: string;
|
|
3367
|
+
currency: string;
|
|
3368
|
+
address: string;
|
|
3369
|
+
destinationTag?: string | undefined;
|
|
3370
|
+
}[];
|
|
3522
3371
|
};
|
|
3523
3372
|
id: string;
|
|
3524
3373
|
legacyId: number;
|
|
@@ -3548,8 +3397,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3548
3397
|
tinyUrl: string;
|
|
3549
3398
|
}[] | undefined;
|
|
3550
3399
|
} | {
|
|
3551
|
-
type: "
|
|
3552
|
-
data:
|
|
3400
|
+
type: "CREATE_ENTITY";
|
|
3401
|
+
data: {
|
|
3402
|
+
name: string;
|
|
3403
|
+
accountIds: string[];
|
|
3404
|
+
memberIds: string[];
|
|
3405
|
+
};
|
|
3553
3406
|
id: string;
|
|
3554
3407
|
legacyId: number;
|
|
3555
3408
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3578,17 +3431,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3578
3431
|
tinyUrl: string;
|
|
3579
3432
|
}[] | undefined;
|
|
3580
3433
|
} | {
|
|
3581
|
-
type: "
|
|
3434
|
+
type: "EDIT_ENTITY";
|
|
3582
3435
|
data: {
|
|
3583
3436
|
name: string;
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
name: string;
|
|
3587
|
-
currency: string;
|
|
3588
|
-
address: string;
|
|
3589
|
-
destinationTag?: string | undefined;
|
|
3590
|
-
}[];
|
|
3591
|
-
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3437
|
+
accountIds: string[];
|
|
3438
|
+
memberIds: string[];
|
|
3592
3439
|
};
|
|
3593
3440
|
id: string;
|
|
3594
3441
|
legacyId: number;
|
|
@@ -3618,16 +3465,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3618
3465
|
tinyUrl: string;
|
|
3619
3466
|
}[] | undefined;
|
|
3620
3467
|
} | {
|
|
3621
|
-
type: "
|
|
3622
|
-
data:
|
|
3623
|
-
name: string;
|
|
3624
|
-
addresses: {
|
|
3625
|
-
name: string;
|
|
3626
|
-
currency: string;
|
|
3627
|
-
address: string;
|
|
3628
|
-
destinationTag?: string | undefined;
|
|
3629
|
-
}[];
|
|
3630
|
-
};
|
|
3468
|
+
type: "REVOKE_ENTITY";
|
|
3469
|
+
data: Record<string, never>;
|
|
3631
3470
|
id: string;
|
|
3632
3471
|
legacyId: number;
|
|
3633
3472
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3656,11 +3495,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3656
3495
|
tinyUrl: string;
|
|
3657
3496
|
}[] | undefined;
|
|
3658
3497
|
} | {
|
|
3659
|
-
type: "
|
|
3498
|
+
type: "CREATE_PSD_USER";
|
|
3660
3499
|
data: {
|
|
3661
|
-
|
|
3662
|
-
accountIds: string[];
|
|
3663
|
-
memberIds: string[];
|
|
3500
|
+
registrationId: string;
|
|
3664
3501
|
};
|
|
3665
3502
|
id: string;
|
|
3666
3503
|
legacyId: number;
|
|
@@ -3690,11 +3527,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3690
3527
|
tinyUrl: string;
|
|
3691
3528
|
}[] | undefined;
|
|
3692
3529
|
} | {
|
|
3693
|
-
type: "
|
|
3530
|
+
type: "CREATE_API_USER";
|
|
3694
3531
|
data: {
|
|
3695
3532
|
name: string;
|
|
3696
|
-
|
|
3697
|
-
|
|
3533
|
+
pubKey: string;
|
|
3534
|
+
role: "ADMIN" | "OPERATOR";
|
|
3535
|
+
viewAll?: boolean | undefined;
|
|
3698
3536
|
};
|
|
3699
3537
|
id: string;
|
|
3700
3538
|
legacyId: number;
|
|
@@ -3724,7 +3562,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3724
3562
|
tinyUrl: string;
|
|
3725
3563
|
}[] | undefined;
|
|
3726
3564
|
} | {
|
|
3727
|
-
type: "
|
|
3565
|
+
type: "REVOKE_USER";
|
|
3728
3566
|
data: Record<string, never>;
|
|
3729
3567
|
id: string;
|
|
3730
3568
|
legacyId: number;
|
|
@@ -3754,9 +3592,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3754
3592
|
tinyUrl: string;
|
|
3755
3593
|
}[] | undefined;
|
|
3756
3594
|
} | {
|
|
3757
|
-
type: "
|
|
3595
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
3758
3596
|
data: {
|
|
3759
|
-
|
|
3597
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
3598
|
+
reviewConfig: {
|
|
3599
|
+
quorum: number;
|
|
3600
|
+
userIds: string[];
|
|
3601
|
+
}[];
|
|
3760
3602
|
};
|
|
3761
3603
|
id: string;
|
|
3762
3604
|
legacyId: number;
|
|
@@ -3786,15 +3628,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3786
3628
|
tinyUrl: string;
|
|
3787
3629
|
}[] | undefined;
|
|
3788
3630
|
} | {
|
|
3789
|
-
type: "
|
|
3631
|
+
type: "CREATE_POLICY";
|
|
3790
3632
|
data: {
|
|
3791
3633
|
name: string;
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3634
|
+
description: string | null;
|
|
3635
|
+
asset: {
|
|
3636
|
+
network: string;
|
|
3637
|
+
contractAddress: string | null;
|
|
3638
|
+
tokenIdentifier: string | null;
|
|
3639
|
+
} | null;
|
|
3640
|
+
govRules: {
|
|
3641
|
+
reviewSteps: ({
|
|
3642
|
+
quorum: number;
|
|
3643
|
+
userIds: string[];
|
|
3644
|
+
} | {
|
|
3645
|
+
quorum: number;
|
|
3646
|
+
groupId: string;
|
|
3647
|
+
})[];
|
|
3648
|
+
threshold?: {
|
|
3649
|
+
min: string | null;
|
|
3650
|
+
max: string | null;
|
|
3651
|
+
} | undefined;
|
|
3652
|
+
whitelistIds?: string[] | undefined;
|
|
3653
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3654
|
+
}[];
|
|
3655
|
+
};
|
|
3656
|
+
id: string;
|
|
3657
|
+
legacyId: number;
|
|
3798
3658
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3799
3659
|
reviewSteps: {
|
|
3800
3660
|
stageName: string;
|
|
@@ -3821,9 +3681,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3821
3681
|
tinyUrl: string;
|
|
3822
3682
|
}[] | undefined;
|
|
3823
3683
|
} | {
|
|
3824
|
-
type: "
|
|
3684
|
+
type: "EDIT_POLICY";
|
|
3825
3685
|
data: {
|
|
3826
3686
|
name: string;
|
|
3687
|
+
description: string | null;
|
|
3688
|
+
govRules: {
|
|
3689
|
+
reviewSteps: ({
|
|
3690
|
+
quorum: number;
|
|
3691
|
+
userIds: string[];
|
|
3692
|
+
} | {
|
|
3693
|
+
quorum: number;
|
|
3694
|
+
groupId: string;
|
|
3695
|
+
})[];
|
|
3696
|
+
threshold?: {
|
|
3697
|
+
min: string | null;
|
|
3698
|
+
max: string | null;
|
|
3699
|
+
} | undefined;
|
|
3700
|
+
whitelistIds?: string[] | undefined;
|
|
3701
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3702
|
+
}[];
|
|
3827
3703
|
};
|
|
3828
3704
|
id: string;
|
|
3829
3705
|
legacyId: number;
|
|
@@ -3853,8 +3729,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3853
3729
|
tinyUrl: string;
|
|
3854
3730
|
}[] | undefined;
|
|
3855
3731
|
} | {
|
|
3856
|
-
type: "
|
|
3857
|
-
data:
|
|
3732
|
+
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
3733
|
+
data: null;
|
|
3858
3734
|
id: string;
|
|
3859
3735
|
legacyId: number;
|
|
3860
3736
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3883,10 +3759,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3883
3759
|
tinyUrl: string;
|
|
3884
3760
|
}[] | undefined;
|
|
3885
3761
|
} | {
|
|
3886
|
-
type: "
|
|
3762
|
+
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
3887
3763
|
data: {
|
|
3888
|
-
|
|
3889
|
-
|
|
3764
|
+
settlement: {
|
|
3765
|
+
quorum: number;
|
|
3766
|
+
userIds: string[];
|
|
3767
|
+
}[];
|
|
3768
|
+
withdraw: {
|
|
3769
|
+
quorum: number;
|
|
3770
|
+
userIds: string[];
|
|
3771
|
+
}[];
|
|
3772
|
+
arbitration: {
|
|
3890
3773
|
quorum: number;
|
|
3891
3774
|
userIds: string[];
|
|
3892
3775
|
}[];
|
|
@@ -3919,13 +3802,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3919
3802
|
tinyUrl: string;
|
|
3920
3803
|
}[] | undefined;
|
|
3921
3804
|
} | {
|
|
3922
|
-
type: "
|
|
3805
|
+
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
3923
3806
|
data: {
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3807
|
+
settlement: {
|
|
3808
|
+
quorum: number;
|
|
3809
|
+
userIds: string[];
|
|
3810
|
+
}[];
|
|
3811
|
+
withdraw: {
|
|
3812
|
+
quorum: number;
|
|
3813
|
+
userIds: string[];
|
|
3814
|
+
}[];
|
|
3815
|
+
arbitration: {
|
|
3816
|
+
quorum: number;
|
|
3817
|
+
userIds: string[];
|
|
3818
|
+
}[];
|
|
3929
3819
|
};
|
|
3930
3820
|
id: string;
|
|
3931
3821
|
legacyId: number;
|
|
@@ -3955,12 +3845,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3955
3845
|
tinyUrl: string;
|
|
3956
3846
|
}[] | undefined;
|
|
3957
3847
|
} | {
|
|
3958
|
-
type: "
|
|
3848
|
+
type: "TRADELINK_CREATE_EXCHANGE";
|
|
3959
3849
|
data: {
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3850
|
+
tradelinkId: string;
|
|
3851
|
+
groups: {
|
|
3852
|
+
quorum: number;
|
|
3853
|
+
userIds: string[];
|
|
3854
|
+
}[];
|
|
3855
|
+
whitelist: {
|
|
3856
|
+
name: string;
|
|
3857
|
+
currency: string;
|
|
3858
|
+
address: string;
|
|
3859
|
+
}[];
|
|
3964
3860
|
};
|
|
3965
3861
|
id: string;
|
|
3966
3862
|
legacyId: number;
|
|
@@ -3990,11 +3886,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3990
3886
|
tinyUrl: string;
|
|
3991
3887
|
}[] | undefined;
|
|
3992
3888
|
} | {
|
|
3993
|
-
type: "
|
|
3889
|
+
type: "TRADELINK_EDIT_EXCHANGE";
|
|
3994
3890
|
data: {
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3891
|
+
tradelinkId: string;
|
|
3892
|
+
groups: {
|
|
3893
|
+
quorum: number;
|
|
3894
|
+
userIds: string[];
|
|
3895
|
+
}[];
|
|
3896
|
+
whitelist: {
|
|
3897
|
+
name: string;
|
|
3898
|
+
currency: string;
|
|
3899
|
+
address: string;
|
|
3900
|
+
}[];
|
|
3998
3901
|
};
|
|
3999
3902
|
id: string;
|
|
4000
3903
|
legacyId: number;
|
|
@@ -4024,11 +3927,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4024
3927
|
tinyUrl: string;
|
|
4025
3928
|
}[] | undefined;
|
|
4026
3929
|
} | {
|
|
4027
|
-
type: "
|
|
3930
|
+
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
4028
3931
|
data: {
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
3932
|
+
tradelinkId: string;
|
|
3933
|
+
groups: {
|
|
3934
|
+
quorum: number;
|
|
3935
|
+
userIds: string[];
|
|
3936
|
+
}[];
|
|
3937
|
+
whitelist: {
|
|
3938
|
+
name: string;
|
|
3939
|
+
currency: string;
|
|
3940
|
+
address: string;
|
|
3941
|
+
}[];
|
|
4032
3942
|
};
|
|
4033
3943
|
id: string;
|
|
4034
3944
|
legacyId: number;
|
|
@@ -4058,8 +3968,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4058
3968
|
tinyUrl: string;
|
|
4059
3969
|
}[] | undefined;
|
|
4060
3970
|
} | {
|
|
4061
|
-
type: "
|
|
4062
|
-
data:
|
|
3971
|
+
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
3972
|
+
data: {
|
|
3973
|
+
tradelinkId: string;
|
|
3974
|
+
groups: {
|
|
3975
|
+
quorum: number;
|
|
3976
|
+
userIds: string[];
|
|
3977
|
+
}[];
|
|
3978
|
+
whitelist: {
|
|
3979
|
+
name: string;
|
|
3980
|
+
currency: string;
|
|
3981
|
+
address: string;
|
|
3982
|
+
}[];
|
|
3983
|
+
};
|
|
4063
3984
|
id: string;
|
|
4064
3985
|
legacyId: number;
|
|
4065
3986
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -4088,30 +4009,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4088
4009
|
tinyUrl: string;
|
|
4089
4010
|
}[] | undefined;
|
|
4090
4011
|
} | {
|
|
4091
|
-
type: "
|
|
4012
|
+
type: "TRADELINK_ADJUST_PLEDGE";
|
|
4092
4013
|
data: {
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
network: string;
|
|
4097
|
-
contractAddress: string | null;
|
|
4098
|
-
tokenIdentifier: string | null;
|
|
4099
|
-
} | null;
|
|
4100
|
-
govRules: {
|
|
4101
|
-
reviewSteps: ({
|
|
4102
|
-
quorum: number;
|
|
4103
|
-
userIds: string[];
|
|
4104
|
-
} | {
|
|
4105
|
-
quorum: number;
|
|
4106
|
-
groupId: string;
|
|
4107
|
-
})[];
|
|
4108
|
-
threshold?: {
|
|
4109
|
-
min: string | null;
|
|
4110
|
-
max: string | null;
|
|
4111
|
-
} | undefined;
|
|
4112
|
-
whitelistIds?: string[] | undefined;
|
|
4113
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4114
|
-
}[];
|
|
4014
|
+
accountId: string;
|
|
4015
|
+
exchangeId: string;
|
|
4016
|
+
amount: string;
|
|
4115
4017
|
};
|
|
4116
4018
|
id: string;
|
|
4117
4019
|
legacyId: number;
|
|
@@ -4141,25 +4043,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4141
4043
|
tinyUrl: string;
|
|
4142
4044
|
}[] | undefined;
|
|
4143
4045
|
} | {
|
|
4144
|
-
type: "
|
|
4046
|
+
type: "TRADELINK_REPLEDGE";
|
|
4145
4047
|
data: {
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
reviewSteps: ({
|
|
4150
|
-
quorum: number;
|
|
4151
|
-
userIds: string[];
|
|
4152
|
-
} | {
|
|
4153
|
-
quorum: number;
|
|
4154
|
-
groupId: string;
|
|
4155
|
-
})[];
|
|
4156
|
-
threshold?: {
|
|
4157
|
-
min: string | null;
|
|
4158
|
-
max: string | null;
|
|
4159
|
-
} | undefined;
|
|
4160
|
-
whitelistIds?: string[] | undefined;
|
|
4161
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4162
|
-
}[];
|
|
4048
|
+
accountId: string;
|
|
4049
|
+
exchangeId: string;
|
|
4050
|
+
amount: string;
|
|
4163
4051
|
};
|
|
4164
4052
|
id: string;
|
|
4165
4053
|
legacyId: number;
|
|
@@ -4189,8 +4077,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4189
4077
|
tinyUrl: string;
|
|
4190
4078
|
}[] | undefined;
|
|
4191
4079
|
} | {
|
|
4192
|
-
type: "
|
|
4193
|
-
data:
|
|
4080
|
+
type: "TRADELINK_CREATE_SETTLEMENT";
|
|
4081
|
+
data: {
|
|
4082
|
+
accountId: string;
|
|
4083
|
+
exchangeId: string;
|
|
4084
|
+
transaction: SendOnlyTransactionData;
|
|
4085
|
+
};
|
|
4194
4086
|
id: string;
|
|
4195
4087
|
legacyId: number;
|
|
4196
4088
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -4219,20 +4111,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4219
4111
|
tinyUrl: string;
|
|
4220
4112
|
}[] | undefined;
|
|
4221
4113
|
} | {
|
|
4222
|
-
type: "
|
|
4114
|
+
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
4223
4115
|
data: {
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
userIds: string[];
|
|
4227
|
-
}[];
|
|
4228
|
-
withdraw: {
|
|
4229
|
-
quorum: number;
|
|
4230
|
-
userIds: string[];
|
|
4231
|
-
}[];
|
|
4232
|
-
arbitration: {
|
|
4233
|
-
quorum: number;
|
|
4234
|
-
userIds: string[];
|
|
4235
|
-
}[];
|
|
4116
|
+
accountId: string;
|
|
4117
|
+
exchangeId: string;
|
|
4236
4118
|
};
|
|
4237
4119
|
id: string;
|
|
4238
4120
|
legacyId: number;
|
|
@@ -4262,20 +4144,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4262
4144
|
tinyUrl: string;
|
|
4263
4145
|
}[] | undefined;
|
|
4264
4146
|
} | {
|
|
4265
|
-
type: "
|
|
4147
|
+
type: "TRADELINK_WITHDRAW";
|
|
4266
4148
|
data: {
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
userIds: string[];
|
|
4270
|
-
}[];
|
|
4271
|
-
withdraw: {
|
|
4272
|
-
quorum: number;
|
|
4273
|
-
userIds: string[];
|
|
4274
|
-
}[];
|
|
4275
|
-
arbitration: {
|
|
4276
|
-
quorum: number;
|
|
4277
|
-
userIds: string[];
|
|
4278
|
-
}[];
|
|
4149
|
+
accountId: string;
|
|
4150
|
+
transaction: SendOnlyTransactionData;
|
|
4279
4151
|
};
|
|
4280
4152
|
id: string;
|
|
4281
4153
|
legacyId: number;
|
|
@@ -4305,18 +4177,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4305
4177
|
tinyUrl: string;
|
|
4306
4178
|
}[] | undefined;
|
|
4307
4179
|
} | {
|
|
4308
|
-
type: "
|
|
4180
|
+
type: "TRADELINK_ARBITRATE";
|
|
4309
4181
|
data: {
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
quorum: number;
|
|
4313
|
-
userIds: string[];
|
|
4314
|
-
}[];
|
|
4315
|
-
whitelist: {
|
|
4316
|
-
name: string;
|
|
4317
|
-
currency: string;
|
|
4318
|
-
address: string;
|
|
4319
|
-
}[];
|
|
4182
|
+
accountId: string;
|
|
4183
|
+
transaction: SendOnlyTransactionData;
|
|
4320
4184
|
};
|
|
4321
4185
|
id: string;
|
|
4322
4186
|
legacyId: number;
|
|
@@ -4346,18 +4210,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4346
4210
|
tinyUrl: string;
|
|
4347
4211
|
}[] | undefined;
|
|
4348
4212
|
} | {
|
|
4349
|
-
type: "
|
|
4213
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
4350
4214
|
data: {
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
quorum: number;
|
|
4354
|
-
userIds: string[];
|
|
4355
|
-
}[];
|
|
4356
|
-
whitelist: {
|
|
4357
|
-
name: string;
|
|
4358
|
-
currency: string;
|
|
4359
|
-
address: string;
|
|
4360
|
-
}[];
|
|
4215
|
+
previousPublicKeys: string[];
|
|
4216
|
+
requestedPublicKeys: string[];
|
|
4361
4217
|
};
|
|
4362
4218
|
id: string;
|
|
4363
4219
|
legacyId: number;
|
|
@@ -4387,18 +4243,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4387
4243
|
tinyUrl: string;
|
|
4388
4244
|
}[] | undefined;
|
|
4389
4245
|
} | {
|
|
4390
|
-
type: "
|
|
4246
|
+
type: "SIGN_MESSAGE";
|
|
4391
4247
|
data: {
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4248
|
+
message: {
|
|
4249
|
+
type: "EIP191";
|
|
4250
|
+
data: string;
|
|
4251
|
+
} | {
|
|
4252
|
+
type: "EIP712";
|
|
4253
|
+
data: {
|
|
4254
|
+
types: Record<string, {
|
|
4255
|
+
name: string;
|
|
4256
|
+
type: string;
|
|
4257
|
+
}[]>;
|
|
4258
|
+
primaryType: string;
|
|
4259
|
+
domain: Record<string, any>;
|
|
4260
|
+
message: Record<string, any>;
|
|
4261
|
+
};
|
|
4262
|
+
} | {
|
|
4263
|
+
type: "CIP8";
|
|
4264
|
+
data: string;
|
|
4265
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
4266
|
+
} | {
|
|
4267
|
+
type: "BIP137";
|
|
4268
|
+
data: string;
|
|
4269
|
+
};
|
|
4270
|
+
accountId: string;
|
|
4271
|
+
address: string;
|
|
4272
|
+
derivationPath: string;
|
|
4402
4273
|
};
|
|
4403
4274
|
id: string;
|
|
4404
4275
|
legacyId: number;
|
|
@@ -4428,18 +4299,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4428
4299
|
tinyUrl: string;
|
|
4429
4300
|
}[] | undefined;
|
|
4430
4301
|
} | {
|
|
4431
|
-
type: "
|
|
4302
|
+
type: "CREATE_ACCOUNT";
|
|
4432
4303
|
data: {
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4304
|
+
name: string;
|
|
4305
|
+
currency: string;
|
|
4306
|
+
contractAddress: string | null;
|
|
4307
|
+
tokenIdentifier: string | null;
|
|
4308
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
4309
|
+
governance: {
|
|
4310
|
+
type: "CLASSIC";
|
|
4311
|
+
policy: {
|
|
4312
|
+
policyId: string;
|
|
4313
|
+
} | {
|
|
4314
|
+
rules: {
|
|
4315
|
+
reviewSteps: ({
|
|
4316
|
+
quorum: number;
|
|
4317
|
+
userIds: string[];
|
|
4318
|
+
} | {
|
|
4319
|
+
quorum: number;
|
|
4320
|
+
groupId: string;
|
|
4321
|
+
})[];
|
|
4322
|
+
threshold?: {
|
|
4323
|
+
min: string | null;
|
|
4324
|
+
max: string | null;
|
|
4325
|
+
} | undefined;
|
|
4326
|
+
whitelistIds?: string[] | undefined;
|
|
4327
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4328
|
+
}[];
|
|
4329
|
+
};
|
|
4330
|
+
} | {
|
|
4331
|
+
type: "TRADELINK";
|
|
4332
|
+
assetManagerId: string;
|
|
4333
|
+
exchangeConfigs: {
|
|
4334
|
+
exchangeId: string;
|
|
4335
|
+
repledgeAuthorized: boolean;
|
|
4336
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
4337
|
+
}[];
|
|
4338
|
+
} | {
|
|
4339
|
+
type: "RAW_SIGNING";
|
|
4340
|
+
policy: {
|
|
4341
|
+
rules: {
|
|
4342
|
+
operationType: "SIGN_DIGESTS";
|
|
4343
|
+
reviewSteps: {
|
|
4344
|
+
quorum: number;
|
|
4345
|
+
userIds: string[];
|
|
4346
|
+
}[];
|
|
4347
|
+
}[];
|
|
4348
|
+
};
|
|
4349
|
+
};
|
|
4350
|
+
portfolioIds?: string[] | undefined;
|
|
4351
|
+
index: number;
|
|
4352
|
+
derivationPath: string;
|
|
4353
|
+
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
4443
4354
|
};
|
|
4444
4355
|
id: string;
|
|
4445
4356
|
legacyId: number;
|
|
@@ -4469,11 +4380,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4469
4380
|
tinyUrl: string;
|
|
4470
4381
|
}[] | undefined;
|
|
4471
4382
|
} | {
|
|
4472
|
-
type: "
|
|
4383
|
+
type: "EDIT_TOKEN_RULE";
|
|
4473
4384
|
data: {
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4385
|
+
parentAccountId: string;
|
|
4386
|
+
contractAddress: string;
|
|
4387
|
+
rules: {
|
|
4388
|
+
reviewSteps: ({
|
|
4389
|
+
quorum: number;
|
|
4390
|
+
userIds: string[];
|
|
4391
|
+
} | {
|
|
4392
|
+
quorum: number;
|
|
4393
|
+
groupId: string;
|
|
4394
|
+
})[];
|
|
4395
|
+
threshold?: {
|
|
4396
|
+
min: string | null;
|
|
4397
|
+
max: string | null;
|
|
4398
|
+
} | undefined;
|
|
4399
|
+
whitelistIds?: string[] | undefined;
|
|
4400
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4401
|
+
}[];
|
|
4477
4402
|
};
|
|
4478
4403
|
id: string;
|
|
4479
4404
|
legacyId: number;
|
|
@@ -4503,11 +4428,39 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4503
4428
|
tinyUrl: string;
|
|
4504
4429
|
}[] | undefined;
|
|
4505
4430
|
} | {
|
|
4506
|
-
type: "
|
|
4431
|
+
type: "REVOKE_GROUP";
|
|
4432
|
+
data: Record<string, never>;
|
|
4433
|
+
id: string;
|
|
4434
|
+
legacyId: number;
|
|
4435
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4436
|
+
reviewSteps: {
|
|
4437
|
+
stageName: string;
|
|
4438
|
+
quorum: number;
|
|
4439
|
+
}[];
|
|
4440
|
+
currentStepIndex: number;
|
|
4441
|
+
expiresAt: Date;
|
|
4442
|
+
targetId: string | null;
|
|
4443
|
+
note: Note | null;
|
|
4444
|
+
reviews: RequestReview[];
|
|
4445
|
+
createdAt: Date;
|
|
4446
|
+
updatedAt: Date;
|
|
4447
|
+
createdById: string;
|
|
4448
|
+
inflight?: {
|
|
4449
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4450
|
+
retryAfter: Date;
|
|
4451
|
+
} | undefined;
|
|
4452
|
+
scanHistory?: {
|
|
4453
|
+
type: "creation" | "pre_signature";
|
|
4454
|
+
timestamp: string;
|
|
4455
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4456
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4457
|
+
message: string;
|
|
4458
|
+
tinyUrl: string;
|
|
4459
|
+
}[] | undefined;
|
|
4460
|
+
} | {
|
|
4461
|
+
type: "CREATE_API_USER_ACCESS";
|
|
4507
4462
|
data: {
|
|
4508
|
-
|
|
4509
|
-
exchangeId: string;
|
|
4510
|
-
amount: string;
|
|
4463
|
+
name: string;
|
|
4511
4464
|
};
|
|
4512
4465
|
id: string;
|
|
4513
4466
|
legacyId: number;
|
|
@@ -4537,11 +4490,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4537
4490
|
tinyUrl: string;
|
|
4538
4491
|
}[] | undefined;
|
|
4539
4492
|
} | {
|
|
4540
|
-
type: "
|
|
4493
|
+
type: "CREATE_SCICONFIG";
|
|
4541
4494
|
data: {
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4495
|
+
account: string;
|
|
4496
|
+
config: {
|
|
4497
|
+
dapps: string[] | null;
|
|
4498
|
+
customContractCallEnabled: boolean;
|
|
4499
|
+
};
|
|
4545
4500
|
};
|
|
4546
4501
|
id: string;
|
|
4547
4502
|
legacyId: number;
|
|
@@ -4571,10 +4526,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4571
4526
|
tinyUrl: string;
|
|
4572
4527
|
}[] | undefined;
|
|
4573
4528
|
} | {
|
|
4574
|
-
type: "
|
|
4529
|
+
type: "EDIT_SCICONFIG";
|
|
4575
4530
|
data: {
|
|
4576
|
-
|
|
4577
|
-
|
|
4531
|
+
config: {
|
|
4532
|
+
dapps: string[] | null;
|
|
4533
|
+
customContractCallEnabled: boolean;
|
|
4534
|
+
};
|
|
4578
4535
|
};
|
|
4579
4536
|
id: string;
|
|
4580
4537
|
legacyId: number;
|
|
@@ -4604,10 +4561,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4604
4561
|
tinyUrl: string;
|
|
4605
4562
|
}[] | undefined;
|
|
4606
4563
|
} | {
|
|
4607
|
-
type: "
|
|
4564
|
+
type: "CREATE_API_KEY";
|
|
4608
4565
|
data: {
|
|
4609
|
-
|
|
4610
|
-
|
|
4566
|
+
name: string;
|
|
4567
|
+
entities: string[];
|
|
4568
|
+
scopes: Record<string, never>;
|
|
4611
4569
|
};
|
|
4612
4570
|
id: string;
|
|
4613
4571
|
legacyId: number;
|
|
@@ -4637,10 +4595,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4637
4595
|
tinyUrl: string;
|
|
4638
4596
|
}[] | undefined;
|
|
4639
4597
|
} | {
|
|
4640
|
-
type: "
|
|
4598
|
+
type: "EDIT_API_KEY";
|
|
4641
4599
|
data: {
|
|
4642
|
-
|
|
4643
|
-
|
|
4600
|
+
name: string;
|
|
4601
|
+
entities: string[];
|
|
4602
|
+
scopes: Record<string, never>;
|
|
4644
4603
|
};
|
|
4645
4604
|
id: string;
|
|
4646
4605
|
legacyId: number;
|
|
@@ -4669,6 +4628,36 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4669
4628
|
message: string;
|
|
4670
4629
|
tinyUrl: string;
|
|
4671
4630
|
}[] | undefined;
|
|
4631
|
+
} | {
|
|
4632
|
+
type: "REVOKE_API_KEY";
|
|
4633
|
+
data: Record<string, never>;
|
|
4634
|
+
id: string;
|
|
4635
|
+
legacyId: number;
|
|
4636
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4637
|
+
reviewSteps: {
|
|
4638
|
+
stageName: string;
|
|
4639
|
+
quorum: number;
|
|
4640
|
+
}[];
|
|
4641
|
+
currentStepIndex: number;
|
|
4642
|
+
expiresAt: Date;
|
|
4643
|
+
targetId: string | null;
|
|
4644
|
+
note: Note | null;
|
|
4645
|
+
reviews: RequestReview[];
|
|
4646
|
+
createdAt: Date;
|
|
4647
|
+
updatedAt: Date;
|
|
4648
|
+
createdById: string;
|
|
4649
|
+
inflight?: {
|
|
4650
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4651
|
+
retryAfter: Date;
|
|
4652
|
+
} | undefined;
|
|
4653
|
+
scanHistory?: {
|
|
4654
|
+
type: "creation" | "pre_signature";
|
|
4655
|
+
timestamp: string;
|
|
4656
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4657
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4658
|
+
message: string;
|
|
4659
|
+
tinyUrl: string;
|
|
4660
|
+
}[] | undefined;
|
|
4672
4661
|
}) & {
|
|
4673
4662
|
workspaceName: string;
|
|
4674
4663
|
};
|
|
@@ -4754,8 +4743,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4754
4743
|
debugAuthToken?: string;
|
|
4755
4744
|
rootAuthToken?: string;
|
|
4756
4745
|
backofficeRequiredPermission?: BackofficePermission;
|
|
4757
|
-
core: unknown;
|
|
4758
|
-
prisma: ExtendedPrismaClient;
|
|
4759
4746
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4760
4747
|
user: {
|
|
4761
4748
|
id: string;
|
|
@@ -4781,6 +4768,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4781
4768
|
authorization: string | null;
|
|
4782
4769
|
readOnly: boolean;
|
|
4783
4770
|
activityTracer: ActivityTracer;
|
|
4771
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
4784
4772
|
};
|
|
4785
4773
|
meta: {
|
|
4786
4774
|
[x: string]: unknown;
|
|
@@ -5001,8 +4989,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5001
4989
|
debugAuthToken?: string;
|
|
5002
4990
|
rootAuthToken?: string;
|
|
5003
4991
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5004
|
-
core: unknown;
|
|
5005
|
-
prisma: ExtendedPrismaClient;
|
|
5006
4992
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5007
4993
|
user: {
|
|
5008
4994
|
id: string;
|
|
@@ -5028,6 +5014,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5028
5014
|
authorization: string | null;
|
|
5029
5015
|
readOnly: boolean;
|
|
5030
5016
|
activityTracer: ActivityTracer;
|
|
5017
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
5031
5018
|
};
|
|
5032
5019
|
meta: {
|
|
5033
5020
|
[x: string]: unknown;
|
|
@@ -5150,8 +5137,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5150
5137
|
debugAuthToken?: string;
|
|
5151
5138
|
rootAuthToken?: string;
|
|
5152
5139
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5153
|
-
core: unknown;
|
|
5154
|
-
prisma: ExtendedPrismaClient;
|
|
5155
5140
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5156
5141
|
user: {
|
|
5157
5142
|
id: string;
|
|
@@ -5177,6 +5162,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5177
5162
|
authorization: string | null;
|
|
5178
5163
|
readOnly: boolean;
|
|
5179
5164
|
activityTracer: ActivityTracer;
|
|
5165
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
5180
5166
|
};
|
|
5181
5167
|
meta: {
|
|
5182
5168
|
[x: string]: unknown;
|
|
@@ -5336,8 +5322,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5336
5322
|
debugAuthToken?: string;
|
|
5337
5323
|
rootAuthToken?: string;
|
|
5338
5324
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5339
|
-
core: unknown;
|
|
5340
|
-
prisma: ExtendedPrismaClient;
|
|
5341
5325
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5342
5326
|
user: {
|
|
5343
5327
|
id: string;
|
|
@@ -5363,6 +5347,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5363
5347
|
authorization: string | null;
|
|
5364
5348
|
readOnly: boolean;
|
|
5365
5349
|
activityTracer: ActivityTracer;
|
|
5350
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
5366
5351
|
};
|
|
5367
5352
|
meta: {
|
|
5368
5353
|
[x: string]: unknown;
|
|
@@ -5556,8 +5541,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5556
5541
|
debugAuthToken?: string;
|
|
5557
5542
|
rootAuthToken?: string;
|
|
5558
5543
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5559
|
-
core: unknown;
|
|
5560
|
-
prisma: ExtendedPrismaClient;
|
|
5561
5544
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5562
5545
|
user: {
|
|
5563
5546
|
id: string;
|
|
@@ -5583,6 +5566,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5583
5566
|
authorization: string | null;
|
|
5584
5567
|
readOnly: boolean;
|
|
5585
5568
|
activityTracer: ActivityTracer;
|
|
5569
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
5586
5570
|
};
|
|
5587
5571
|
meta: {
|
|
5588
5572
|
[x: string]: unknown;
|
|
@@ -5635,10 +5619,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5635
5619
|
pageSize: number;
|
|
5636
5620
|
total: number;
|
|
5637
5621
|
results: ({
|
|
5638
|
-
type: "
|
|
5622
|
+
type: "CREATE_TRANSACTION";
|
|
5639
5623
|
data: {
|
|
5640
|
-
|
|
5641
|
-
|
|
5624
|
+
accountId: string;
|
|
5625
|
+
transaction: TransactionData;
|
|
5626
|
+
maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
|
|
5642
5627
|
};
|
|
5643
5628
|
id: string;
|
|
5644
5629
|
legacyId: number;
|
|
@@ -5700,11 +5685,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5700
5685
|
tinyUrl: string;
|
|
5701
5686
|
}[] | undefined;
|
|
5702
5687
|
} | {
|
|
5703
|
-
type: "
|
|
5688
|
+
type: "SIGN_DIGESTS";
|
|
5704
5689
|
data: {
|
|
5705
5690
|
accountId: string;
|
|
5706
|
-
|
|
5707
|
-
|
|
5691
|
+
digests: {
|
|
5692
|
+
digest: string;
|
|
5693
|
+
derivationPath: string;
|
|
5694
|
+
}[];
|
|
5708
5695
|
};
|
|
5709
5696
|
id: string;
|
|
5710
5697
|
legacyId: number;
|
|
@@ -5734,180 +5721,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5734
5721
|
tinyUrl: string;
|
|
5735
5722
|
}[] | undefined;
|
|
5736
5723
|
} | {
|
|
5737
|
-
type: "
|
|
5738
|
-
data: {
|
|
5739
|
-
message: {
|
|
5740
|
-
type: "EIP191";
|
|
5741
|
-
data: string;
|
|
5742
|
-
} | {
|
|
5743
|
-
type: "EIP712";
|
|
5744
|
-
data: {
|
|
5745
|
-
types: Record<string, {
|
|
5746
|
-
name: string;
|
|
5747
|
-
type: string;
|
|
5748
|
-
}[]>;
|
|
5749
|
-
primaryType: string;
|
|
5750
|
-
domain: Record<string, any>;
|
|
5751
|
-
message: Record<string, any>;
|
|
5752
|
-
};
|
|
5753
|
-
} | {
|
|
5754
|
-
type: "CIP8";
|
|
5755
|
-
data: string;
|
|
5756
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
5757
|
-
} | {
|
|
5758
|
-
type: "BIP137";
|
|
5759
|
-
data: string;
|
|
5760
|
-
};
|
|
5761
|
-
accountId: string;
|
|
5762
|
-
address: string;
|
|
5763
|
-
derivationPath: string;
|
|
5764
|
-
};
|
|
5765
|
-
id: string;
|
|
5766
|
-
legacyId: number;
|
|
5767
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5768
|
-
reviewSteps: {
|
|
5769
|
-
stageName: string;
|
|
5770
|
-
quorum: number;
|
|
5771
|
-
}[];
|
|
5772
|
-
currentStepIndex: number;
|
|
5773
|
-
expiresAt: Date;
|
|
5774
|
-
targetId: string | null;
|
|
5775
|
-
note: Note | null;
|
|
5776
|
-
reviews: RequestReview[];
|
|
5777
|
-
createdAt: Date;
|
|
5778
|
-
updatedAt: Date;
|
|
5779
|
-
createdById: string;
|
|
5780
|
-
inflight?: {
|
|
5781
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5782
|
-
retryAfter: Date;
|
|
5783
|
-
} | undefined;
|
|
5784
|
-
scanHistory?: {
|
|
5785
|
-
type: "creation" | "pre_signature";
|
|
5786
|
-
timestamp: string;
|
|
5787
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5788
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5789
|
-
message: string;
|
|
5790
|
-
tinyUrl: string;
|
|
5791
|
-
}[] | undefined;
|
|
5792
|
-
} | {
|
|
5793
|
-
type: "SIGN_DIGESTS";
|
|
5794
|
-
data: {
|
|
5795
|
-
accountId: string;
|
|
5796
|
-
digests: {
|
|
5797
|
-
digest: string;
|
|
5798
|
-
derivationPath: string;
|
|
5799
|
-
}[];
|
|
5800
|
-
};
|
|
5801
|
-
id: string;
|
|
5802
|
-
legacyId: number;
|
|
5803
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5804
|
-
reviewSteps: {
|
|
5805
|
-
stageName: string;
|
|
5806
|
-
quorum: number;
|
|
5807
|
-
}[];
|
|
5808
|
-
currentStepIndex: number;
|
|
5809
|
-
expiresAt: Date;
|
|
5810
|
-
targetId: string | null;
|
|
5811
|
-
note: Note | null;
|
|
5812
|
-
reviews: RequestReview[];
|
|
5813
|
-
createdAt: Date;
|
|
5814
|
-
updatedAt: Date;
|
|
5815
|
-
createdById: string;
|
|
5816
|
-
inflight?: {
|
|
5817
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5818
|
-
retryAfter: Date;
|
|
5819
|
-
} | undefined;
|
|
5820
|
-
scanHistory?: {
|
|
5821
|
-
type: "creation" | "pre_signature";
|
|
5822
|
-
timestamp: string;
|
|
5823
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5824
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5825
|
-
message: string;
|
|
5826
|
-
tinyUrl: string;
|
|
5827
|
-
}[] | undefined;
|
|
5828
|
-
} | {
|
|
5829
|
-
type: "CREATE_ACCOUNT";
|
|
5830
|
-
data: {
|
|
5831
|
-
name: string;
|
|
5832
|
-
currency: string;
|
|
5833
|
-
contractAddress: string | null;
|
|
5834
|
-
tokenIdentifier: string | null;
|
|
5835
|
-
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
5836
|
-
governance: {
|
|
5837
|
-
type: "CLASSIC";
|
|
5838
|
-
policy: {
|
|
5839
|
-
policyId: string;
|
|
5840
|
-
} | {
|
|
5841
|
-
rules: {
|
|
5842
|
-
reviewSteps: ({
|
|
5843
|
-
quorum: number;
|
|
5844
|
-
userIds: string[];
|
|
5845
|
-
} | {
|
|
5846
|
-
quorum: number;
|
|
5847
|
-
groupId: string;
|
|
5848
|
-
})[];
|
|
5849
|
-
threshold?: {
|
|
5850
|
-
min: string | null;
|
|
5851
|
-
max: string | null;
|
|
5852
|
-
} | undefined;
|
|
5853
|
-
whitelistIds?: string[] | undefined;
|
|
5854
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5855
|
-
}[];
|
|
5856
|
-
};
|
|
5857
|
-
} | {
|
|
5858
|
-
type: "TRADELINK";
|
|
5859
|
-
assetManagerId: string;
|
|
5860
|
-
exchangeConfigs: {
|
|
5861
|
-
exchangeId: string;
|
|
5862
|
-
repledgeAuthorized: boolean;
|
|
5863
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
5864
|
-
}[];
|
|
5865
|
-
} | {
|
|
5866
|
-
type: "RAW_SIGNING";
|
|
5867
|
-
policy: {
|
|
5868
|
-
rules: {
|
|
5869
|
-
operationType: "SIGN_DIGESTS";
|
|
5870
|
-
reviewSteps: {
|
|
5871
|
-
quorum: number;
|
|
5872
|
-
userIds: string[];
|
|
5873
|
-
}[];
|
|
5874
|
-
}[];
|
|
5875
|
-
};
|
|
5876
|
-
};
|
|
5877
|
-
portfolioIds?: string[] | undefined;
|
|
5878
|
-
index: number;
|
|
5879
|
-
derivationPath: string;
|
|
5880
|
-
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
5881
|
-
};
|
|
5882
|
-
id: string;
|
|
5883
|
-
legacyId: number;
|
|
5884
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5885
|
-
reviewSteps: {
|
|
5886
|
-
stageName: string;
|
|
5887
|
-
quorum: number;
|
|
5888
|
-
}[];
|
|
5889
|
-
currentStepIndex: number;
|
|
5890
|
-
expiresAt: Date;
|
|
5891
|
-
targetId: string | null;
|
|
5892
|
-
note: Note | null;
|
|
5893
|
-
reviews: RequestReview[];
|
|
5894
|
-
createdAt: Date;
|
|
5895
|
-
updatedAt: Date;
|
|
5896
|
-
createdById: string;
|
|
5897
|
-
inflight?: {
|
|
5898
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5899
|
-
retryAfter: Date;
|
|
5900
|
-
} | undefined;
|
|
5901
|
-
scanHistory?: {
|
|
5902
|
-
type: "creation" | "pre_signature";
|
|
5903
|
-
timestamp: string;
|
|
5904
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5905
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5906
|
-
message: string;
|
|
5907
|
-
tinyUrl: string;
|
|
5908
|
-
}[] | undefined;
|
|
5909
|
-
} | {
|
|
5910
|
-
type: "EDIT_ACCOUNT";
|
|
5724
|
+
type: "EDIT_ACCOUNT";
|
|
5911
5725
|
data: {
|
|
5912
5726
|
name: string;
|
|
5913
5727
|
governance: {
|
|
@@ -5978,54 +5792,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5978
5792
|
message: string;
|
|
5979
5793
|
tinyUrl: string;
|
|
5980
5794
|
}[] | undefined;
|
|
5981
|
-
} | {
|
|
5982
|
-
type: "EDIT_TOKEN_RULE";
|
|
5983
|
-
data: {
|
|
5984
|
-
parentAccountId: string;
|
|
5985
|
-
contractAddress: string;
|
|
5986
|
-
rules: {
|
|
5987
|
-
reviewSteps: ({
|
|
5988
|
-
quorum: number;
|
|
5989
|
-
userIds: string[];
|
|
5990
|
-
} | {
|
|
5991
|
-
quorum: number;
|
|
5992
|
-
groupId: string;
|
|
5993
|
-
})[];
|
|
5994
|
-
threshold?: {
|
|
5995
|
-
min: string | null;
|
|
5996
|
-
max: string | null;
|
|
5997
|
-
} | undefined;
|
|
5998
|
-
whitelistIds?: string[] | undefined;
|
|
5999
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6000
|
-
}[];
|
|
6001
|
-
};
|
|
6002
|
-
id: string;
|
|
6003
|
-
legacyId: number;
|
|
6004
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6005
|
-
reviewSteps: {
|
|
6006
|
-
stageName: string;
|
|
6007
|
-
quorum: number;
|
|
6008
|
-
}[];
|
|
6009
|
-
currentStepIndex: number;
|
|
6010
|
-
expiresAt: Date;
|
|
6011
|
-
targetId: string | null;
|
|
6012
|
-
note: Note | null;
|
|
6013
|
-
reviews: RequestReview[];
|
|
6014
|
-
createdAt: Date;
|
|
6015
|
-
updatedAt: Date;
|
|
6016
|
-
createdById: string;
|
|
6017
|
-
inflight?: {
|
|
6018
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6019
|
-
retryAfter: Date;
|
|
6020
|
-
} | undefined;
|
|
6021
|
-
scanHistory?: {
|
|
6022
|
-
type: "creation" | "pre_signature";
|
|
6023
|
-
timestamp: string;
|
|
6024
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6025
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6026
|
-
message: string;
|
|
6027
|
-
tinyUrl: string;
|
|
6028
|
-
}[] | undefined;
|
|
6029
5795
|
} | {
|
|
6030
5796
|
type: "CREATE_GROUP";
|
|
6031
5797
|
data: {
|
|
@@ -6094,36 +5860,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6094
5860
|
message: string;
|
|
6095
5861
|
tinyUrl: string;
|
|
6096
5862
|
}[] | undefined;
|
|
6097
|
-
} | {
|
|
6098
|
-
type: "REVOKE_GROUP";
|
|
6099
|
-
data: Record<string, never>;
|
|
6100
|
-
id: string;
|
|
6101
|
-
legacyId: number;
|
|
6102
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6103
|
-
reviewSteps: {
|
|
6104
|
-
stageName: string;
|
|
6105
|
-
quorum: number;
|
|
6106
|
-
}[];
|
|
6107
|
-
currentStepIndex: number;
|
|
6108
|
-
expiresAt: Date;
|
|
6109
|
-
targetId: string | null;
|
|
6110
|
-
note: Note | null;
|
|
6111
|
-
reviews: RequestReview[];
|
|
6112
|
-
createdAt: Date;
|
|
6113
|
-
updatedAt: Date;
|
|
6114
|
-
createdById: string;
|
|
6115
|
-
inflight?: {
|
|
6116
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6117
|
-
retryAfter: Date;
|
|
6118
|
-
} | undefined;
|
|
6119
|
-
scanHistory?: {
|
|
6120
|
-
type: "creation" | "pre_signature";
|
|
6121
|
-
timestamp: string;
|
|
6122
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6123
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6124
|
-
message: string;
|
|
6125
|
-
tinyUrl: string;
|
|
6126
|
-
}[] | undefined;
|
|
6127
5863
|
} | {
|
|
6128
5864
|
type: "CREATE_WHITELIST";
|
|
6129
5865
|
data: {
|
|
@@ -6368,10 +6104,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6368
6104
|
tinyUrl: string;
|
|
6369
6105
|
}[] | undefined;
|
|
6370
6106
|
} | {
|
|
6371
|
-
type: "
|
|
6372
|
-
data:
|
|
6373
|
-
name: string;
|
|
6374
|
-
};
|
|
6107
|
+
type: "REVOKE_USER";
|
|
6108
|
+
data: Record<string, never>;
|
|
6375
6109
|
id: string;
|
|
6376
6110
|
legacyId: number;
|
|
6377
6111
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6400,8 +6134,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6400
6134
|
tinyUrl: string;
|
|
6401
6135
|
}[] | undefined;
|
|
6402
6136
|
} | {
|
|
6403
|
-
type: "
|
|
6404
|
-
data:
|
|
6137
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
6138
|
+
data: {
|
|
6139
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
6140
|
+
reviewConfig: {
|
|
6141
|
+
quorum: number;
|
|
6142
|
+
userIds: string[];
|
|
6143
|
+
}[];
|
|
6144
|
+
};
|
|
6405
6145
|
id: string;
|
|
6406
6146
|
legacyId: number;
|
|
6407
6147
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6430,212 +6170,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6430
6170
|
tinyUrl: string;
|
|
6431
6171
|
}[] | undefined;
|
|
6432
6172
|
} | {
|
|
6433
|
-
type: "
|
|
6434
|
-
data: {
|
|
6435
|
-
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
6436
|
-
reviewConfig: {
|
|
6437
|
-
quorum: number;
|
|
6438
|
-
userIds: string[];
|
|
6439
|
-
}[];
|
|
6440
|
-
};
|
|
6441
|
-
id: string;
|
|
6442
|
-
legacyId: number;
|
|
6443
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6444
|
-
reviewSteps: {
|
|
6445
|
-
stageName: string;
|
|
6446
|
-
quorum: number;
|
|
6447
|
-
}[];
|
|
6448
|
-
currentStepIndex: number;
|
|
6449
|
-
expiresAt: Date;
|
|
6450
|
-
targetId: string | null;
|
|
6451
|
-
note: Note | null;
|
|
6452
|
-
reviews: RequestReview[];
|
|
6453
|
-
createdAt: Date;
|
|
6454
|
-
updatedAt: Date;
|
|
6455
|
-
createdById: string;
|
|
6456
|
-
inflight?: {
|
|
6457
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6458
|
-
retryAfter: Date;
|
|
6459
|
-
} | undefined;
|
|
6460
|
-
scanHistory?: {
|
|
6461
|
-
type: "creation" | "pre_signature";
|
|
6462
|
-
timestamp: string;
|
|
6463
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6464
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6465
|
-
message: string;
|
|
6466
|
-
tinyUrl: string;
|
|
6467
|
-
}[] | undefined;
|
|
6468
|
-
} | {
|
|
6469
|
-
type: "CREATE_SCICONFIG";
|
|
6470
|
-
data: {
|
|
6471
|
-
account: string;
|
|
6472
|
-
config: {
|
|
6473
|
-
dapps: string[] | null;
|
|
6474
|
-
customContractCallEnabled: boolean;
|
|
6475
|
-
};
|
|
6476
|
-
};
|
|
6477
|
-
id: string;
|
|
6478
|
-
legacyId: number;
|
|
6479
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6480
|
-
reviewSteps: {
|
|
6481
|
-
stageName: string;
|
|
6482
|
-
quorum: number;
|
|
6483
|
-
}[];
|
|
6484
|
-
currentStepIndex: number;
|
|
6485
|
-
expiresAt: Date;
|
|
6486
|
-
targetId: string | null;
|
|
6487
|
-
note: Note | null;
|
|
6488
|
-
reviews: RequestReview[];
|
|
6489
|
-
createdAt: Date;
|
|
6490
|
-
updatedAt: Date;
|
|
6491
|
-
createdById: string;
|
|
6492
|
-
inflight?: {
|
|
6493
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6494
|
-
retryAfter: Date;
|
|
6495
|
-
} | undefined;
|
|
6496
|
-
scanHistory?: {
|
|
6497
|
-
type: "creation" | "pre_signature";
|
|
6498
|
-
timestamp: string;
|
|
6499
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6500
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6501
|
-
message: string;
|
|
6502
|
-
tinyUrl: string;
|
|
6503
|
-
}[] | undefined;
|
|
6504
|
-
} | {
|
|
6505
|
-
type: "EDIT_SCICONFIG";
|
|
6506
|
-
data: {
|
|
6507
|
-
config: {
|
|
6508
|
-
dapps: string[] | null;
|
|
6509
|
-
customContractCallEnabled: boolean;
|
|
6510
|
-
};
|
|
6511
|
-
};
|
|
6512
|
-
id: string;
|
|
6513
|
-
legacyId: number;
|
|
6514
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6515
|
-
reviewSteps: {
|
|
6516
|
-
stageName: string;
|
|
6517
|
-
quorum: number;
|
|
6518
|
-
}[];
|
|
6519
|
-
currentStepIndex: number;
|
|
6520
|
-
expiresAt: Date;
|
|
6521
|
-
targetId: string | null;
|
|
6522
|
-
note: Note | null;
|
|
6523
|
-
reviews: RequestReview[];
|
|
6524
|
-
createdAt: Date;
|
|
6525
|
-
updatedAt: Date;
|
|
6526
|
-
createdById: string;
|
|
6527
|
-
inflight?: {
|
|
6528
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6529
|
-
retryAfter: Date;
|
|
6530
|
-
} | undefined;
|
|
6531
|
-
scanHistory?: {
|
|
6532
|
-
type: "creation" | "pre_signature";
|
|
6533
|
-
timestamp: string;
|
|
6534
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6535
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6536
|
-
message: string;
|
|
6537
|
-
tinyUrl: string;
|
|
6538
|
-
}[] | undefined;
|
|
6539
|
-
} | {
|
|
6540
|
-
type: "CREATE_API_KEY";
|
|
6541
|
-
data: {
|
|
6542
|
-
name: string;
|
|
6543
|
-
entities: string[];
|
|
6544
|
-
scopes: Record<string, never>;
|
|
6545
|
-
};
|
|
6546
|
-
id: string;
|
|
6547
|
-
legacyId: number;
|
|
6548
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6549
|
-
reviewSteps: {
|
|
6550
|
-
stageName: string;
|
|
6551
|
-
quorum: number;
|
|
6552
|
-
}[];
|
|
6553
|
-
currentStepIndex: number;
|
|
6554
|
-
expiresAt: Date;
|
|
6555
|
-
targetId: string | null;
|
|
6556
|
-
note: Note | null;
|
|
6557
|
-
reviews: RequestReview[];
|
|
6558
|
-
createdAt: Date;
|
|
6559
|
-
updatedAt: Date;
|
|
6560
|
-
createdById: string;
|
|
6561
|
-
inflight?: {
|
|
6562
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6563
|
-
retryAfter: Date;
|
|
6564
|
-
} | undefined;
|
|
6565
|
-
scanHistory?: {
|
|
6566
|
-
type: "creation" | "pre_signature";
|
|
6567
|
-
timestamp: string;
|
|
6568
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6569
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6570
|
-
message: string;
|
|
6571
|
-
tinyUrl: string;
|
|
6572
|
-
}[] | undefined;
|
|
6573
|
-
} | {
|
|
6574
|
-
type: "EDIT_API_KEY";
|
|
6575
|
-
data: {
|
|
6576
|
-
name: string;
|
|
6577
|
-
entities: string[];
|
|
6578
|
-
scopes: Record<string, never>;
|
|
6579
|
-
};
|
|
6580
|
-
id: string;
|
|
6581
|
-
legacyId: number;
|
|
6582
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6583
|
-
reviewSteps: {
|
|
6584
|
-
stageName: string;
|
|
6585
|
-
quorum: number;
|
|
6586
|
-
}[];
|
|
6587
|
-
currentStepIndex: number;
|
|
6588
|
-
expiresAt: Date;
|
|
6589
|
-
targetId: string | null;
|
|
6590
|
-
note: Note | null;
|
|
6591
|
-
reviews: RequestReview[];
|
|
6592
|
-
createdAt: Date;
|
|
6593
|
-
updatedAt: Date;
|
|
6594
|
-
createdById: string;
|
|
6595
|
-
inflight?: {
|
|
6596
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6597
|
-
retryAfter: Date;
|
|
6598
|
-
} | undefined;
|
|
6599
|
-
scanHistory?: {
|
|
6600
|
-
type: "creation" | "pre_signature";
|
|
6601
|
-
timestamp: string;
|
|
6602
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6603
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6604
|
-
message: string;
|
|
6605
|
-
tinyUrl: string;
|
|
6606
|
-
}[] | undefined;
|
|
6607
|
-
} | {
|
|
6608
|
-
type: "REVOKE_API_KEY";
|
|
6609
|
-
data: Record<string, never>;
|
|
6610
|
-
id: string;
|
|
6611
|
-
legacyId: number;
|
|
6612
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6613
|
-
reviewSteps: {
|
|
6614
|
-
stageName: string;
|
|
6615
|
-
quorum: number;
|
|
6616
|
-
}[];
|
|
6617
|
-
currentStepIndex: number;
|
|
6618
|
-
expiresAt: Date;
|
|
6619
|
-
targetId: string | null;
|
|
6620
|
-
note: Note | null;
|
|
6621
|
-
reviews: RequestReview[];
|
|
6622
|
-
createdAt: Date;
|
|
6623
|
-
updatedAt: Date;
|
|
6624
|
-
createdById: string;
|
|
6625
|
-
inflight?: {
|
|
6626
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6627
|
-
retryAfter: Date;
|
|
6628
|
-
} | undefined;
|
|
6629
|
-
scanHistory?: {
|
|
6630
|
-
type: "creation" | "pre_signature";
|
|
6631
|
-
timestamp: string;
|
|
6632
|
-
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6633
|
-
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6634
|
-
message: string;
|
|
6635
|
-
tinyUrl: string;
|
|
6636
|
-
}[] | undefined;
|
|
6637
|
-
} | {
|
|
6638
|
-
type: "CREATE_POLICY";
|
|
6173
|
+
type: "CREATE_POLICY";
|
|
6639
6174
|
data: {
|
|
6640
6175
|
name: string;
|
|
6641
6176
|
description: string | null;
|
|
@@ -7216,6 +6751,455 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7216
6751
|
message: string;
|
|
7217
6752
|
tinyUrl: string;
|
|
7218
6753
|
}[] | undefined;
|
|
6754
|
+
} | {
|
|
6755
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
6756
|
+
data: {
|
|
6757
|
+
previousPublicKeys: string[];
|
|
6758
|
+
requestedPublicKeys: string[];
|
|
6759
|
+
};
|
|
6760
|
+
id: string;
|
|
6761
|
+
legacyId: number;
|
|
6762
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6763
|
+
reviewSteps: {
|
|
6764
|
+
stageName: string;
|
|
6765
|
+
quorum: number;
|
|
6766
|
+
}[];
|
|
6767
|
+
currentStepIndex: number;
|
|
6768
|
+
expiresAt: Date;
|
|
6769
|
+
targetId: string | null;
|
|
6770
|
+
note: Note | null;
|
|
6771
|
+
reviews: RequestReview[];
|
|
6772
|
+
createdAt: Date;
|
|
6773
|
+
updatedAt: Date;
|
|
6774
|
+
createdById: string;
|
|
6775
|
+
inflight?: {
|
|
6776
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6777
|
+
retryAfter: Date;
|
|
6778
|
+
} | undefined;
|
|
6779
|
+
scanHistory?: {
|
|
6780
|
+
type: "creation" | "pre_signature";
|
|
6781
|
+
timestamp: string;
|
|
6782
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6783
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6784
|
+
message: string;
|
|
6785
|
+
tinyUrl: string;
|
|
6786
|
+
}[] | undefined;
|
|
6787
|
+
} | {
|
|
6788
|
+
type: "SIGN_MESSAGE";
|
|
6789
|
+
data: {
|
|
6790
|
+
message: {
|
|
6791
|
+
type: "EIP191";
|
|
6792
|
+
data: string;
|
|
6793
|
+
} | {
|
|
6794
|
+
type: "EIP712";
|
|
6795
|
+
data: {
|
|
6796
|
+
types: Record<string, {
|
|
6797
|
+
name: string;
|
|
6798
|
+
type: string;
|
|
6799
|
+
}[]>;
|
|
6800
|
+
primaryType: string;
|
|
6801
|
+
domain: Record<string, any>;
|
|
6802
|
+
message: Record<string, any>;
|
|
6803
|
+
};
|
|
6804
|
+
} | {
|
|
6805
|
+
type: "CIP8";
|
|
6806
|
+
data: string;
|
|
6807
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
6808
|
+
} | {
|
|
6809
|
+
type: "BIP137";
|
|
6810
|
+
data: string;
|
|
6811
|
+
};
|
|
6812
|
+
accountId: string;
|
|
6813
|
+
address: string;
|
|
6814
|
+
derivationPath: string;
|
|
6815
|
+
};
|
|
6816
|
+
id: string;
|
|
6817
|
+
legacyId: number;
|
|
6818
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6819
|
+
reviewSteps: {
|
|
6820
|
+
stageName: string;
|
|
6821
|
+
quorum: number;
|
|
6822
|
+
}[];
|
|
6823
|
+
currentStepIndex: number;
|
|
6824
|
+
expiresAt: Date;
|
|
6825
|
+
targetId: string | null;
|
|
6826
|
+
note: Note | null;
|
|
6827
|
+
reviews: RequestReview[];
|
|
6828
|
+
createdAt: Date;
|
|
6829
|
+
updatedAt: Date;
|
|
6830
|
+
createdById: string;
|
|
6831
|
+
inflight?: {
|
|
6832
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6833
|
+
retryAfter: Date;
|
|
6834
|
+
} | undefined;
|
|
6835
|
+
scanHistory?: {
|
|
6836
|
+
type: "creation" | "pre_signature";
|
|
6837
|
+
timestamp: string;
|
|
6838
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6839
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6840
|
+
message: string;
|
|
6841
|
+
tinyUrl: string;
|
|
6842
|
+
}[] | undefined;
|
|
6843
|
+
} | {
|
|
6844
|
+
type: "CREATE_ACCOUNT";
|
|
6845
|
+
data: {
|
|
6846
|
+
name: string;
|
|
6847
|
+
currency: string;
|
|
6848
|
+
contractAddress: string | null;
|
|
6849
|
+
tokenIdentifier: string | null;
|
|
6850
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
6851
|
+
governance: {
|
|
6852
|
+
type: "CLASSIC";
|
|
6853
|
+
policy: {
|
|
6854
|
+
policyId: string;
|
|
6855
|
+
} | {
|
|
6856
|
+
rules: {
|
|
6857
|
+
reviewSteps: ({
|
|
6858
|
+
quorum: number;
|
|
6859
|
+
userIds: string[];
|
|
6860
|
+
} | {
|
|
6861
|
+
quorum: number;
|
|
6862
|
+
groupId: string;
|
|
6863
|
+
})[];
|
|
6864
|
+
threshold?: {
|
|
6865
|
+
min: string | null;
|
|
6866
|
+
max: string | null;
|
|
6867
|
+
} | undefined;
|
|
6868
|
+
whitelistIds?: string[] | undefined;
|
|
6869
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6870
|
+
}[];
|
|
6871
|
+
};
|
|
6872
|
+
} | {
|
|
6873
|
+
type: "TRADELINK";
|
|
6874
|
+
assetManagerId: string;
|
|
6875
|
+
exchangeConfigs: {
|
|
6876
|
+
exchangeId: string;
|
|
6877
|
+
repledgeAuthorized: boolean;
|
|
6878
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
6879
|
+
}[];
|
|
6880
|
+
} | {
|
|
6881
|
+
type: "RAW_SIGNING";
|
|
6882
|
+
policy: {
|
|
6883
|
+
rules: {
|
|
6884
|
+
operationType: "SIGN_DIGESTS";
|
|
6885
|
+
reviewSteps: {
|
|
6886
|
+
quorum: number;
|
|
6887
|
+
userIds: string[];
|
|
6888
|
+
}[];
|
|
6889
|
+
}[];
|
|
6890
|
+
};
|
|
6891
|
+
};
|
|
6892
|
+
portfolioIds?: string[] | undefined;
|
|
6893
|
+
index: number;
|
|
6894
|
+
derivationPath: string;
|
|
6895
|
+
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
6896
|
+
};
|
|
6897
|
+
id: string;
|
|
6898
|
+
legacyId: number;
|
|
6899
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6900
|
+
reviewSteps: {
|
|
6901
|
+
stageName: string;
|
|
6902
|
+
quorum: number;
|
|
6903
|
+
}[];
|
|
6904
|
+
currentStepIndex: number;
|
|
6905
|
+
expiresAt: Date;
|
|
6906
|
+
targetId: string | null;
|
|
6907
|
+
note: Note | null;
|
|
6908
|
+
reviews: RequestReview[];
|
|
6909
|
+
createdAt: Date;
|
|
6910
|
+
updatedAt: Date;
|
|
6911
|
+
createdById: string;
|
|
6912
|
+
inflight?: {
|
|
6913
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6914
|
+
retryAfter: Date;
|
|
6915
|
+
} | undefined;
|
|
6916
|
+
scanHistory?: {
|
|
6917
|
+
type: "creation" | "pre_signature";
|
|
6918
|
+
timestamp: string;
|
|
6919
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6920
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6921
|
+
message: string;
|
|
6922
|
+
tinyUrl: string;
|
|
6923
|
+
}[] | undefined;
|
|
6924
|
+
} | {
|
|
6925
|
+
type: "EDIT_TOKEN_RULE";
|
|
6926
|
+
data: {
|
|
6927
|
+
parentAccountId: string;
|
|
6928
|
+
contractAddress: string;
|
|
6929
|
+
rules: {
|
|
6930
|
+
reviewSteps: ({
|
|
6931
|
+
quorum: number;
|
|
6932
|
+
userIds: string[];
|
|
6933
|
+
} | {
|
|
6934
|
+
quorum: number;
|
|
6935
|
+
groupId: string;
|
|
6936
|
+
})[];
|
|
6937
|
+
threshold?: {
|
|
6938
|
+
min: string | null;
|
|
6939
|
+
max: string | null;
|
|
6940
|
+
} | undefined;
|
|
6941
|
+
whitelistIds?: string[] | undefined;
|
|
6942
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6943
|
+
}[];
|
|
6944
|
+
};
|
|
6945
|
+
id: string;
|
|
6946
|
+
legacyId: number;
|
|
6947
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6948
|
+
reviewSteps: {
|
|
6949
|
+
stageName: string;
|
|
6950
|
+
quorum: number;
|
|
6951
|
+
}[];
|
|
6952
|
+
currentStepIndex: number;
|
|
6953
|
+
expiresAt: Date;
|
|
6954
|
+
targetId: string | null;
|
|
6955
|
+
note: Note | null;
|
|
6956
|
+
reviews: RequestReview[];
|
|
6957
|
+
createdAt: Date;
|
|
6958
|
+
updatedAt: Date;
|
|
6959
|
+
createdById: string;
|
|
6960
|
+
inflight?: {
|
|
6961
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6962
|
+
retryAfter: Date;
|
|
6963
|
+
} | undefined;
|
|
6964
|
+
scanHistory?: {
|
|
6965
|
+
type: "creation" | "pre_signature";
|
|
6966
|
+
timestamp: string;
|
|
6967
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6968
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6969
|
+
message: string;
|
|
6970
|
+
tinyUrl: string;
|
|
6971
|
+
}[] | undefined;
|
|
6972
|
+
} | {
|
|
6973
|
+
type: "REVOKE_GROUP";
|
|
6974
|
+
data: Record<string, never>;
|
|
6975
|
+
id: string;
|
|
6976
|
+
legacyId: number;
|
|
6977
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6978
|
+
reviewSteps: {
|
|
6979
|
+
stageName: string;
|
|
6980
|
+
quorum: number;
|
|
6981
|
+
}[];
|
|
6982
|
+
currentStepIndex: number;
|
|
6983
|
+
expiresAt: Date;
|
|
6984
|
+
targetId: string | null;
|
|
6985
|
+
note: Note | null;
|
|
6986
|
+
reviews: RequestReview[];
|
|
6987
|
+
createdAt: Date;
|
|
6988
|
+
updatedAt: Date;
|
|
6989
|
+
createdById: string;
|
|
6990
|
+
inflight?: {
|
|
6991
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6992
|
+
retryAfter: Date;
|
|
6993
|
+
} | undefined;
|
|
6994
|
+
scanHistory?: {
|
|
6995
|
+
type: "creation" | "pre_signature";
|
|
6996
|
+
timestamp: string;
|
|
6997
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6998
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6999
|
+
message: string;
|
|
7000
|
+
tinyUrl: string;
|
|
7001
|
+
}[] | undefined;
|
|
7002
|
+
} | {
|
|
7003
|
+
type: "CREATE_API_USER_ACCESS";
|
|
7004
|
+
data: {
|
|
7005
|
+
name: string;
|
|
7006
|
+
};
|
|
7007
|
+
id: string;
|
|
7008
|
+
legacyId: number;
|
|
7009
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7010
|
+
reviewSteps: {
|
|
7011
|
+
stageName: string;
|
|
7012
|
+
quorum: number;
|
|
7013
|
+
}[];
|
|
7014
|
+
currentStepIndex: number;
|
|
7015
|
+
expiresAt: Date;
|
|
7016
|
+
targetId: string | null;
|
|
7017
|
+
note: Note | null;
|
|
7018
|
+
reviews: RequestReview[];
|
|
7019
|
+
createdAt: Date;
|
|
7020
|
+
updatedAt: Date;
|
|
7021
|
+
createdById: string;
|
|
7022
|
+
inflight?: {
|
|
7023
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7024
|
+
retryAfter: Date;
|
|
7025
|
+
} | undefined;
|
|
7026
|
+
scanHistory?: {
|
|
7027
|
+
type: "creation" | "pre_signature";
|
|
7028
|
+
timestamp: string;
|
|
7029
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7030
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7031
|
+
message: string;
|
|
7032
|
+
tinyUrl: string;
|
|
7033
|
+
}[] | undefined;
|
|
7034
|
+
} | {
|
|
7035
|
+
type: "CREATE_SCICONFIG";
|
|
7036
|
+
data: {
|
|
7037
|
+
account: string;
|
|
7038
|
+
config: {
|
|
7039
|
+
dapps: string[] | null;
|
|
7040
|
+
customContractCallEnabled: boolean;
|
|
7041
|
+
};
|
|
7042
|
+
};
|
|
7043
|
+
id: string;
|
|
7044
|
+
legacyId: number;
|
|
7045
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7046
|
+
reviewSteps: {
|
|
7047
|
+
stageName: string;
|
|
7048
|
+
quorum: number;
|
|
7049
|
+
}[];
|
|
7050
|
+
currentStepIndex: number;
|
|
7051
|
+
expiresAt: Date;
|
|
7052
|
+
targetId: string | null;
|
|
7053
|
+
note: Note | null;
|
|
7054
|
+
reviews: RequestReview[];
|
|
7055
|
+
createdAt: Date;
|
|
7056
|
+
updatedAt: Date;
|
|
7057
|
+
createdById: string;
|
|
7058
|
+
inflight?: {
|
|
7059
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7060
|
+
retryAfter: Date;
|
|
7061
|
+
} | undefined;
|
|
7062
|
+
scanHistory?: {
|
|
7063
|
+
type: "creation" | "pre_signature";
|
|
7064
|
+
timestamp: string;
|
|
7065
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7066
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7067
|
+
message: string;
|
|
7068
|
+
tinyUrl: string;
|
|
7069
|
+
}[] | undefined;
|
|
7070
|
+
} | {
|
|
7071
|
+
type: "EDIT_SCICONFIG";
|
|
7072
|
+
data: {
|
|
7073
|
+
config: {
|
|
7074
|
+
dapps: string[] | null;
|
|
7075
|
+
customContractCallEnabled: boolean;
|
|
7076
|
+
};
|
|
7077
|
+
};
|
|
7078
|
+
id: string;
|
|
7079
|
+
legacyId: number;
|
|
7080
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7081
|
+
reviewSteps: {
|
|
7082
|
+
stageName: string;
|
|
7083
|
+
quorum: number;
|
|
7084
|
+
}[];
|
|
7085
|
+
currentStepIndex: number;
|
|
7086
|
+
expiresAt: Date;
|
|
7087
|
+
targetId: string | null;
|
|
7088
|
+
note: Note | null;
|
|
7089
|
+
reviews: RequestReview[];
|
|
7090
|
+
createdAt: Date;
|
|
7091
|
+
updatedAt: Date;
|
|
7092
|
+
createdById: string;
|
|
7093
|
+
inflight?: {
|
|
7094
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7095
|
+
retryAfter: Date;
|
|
7096
|
+
} | undefined;
|
|
7097
|
+
scanHistory?: {
|
|
7098
|
+
type: "creation" | "pre_signature";
|
|
7099
|
+
timestamp: string;
|
|
7100
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7101
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7102
|
+
message: string;
|
|
7103
|
+
tinyUrl: string;
|
|
7104
|
+
}[] | undefined;
|
|
7105
|
+
} | {
|
|
7106
|
+
type: "CREATE_API_KEY";
|
|
7107
|
+
data: {
|
|
7108
|
+
name: string;
|
|
7109
|
+
entities: string[];
|
|
7110
|
+
scopes: Record<string, never>;
|
|
7111
|
+
};
|
|
7112
|
+
id: string;
|
|
7113
|
+
legacyId: number;
|
|
7114
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7115
|
+
reviewSteps: {
|
|
7116
|
+
stageName: string;
|
|
7117
|
+
quorum: number;
|
|
7118
|
+
}[];
|
|
7119
|
+
currentStepIndex: number;
|
|
7120
|
+
expiresAt: Date;
|
|
7121
|
+
targetId: string | null;
|
|
7122
|
+
note: Note | null;
|
|
7123
|
+
reviews: RequestReview[];
|
|
7124
|
+
createdAt: Date;
|
|
7125
|
+
updatedAt: Date;
|
|
7126
|
+
createdById: string;
|
|
7127
|
+
inflight?: {
|
|
7128
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7129
|
+
retryAfter: Date;
|
|
7130
|
+
} | undefined;
|
|
7131
|
+
scanHistory?: {
|
|
7132
|
+
type: "creation" | "pre_signature";
|
|
7133
|
+
timestamp: string;
|
|
7134
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7135
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7136
|
+
message: string;
|
|
7137
|
+
tinyUrl: string;
|
|
7138
|
+
}[] | undefined;
|
|
7139
|
+
} | {
|
|
7140
|
+
type: "EDIT_API_KEY";
|
|
7141
|
+
data: {
|
|
7142
|
+
name: string;
|
|
7143
|
+
entities: string[];
|
|
7144
|
+
scopes: Record<string, never>;
|
|
7145
|
+
};
|
|
7146
|
+
id: string;
|
|
7147
|
+
legacyId: number;
|
|
7148
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7149
|
+
reviewSteps: {
|
|
7150
|
+
stageName: string;
|
|
7151
|
+
quorum: number;
|
|
7152
|
+
}[];
|
|
7153
|
+
currentStepIndex: number;
|
|
7154
|
+
expiresAt: Date;
|
|
7155
|
+
targetId: string | null;
|
|
7156
|
+
note: Note | null;
|
|
7157
|
+
reviews: RequestReview[];
|
|
7158
|
+
createdAt: Date;
|
|
7159
|
+
updatedAt: Date;
|
|
7160
|
+
createdById: string;
|
|
7161
|
+
inflight?: {
|
|
7162
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7163
|
+
retryAfter: Date;
|
|
7164
|
+
} | undefined;
|
|
7165
|
+
scanHistory?: {
|
|
7166
|
+
type: "creation" | "pre_signature";
|
|
7167
|
+
timestamp: string;
|
|
7168
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7169
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7170
|
+
message: string;
|
|
7171
|
+
tinyUrl: string;
|
|
7172
|
+
}[] | undefined;
|
|
7173
|
+
} | {
|
|
7174
|
+
type: "REVOKE_API_KEY";
|
|
7175
|
+
data: Record<string, never>;
|
|
7176
|
+
id: string;
|
|
7177
|
+
legacyId: number;
|
|
7178
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7179
|
+
reviewSteps: {
|
|
7180
|
+
stageName: string;
|
|
7181
|
+
quorum: number;
|
|
7182
|
+
}[];
|
|
7183
|
+
currentStepIndex: number;
|
|
7184
|
+
expiresAt: Date;
|
|
7185
|
+
targetId: string | null;
|
|
7186
|
+
note: Note | null;
|
|
7187
|
+
reviews: RequestReview[];
|
|
7188
|
+
createdAt: Date;
|
|
7189
|
+
updatedAt: Date;
|
|
7190
|
+
createdById: string;
|
|
7191
|
+
inflight?: {
|
|
7192
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7193
|
+
retryAfter: Date;
|
|
7194
|
+
} | undefined;
|
|
7195
|
+
scanHistory?: {
|
|
7196
|
+
type: "creation" | "pre_signature";
|
|
7197
|
+
timestamp: string;
|
|
7198
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7199
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7200
|
+
message: string;
|
|
7201
|
+
tinyUrl: string;
|
|
7202
|
+
}[] | undefined;
|
|
7219
7203
|
})[];
|
|
7220
7204
|
};
|
|
7221
7205
|
meta: {
|
|
@@ -7287,8 +7271,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7287
7271
|
debugAuthToken?: string;
|
|
7288
7272
|
rootAuthToken?: string;
|
|
7289
7273
|
backofficeRequiredPermission?: BackofficePermission;
|
|
7290
|
-
core: unknown;
|
|
7291
|
-
prisma: ExtendedPrismaClient;
|
|
7292
7274
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
7293
7275
|
user: {
|
|
7294
7276
|
id: string;
|
|
@@ -7314,6 +7296,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7314
7296
|
authorization: string | null;
|
|
7315
7297
|
readOnly: boolean;
|
|
7316
7298
|
activityTracer: ActivityTracer;
|
|
7299
|
+
core: RuntimeInternalApiCapabilityProvider;
|
|
7317
7300
|
};
|
|
7318
7301
|
meta: {
|
|
7319
7302
|
[x: string]: unknown;
|