@ledgerhq/revault-api 1.83.1 → 1.84.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-Dp0IWsmF.d.mts} +9903 -2359
- package/lib/fakes.d.mts +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/internal/app-lib.d.mts +863 -856
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as zOidcConfig, En as UserRole, F as RateLimitMetricsMeta, I as RuntimeApiCapabilities, P as BackofficePermissionMeta, Tn as UserDeviceType, X as ExtendedPrismaClient, Y as ActivityTracer, Yi as SendOnlyTransactionData, Z as BackofficePermission, Zi as TransactionData, at as VaultRequestResponse, dn as MaintenanceMode, li as HsmCertificate, ln as GateUserType, nt as RequestReview, rn as ActivationStatus, ro as Note, wo as HsmWorkspaceComparison } from "../app-lib-Dp0IWsmF.mjs";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import "trpc-to-openapi";
|
|
4
4
|
//#region src/core/workspaces/schemas.d.ts
|
|
@@ -13,7 +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
16
|
prisma: ExtendedPrismaClient;
|
|
18
17
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
19
18
|
user: {
|
|
@@ -40,6 +39,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
40
39
|
authorization: string | null;
|
|
41
40
|
readOnly: boolean;
|
|
42
41
|
activityTracer: ActivityTracer;
|
|
42
|
+
core: RuntimeApiCapabilities;
|
|
43
43
|
};
|
|
44
44
|
meta: {
|
|
45
45
|
[x: string]: unknown;
|
|
@@ -83,7 +83,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
83
83
|
debugAuthToken?: string;
|
|
84
84
|
rootAuthToken?: string;
|
|
85
85
|
backofficeRequiredPermission?: BackofficePermission;
|
|
86
|
-
core: unknown;
|
|
87
86
|
prisma: ExtendedPrismaClient;
|
|
88
87
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
89
88
|
user: {
|
|
@@ -110,6 +109,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
110
109
|
authorization: string | null;
|
|
111
110
|
readOnly: boolean;
|
|
112
111
|
activityTracer: ActivityTracer;
|
|
112
|
+
core: RuntimeApiCapabilities;
|
|
113
113
|
};
|
|
114
114
|
meta: {
|
|
115
115
|
[x: string]: unknown;
|
|
@@ -181,7 +181,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
181
181
|
debugAuthToken?: string;
|
|
182
182
|
rootAuthToken?: string;
|
|
183
183
|
backofficeRequiredPermission?: BackofficePermission;
|
|
184
|
-
core: unknown;
|
|
185
184
|
prisma: ExtendedPrismaClient;
|
|
186
185
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
187
186
|
user: {
|
|
@@ -208,6 +207,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
208
207
|
authorization: string | null;
|
|
209
208
|
readOnly: boolean;
|
|
210
209
|
activityTracer: ActivityTracer;
|
|
210
|
+
core: RuntimeApiCapabilities;
|
|
211
211
|
};
|
|
212
212
|
meta: {
|
|
213
213
|
[x: string]: unknown;
|
|
@@ -430,7 +430,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
430
430
|
debugAuthToken?: string;
|
|
431
431
|
rootAuthToken?: string;
|
|
432
432
|
backofficeRequiredPermission?: BackofficePermission;
|
|
433
|
-
core: unknown;
|
|
434
433
|
prisma: ExtendedPrismaClient;
|
|
435
434
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
436
435
|
user: {
|
|
@@ -457,6 +456,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
457
456
|
authorization: string | null;
|
|
458
457
|
readOnly: boolean;
|
|
459
458
|
activityTracer: ActivityTracer;
|
|
459
|
+
core: RuntimeApiCapabilities;
|
|
460
460
|
};
|
|
461
461
|
meta: {
|
|
462
462
|
[x: string]: unknown;
|
|
@@ -940,7 +940,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
940
940
|
debugAuthToken?: string;
|
|
941
941
|
rootAuthToken?: string;
|
|
942
942
|
backofficeRequiredPermission?: BackofficePermission;
|
|
943
|
-
core: unknown;
|
|
944
943
|
prisma: ExtendedPrismaClient;
|
|
945
944
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
946
945
|
user: {
|
|
@@ -967,6 +966,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
967
966
|
authorization: string | null;
|
|
968
967
|
readOnly: boolean;
|
|
969
968
|
activityTracer: ActivityTracer;
|
|
969
|
+
core: RuntimeApiCapabilities;
|
|
970
970
|
};
|
|
971
971
|
meta: {
|
|
972
972
|
[x: string]: unknown;
|
|
@@ -1102,7 +1102,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1102
1102
|
debugAuthToken?: string;
|
|
1103
1103
|
rootAuthToken?: string;
|
|
1104
1104
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1105
|
-
core: unknown;
|
|
1106
1105
|
prisma: ExtendedPrismaClient;
|
|
1107
1106
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1108
1107
|
user: {
|
|
@@ -1129,6 +1128,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1129
1128
|
authorization: string | null;
|
|
1130
1129
|
readOnly: boolean;
|
|
1131
1130
|
activityTracer: ActivityTracer;
|
|
1131
|
+
core: RuntimeApiCapabilities;
|
|
1132
1132
|
};
|
|
1133
1133
|
meta: {
|
|
1134
1134
|
[x: string]: unknown;
|
|
@@ -1172,6 +1172,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1172
1172
|
role?: "ADMIN" | "OPERATOR" | "READ_ONLY_API_KEY" | undefined;
|
|
1173
1173
|
deviceType?: "API" | "PSD" | "SOFT_PSD" | undefined;
|
|
1174
1174
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1175
|
+
id?: string | undefined;
|
|
1176
|
+
name?: string | undefined;
|
|
1175
1177
|
ids?: string[] | undefined;
|
|
1176
1178
|
sortBy?: "createdAt" | "name" | "role" | "status" | "updatedAt" | undefined;
|
|
1177
1179
|
sortOrder?: "asc" | "desc" | undefined;
|
|
@@ -1268,7 +1270,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1268
1270
|
debugAuthToken?: string;
|
|
1269
1271
|
rootAuthToken?: string;
|
|
1270
1272
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1271
|
-
core: unknown;
|
|
1272
1273
|
prisma: ExtendedPrismaClient;
|
|
1273
1274
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1274
1275
|
user: {
|
|
@@ -1295,6 +1296,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1295
1296
|
authorization: string | null;
|
|
1296
1297
|
readOnly: boolean;
|
|
1297
1298
|
activityTracer: ActivityTracer;
|
|
1299
|
+
core: RuntimeApiCapabilities;
|
|
1298
1300
|
};
|
|
1299
1301
|
meta: {
|
|
1300
1302
|
[x: string]: unknown;
|
|
@@ -1420,7 +1422,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1420
1422
|
debugAuthToken?: string;
|
|
1421
1423
|
rootAuthToken?: string;
|
|
1422
1424
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1423
|
-
core: unknown;
|
|
1424
1425
|
prisma: ExtendedPrismaClient;
|
|
1425
1426
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1426
1427
|
user: {
|
|
@@ -1447,6 +1448,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1447
1448
|
authorization: string | null;
|
|
1448
1449
|
readOnly: boolean;
|
|
1449
1450
|
activityTracer: ActivityTracer;
|
|
1451
|
+
core: RuntimeApiCapabilities;
|
|
1450
1452
|
};
|
|
1451
1453
|
meta: {
|
|
1452
1454
|
[x: string]: unknown;
|
|
@@ -1516,6 +1518,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1516
1518
|
pageSize?: number | undefined;
|
|
1517
1519
|
workspaceName?: string | string[] | undefined;
|
|
1518
1520
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1521
|
+
id?: string | undefined;
|
|
1519
1522
|
name?: string | undefined;
|
|
1520
1523
|
governanceType?: "CLASSIC" | "RAW_SIGNING" | "TRADELINK" | undefined;
|
|
1521
1524
|
sortBy?: "createdAt" | "currency" | "index" | "name" | "updatedAt" | undefined;
|
|
@@ -1745,7 +1748,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1745
1748
|
debugAuthToken?: string;
|
|
1746
1749
|
rootAuthToken?: string;
|
|
1747
1750
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1748
|
-
core: unknown;
|
|
1749
1751
|
prisma: ExtendedPrismaClient;
|
|
1750
1752
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1751
1753
|
user: {
|
|
@@ -1772,6 +1774,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1772
1774
|
authorization: string | null;
|
|
1773
1775
|
readOnly: boolean;
|
|
1774
1776
|
activityTracer: ActivityTracer;
|
|
1777
|
+
core: RuntimeApiCapabilities;
|
|
1775
1778
|
};
|
|
1776
1779
|
meta: {
|
|
1777
1780
|
[x: string]: unknown;
|
|
@@ -1813,6 +1816,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1813
1816
|
pageSize?: number | undefined;
|
|
1814
1817
|
workspaceName?: string | string[] | undefined;
|
|
1815
1818
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
1819
|
+
id?: string | undefined;
|
|
1820
|
+
name?: string | undefined;
|
|
1816
1821
|
sortBy?: "createdAt" | "name" | "status" | "updatedAt" | undefined;
|
|
1817
1822
|
sortOrder?: "asc" | "desc" | undefined;
|
|
1818
1823
|
};
|
|
@@ -1932,7 +1937,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1932
1937
|
debugAuthToken?: string;
|
|
1933
1938
|
rootAuthToken?: string;
|
|
1934
1939
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1935
|
-
core: unknown;
|
|
1936
1940
|
prisma: ExtendedPrismaClient;
|
|
1937
1941
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1938
1942
|
user: {
|
|
@@ -1959,6 +1963,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1959
1963
|
authorization: string | null;
|
|
1960
1964
|
readOnly: boolean;
|
|
1961
1965
|
activityTracer: ActivityTracer;
|
|
1966
|
+
core: RuntimeApiCapabilities;
|
|
1962
1967
|
};
|
|
1963
1968
|
meta: {
|
|
1964
1969
|
[x: string]: unknown;
|
|
@@ -2000,6 +2005,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2000
2005
|
pageSize?: number | undefined;
|
|
2001
2006
|
workspaceName?: string | string[] | undefined;
|
|
2002
2007
|
status?: "ACTIVE" | "INACTIVE" | undefined;
|
|
2008
|
+
id?: string | undefined;
|
|
2009
|
+
name?: string | undefined;
|
|
2003
2010
|
address?: string | undefined;
|
|
2004
2011
|
currency?: string | undefined;
|
|
2005
2012
|
sortBy?: "addressCount" | "createdAt" | "name" | "status" | "updatedAt" | undefined;
|
|
@@ -2107,7 +2114,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2107
2114
|
debugAuthToken?: string;
|
|
2108
2115
|
rootAuthToken?: string;
|
|
2109
2116
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2110
|
-
core: unknown;
|
|
2111
2117
|
prisma: ExtendedPrismaClient;
|
|
2112
2118
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2113
2119
|
user: {
|
|
@@ -2134,6 +2140,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2134
2140
|
authorization: string | null;
|
|
2135
2141
|
readOnly: boolean;
|
|
2136
2142
|
activityTracer: ActivityTracer;
|
|
2143
|
+
core: RuntimeApiCapabilities;
|
|
2137
2144
|
};
|
|
2138
2145
|
meta: {
|
|
2139
2146
|
[x: string]: unknown;
|
|
@@ -2243,7 +2250,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2243
2250
|
debugAuthToken?: string;
|
|
2244
2251
|
rootAuthToken?: string;
|
|
2245
2252
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2246
|
-
core: unknown;
|
|
2247
2253
|
prisma: ExtendedPrismaClient;
|
|
2248
2254
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2249
2255
|
user: {
|
|
@@ -2270,6 +2276,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2270
2276
|
authorization: string | null;
|
|
2271
2277
|
readOnly: boolean;
|
|
2272
2278
|
activityTracer: ActivityTracer;
|
|
2279
|
+
core: RuntimeApiCapabilities;
|
|
2273
2280
|
};
|
|
2274
2281
|
meta: {
|
|
2275
2282
|
[x: string]: unknown;
|
|
@@ -2651,7 +2658,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2651
2658
|
debugAuthToken?: string;
|
|
2652
2659
|
rootAuthToken?: string;
|
|
2653
2660
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2654
|
-
core: unknown;
|
|
2655
2661
|
prisma: ExtendedPrismaClient;
|
|
2656
2662
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2657
2663
|
user: {
|
|
@@ -2678,6 +2684,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2678
2684
|
authorization: string | null;
|
|
2679
2685
|
readOnly: boolean;
|
|
2680
2686
|
activityTracer: ActivityTracer;
|
|
2687
|
+
core: RuntimeApiCapabilities;
|
|
2681
2688
|
};
|
|
2682
2689
|
meta: {
|
|
2683
2690
|
[x: string]: unknown;
|
|
@@ -2768,7 +2775,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2768
2775
|
debugAuthToken?: string;
|
|
2769
2776
|
rootAuthToken?: string;
|
|
2770
2777
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2771
|
-
core: unknown;
|
|
2772
2778
|
prisma: ExtendedPrismaClient;
|
|
2773
2779
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2774
2780
|
user: {
|
|
@@ -2795,6 +2801,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2795
2801
|
authorization: string | null;
|
|
2796
2802
|
readOnly: boolean;
|
|
2797
2803
|
activityTracer: ActivityTracer;
|
|
2804
|
+
core: RuntimeApiCapabilities;
|
|
2798
2805
|
};
|
|
2799
2806
|
meta: {
|
|
2800
2807
|
[x: string]: unknown;
|
|
@@ -2973,7 +2980,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2973
2980
|
debugAuthToken?: string;
|
|
2974
2981
|
rootAuthToken?: string;
|
|
2975
2982
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2976
|
-
core: unknown;
|
|
2977
2983
|
prisma: ExtendedPrismaClient;
|
|
2978
2984
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2979
2985
|
user: {
|
|
@@ -3000,6 +3006,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3000
3006
|
authorization: string | null;
|
|
3001
3007
|
readOnly: boolean;
|
|
3002
3008
|
activityTracer: ActivityTracer;
|
|
3009
|
+
core: RuntimeApiCapabilities;
|
|
3003
3010
|
};
|
|
3004
3011
|
meta: {
|
|
3005
3012
|
[x: string]: unknown;
|
|
@@ -3088,71 +3095,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3088
3095
|
id: string;
|
|
3089
3096
|
};
|
|
3090
3097
|
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
3098
|
type: "CREATE_TRANSACTION";
|
|
3157
3099
|
data: {
|
|
3158
3100
|
accountId: string;
|
|
@@ -3187,33 +3129,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3187
3129
|
tinyUrl: string;
|
|
3188
3130
|
}[] | undefined;
|
|
3189
3131
|
} | {
|
|
3190
|
-
type: "
|
|
3132
|
+
type: "UPDATE_QUORUM";
|
|
3191
3133
|
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;
|
|
3134
|
+
quorum: number;
|
|
3217
3135
|
};
|
|
3218
3136
|
id: string;
|
|
3219
3137
|
legacyId: number;
|
|
@@ -3279,13 +3197,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3279
3197
|
tinyUrl: string;
|
|
3280
3198
|
}[] | undefined;
|
|
3281
3199
|
} | {
|
|
3282
|
-
type: "
|
|
3200
|
+
type: "EDIT_ACCOUNT";
|
|
3283
3201
|
data: {
|
|
3284
3202
|
name: string;
|
|
3285
|
-
currency: string;
|
|
3286
|
-
contractAddress: string | null;
|
|
3287
|
-
tokenIdentifier: string | null;
|
|
3288
|
-
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
3289
3203
|
governance: {
|
|
3290
3204
|
type: "CLASSIC";
|
|
3291
3205
|
policy: {
|
|
@@ -3309,7 +3223,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3309
3223
|
};
|
|
3310
3224
|
} | {
|
|
3311
3225
|
type: "TRADELINK";
|
|
3312
|
-
assetManagerId: string;
|
|
3313
3226
|
exchangeConfigs: {
|
|
3314
3227
|
exchangeId: string;
|
|
3315
3228
|
repledgeAuthorized: boolean;
|
|
@@ -3327,10 +3240,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3327
3240
|
}[];
|
|
3328
3241
|
};
|
|
3329
3242
|
};
|
|
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
3243
|
};
|
|
3335
3244
|
id: string;
|
|
3336
3245
|
legacyId: number;
|
|
@@ -3360,49 +3269,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3360
3269
|
tinyUrl: string;
|
|
3361
3270
|
}[] | undefined;
|
|
3362
3271
|
} | {
|
|
3363
|
-
type: "
|
|
3272
|
+
type: "CREATE_GROUP";
|
|
3364
3273
|
data: {
|
|
3365
3274
|
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
|
-
};
|
|
3275
|
+
description: string | null;
|
|
3276
|
+
members: string[];
|
|
3406
3277
|
};
|
|
3407
3278
|
id: string;
|
|
3408
3279
|
legacyId: number;
|
|
@@ -3432,25 +3303,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3432
3303
|
tinyUrl: string;
|
|
3433
3304
|
}[] | undefined;
|
|
3434
3305
|
} | {
|
|
3435
|
-
type: "
|
|
3306
|
+
type: "EDIT_GROUP";
|
|
3436
3307
|
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
|
-
}[];
|
|
3308
|
+
name: string;
|
|
3309
|
+
description: string | null;
|
|
3310
|
+
members: string[];
|
|
3454
3311
|
};
|
|
3455
3312
|
id: string;
|
|
3456
3313
|
legacyId: number;
|
|
@@ -3480,11 +3337,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3480
3337
|
tinyUrl: string;
|
|
3481
3338
|
}[] | undefined;
|
|
3482
3339
|
} | {
|
|
3483
|
-
type: "
|
|
3340
|
+
type: "CREATE_WHITELIST";
|
|
3484
3341
|
data: {
|
|
3485
3342
|
name: string;
|
|
3486
3343
|
description: string | null;
|
|
3487
|
-
|
|
3344
|
+
addresses: {
|
|
3345
|
+
name: string;
|
|
3346
|
+
currency: string;
|
|
3347
|
+
address: string;
|
|
3348
|
+
destinationTag?: string | undefined;
|
|
3349
|
+
}[];
|
|
3350
|
+
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3488
3351
|
};
|
|
3489
3352
|
id: string;
|
|
3490
3353
|
legacyId: number;
|
|
@@ -3514,11 +3377,15 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3514
3377
|
tinyUrl: string;
|
|
3515
3378
|
}[] | undefined;
|
|
3516
3379
|
} | {
|
|
3517
|
-
type: "
|
|
3380
|
+
type: "EDIT_WHITELIST";
|
|
3518
3381
|
data: {
|
|
3519
3382
|
name: string;
|
|
3520
|
-
|
|
3521
|
-
|
|
3383
|
+
addresses: {
|
|
3384
|
+
name: string;
|
|
3385
|
+
currency: string;
|
|
3386
|
+
address: string;
|
|
3387
|
+
destinationTag?: string | undefined;
|
|
3388
|
+
}[];
|
|
3522
3389
|
};
|
|
3523
3390
|
id: string;
|
|
3524
3391
|
legacyId: number;
|
|
@@ -3548,8 +3415,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3548
3415
|
tinyUrl: string;
|
|
3549
3416
|
}[] | undefined;
|
|
3550
3417
|
} | {
|
|
3551
|
-
type: "
|
|
3552
|
-
data:
|
|
3418
|
+
type: "CREATE_ENTITY";
|
|
3419
|
+
data: {
|
|
3420
|
+
name: string;
|
|
3421
|
+
accountIds: string[];
|
|
3422
|
+
memberIds: string[];
|
|
3423
|
+
};
|
|
3553
3424
|
id: string;
|
|
3554
3425
|
legacyId: number;
|
|
3555
3426
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3578,17 +3449,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3578
3449
|
tinyUrl: string;
|
|
3579
3450
|
}[] | undefined;
|
|
3580
3451
|
} | {
|
|
3581
|
-
type: "
|
|
3452
|
+
type: "EDIT_ENTITY";
|
|
3582
3453
|
data: {
|
|
3583
3454
|
name: string;
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
name: string;
|
|
3587
|
-
currency: string;
|
|
3588
|
-
address: string;
|
|
3589
|
-
destinationTag?: string | undefined;
|
|
3590
|
-
}[];
|
|
3591
|
-
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3455
|
+
accountIds: string[];
|
|
3456
|
+
memberIds: string[];
|
|
3592
3457
|
};
|
|
3593
3458
|
id: string;
|
|
3594
3459
|
legacyId: number;
|
|
@@ -3618,16 +3483,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3618
3483
|
tinyUrl: string;
|
|
3619
3484
|
}[] | undefined;
|
|
3620
3485
|
} | {
|
|
3621
|
-
type: "
|
|
3622
|
-
data:
|
|
3623
|
-
name: string;
|
|
3624
|
-
addresses: {
|
|
3625
|
-
name: string;
|
|
3626
|
-
currency: string;
|
|
3627
|
-
address: string;
|
|
3628
|
-
destinationTag?: string | undefined;
|
|
3629
|
-
}[];
|
|
3630
|
-
};
|
|
3486
|
+
type: "REVOKE_ENTITY";
|
|
3487
|
+
data: Record<string, never>;
|
|
3631
3488
|
id: string;
|
|
3632
3489
|
legacyId: number;
|
|
3633
3490
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3656,11 +3513,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3656
3513
|
tinyUrl: string;
|
|
3657
3514
|
}[] | undefined;
|
|
3658
3515
|
} | {
|
|
3659
|
-
type: "
|
|
3516
|
+
type: "CREATE_PSD_USER";
|
|
3660
3517
|
data: {
|
|
3661
|
-
|
|
3662
|
-
accountIds: string[];
|
|
3663
|
-
memberIds: string[];
|
|
3518
|
+
registrationId: string;
|
|
3664
3519
|
};
|
|
3665
3520
|
id: string;
|
|
3666
3521
|
legacyId: number;
|
|
@@ -3690,11 +3545,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3690
3545
|
tinyUrl: string;
|
|
3691
3546
|
}[] | undefined;
|
|
3692
3547
|
} | {
|
|
3693
|
-
type: "
|
|
3548
|
+
type: "CREATE_API_USER";
|
|
3694
3549
|
data: {
|
|
3695
3550
|
name: string;
|
|
3696
|
-
|
|
3697
|
-
|
|
3551
|
+
pubKey: string;
|
|
3552
|
+
role: "ADMIN" | "OPERATOR";
|
|
3553
|
+
viewAll?: boolean | undefined;
|
|
3698
3554
|
};
|
|
3699
3555
|
id: string;
|
|
3700
3556
|
legacyId: number;
|
|
@@ -3724,7 +3580,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3724
3580
|
tinyUrl: string;
|
|
3725
3581
|
}[] | undefined;
|
|
3726
3582
|
} | {
|
|
3727
|
-
type: "
|
|
3583
|
+
type: "REVOKE_USER";
|
|
3728
3584
|
data: Record<string, never>;
|
|
3729
3585
|
id: string;
|
|
3730
3586
|
legacyId: number;
|
|
@@ -3754,9 +3610,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3754
3610
|
tinyUrl: string;
|
|
3755
3611
|
}[] | undefined;
|
|
3756
3612
|
} | {
|
|
3757
|
-
type: "
|
|
3613
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
3758
3614
|
data: {
|
|
3759
|
-
|
|
3615
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
3616
|
+
reviewConfig: {
|
|
3617
|
+
quorum: number;
|
|
3618
|
+
userIds: string[];
|
|
3619
|
+
}[];
|
|
3760
3620
|
};
|
|
3761
3621
|
id: string;
|
|
3762
3622
|
legacyId: number;
|
|
@@ -3786,15 +3646,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3786
3646
|
tinyUrl: string;
|
|
3787
3647
|
}[] | undefined;
|
|
3788
3648
|
} | {
|
|
3789
|
-
type: "
|
|
3649
|
+
type: "CREATE_POLICY";
|
|
3790
3650
|
data: {
|
|
3791
3651
|
name: string;
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3652
|
+
description: string | null;
|
|
3653
|
+
asset: {
|
|
3654
|
+
network: string;
|
|
3655
|
+
contractAddress: string | null;
|
|
3656
|
+
tokenIdentifier: string | null;
|
|
3657
|
+
} | null;
|
|
3658
|
+
govRules: {
|
|
3659
|
+
reviewSteps: ({
|
|
3660
|
+
quorum: number;
|
|
3661
|
+
userIds: string[];
|
|
3662
|
+
} | {
|
|
3663
|
+
quorum: number;
|
|
3664
|
+
groupId: string;
|
|
3665
|
+
})[];
|
|
3666
|
+
threshold?: {
|
|
3667
|
+
min: string | null;
|
|
3668
|
+
max: string | null;
|
|
3669
|
+
} | undefined;
|
|
3670
|
+
whitelistIds?: string[] | undefined;
|
|
3671
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3672
|
+
}[];
|
|
3673
|
+
};
|
|
3674
|
+
id: string;
|
|
3675
|
+
legacyId: number;
|
|
3798
3676
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3799
3677
|
reviewSteps: {
|
|
3800
3678
|
stageName: string;
|
|
@@ -3821,9 +3699,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3821
3699
|
tinyUrl: string;
|
|
3822
3700
|
}[] | undefined;
|
|
3823
3701
|
} | {
|
|
3824
|
-
type: "
|
|
3702
|
+
type: "EDIT_POLICY";
|
|
3825
3703
|
data: {
|
|
3826
3704
|
name: string;
|
|
3705
|
+
description: string | null;
|
|
3706
|
+
govRules: {
|
|
3707
|
+
reviewSteps: ({
|
|
3708
|
+
quorum: number;
|
|
3709
|
+
userIds: string[];
|
|
3710
|
+
} | {
|
|
3711
|
+
quorum: number;
|
|
3712
|
+
groupId: string;
|
|
3713
|
+
})[];
|
|
3714
|
+
threshold?: {
|
|
3715
|
+
min: string | null;
|
|
3716
|
+
max: string | null;
|
|
3717
|
+
} | undefined;
|
|
3718
|
+
whitelistIds?: string[] | undefined;
|
|
3719
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3720
|
+
}[];
|
|
3827
3721
|
};
|
|
3828
3722
|
id: string;
|
|
3829
3723
|
legacyId: number;
|
|
@@ -3853,8 +3747,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3853
3747
|
tinyUrl: string;
|
|
3854
3748
|
}[] | undefined;
|
|
3855
3749
|
} | {
|
|
3856
|
-
type: "
|
|
3857
|
-
data:
|
|
3750
|
+
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
3751
|
+
data: null;
|
|
3858
3752
|
id: string;
|
|
3859
3753
|
legacyId: number;
|
|
3860
3754
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3883,10 +3777,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3883
3777
|
tinyUrl: string;
|
|
3884
3778
|
}[] | undefined;
|
|
3885
3779
|
} | {
|
|
3886
|
-
type: "
|
|
3780
|
+
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
3887
3781
|
data: {
|
|
3888
|
-
|
|
3889
|
-
|
|
3782
|
+
settlement: {
|
|
3783
|
+
quorum: number;
|
|
3784
|
+
userIds: string[];
|
|
3785
|
+
}[];
|
|
3786
|
+
withdraw: {
|
|
3787
|
+
quorum: number;
|
|
3788
|
+
userIds: string[];
|
|
3789
|
+
}[];
|
|
3790
|
+
arbitration: {
|
|
3890
3791
|
quorum: number;
|
|
3891
3792
|
userIds: string[];
|
|
3892
3793
|
}[];
|
|
@@ -3919,13 +3820,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3919
3820
|
tinyUrl: string;
|
|
3920
3821
|
}[] | undefined;
|
|
3921
3822
|
} | {
|
|
3922
|
-
type: "
|
|
3823
|
+
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
3923
3824
|
data: {
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3825
|
+
settlement: {
|
|
3826
|
+
quorum: number;
|
|
3827
|
+
userIds: string[];
|
|
3828
|
+
}[];
|
|
3829
|
+
withdraw: {
|
|
3830
|
+
quorum: number;
|
|
3831
|
+
userIds: string[];
|
|
3832
|
+
}[];
|
|
3833
|
+
arbitration: {
|
|
3834
|
+
quorum: number;
|
|
3835
|
+
userIds: string[];
|
|
3836
|
+
}[];
|
|
3929
3837
|
};
|
|
3930
3838
|
id: string;
|
|
3931
3839
|
legacyId: number;
|
|
@@ -3955,12 +3863,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3955
3863
|
tinyUrl: string;
|
|
3956
3864
|
}[] | undefined;
|
|
3957
3865
|
} | {
|
|
3958
|
-
type: "
|
|
3866
|
+
type: "TRADELINK_CREATE_EXCHANGE";
|
|
3959
3867
|
data: {
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3868
|
+
tradelinkId: string;
|
|
3869
|
+
groups: {
|
|
3870
|
+
quorum: number;
|
|
3871
|
+
userIds: string[];
|
|
3872
|
+
}[];
|
|
3873
|
+
whitelist: {
|
|
3874
|
+
name: string;
|
|
3875
|
+
currency: string;
|
|
3876
|
+
address: string;
|
|
3877
|
+
}[];
|
|
3964
3878
|
};
|
|
3965
3879
|
id: string;
|
|
3966
3880
|
legacyId: number;
|
|
@@ -3990,11 +3904,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3990
3904
|
tinyUrl: string;
|
|
3991
3905
|
}[] | undefined;
|
|
3992
3906
|
} | {
|
|
3993
|
-
type: "
|
|
3907
|
+
type: "TRADELINK_EDIT_EXCHANGE";
|
|
3994
3908
|
data: {
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3909
|
+
tradelinkId: string;
|
|
3910
|
+
groups: {
|
|
3911
|
+
quorum: number;
|
|
3912
|
+
userIds: string[];
|
|
3913
|
+
}[];
|
|
3914
|
+
whitelist: {
|
|
3915
|
+
name: string;
|
|
3916
|
+
currency: string;
|
|
3917
|
+
address: string;
|
|
3918
|
+
}[];
|
|
3998
3919
|
};
|
|
3999
3920
|
id: string;
|
|
4000
3921
|
legacyId: number;
|
|
@@ -4024,11 +3945,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4024
3945
|
tinyUrl: string;
|
|
4025
3946
|
}[] | undefined;
|
|
4026
3947
|
} | {
|
|
4027
|
-
type: "
|
|
3948
|
+
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
4028
3949
|
data: {
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
3950
|
+
tradelinkId: string;
|
|
3951
|
+
groups: {
|
|
3952
|
+
quorum: number;
|
|
3953
|
+
userIds: string[];
|
|
3954
|
+
}[];
|
|
3955
|
+
whitelist: {
|
|
3956
|
+
name: string;
|
|
3957
|
+
currency: string;
|
|
3958
|
+
address: string;
|
|
3959
|
+
}[];
|
|
4032
3960
|
};
|
|
4033
3961
|
id: string;
|
|
4034
3962
|
legacyId: number;
|
|
@@ -4058,8 +3986,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4058
3986
|
tinyUrl: string;
|
|
4059
3987
|
}[] | undefined;
|
|
4060
3988
|
} | {
|
|
4061
|
-
type: "
|
|
4062
|
-
data:
|
|
3989
|
+
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
3990
|
+
data: {
|
|
3991
|
+
tradelinkId: string;
|
|
3992
|
+
groups: {
|
|
3993
|
+
quorum: number;
|
|
3994
|
+
userIds: string[];
|
|
3995
|
+
}[];
|
|
3996
|
+
whitelist: {
|
|
3997
|
+
name: string;
|
|
3998
|
+
currency: string;
|
|
3999
|
+
address: string;
|
|
4000
|
+
}[];
|
|
4001
|
+
};
|
|
4063
4002
|
id: string;
|
|
4064
4003
|
legacyId: number;
|
|
4065
4004
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -4088,30 +4027,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4088
4027
|
tinyUrl: string;
|
|
4089
4028
|
}[] | undefined;
|
|
4090
4029
|
} | {
|
|
4091
|
-
type: "
|
|
4030
|
+
type: "TRADELINK_ADJUST_PLEDGE";
|
|
4092
4031
|
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
|
-
}[];
|
|
4032
|
+
accountId: string;
|
|
4033
|
+
exchangeId: string;
|
|
4034
|
+
amount: string;
|
|
4115
4035
|
};
|
|
4116
4036
|
id: string;
|
|
4117
4037
|
legacyId: number;
|
|
@@ -4141,25 +4061,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4141
4061
|
tinyUrl: string;
|
|
4142
4062
|
}[] | undefined;
|
|
4143
4063
|
} | {
|
|
4144
|
-
type: "
|
|
4064
|
+
type: "TRADELINK_REPLEDGE";
|
|
4145
4065
|
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
|
-
}[];
|
|
4066
|
+
accountId: string;
|
|
4067
|
+
exchangeId: string;
|
|
4068
|
+
amount: string;
|
|
4163
4069
|
};
|
|
4164
4070
|
id: string;
|
|
4165
4071
|
legacyId: number;
|
|
@@ -4189,8 +4095,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4189
4095
|
tinyUrl: string;
|
|
4190
4096
|
}[] | undefined;
|
|
4191
4097
|
} | {
|
|
4192
|
-
type: "
|
|
4193
|
-
data:
|
|
4098
|
+
type: "TRADELINK_CREATE_SETTLEMENT";
|
|
4099
|
+
data: {
|
|
4100
|
+
accountId: string;
|
|
4101
|
+
exchangeId: string;
|
|
4102
|
+
transaction: SendOnlyTransactionData;
|
|
4103
|
+
};
|
|
4194
4104
|
id: string;
|
|
4195
4105
|
legacyId: number;
|
|
4196
4106
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -4219,20 +4129,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4219
4129
|
tinyUrl: string;
|
|
4220
4130
|
}[] | undefined;
|
|
4221
4131
|
} | {
|
|
4222
|
-
type: "
|
|
4132
|
+
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
4223
4133
|
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
|
-
}[];
|
|
4134
|
+
accountId: string;
|
|
4135
|
+
exchangeId: string;
|
|
4236
4136
|
};
|
|
4237
4137
|
id: string;
|
|
4238
4138
|
legacyId: number;
|
|
@@ -4262,20 +4162,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4262
4162
|
tinyUrl: string;
|
|
4263
4163
|
}[] | undefined;
|
|
4264
4164
|
} | {
|
|
4265
|
-
type: "
|
|
4165
|
+
type: "TRADELINK_WITHDRAW";
|
|
4266
4166
|
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
|
-
}[];
|
|
4167
|
+
accountId: string;
|
|
4168
|
+
transaction: SendOnlyTransactionData;
|
|
4279
4169
|
};
|
|
4280
4170
|
id: string;
|
|
4281
4171
|
legacyId: number;
|
|
@@ -4305,18 +4195,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4305
4195
|
tinyUrl: string;
|
|
4306
4196
|
}[] | undefined;
|
|
4307
4197
|
} | {
|
|
4308
|
-
type: "
|
|
4198
|
+
type: "TRADELINK_ARBITRATE";
|
|
4309
4199
|
data: {
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
quorum: number;
|
|
4313
|
-
userIds: string[];
|
|
4314
|
-
}[];
|
|
4315
|
-
whitelist: {
|
|
4316
|
-
name: string;
|
|
4317
|
-
currency: string;
|
|
4318
|
-
address: string;
|
|
4319
|
-
}[];
|
|
4200
|
+
accountId: string;
|
|
4201
|
+
transaction: SendOnlyTransactionData;
|
|
4320
4202
|
};
|
|
4321
4203
|
id: string;
|
|
4322
4204
|
legacyId: number;
|
|
@@ -4346,18 +4228,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4346
4228
|
tinyUrl: string;
|
|
4347
4229
|
}[] | undefined;
|
|
4348
4230
|
} | {
|
|
4349
|
-
type: "
|
|
4231
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
4350
4232
|
data: {
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
quorum: number;
|
|
4354
|
-
userIds: string[];
|
|
4355
|
-
}[];
|
|
4356
|
-
whitelist: {
|
|
4357
|
-
name: string;
|
|
4358
|
-
currency: string;
|
|
4359
|
-
address: string;
|
|
4360
|
-
}[];
|
|
4233
|
+
previousPublicKeys: string[];
|
|
4234
|
+
requestedPublicKeys: string[];
|
|
4361
4235
|
};
|
|
4362
4236
|
id: string;
|
|
4363
4237
|
legacyId: number;
|
|
@@ -4387,18 +4261,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4387
4261
|
tinyUrl: string;
|
|
4388
4262
|
}[] | undefined;
|
|
4389
4263
|
} | {
|
|
4390
|
-
type: "
|
|
4264
|
+
type: "SIGN_MESSAGE";
|
|
4391
4265
|
data: {
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4266
|
+
message: {
|
|
4267
|
+
type: "EIP191";
|
|
4268
|
+
data: string;
|
|
4269
|
+
} | {
|
|
4270
|
+
type: "EIP712";
|
|
4271
|
+
data: {
|
|
4272
|
+
types: Record<string, {
|
|
4273
|
+
name: string;
|
|
4274
|
+
type: string;
|
|
4275
|
+
}[]>;
|
|
4276
|
+
primaryType: string;
|
|
4277
|
+
domain: Record<string, any>;
|
|
4278
|
+
message: Record<string, any>;
|
|
4279
|
+
};
|
|
4280
|
+
} | {
|
|
4281
|
+
type: "CIP8";
|
|
4282
|
+
data: string;
|
|
4283
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
4284
|
+
} | {
|
|
4285
|
+
type: "BIP137";
|
|
4286
|
+
data: string;
|
|
4287
|
+
};
|
|
4288
|
+
accountId: string;
|
|
4289
|
+
address: string;
|
|
4290
|
+
derivationPath: string;
|
|
4402
4291
|
};
|
|
4403
4292
|
id: string;
|
|
4404
4293
|
legacyId: number;
|
|
@@ -4428,18 +4317,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4428
4317
|
tinyUrl: string;
|
|
4429
4318
|
}[] | undefined;
|
|
4430
4319
|
} | {
|
|
4431
|
-
type: "
|
|
4320
|
+
type: "CREATE_ACCOUNT";
|
|
4432
4321
|
data: {
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4322
|
+
name: string;
|
|
4323
|
+
currency: string;
|
|
4324
|
+
contractAddress: string | null;
|
|
4325
|
+
tokenIdentifier: string | null;
|
|
4326
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
4327
|
+
governance: {
|
|
4328
|
+
type: "CLASSIC";
|
|
4329
|
+
policy: {
|
|
4330
|
+
policyId: string;
|
|
4331
|
+
} | {
|
|
4332
|
+
rules: {
|
|
4333
|
+
reviewSteps: ({
|
|
4334
|
+
quorum: number;
|
|
4335
|
+
userIds: string[];
|
|
4336
|
+
} | {
|
|
4337
|
+
quorum: number;
|
|
4338
|
+
groupId: string;
|
|
4339
|
+
})[];
|
|
4340
|
+
threshold?: {
|
|
4341
|
+
min: string | null;
|
|
4342
|
+
max: string | null;
|
|
4343
|
+
} | undefined;
|
|
4344
|
+
whitelistIds?: string[] | undefined;
|
|
4345
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4346
|
+
}[];
|
|
4347
|
+
};
|
|
4348
|
+
} | {
|
|
4349
|
+
type: "TRADELINK";
|
|
4350
|
+
assetManagerId: string;
|
|
4351
|
+
exchangeConfigs: {
|
|
4352
|
+
exchangeId: string;
|
|
4353
|
+
repledgeAuthorized: boolean;
|
|
4354
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
4355
|
+
}[];
|
|
4356
|
+
} | {
|
|
4357
|
+
type: "RAW_SIGNING";
|
|
4358
|
+
policy: {
|
|
4359
|
+
rules: {
|
|
4360
|
+
operationType: "SIGN_DIGESTS";
|
|
4361
|
+
reviewSteps: {
|
|
4362
|
+
quorum: number;
|
|
4363
|
+
userIds: string[];
|
|
4364
|
+
}[];
|
|
4365
|
+
}[];
|
|
4366
|
+
};
|
|
4367
|
+
};
|
|
4368
|
+
portfolioIds?: string[] | undefined;
|
|
4369
|
+
index: number;
|
|
4370
|
+
derivationPath: string;
|
|
4371
|
+
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
4372
|
};
|
|
4444
4373
|
id: string;
|
|
4445
4374
|
legacyId: number;
|
|
@@ -4469,11 +4398,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4469
4398
|
tinyUrl: string;
|
|
4470
4399
|
}[] | undefined;
|
|
4471
4400
|
} | {
|
|
4472
|
-
type: "
|
|
4401
|
+
type: "EDIT_TOKEN_RULE";
|
|
4473
4402
|
data: {
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4403
|
+
parentAccountId: string;
|
|
4404
|
+
contractAddress: string;
|
|
4405
|
+
rules: {
|
|
4406
|
+
reviewSteps: ({
|
|
4407
|
+
quorum: number;
|
|
4408
|
+
userIds: string[];
|
|
4409
|
+
} | {
|
|
4410
|
+
quorum: number;
|
|
4411
|
+
groupId: string;
|
|
4412
|
+
})[];
|
|
4413
|
+
threshold?: {
|
|
4414
|
+
min: string | null;
|
|
4415
|
+
max: string | null;
|
|
4416
|
+
} | undefined;
|
|
4417
|
+
whitelistIds?: string[] | undefined;
|
|
4418
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4419
|
+
}[];
|
|
4477
4420
|
};
|
|
4478
4421
|
id: string;
|
|
4479
4422
|
legacyId: number;
|
|
@@ -4503,11 +4446,39 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4503
4446
|
tinyUrl: string;
|
|
4504
4447
|
}[] | undefined;
|
|
4505
4448
|
} | {
|
|
4506
|
-
type: "
|
|
4449
|
+
type: "REVOKE_GROUP";
|
|
4450
|
+
data: Record<string, never>;
|
|
4451
|
+
id: string;
|
|
4452
|
+
legacyId: number;
|
|
4453
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4454
|
+
reviewSteps: {
|
|
4455
|
+
stageName: string;
|
|
4456
|
+
quorum: number;
|
|
4457
|
+
}[];
|
|
4458
|
+
currentStepIndex: number;
|
|
4459
|
+
expiresAt: Date;
|
|
4460
|
+
targetId: string | null;
|
|
4461
|
+
note: Note | null;
|
|
4462
|
+
reviews: RequestReview[];
|
|
4463
|
+
createdAt: Date;
|
|
4464
|
+
updatedAt: Date;
|
|
4465
|
+
createdById: string;
|
|
4466
|
+
inflight?: {
|
|
4467
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4468
|
+
retryAfter: Date;
|
|
4469
|
+
} | undefined;
|
|
4470
|
+
scanHistory?: {
|
|
4471
|
+
type: "creation" | "pre_signature";
|
|
4472
|
+
timestamp: string;
|
|
4473
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4474
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4475
|
+
message: string;
|
|
4476
|
+
tinyUrl: string;
|
|
4477
|
+
}[] | undefined;
|
|
4478
|
+
} | {
|
|
4479
|
+
type: "CREATE_API_USER_ACCESS";
|
|
4507
4480
|
data: {
|
|
4508
|
-
|
|
4509
|
-
exchangeId: string;
|
|
4510
|
-
amount: string;
|
|
4481
|
+
name: string;
|
|
4511
4482
|
};
|
|
4512
4483
|
id: string;
|
|
4513
4484
|
legacyId: number;
|
|
@@ -4537,11 +4508,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4537
4508
|
tinyUrl: string;
|
|
4538
4509
|
}[] | undefined;
|
|
4539
4510
|
} | {
|
|
4540
|
-
type: "
|
|
4511
|
+
type: "CREATE_SCICONFIG";
|
|
4541
4512
|
data: {
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4513
|
+
account: string;
|
|
4514
|
+
config: {
|
|
4515
|
+
dapps: string[] | null;
|
|
4516
|
+
customContractCallEnabled: boolean;
|
|
4517
|
+
};
|
|
4545
4518
|
};
|
|
4546
4519
|
id: string;
|
|
4547
4520
|
legacyId: number;
|
|
@@ -4571,10 +4544,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4571
4544
|
tinyUrl: string;
|
|
4572
4545
|
}[] | undefined;
|
|
4573
4546
|
} | {
|
|
4574
|
-
type: "
|
|
4547
|
+
type: "EDIT_SCICONFIG";
|
|
4575
4548
|
data: {
|
|
4576
|
-
|
|
4577
|
-
|
|
4549
|
+
config: {
|
|
4550
|
+
dapps: string[] | null;
|
|
4551
|
+
customContractCallEnabled: boolean;
|
|
4552
|
+
};
|
|
4578
4553
|
};
|
|
4579
4554
|
id: string;
|
|
4580
4555
|
legacyId: number;
|
|
@@ -4604,10 +4579,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4604
4579
|
tinyUrl: string;
|
|
4605
4580
|
}[] | undefined;
|
|
4606
4581
|
} | {
|
|
4607
|
-
type: "
|
|
4582
|
+
type: "CREATE_API_KEY";
|
|
4608
4583
|
data: {
|
|
4609
|
-
|
|
4610
|
-
|
|
4584
|
+
name: string;
|
|
4585
|
+
entities: string[];
|
|
4586
|
+
scopes: Record<string, never>;
|
|
4611
4587
|
};
|
|
4612
4588
|
id: string;
|
|
4613
4589
|
legacyId: number;
|
|
@@ -4637,10 +4613,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4637
4613
|
tinyUrl: string;
|
|
4638
4614
|
}[] | undefined;
|
|
4639
4615
|
} | {
|
|
4640
|
-
type: "
|
|
4616
|
+
type: "EDIT_API_KEY";
|
|
4641
4617
|
data: {
|
|
4642
|
-
|
|
4643
|
-
|
|
4618
|
+
name: string;
|
|
4619
|
+
entities: string[];
|
|
4620
|
+
scopes: Record<string, never>;
|
|
4644
4621
|
};
|
|
4645
4622
|
id: string;
|
|
4646
4623
|
legacyId: number;
|
|
@@ -4669,6 +4646,36 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4669
4646
|
message: string;
|
|
4670
4647
|
tinyUrl: string;
|
|
4671
4648
|
}[] | undefined;
|
|
4649
|
+
} | {
|
|
4650
|
+
type: "REVOKE_API_KEY";
|
|
4651
|
+
data: Record<string, never>;
|
|
4652
|
+
id: string;
|
|
4653
|
+
legacyId: number;
|
|
4654
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4655
|
+
reviewSteps: {
|
|
4656
|
+
stageName: string;
|
|
4657
|
+
quorum: number;
|
|
4658
|
+
}[];
|
|
4659
|
+
currentStepIndex: number;
|
|
4660
|
+
expiresAt: Date;
|
|
4661
|
+
targetId: string | null;
|
|
4662
|
+
note: Note | null;
|
|
4663
|
+
reviews: RequestReview[];
|
|
4664
|
+
createdAt: Date;
|
|
4665
|
+
updatedAt: Date;
|
|
4666
|
+
createdById: string;
|
|
4667
|
+
inflight?: {
|
|
4668
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4669
|
+
retryAfter: Date;
|
|
4670
|
+
} | undefined;
|
|
4671
|
+
scanHistory?: {
|
|
4672
|
+
type: "creation" | "pre_signature";
|
|
4673
|
+
timestamp: string;
|
|
4674
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4675
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4676
|
+
message: string;
|
|
4677
|
+
tinyUrl: string;
|
|
4678
|
+
}[] | undefined;
|
|
4672
4679
|
}) & {
|
|
4673
4680
|
workspaceName: string;
|
|
4674
4681
|
};
|
|
@@ -4754,7 +4761,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4754
4761
|
debugAuthToken?: string;
|
|
4755
4762
|
rootAuthToken?: string;
|
|
4756
4763
|
backofficeRequiredPermission?: BackofficePermission;
|
|
4757
|
-
core: unknown;
|
|
4758
4764
|
prisma: ExtendedPrismaClient;
|
|
4759
4765
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4760
4766
|
user: {
|
|
@@ -4781,6 +4787,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4781
4787
|
authorization: string | null;
|
|
4782
4788
|
readOnly: boolean;
|
|
4783
4789
|
activityTracer: ActivityTracer;
|
|
4790
|
+
core: RuntimeApiCapabilities;
|
|
4784
4791
|
};
|
|
4785
4792
|
meta: {
|
|
4786
4793
|
[x: string]: unknown;
|
|
@@ -5001,7 +5008,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5001
5008
|
debugAuthToken?: string;
|
|
5002
5009
|
rootAuthToken?: string;
|
|
5003
5010
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5004
|
-
core: unknown;
|
|
5005
5011
|
prisma: ExtendedPrismaClient;
|
|
5006
5012
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5007
5013
|
user: {
|
|
@@ -5028,6 +5034,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5028
5034
|
authorization: string | null;
|
|
5029
5035
|
readOnly: boolean;
|
|
5030
5036
|
activityTracer: ActivityTracer;
|
|
5037
|
+
core: RuntimeApiCapabilities;
|
|
5031
5038
|
};
|
|
5032
5039
|
meta: {
|
|
5033
5040
|
[x: string]: unknown;
|
|
@@ -5150,7 +5157,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5150
5157
|
debugAuthToken?: string;
|
|
5151
5158
|
rootAuthToken?: string;
|
|
5152
5159
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5153
|
-
core: unknown;
|
|
5154
5160
|
prisma: ExtendedPrismaClient;
|
|
5155
5161
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5156
5162
|
user: {
|
|
@@ -5177,6 +5183,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5177
5183
|
authorization: string | null;
|
|
5178
5184
|
readOnly: boolean;
|
|
5179
5185
|
activityTracer: ActivityTracer;
|
|
5186
|
+
core: RuntimeApiCapabilities;
|
|
5180
5187
|
};
|
|
5181
5188
|
meta: {
|
|
5182
5189
|
[x: string]: unknown;
|
|
@@ -5336,7 +5343,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5336
5343
|
debugAuthToken?: string;
|
|
5337
5344
|
rootAuthToken?: string;
|
|
5338
5345
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5339
|
-
core: unknown;
|
|
5340
5346
|
prisma: ExtendedPrismaClient;
|
|
5341
5347
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5342
5348
|
user: {
|
|
@@ -5363,6 +5369,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5363
5369
|
authorization: string | null;
|
|
5364
5370
|
readOnly: boolean;
|
|
5365
5371
|
activityTracer: ActivityTracer;
|
|
5372
|
+
core: RuntimeApiCapabilities;
|
|
5366
5373
|
};
|
|
5367
5374
|
meta: {
|
|
5368
5375
|
[x: string]: unknown;
|
|
@@ -5556,7 +5563,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5556
5563
|
debugAuthToken?: string;
|
|
5557
5564
|
rootAuthToken?: string;
|
|
5558
5565
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5559
|
-
core: unknown;
|
|
5560
5566
|
prisma: ExtendedPrismaClient;
|
|
5561
5567
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
5562
5568
|
user: {
|
|
@@ -5583,6 +5589,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5583
5589
|
authorization: string | null;
|
|
5584
5590
|
readOnly: boolean;
|
|
5585
5591
|
activityTracer: ActivityTracer;
|
|
5592
|
+
core: RuntimeApiCapabilities;
|
|
5586
5593
|
};
|
|
5587
5594
|
meta: {
|
|
5588
5595
|
[x: string]: unknown;
|
|
@@ -5635,10 +5642,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5635
5642
|
pageSize: number;
|
|
5636
5643
|
total: number;
|
|
5637
5644
|
results: ({
|
|
5638
|
-
type: "
|
|
5645
|
+
type: "CREATE_TRANSACTION";
|
|
5639
5646
|
data: {
|
|
5640
|
-
|
|
5641
|
-
|
|
5647
|
+
accountId: string;
|
|
5648
|
+
transaction: TransactionData;
|
|
5649
|
+
maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
|
|
5642
5650
|
};
|
|
5643
5651
|
id: string;
|
|
5644
5652
|
legacyId: number;
|
|
@@ -5700,11 +5708,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5700
5708
|
tinyUrl: string;
|
|
5701
5709
|
}[] | undefined;
|
|
5702
5710
|
} | {
|
|
5703
|
-
type: "
|
|
5711
|
+
type: "SIGN_DIGESTS";
|
|
5704
5712
|
data: {
|
|
5705
5713
|
accountId: string;
|
|
5706
|
-
|
|
5707
|
-
|
|
5714
|
+
digests: {
|
|
5715
|
+
digest: string;
|
|
5716
|
+
derivationPath: string;
|
|
5717
|
+
}[];
|
|
5708
5718
|
};
|
|
5709
5719
|
id: string;
|
|
5710
5720
|
legacyId: number;
|
|
@@ -5734,180 +5744,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5734
5744
|
tinyUrl: string;
|
|
5735
5745
|
}[] | undefined;
|
|
5736
5746
|
} | {
|
|
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";
|
|
5747
|
+
type: "EDIT_ACCOUNT";
|
|
5911
5748
|
data: {
|
|
5912
5749
|
name: string;
|
|
5913
5750
|
governance: {
|
|
@@ -5978,54 +5815,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5978
5815
|
message: string;
|
|
5979
5816
|
tinyUrl: string;
|
|
5980
5817
|
}[] | 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
5818
|
} | {
|
|
6030
5819
|
type: "CREATE_GROUP";
|
|
6031
5820
|
data: {
|
|
@@ -6094,36 +5883,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6094
5883
|
message: string;
|
|
6095
5884
|
tinyUrl: string;
|
|
6096
5885
|
}[] | 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
5886
|
} | {
|
|
6128
5887
|
type: "CREATE_WHITELIST";
|
|
6129
5888
|
data: {
|
|
@@ -6368,10 +6127,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6368
6127
|
tinyUrl: string;
|
|
6369
6128
|
}[] | undefined;
|
|
6370
6129
|
} | {
|
|
6371
|
-
type: "
|
|
6372
|
-
data:
|
|
6373
|
-
name: string;
|
|
6374
|
-
};
|
|
6130
|
+
type: "REVOKE_USER";
|
|
6131
|
+
data: Record<string, never>;
|
|
6375
6132
|
id: string;
|
|
6376
6133
|
legacyId: number;
|
|
6377
6134
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6400,8 +6157,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6400
6157
|
tinyUrl: string;
|
|
6401
6158
|
}[] | undefined;
|
|
6402
6159
|
} | {
|
|
6403
|
-
type: "
|
|
6404
|
-
data:
|
|
6160
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
6161
|
+
data: {
|
|
6162
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
6163
|
+
reviewConfig: {
|
|
6164
|
+
quorum: number;
|
|
6165
|
+
userIds: string[];
|
|
6166
|
+
}[];
|
|
6167
|
+
};
|
|
6405
6168
|
id: string;
|
|
6406
6169
|
legacyId: number;
|
|
6407
6170
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6430,212 +6193,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6430
6193
|
tinyUrl: string;
|
|
6431
6194
|
}[] | undefined;
|
|
6432
6195
|
} | {
|
|
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";
|
|
6196
|
+
type: "CREATE_POLICY";
|
|
6639
6197
|
data: {
|
|
6640
6198
|
name: string;
|
|
6641
6199
|
description: string | null;
|
|
@@ -7216,6 +6774,455 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7216
6774
|
message: string;
|
|
7217
6775
|
tinyUrl: string;
|
|
7218
6776
|
}[] | undefined;
|
|
6777
|
+
} | {
|
|
6778
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
6779
|
+
data: {
|
|
6780
|
+
previousPublicKeys: string[];
|
|
6781
|
+
requestedPublicKeys: string[];
|
|
6782
|
+
};
|
|
6783
|
+
id: string;
|
|
6784
|
+
legacyId: number;
|
|
6785
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6786
|
+
reviewSteps: {
|
|
6787
|
+
stageName: string;
|
|
6788
|
+
quorum: number;
|
|
6789
|
+
}[];
|
|
6790
|
+
currentStepIndex: number;
|
|
6791
|
+
expiresAt: Date;
|
|
6792
|
+
targetId: string | null;
|
|
6793
|
+
note: Note | null;
|
|
6794
|
+
reviews: RequestReview[];
|
|
6795
|
+
createdAt: Date;
|
|
6796
|
+
updatedAt: Date;
|
|
6797
|
+
createdById: string;
|
|
6798
|
+
inflight?: {
|
|
6799
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6800
|
+
retryAfter: Date;
|
|
6801
|
+
} | undefined;
|
|
6802
|
+
scanHistory?: {
|
|
6803
|
+
type: "creation" | "pre_signature";
|
|
6804
|
+
timestamp: string;
|
|
6805
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6806
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6807
|
+
message: string;
|
|
6808
|
+
tinyUrl: string;
|
|
6809
|
+
}[] | undefined;
|
|
6810
|
+
} | {
|
|
6811
|
+
type: "SIGN_MESSAGE";
|
|
6812
|
+
data: {
|
|
6813
|
+
message: {
|
|
6814
|
+
type: "EIP191";
|
|
6815
|
+
data: string;
|
|
6816
|
+
} | {
|
|
6817
|
+
type: "EIP712";
|
|
6818
|
+
data: {
|
|
6819
|
+
types: Record<string, {
|
|
6820
|
+
name: string;
|
|
6821
|
+
type: string;
|
|
6822
|
+
}[]>;
|
|
6823
|
+
primaryType: string;
|
|
6824
|
+
domain: Record<string, any>;
|
|
6825
|
+
message: Record<string, any>;
|
|
6826
|
+
};
|
|
6827
|
+
} | {
|
|
6828
|
+
type: "CIP8";
|
|
6829
|
+
data: string;
|
|
6830
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
6831
|
+
} | {
|
|
6832
|
+
type: "BIP137";
|
|
6833
|
+
data: string;
|
|
6834
|
+
};
|
|
6835
|
+
accountId: string;
|
|
6836
|
+
address: string;
|
|
6837
|
+
derivationPath: string;
|
|
6838
|
+
};
|
|
6839
|
+
id: string;
|
|
6840
|
+
legacyId: number;
|
|
6841
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6842
|
+
reviewSteps: {
|
|
6843
|
+
stageName: string;
|
|
6844
|
+
quorum: number;
|
|
6845
|
+
}[];
|
|
6846
|
+
currentStepIndex: number;
|
|
6847
|
+
expiresAt: Date;
|
|
6848
|
+
targetId: string | null;
|
|
6849
|
+
note: Note | null;
|
|
6850
|
+
reviews: RequestReview[];
|
|
6851
|
+
createdAt: Date;
|
|
6852
|
+
updatedAt: Date;
|
|
6853
|
+
createdById: string;
|
|
6854
|
+
inflight?: {
|
|
6855
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6856
|
+
retryAfter: Date;
|
|
6857
|
+
} | undefined;
|
|
6858
|
+
scanHistory?: {
|
|
6859
|
+
type: "creation" | "pre_signature";
|
|
6860
|
+
timestamp: string;
|
|
6861
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6862
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6863
|
+
message: string;
|
|
6864
|
+
tinyUrl: string;
|
|
6865
|
+
}[] | undefined;
|
|
6866
|
+
} | {
|
|
6867
|
+
type: "CREATE_ACCOUNT";
|
|
6868
|
+
data: {
|
|
6869
|
+
name: string;
|
|
6870
|
+
currency: string;
|
|
6871
|
+
contractAddress: string | null;
|
|
6872
|
+
tokenIdentifier: string | null;
|
|
6873
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
6874
|
+
governance: {
|
|
6875
|
+
type: "CLASSIC";
|
|
6876
|
+
policy: {
|
|
6877
|
+
policyId: string;
|
|
6878
|
+
} | {
|
|
6879
|
+
rules: {
|
|
6880
|
+
reviewSteps: ({
|
|
6881
|
+
quorum: number;
|
|
6882
|
+
userIds: string[];
|
|
6883
|
+
} | {
|
|
6884
|
+
quorum: number;
|
|
6885
|
+
groupId: string;
|
|
6886
|
+
})[];
|
|
6887
|
+
threshold?: {
|
|
6888
|
+
min: string | null;
|
|
6889
|
+
max: string | null;
|
|
6890
|
+
} | undefined;
|
|
6891
|
+
whitelistIds?: string[] | undefined;
|
|
6892
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6893
|
+
}[];
|
|
6894
|
+
};
|
|
6895
|
+
} | {
|
|
6896
|
+
type: "TRADELINK";
|
|
6897
|
+
assetManagerId: string;
|
|
6898
|
+
exchangeConfigs: {
|
|
6899
|
+
exchangeId: string;
|
|
6900
|
+
repledgeAuthorized: boolean;
|
|
6901
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
6902
|
+
}[];
|
|
6903
|
+
} | {
|
|
6904
|
+
type: "RAW_SIGNING";
|
|
6905
|
+
policy: {
|
|
6906
|
+
rules: {
|
|
6907
|
+
operationType: "SIGN_DIGESTS";
|
|
6908
|
+
reviewSteps: {
|
|
6909
|
+
quorum: number;
|
|
6910
|
+
userIds: string[];
|
|
6911
|
+
}[];
|
|
6912
|
+
}[];
|
|
6913
|
+
};
|
|
6914
|
+
};
|
|
6915
|
+
portfolioIds?: string[] | undefined;
|
|
6916
|
+
index: number;
|
|
6917
|
+
derivationPath: string;
|
|
6918
|
+
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";
|
|
6919
|
+
};
|
|
6920
|
+
id: string;
|
|
6921
|
+
legacyId: number;
|
|
6922
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6923
|
+
reviewSteps: {
|
|
6924
|
+
stageName: string;
|
|
6925
|
+
quorum: number;
|
|
6926
|
+
}[];
|
|
6927
|
+
currentStepIndex: number;
|
|
6928
|
+
expiresAt: Date;
|
|
6929
|
+
targetId: string | null;
|
|
6930
|
+
note: Note | null;
|
|
6931
|
+
reviews: RequestReview[];
|
|
6932
|
+
createdAt: Date;
|
|
6933
|
+
updatedAt: Date;
|
|
6934
|
+
createdById: string;
|
|
6935
|
+
inflight?: {
|
|
6936
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6937
|
+
retryAfter: Date;
|
|
6938
|
+
} | undefined;
|
|
6939
|
+
scanHistory?: {
|
|
6940
|
+
type: "creation" | "pre_signature";
|
|
6941
|
+
timestamp: string;
|
|
6942
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6943
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6944
|
+
message: string;
|
|
6945
|
+
tinyUrl: string;
|
|
6946
|
+
}[] | undefined;
|
|
6947
|
+
} | {
|
|
6948
|
+
type: "EDIT_TOKEN_RULE";
|
|
6949
|
+
data: {
|
|
6950
|
+
parentAccountId: string;
|
|
6951
|
+
contractAddress: string;
|
|
6952
|
+
rules: {
|
|
6953
|
+
reviewSteps: ({
|
|
6954
|
+
quorum: number;
|
|
6955
|
+
userIds: string[];
|
|
6956
|
+
} | {
|
|
6957
|
+
quorum: number;
|
|
6958
|
+
groupId: string;
|
|
6959
|
+
})[];
|
|
6960
|
+
threshold?: {
|
|
6961
|
+
min: string | null;
|
|
6962
|
+
max: string | null;
|
|
6963
|
+
} | undefined;
|
|
6964
|
+
whitelistIds?: string[] | undefined;
|
|
6965
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6966
|
+
}[];
|
|
6967
|
+
};
|
|
6968
|
+
id: string;
|
|
6969
|
+
legacyId: number;
|
|
6970
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
6971
|
+
reviewSteps: {
|
|
6972
|
+
stageName: string;
|
|
6973
|
+
quorum: number;
|
|
6974
|
+
}[];
|
|
6975
|
+
currentStepIndex: number;
|
|
6976
|
+
expiresAt: Date;
|
|
6977
|
+
targetId: string | null;
|
|
6978
|
+
note: Note | null;
|
|
6979
|
+
reviews: RequestReview[];
|
|
6980
|
+
createdAt: Date;
|
|
6981
|
+
updatedAt: Date;
|
|
6982
|
+
createdById: string;
|
|
6983
|
+
inflight?: {
|
|
6984
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6985
|
+
retryAfter: Date;
|
|
6986
|
+
} | undefined;
|
|
6987
|
+
scanHistory?: {
|
|
6988
|
+
type: "creation" | "pre_signature";
|
|
6989
|
+
timestamp: string;
|
|
6990
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6991
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6992
|
+
message: string;
|
|
6993
|
+
tinyUrl: string;
|
|
6994
|
+
}[] | undefined;
|
|
6995
|
+
} | {
|
|
6996
|
+
type: "REVOKE_GROUP";
|
|
6997
|
+
data: Record<string, never>;
|
|
6998
|
+
id: string;
|
|
6999
|
+
legacyId: number;
|
|
7000
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7001
|
+
reviewSteps: {
|
|
7002
|
+
stageName: string;
|
|
7003
|
+
quorum: number;
|
|
7004
|
+
}[];
|
|
7005
|
+
currentStepIndex: number;
|
|
7006
|
+
expiresAt: Date;
|
|
7007
|
+
targetId: string | null;
|
|
7008
|
+
note: Note | null;
|
|
7009
|
+
reviews: RequestReview[];
|
|
7010
|
+
createdAt: Date;
|
|
7011
|
+
updatedAt: Date;
|
|
7012
|
+
createdById: string;
|
|
7013
|
+
inflight?: {
|
|
7014
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7015
|
+
retryAfter: Date;
|
|
7016
|
+
} | undefined;
|
|
7017
|
+
scanHistory?: {
|
|
7018
|
+
type: "creation" | "pre_signature";
|
|
7019
|
+
timestamp: string;
|
|
7020
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7021
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7022
|
+
message: string;
|
|
7023
|
+
tinyUrl: string;
|
|
7024
|
+
}[] | undefined;
|
|
7025
|
+
} | {
|
|
7026
|
+
type: "CREATE_API_USER_ACCESS";
|
|
7027
|
+
data: {
|
|
7028
|
+
name: string;
|
|
7029
|
+
};
|
|
7030
|
+
id: string;
|
|
7031
|
+
legacyId: number;
|
|
7032
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7033
|
+
reviewSteps: {
|
|
7034
|
+
stageName: string;
|
|
7035
|
+
quorum: number;
|
|
7036
|
+
}[];
|
|
7037
|
+
currentStepIndex: number;
|
|
7038
|
+
expiresAt: Date;
|
|
7039
|
+
targetId: string | null;
|
|
7040
|
+
note: Note | null;
|
|
7041
|
+
reviews: RequestReview[];
|
|
7042
|
+
createdAt: Date;
|
|
7043
|
+
updatedAt: Date;
|
|
7044
|
+
createdById: string;
|
|
7045
|
+
inflight?: {
|
|
7046
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7047
|
+
retryAfter: Date;
|
|
7048
|
+
} | undefined;
|
|
7049
|
+
scanHistory?: {
|
|
7050
|
+
type: "creation" | "pre_signature";
|
|
7051
|
+
timestamp: string;
|
|
7052
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7053
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7054
|
+
message: string;
|
|
7055
|
+
tinyUrl: string;
|
|
7056
|
+
}[] | undefined;
|
|
7057
|
+
} | {
|
|
7058
|
+
type: "CREATE_SCICONFIG";
|
|
7059
|
+
data: {
|
|
7060
|
+
account: string;
|
|
7061
|
+
config: {
|
|
7062
|
+
dapps: string[] | null;
|
|
7063
|
+
customContractCallEnabled: boolean;
|
|
7064
|
+
};
|
|
7065
|
+
};
|
|
7066
|
+
id: string;
|
|
7067
|
+
legacyId: number;
|
|
7068
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7069
|
+
reviewSteps: {
|
|
7070
|
+
stageName: string;
|
|
7071
|
+
quorum: number;
|
|
7072
|
+
}[];
|
|
7073
|
+
currentStepIndex: number;
|
|
7074
|
+
expiresAt: Date;
|
|
7075
|
+
targetId: string | null;
|
|
7076
|
+
note: Note | null;
|
|
7077
|
+
reviews: RequestReview[];
|
|
7078
|
+
createdAt: Date;
|
|
7079
|
+
updatedAt: Date;
|
|
7080
|
+
createdById: string;
|
|
7081
|
+
inflight?: {
|
|
7082
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7083
|
+
retryAfter: Date;
|
|
7084
|
+
} | undefined;
|
|
7085
|
+
scanHistory?: {
|
|
7086
|
+
type: "creation" | "pre_signature";
|
|
7087
|
+
timestamp: string;
|
|
7088
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7089
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7090
|
+
message: string;
|
|
7091
|
+
tinyUrl: string;
|
|
7092
|
+
}[] | undefined;
|
|
7093
|
+
} | {
|
|
7094
|
+
type: "EDIT_SCICONFIG";
|
|
7095
|
+
data: {
|
|
7096
|
+
config: {
|
|
7097
|
+
dapps: string[] | null;
|
|
7098
|
+
customContractCallEnabled: boolean;
|
|
7099
|
+
};
|
|
7100
|
+
};
|
|
7101
|
+
id: string;
|
|
7102
|
+
legacyId: number;
|
|
7103
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7104
|
+
reviewSteps: {
|
|
7105
|
+
stageName: string;
|
|
7106
|
+
quorum: number;
|
|
7107
|
+
}[];
|
|
7108
|
+
currentStepIndex: number;
|
|
7109
|
+
expiresAt: Date;
|
|
7110
|
+
targetId: string | null;
|
|
7111
|
+
note: Note | null;
|
|
7112
|
+
reviews: RequestReview[];
|
|
7113
|
+
createdAt: Date;
|
|
7114
|
+
updatedAt: Date;
|
|
7115
|
+
createdById: string;
|
|
7116
|
+
inflight?: {
|
|
7117
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7118
|
+
retryAfter: Date;
|
|
7119
|
+
} | undefined;
|
|
7120
|
+
scanHistory?: {
|
|
7121
|
+
type: "creation" | "pre_signature";
|
|
7122
|
+
timestamp: string;
|
|
7123
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7124
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7125
|
+
message: string;
|
|
7126
|
+
tinyUrl: string;
|
|
7127
|
+
}[] | undefined;
|
|
7128
|
+
} | {
|
|
7129
|
+
type: "CREATE_API_KEY";
|
|
7130
|
+
data: {
|
|
7131
|
+
name: string;
|
|
7132
|
+
entities: string[];
|
|
7133
|
+
scopes: Record<string, never>;
|
|
7134
|
+
};
|
|
7135
|
+
id: string;
|
|
7136
|
+
legacyId: number;
|
|
7137
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7138
|
+
reviewSteps: {
|
|
7139
|
+
stageName: string;
|
|
7140
|
+
quorum: number;
|
|
7141
|
+
}[];
|
|
7142
|
+
currentStepIndex: number;
|
|
7143
|
+
expiresAt: Date;
|
|
7144
|
+
targetId: string | null;
|
|
7145
|
+
note: Note | null;
|
|
7146
|
+
reviews: RequestReview[];
|
|
7147
|
+
createdAt: Date;
|
|
7148
|
+
updatedAt: Date;
|
|
7149
|
+
createdById: string;
|
|
7150
|
+
inflight?: {
|
|
7151
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7152
|
+
retryAfter: Date;
|
|
7153
|
+
} | undefined;
|
|
7154
|
+
scanHistory?: {
|
|
7155
|
+
type: "creation" | "pre_signature";
|
|
7156
|
+
timestamp: string;
|
|
7157
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7158
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7159
|
+
message: string;
|
|
7160
|
+
tinyUrl: string;
|
|
7161
|
+
}[] | undefined;
|
|
7162
|
+
} | {
|
|
7163
|
+
type: "EDIT_API_KEY";
|
|
7164
|
+
data: {
|
|
7165
|
+
name: string;
|
|
7166
|
+
entities: string[];
|
|
7167
|
+
scopes: Record<string, never>;
|
|
7168
|
+
};
|
|
7169
|
+
id: string;
|
|
7170
|
+
legacyId: number;
|
|
7171
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7172
|
+
reviewSteps: {
|
|
7173
|
+
stageName: string;
|
|
7174
|
+
quorum: number;
|
|
7175
|
+
}[];
|
|
7176
|
+
currentStepIndex: number;
|
|
7177
|
+
expiresAt: Date;
|
|
7178
|
+
targetId: string | null;
|
|
7179
|
+
note: Note | null;
|
|
7180
|
+
reviews: RequestReview[];
|
|
7181
|
+
createdAt: Date;
|
|
7182
|
+
updatedAt: Date;
|
|
7183
|
+
createdById: string;
|
|
7184
|
+
inflight?: {
|
|
7185
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7186
|
+
retryAfter: Date;
|
|
7187
|
+
} | undefined;
|
|
7188
|
+
scanHistory?: {
|
|
7189
|
+
type: "creation" | "pre_signature";
|
|
7190
|
+
timestamp: string;
|
|
7191
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7192
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7193
|
+
message: string;
|
|
7194
|
+
tinyUrl: string;
|
|
7195
|
+
}[] | undefined;
|
|
7196
|
+
} | {
|
|
7197
|
+
type: "REVOKE_API_KEY";
|
|
7198
|
+
data: Record<string, never>;
|
|
7199
|
+
id: string;
|
|
7200
|
+
legacyId: number;
|
|
7201
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
7202
|
+
reviewSteps: {
|
|
7203
|
+
stageName: string;
|
|
7204
|
+
quorum: number;
|
|
7205
|
+
}[];
|
|
7206
|
+
currentStepIndex: number;
|
|
7207
|
+
expiresAt: Date;
|
|
7208
|
+
targetId: string | null;
|
|
7209
|
+
note: Note | null;
|
|
7210
|
+
reviews: RequestReview[];
|
|
7211
|
+
createdAt: Date;
|
|
7212
|
+
updatedAt: Date;
|
|
7213
|
+
createdById: string;
|
|
7214
|
+
inflight?: {
|
|
7215
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
7216
|
+
retryAfter: Date;
|
|
7217
|
+
} | undefined;
|
|
7218
|
+
scanHistory?: {
|
|
7219
|
+
type: "creation" | "pre_signature";
|
|
7220
|
+
timestamp: string;
|
|
7221
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7222
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7223
|
+
message: string;
|
|
7224
|
+
tinyUrl: string;
|
|
7225
|
+
}[] | undefined;
|
|
7219
7226
|
})[];
|
|
7220
7227
|
};
|
|
7221
7228
|
meta: {
|
|
@@ -7287,7 +7294,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7287
7294
|
debugAuthToken?: string;
|
|
7288
7295
|
rootAuthToken?: string;
|
|
7289
7296
|
backofficeRequiredPermission?: BackofficePermission;
|
|
7290
|
-
core: unknown;
|
|
7291
7297
|
prisma: ExtendedPrismaClient;
|
|
7292
7298
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
7293
7299
|
user: {
|
|
@@ -7314,6 +7320,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7314
7320
|
authorization: string | null;
|
|
7315
7321
|
readOnly: boolean;
|
|
7316
7322
|
activityTracer: ActivityTracer;
|
|
7323
|
+
core: RuntimeApiCapabilities;
|
|
7317
7324
|
};
|
|
7318
7325
|
meta: {
|
|
7319
7326
|
[x: string]: unknown;
|