@ledgerhq/revault-api 1.82.2 → 1.83.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-Dak2ZzBR.d.mts → app-lib-wzQKqbv_.d.mts} +25887 -23153
- package/lib/fakes.d.mts +1 -1
- package/lib/fakes.mjs +1 -0
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +35 -19
- package/lib/index.mjs.map +1 -1
- package/lib/internal/app-lib.d.mts +1626 -730
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cn as UserRole, Dr as zOidcConfig, J as ActivityTracer, Ji as TransactionData, K as BackofficePermissionMeta, Ka as Note, Ki as SendOnlyTransactionData, Sn as UserDeviceType, X as BackofficePermission, Y as ExtendedPrismaClient, cn as MaintenanceMode, en as ActivationStatus, it as VaultRequestResponse, oi as HsmCertificate, on as GateUserType, po as HsmWorkspaceComparison, q as RateLimitMetricsMeta, tt as RequestReview } from "../app-lib-wzQKqbv_.mjs";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
import "trpc-to-openapi";
|
|
4
4
|
//#region src/core/workspaces/schemas.d.ts
|
|
5
5
|
declare const zWorkspaceName: z.ZodString;
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region src/internal/
|
|
7
|
+
//#region src/entrypoints/internal-api/router.d.ts
|
|
8
8
|
declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
9
9
|
ctx: {
|
|
10
10
|
req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
|
|
@@ -13,6 +13,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
13
13
|
debugAuthToken?: string;
|
|
14
14
|
rootAuthToken?: string;
|
|
15
15
|
backofficeRequiredPermission?: BackofficePermission;
|
|
16
|
+
core: unknown;
|
|
16
17
|
prisma: ExtendedPrismaClient;
|
|
17
18
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
18
19
|
user: {
|
|
@@ -68,6 +69,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
68
69
|
httpStatus: number;
|
|
69
70
|
path?: string;
|
|
70
71
|
stack?: string;
|
|
72
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
71
73
|
maintenance?: boolean | undefined;
|
|
72
74
|
};
|
|
73
75
|
};
|
|
@@ -81,6 +83,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
81
83
|
debugAuthToken?: string;
|
|
82
84
|
rootAuthToken?: string;
|
|
83
85
|
backofficeRequiredPermission?: BackofficePermission;
|
|
86
|
+
core: unknown;
|
|
84
87
|
prisma: ExtendedPrismaClient;
|
|
85
88
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
86
89
|
user: {
|
|
@@ -136,6 +139,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
136
139
|
httpStatus: number;
|
|
137
140
|
path?: string;
|
|
138
141
|
stack?: string;
|
|
142
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
139
143
|
maintenance?: boolean | undefined;
|
|
140
144
|
};
|
|
141
145
|
};
|
|
@@ -177,6 +181,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
177
181
|
debugAuthToken?: string;
|
|
178
182
|
rootAuthToken?: string;
|
|
179
183
|
backofficeRequiredPermission?: BackofficePermission;
|
|
184
|
+
core: unknown;
|
|
180
185
|
prisma: ExtendedPrismaClient;
|
|
181
186
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
182
187
|
user: {
|
|
@@ -232,6 +237,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
232
237
|
httpStatus: number;
|
|
233
238
|
path?: string;
|
|
234
239
|
stack?: string;
|
|
240
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
235
241
|
maintenance?: boolean | undefined;
|
|
236
242
|
};
|
|
237
243
|
};
|
|
@@ -258,6 +264,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
258
264
|
name: string;
|
|
259
265
|
mode: "GATE_COMPAT" | "STANDALONE";
|
|
260
266
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
267
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
261
268
|
pkiRootCaFetched: boolean;
|
|
262
269
|
createdAt: Date;
|
|
263
270
|
updatedAt: Date;
|
|
@@ -297,12 +304,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
297
304
|
name: string;
|
|
298
305
|
mode: "GATE_COMPAT" | "STANDALONE";
|
|
299
306
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
307
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
300
308
|
pkiRootCaFetched: boolean;
|
|
301
309
|
createdAt: Date;
|
|
302
310
|
updatedAt: Date;
|
|
303
311
|
} & {
|
|
304
312
|
status: "ACTIVE" | "INACTIVE";
|
|
305
|
-
maintenanceMode: "FULL" | "OFF";
|
|
313
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
306
314
|
oidcConfig: {
|
|
307
315
|
url: string;
|
|
308
316
|
clientId: string;
|
|
@@ -330,11 +338,43 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
330
338
|
};
|
|
331
339
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
332
340
|
}>;
|
|
341
|
+
setMaintenanceMode: import("@trpc/server").TRPCMutationProcedure<{
|
|
342
|
+
input: {
|
|
343
|
+
workspaceNames: string[];
|
|
344
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
345
|
+
confirmation: string;
|
|
346
|
+
};
|
|
347
|
+
output: {
|
|
348
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
349
|
+
totalCount: number;
|
|
350
|
+
changedCount: number;
|
|
351
|
+
};
|
|
352
|
+
meta: {
|
|
353
|
+
[x: string]: unknown;
|
|
354
|
+
} & {
|
|
355
|
+
openapi?: {
|
|
356
|
+
enabled?: boolean;
|
|
357
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
358
|
+
path: `/${string}`;
|
|
359
|
+
operationId?: string;
|
|
360
|
+
summary?: string;
|
|
361
|
+
description?: string;
|
|
362
|
+
protect?: boolean;
|
|
363
|
+
tags?: string[];
|
|
364
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
365
|
+
deprecated?: boolean;
|
|
366
|
+
requestHeaders?: import("zod").ZodObject;
|
|
367
|
+
responseHeaders?: import("zod").ZodObject;
|
|
368
|
+
successDescription?: string;
|
|
369
|
+
errorResponses?: number[] | Record<number, string>;
|
|
370
|
+
};
|
|
371
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
372
|
+
}>;
|
|
333
373
|
edit: import("@trpc/server").TRPCMutationProcedure<{
|
|
334
374
|
input: {
|
|
335
375
|
name: string;
|
|
336
376
|
mode?: "GATE_COMPAT" | "STANDALONE" | undefined;
|
|
337
|
-
maintenanceMode?: "FULL" | "OFF" | undefined;
|
|
377
|
+
maintenanceMode?: "FULL" | "OFF" | "READ_ONLY" | undefined;
|
|
338
378
|
oidcConfig?: {
|
|
339
379
|
url: string;
|
|
340
380
|
clientId: string;
|
|
@@ -347,12 +387,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
347
387
|
name: string;
|
|
348
388
|
mode: "GATE_COMPAT" | "STANDALONE";
|
|
349
389
|
hsmHostingMode: "HOSTED" | "ON_PREM";
|
|
390
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
350
391
|
pkiRootCaFetched: boolean;
|
|
351
392
|
createdAt: Date;
|
|
352
393
|
updatedAt: Date;
|
|
353
394
|
} & {
|
|
354
395
|
status: "ACTIVE" | "INACTIVE";
|
|
355
|
-
maintenanceMode: "FULL" | "OFF";
|
|
396
|
+
maintenanceMode: "FULL" | "OFF" | "READ_ONLY";
|
|
356
397
|
oidcConfig: {
|
|
357
398
|
url: string;
|
|
358
399
|
clientId: string;
|
|
@@ -389,6 +430,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
389
430
|
debugAuthToken?: string;
|
|
390
431
|
rootAuthToken?: string;
|
|
391
432
|
backofficeRequiredPermission?: BackofficePermission;
|
|
433
|
+
core: unknown;
|
|
392
434
|
prisma: ExtendedPrismaClient;
|
|
393
435
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
394
436
|
user: {
|
|
@@ -444,6 +486,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
444
486
|
httpStatus: number;
|
|
445
487
|
path?: string;
|
|
446
488
|
stack?: string;
|
|
489
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
447
490
|
maintenance?: boolean | undefined;
|
|
448
491
|
};
|
|
449
492
|
};
|
|
@@ -897,6 +940,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
897
940
|
debugAuthToken?: string;
|
|
898
941
|
rootAuthToken?: string;
|
|
899
942
|
backofficeRequiredPermission?: BackofficePermission;
|
|
943
|
+
core: unknown;
|
|
900
944
|
prisma: ExtendedPrismaClient;
|
|
901
945
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
902
946
|
user: {
|
|
@@ -952,6 +996,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
952
996
|
httpStatus: number;
|
|
953
997
|
path?: string;
|
|
954
998
|
stack?: string;
|
|
999
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
955
1000
|
maintenance?: boolean | undefined;
|
|
956
1001
|
};
|
|
957
1002
|
};
|
|
@@ -1057,6 +1102,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1057
1102
|
debugAuthToken?: string;
|
|
1058
1103
|
rootAuthToken?: string;
|
|
1059
1104
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1105
|
+
core: unknown;
|
|
1060
1106
|
prisma: ExtendedPrismaClient;
|
|
1061
1107
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1062
1108
|
user: {
|
|
@@ -1112,6 +1158,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1112
1158
|
httpStatus: number;
|
|
1113
1159
|
path?: string;
|
|
1114
1160
|
stack?: string;
|
|
1161
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
1115
1162
|
maintenance?: boolean | undefined;
|
|
1116
1163
|
};
|
|
1117
1164
|
};
|
|
@@ -1221,6 +1268,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1221
1268
|
debugAuthToken?: string;
|
|
1222
1269
|
rootAuthToken?: string;
|
|
1223
1270
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1271
|
+
core: unknown;
|
|
1224
1272
|
prisma: ExtendedPrismaClient;
|
|
1225
1273
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1226
1274
|
user: {
|
|
@@ -1276,6 +1324,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1276
1324
|
httpStatus: number;
|
|
1277
1325
|
path?: string;
|
|
1278
1326
|
stack?: string;
|
|
1327
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
1279
1328
|
maintenance?: boolean | undefined;
|
|
1280
1329
|
};
|
|
1281
1330
|
};
|
|
@@ -1371,6 +1420,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1371
1420
|
debugAuthToken?: string;
|
|
1372
1421
|
rootAuthToken?: string;
|
|
1373
1422
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1423
|
+
core: unknown;
|
|
1374
1424
|
prisma: ExtendedPrismaClient;
|
|
1375
1425
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1376
1426
|
user: {
|
|
@@ -1426,6 +1476,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1426
1476
|
httpStatus: number;
|
|
1427
1477
|
path?: string;
|
|
1428
1478
|
stack?: string;
|
|
1479
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
1429
1480
|
maintenance?: boolean | undefined;
|
|
1430
1481
|
};
|
|
1431
1482
|
};
|
|
@@ -1694,6 +1745,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1694
1745
|
debugAuthToken?: string;
|
|
1695
1746
|
rootAuthToken?: string;
|
|
1696
1747
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1748
|
+
core: unknown;
|
|
1697
1749
|
prisma: ExtendedPrismaClient;
|
|
1698
1750
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1699
1751
|
user: {
|
|
@@ -1749,6 +1801,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1749
1801
|
httpStatus: number;
|
|
1750
1802
|
path?: string;
|
|
1751
1803
|
stack?: string;
|
|
1804
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
1752
1805
|
maintenance?: boolean | undefined;
|
|
1753
1806
|
};
|
|
1754
1807
|
};
|
|
@@ -1879,6 +1932,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1879
1932
|
debugAuthToken?: string;
|
|
1880
1933
|
rootAuthToken?: string;
|
|
1881
1934
|
backofficeRequiredPermission?: BackofficePermission;
|
|
1935
|
+
core: unknown;
|
|
1882
1936
|
prisma: ExtendedPrismaClient;
|
|
1883
1937
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
1884
1938
|
user: {
|
|
@@ -1934,6 +1988,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1934
1988
|
httpStatus: number;
|
|
1935
1989
|
path?: string;
|
|
1936
1990
|
stack?: string;
|
|
1991
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
1937
1992
|
maintenance?: boolean | undefined;
|
|
1938
1993
|
};
|
|
1939
1994
|
};
|
|
@@ -2044,6 +2099,142 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2044
2099
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2045
2100
|
}>;
|
|
2046
2101
|
}>>;
|
|
2102
|
+
webhooks: import("@trpc/server").TRPCBuiltRouter<{
|
|
2103
|
+
ctx: {
|
|
2104
|
+
req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
|
|
2105
|
+
res?: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> | undefined;
|
|
2106
|
+
info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
|
|
2107
|
+
debugAuthToken?: string;
|
|
2108
|
+
rootAuthToken?: string;
|
|
2109
|
+
backofficeRequiredPermission?: BackofficePermission;
|
|
2110
|
+
core: unknown;
|
|
2111
|
+
prisma: ExtendedPrismaClient;
|
|
2112
|
+
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2113
|
+
user: {
|
|
2114
|
+
id: string;
|
|
2115
|
+
workspaceName: string;
|
|
2116
|
+
name: string;
|
|
2117
|
+
authUserId: string | null;
|
|
2118
|
+
pubKey: string;
|
|
2119
|
+
deviceType: UserDeviceType;
|
|
2120
|
+
deviceUserId: string | null;
|
|
2121
|
+
hsmId: string | null;
|
|
2122
|
+
u2fKeyHandle: string | null;
|
|
2123
|
+
u2fPubKey: string | null;
|
|
2124
|
+
legacyViewAll: boolean;
|
|
2125
|
+
role: UserRole;
|
|
2126
|
+
status: ActivationStatus;
|
|
2127
|
+
isSuspended: boolean;
|
|
2128
|
+
gateType: GateUserType | null;
|
|
2129
|
+
gateId: number;
|
|
2130
|
+
syncId: string;
|
|
2131
|
+
createdAt: Date;
|
|
2132
|
+
updatedAt: Date;
|
|
2133
|
+
} | null;
|
|
2134
|
+
authorization: string | null;
|
|
2135
|
+
readOnly: boolean;
|
|
2136
|
+
activityTracer: ActivityTracer;
|
|
2137
|
+
};
|
|
2138
|
+
meta: {
|
|
2139
|
+
[x: string]: unknown;
|
|
2140
|
+
} & {
|
|
2141
|
+
openapi?: {
|
|
2142
|
+
enabled?: boolean;
|
|
2143
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
2144
|
+
path: `/${string}`;
|
|
2145
|
+
operationId?: string;
|
|
2146
|
+
summary?: string;
|
|
2147
|
+
description?: string;
|
|
2148
|
+
protect?: boolean;
|
|
2149
|
+
tags?: string[];
|
|
2150
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
2151
|
+
deprecated?: boolean;
|
|
2152
|
+
requestHeaders?: import("zod").ZodObject;
|
|
2153
|
+
responseHeaders?: import("zod").ZodObject;
|
|
2154
|
+
successDescription?: string;
|
|
2155
|
+
errorResponses?: number[] | Record<number, string>;
|
|
2156
|
+
};
|
|
2157
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2158
|
+
errorShape: {
|
|
2159
|
+
message: string;
|
|
2160
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2161
|
+
data: {
|
|
2162
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
2163
|
+
httpStatus: number;
|
|
2164
|
+
path?: string;
|
|
2165
|
+
stack?: string;
|
|
2166
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
2167
|
+
maintenance?: boolean | undefined;
|
|
2168
|
+
};
|
|
2169
|
+
};
|
|
2170
|
+
transformer: true;
|
|
2171
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2172
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2173
|
+
input: {
|
|
2174
|
+
page?: number | undefined;
|
|
2175
|
+
pageSize?: number | undefined;
|
|
2176
|
+
workspaceName?: string | string[] | undefined;
|
|
2177
|
+
status?: "BROKEN" | "DISABLED" | "ENABLED" | undefined;
|
|
2178
|
+
search?: string | undefined;
|
|
2179
|
+
sortOrder?: "asc" | "desc" | undefined;
|
|
2180
|
+
statsWindowDays?: unknown;
|
|
2181
|
+
};
|
|
2182
|
+
output: {
|
|
2183
|
+
page: number;
|
|
2184
|
+
next: number | null;
|
|
2185
|
+
prev: number | null;
|
|
2186
|
+
pageSize: number;
|
|
2187
|
+
total: number;
|
|
2188
|
+
results: {
|
|
2189
|
+
id: string;
|
|
2190
|
+
name: string;
|
|
2191
|
+
description: string | null;
|
|
2192
|
+
url: string;
|
|
2193
|
+
status: "BROKEN" | "DISABLED" | "ENABLED";
|
|
2194
|
+
rules: {
|
|
2195
|
+
id: string;
|
|
2196
|
+
actions: ("AccountBalanceUpdated" | "ReportCompleted" | "ReportFailed" | "RequestAborted" | "RequestActivatedReviews" | "RequestApproved" | "RequestCreated" | "RequestExecuted" | "RequestExpired" | "RequestFailed" | "RequestReceivedApproval" | "RequestReceivedRejection" | "TransactionConfirmed" | "TransactionDropped" | "TransactionFailed" | "TransactionOnChain" | "TransactionScheduled" | "TransactionSubmitted" | "UserRegistrationCompleted" | "UserSuspended" | "UserUnsuspended")[];
|
|
2197
|
+
requestTypes: ("CREATE_ACCOUNT" | "CREATE_API_KEY" | "CREATE_API_USER" | "CREATE_API_USER_ACCESS" | "CREATE_ENTITY" | "CREATE_GROUP" | "CREATE_POLICY" | "CREATE_PSD_USER" | "CREATE_SCICONFIG" | "CREATE_TRANSACTION" | "CREATE_WHITELIST" | "EDIT_ACCOUNT" | "EDIT_API_KEY" | "EDIT_ENTITY" | "EDIT_EXTERNAL_SIGNER_PUBKEYS" | "EDIT_GROUP" | "EDIT_POLICY" | "EDIT_SCICONFIG" | "EDIT_TOKEN_RULE" | "EDIT_WHITELIST" | "EDIT_WORKSPACE_RULE" | "REVOKE_API_KEY" | "REVOKE_ENTITY" | "REVOKE_GROUP" | "REVOKE_USER" | "SIGN_DIGESTS" | "SIGN_MESSAGE" | "TRADELINK_ACTIVATE_ACCOUNT" | "TRADELINK_ADJUST_PLEDGE" | "TRADELINK_ARBITRATE" | "TRADELINK_CREATE_ASSET_MANAGER" | "TRADELINK_CREATE_CUSTODIAN" | "TRADELINK_CREATE_EXCHANGE" | "TRADELINK_CREATE_SETTLEMENT" | "TRADELINK_EDIT_ASSET_MANAGER" | "TRADELINK_EDIT_CUSTODIAN" | "TRADELINK_EDIT_EXCHANGE" | "TRADELINK_FORCE_UNPLEDGE" | "TRADELINK_REPLEDGE" | "TRADELINK_WITHDRAW" | "UPDATE_QUORUM")[];
|
|
2198
|
+
}[];
|
|
2199
|
+
scopeUserIds: string[];
|
|
2200
|
+
retryStrategy: "EXPONENTIAL" | "FIXED" | "LINEAR";
|
|
2201
|
+
maxRetries: number;
|
|
2202
|
+
initialIntervalMs: number;
|
|
2203
|
+
createdAt: Date;
|
|
2204
|
+
updatedAt: Date;
|
|
2205
|
+
consecutiveFailures: number;
|
|
2206
|
+
brokenSince: Date | null;
|
|
2207
|
+
stats: {
|
|
2208
|
+
windowDays: number;
|
|
2209
|
+
delivered: number;
|
|
2210
|
+
failed: number;
|
|
2211
|
+
successRate: number | null;
|
|
2212
|
+
};
|
|
2213
|
+
workspaceName: string;
|
|
2214
|
+
}[];
|
|
2215
|
+
};
|
|
2216
|
+
meta: {
|
|
2217
|
+
[x: string]: unknown;
|
|
2218
|
+
} & {
|
|
2219
|
+
openapi?: {
|
|
2220
|
+
enabled?: boolean;
|
|
2221
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
2222
|
+
path: `/${string}`;
|
|
2223
|
+
operationId?: string;
|
|
2224
|
+
summary?: string;
|
|
2225
|
+
description?: string;
|
|
2226
|
+
protect?: boolean;
|
|
2227
|
+
tags?: string[];
|
|
2228
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
2229
|
+
deprecated?: boolean;
|
|
2230
|
+
requestHeaders?: import("zod").ZodObject;
|
|
2231
|
+
responseHeaders?: import("zod").ZodObject;
|
|
2232
|
+
successDescription?: string;
|
|
2233
|
+
errorResponses?: number[] | Record<number, string>;
|
|
2234
|
+
};
|
|
2235
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2236
|
+
}>;
|
|
2237
|
+
}>>;
|
|
2047
2238
|
policies: import("@trpc/server").TRPCBuiltRouter<{
|
|
2048
2239
|
ctx: {
|
|
2049
2240
|
req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
|
|
@@ -2052,6 +2243,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2052
2243
|
debugAuthToken?: string;
|
|
2053
2244
|
rootAuthToken?: string;
|
|
2054
2245
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2246
|
+
core: unknown;
|
|
2055
2247
|
prisma: ExtendedPrismaClient;
|
|
2056
2248
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2057
2249
|
user: {
|
|
@@ -2107,6 +2299,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2107
2299
|
httpStatus: number;
|
|
2108
2300
|
path?: string;
|
|
2109
2301
|
stack?: string;
|
|
2302
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
2110
2303
|
maintenance?: boolean | undefined;
|
|
2111
2304
|
};
|
|
2112
2305
|
};
|
|
@@ -2458,6 +2651,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2458
2651
|
debugAuthToken?: string;
|
|
2459
2652
|
rootAuthToken?: string;
|
|
2460
2653
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2654
|
+
core: unknown;
|
|
2461
2655
|
prisma: ExtendedPrismaClient;
|
|
2462
2656
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2463
2657
|
user: {
|
|
@@ -2513,6 +2707,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2513
2707
|
httpStatus: number;
|
|
2514
2708
|
path?: string;
|
|
2515
2709
|
stack?: string;
|
|
2710
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
2516
2711
|
maintenance?: boolean | undefined;
|
|
2517
2712
|
};
|
|
2518
2713
|
};
|
|
@@ -2573,6 +2768,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2573
2768
|
debugAuthToken?: string;
|
|
2574
2769
|
rootAuthToken?: string;
|
|
2575
2770
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2771
|
+
core: unknown;
|
|
2576
2772
|
prisma: ExtendedPrismaClient;
|
|
2577
2773
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2578
2774
|
user: {
|
|
@@ -2628,6 +2824,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2628
2824
|
httpStatus: number;
|
|
2629
2825
|
path?: string;
|
|
2630
2826
|
stack?: string;
|
|
2827
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
2631
2828
|
maintenance?: boolean | undefined;
|
|
2632
2829
|
};
|
|
2633
2830
|
};
|
|
@@ -2776,6 +2973,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2776
2973
|
debugAuthToken?: string;
|
|
2777
2974
|
rootAuthToken?: string;
|
|
2778
2975
|
backofficeRequiredPermission?: BackofficePermission;
|
|
2976
|
+
core: unknown;
|
|
2779
2977
|
prisma: ExtendedPrismaClient;
|
|
2780
2978
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
2781
2979
|
user: {
|
|
@@ -2831,6 +3029,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2831
3029
|
httpStatus: number;
|
|
2832
3030
|
path?: string;
|
|
2833
3031
|
stack?: string;
|
|
3032
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
2834
3033
|
maintenance?: boolean | undefined;
|
|
2835
3034
|
};
|
|
2836
3035
|
};
|
|
@@ -2889,59 +3088,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2889
3088
|
id: string;
|
|
2890
3089
|
};
|
|
2891
3090
|
output: ({
|
|
2892
|
-
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
2893
|
-
data: {
|
|
2894
|
-
previousPublicKeys: string[];
|
|
2895
|
-
requestedPublicKeys: string[];
|
|
2896
|
-
};
|
|
2897
|
-
id: string;
|
|
2898
|
-
legacyId: number;
|
|
2899
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
2900
|
-
reviewSteps: {
|
|
2901
|
-
stageName: string;
|
|
2902
|
-
quorum: number;
|
|
2903
|
-
}[];
|
|
2904
|
-
currentStepIndex: number;
|
|
2905
|
-
expiresAt: Date;
|
|
2906
|
-
targetId: string | null;
|
|
2907
|
-
note: Note | null;
|
|
2908
|
-
reviews: RequestReview[];
|
|
2909
|
-
createdAt: Date;
|
|
2910
|
-
updatedAt: Date;
|
|
2911
|
-
createdById: string;
|
|
2912
|
-
inflight?: {
|
|
2913
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
2914
|
-
retryAfter: Date;
|
|
2915
|
-
} | undefined;
|
|
2916
|
-
} | {
|
|
2917
|
-
type: "UPDATE_QUORUM";
|
|
2918
|
-
data: {
|
|
2919
|
-
quorum: number;
|
|
2920
|
-
};
|
|
2921
|
-
id: string;
|
|
2922
|
-
legacyId: number;
|
|
2923
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
2924
|
-
reviewSteps: {
|
|
2925
|
-
stageName: string;
|
|
2926
|
-
quorum: number;
|
|
2927
|
-
}[];
|
|
2928
|
-
currentStepIndex: number;
|
|
2929
|
-
expiresAt: Date;
|
|
2930
|
-
targetId: string | null;
|
|
2931
|
-
note: Note | null;
|
|
2932
|
-
reviews: RequestReview[];
|
|
2933
|
-
createdAt: Date;
|
|
2934
|
-
updatedAt: Date;
|
|
2935
|
-
createdById: string;
|
|
2936
|
-
inflight?: {
|
|
2937
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
2938
|
-
retryAfter: Date;
|
|
2939
|
-
} | undefined;
|
|
2940
|
-
} | {
|
|
2941
3091
|
type: "CREATE_TRANSACTION";
|
|
2942
3092
|
data: {
|
|
2943
3093
|
accountId: string;
|
|
2944
3094
|
transaction: TransactionData;
|
|
3095
|
+
maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
|
|
2945
3096
|
};
|
|
2946
3097
|
id: string;
|
|
2947
3098
|
legacyId: number;
|
|
@@ -2962,34 +3113,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2962
3113
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
2963
3114
|
retryAfter: Date;
|
|
2964
3115
|
} | undefined;
|
|
3116
|
+
scanHistory?: {
|
|
3117
|
+
type: "creation" | "pre_signature";
|
|
3118
|
+
timestamp: string;
|
|
3119
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3120
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3121
|
+
message: string;
|
|
3122
|
+
tinyUrl: string;
|
|
3123
|
+
}[] | undefined;
|
|
2965
3124
|
} | {
|
|
2966
|
-
type: "
|
|
3125
|
+
type: "UPDATE_QUORUM";
|
|
2967
3126
|
data: {
|
|
2968
|
-
|
|
2969
|
-
type: "EIP191";
|
|
2970
|
-
data: string;
|
|
2971
|
-
} | {
|
|
2972
|
-
type: "EIP712";
|
|
2973
|
-
data: {
|
|
2974
|
-
types: Record<string, {
|
|
2975
|
-
name: string;
|
|
2976
|
-
type: string;
|
|
2977
|
-
}[]>;
|
|
2978
|
-
primaryType: string;
|
|
2979
|
-
domain: Record<string, any>;
|
|
2980
|
-
message: Record<string, any>;
|
|
2981
|
-
};
|
|
2982
|
-
} | {
|
|
2983
|
-
type: "CIP8";
|
|
2984
|
-
data: string;
|
|
2985
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
2986
|
-
} | {
|
|
2987
|
-
type: "BIP137";
|
|
2988
|
-
data: string;
|
|
2989
|
-
};
|
|
2990
|
-
accountId: string;
|
|
2991
|
-
address: string;
|
|
2992
|
-
derivationPath: string;
|
|
3127
|
+
quorum: number;
|
|
2993
3128
|
};
|
|
2994
3129
|
id: string;
|
|
2995
3130
|
legacyId: number;
|
|
@@ -3010,6 +3145,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3010
3145
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3011
3146
|
retryAfter: Date;
|
|
3012
3147
|
} | undefined;
|
|
3148
|
+
scanHistory?: {
|
|
3149
|
+
type: "creation" | "pre_signature";
|
|
3150
|
+
timestamp: string;
|
|
3151
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3152
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3153
|
+
message: string;
|
|
3154
|
+
tinyUrl: string;
|
|
3155
|
+
}[] | undefined;
|
|
3013
3156
|
} | {
|
|
3014
3157
|
type: "SIGN_DIGESTS";
|
|
3015
3158
|
data: {
|
|
@@ -3038,14 +3181,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3038
3181
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3039
3182
|
retryAfter: Date;
|
|
3040
3183
|
} | undefined;
|
|
3184
|
+
scanHistory?: {
|
|
3185
|
+
type: "creation" | "pre_signature";
|
|
3186
|
+
timestamp: string;
|
|
3187
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3188
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3189
|
+
message: string;
|
|
3190
|
+
tinyUrl: string;
|
|
3191
|
+
}[] | undefined;
|
|
3041
3192
|
} | {
|
|
3042
|
-
type: "
|
|
3193
|
+
type: "EDIT_ACCOUNT";
|
|
3043
3194
|
data: {
|
|
3044
3195
|
name: string;
|
|
3045
|
-
currency: string;
|
|
3046
|
-
contractAddress: string | null;
|
|
3047
|
-
tokenIdentifier: string | null;
|
|
3048
|
-
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
3049
3196
|
governance: {
|
|
3050
3197
|
type: "CLASSIC";
|
|
3051
3198
|
policy: {
|
|
@@ -3069,7 +3216,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3069
3216
|
};
|
|
3070
3217
|
} | {
|
|
3071
3218
|
type: "TRADELINK";
|
|
3072
|
-
assetManagerId: string;
|
|
3073
3219
|
exchangeConfigs: {
|
|
3074
3220
|
exchangeId: string;
|
|
3075
3221
|
repledgeAuthorized: boolean;
|
|
@@ -3087,10 +3233,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3087
3233
|
}[];
|
|
3088
3234
|
};
|
|
3089
3235
|
};
|
|
3090
|
-
portfolioIds?: string[] | undefined;
|
|
3091
|
-
index: number;
|
|
3092
|
-
derivationPath: string;
|
|
3093
|
-
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";
|
|
3094
3236
|
};
|
|
3095
3237
|
id: string;
|
|
3096
3238
|
legacyId: number;
|
|
@@ -3111,112 +3253,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3111
3253
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3112
3254
|
retryAfter: Date;
|
|
3113
3255
|
} | undefined;
|
|
3256
|
+
scanHistory?: {
|
|
3257
|
+
type: "creation" | "pre_signature";
|
|
3258
|
+
timestamp: string;
|
|
3259
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3260
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3261
|
+
message: string;
|
|
3262
|
+
tinyUrl: string;
|
|
3263
|
+
}[] | undefined;
|
|
3114
3264
|
} | {
|
|
3115
|
-
type: "
|
|
3116
|
-
data: {
|
|
3117
|
-
name: string;
|
|
3118
|
-
governance: {
|
|
3119
|
-
type: "CLASSIC";
|
|
3120
|
-
policy: {
|
|
3121
|
-
policyId: string;
|
|
3122
|
-
} | {
|
|
3123
|
-
rules: {
|
|
3124
|
-
reviewSteps: ({
|
|
3125
|
-
quorum: number;
|
|
3126
|
-
userIds: string[];
|
|
3127
|
-
} | {
|
|
3128
|
-
quorum: number;
|
|
3129
|
-
groupId: string;
|
|
3130
|
-
})[];
|
|
3131
|
-
threshold?: {
|
|
3132
|
-
min: string | null;
|
|
3133
|
-
max: string | null;
|
|
3134
|
-
} | undefined;
|
|
3135
|
-
whitelistIds?: string[] | undefined;
|
|
3136
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3137
|
-
}[];
|
|
3138
|
-
};
|
|
3139
|
-
} | {
|
|
3140
|
-
type: "TRADELINK";
|
|
3141
|
-
exchangeConfigs: {
|
|
3142
|
-
exchangeId: string;
|
|
3143
|
-
repledgeAuthorized: boolean;
|
|
3144
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
3145
|
-
}[];
|
|
3146
|
-
} | {
|
|
3147
|
-
type: "RAW_SIGNING";
|
|
3148
|
-
policy: {
|
|
3149
|
-
rules: {
|
|
3150
|
-
operationType: "SIGN_DIGESTS";
|
|
3151
|
-
reviewSteps: {
|
|
3152
|
-
quorum: number;
|
|
3153
|
-
userIds: string[];
|
|
3154
|
-
}[];
|
|
3155
|
-
}[];
|
|
3156
|
-
};
|
|
3157
|
-
};
|
|
3158
|
-
};
|
|
3159
|
-
id: string;
|
|
3160
|
-
legacyId: number;
|
|
3161
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3162
|
-
reviewSteps: {
|
|
3163
|
-
stageName: string;
|
|
3164
|
-
quorum: number;
|
|
3165
|
-
}[];
|
|
3166
|
-
currentStepIndex: number;
|
|
3167
|
-
expiresAt: Date;
|
|
3168
|
-
targetId: string | null;
|
|
3169
|
-
note: Note | null;
|
|
3170
|
-
reviews: RequestReview[];
|
|
3171
|
-
createdAt: Date;
|
|
3172
|
-
updatedAt: Date;
|
|
3173
|
-
createdById: string;
|
|
3174
|
-
inflight?: {
|
|
3175
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3176
|
-
retryAfter: Date;
|
|
3177
|
-
} | undefined;
|
|
3178
|
-
} | {
|
|
3179
|
-
type: "EDIT_TOKEN_RULE";
|
|
3180
|
-
data: {
|
|
3181
|
-
parentAccountId: string;
|
|
3182
|
-
contractAddress: string;
|
|
3183
|
-
rules: {
|
|
3184
|
-
reviewSteps: ({
|
|
3185
|
-
quorum: number;
|
|
3186
|
-
userIds: string[];
|
|
3187
|
-
} | {
|
|
3188
|
-
quorum: number;
|
|
3189
|
-
groupId: string;
|
|
3190
|
-
})[];
|
|
3191
|
-
threshold?: {
|
|
3192
|
-
min: string | null;
|
|
3193
|
-
max: string | null;
|
|
3194
|
-
} | undefined;
|
|
3195
|
-
whitelistIds?: string[] | undefined;
|
|
3196
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3197
|
-
}[];
|
|
3198
|
-
};
|
|
3199
|
-
id: string;
|
|
3200
|
-
legacyId: number;
|
|
3201
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3202
|
-
reviewSteps: {
|
|
3203
|
-
stageName: string;
|
|
3204
|
-
quorum: number;
|
|
3205
|
-
}[];
|
|
3206
|
-
currentStepIndex: number;
|
|
3207
|
-
expiresAt: Date;
|
|
3208
|
-
targetId: string | null;
|
|
3209
|
-
note: Note | null;
|
|
3210
|
-
reviews: RequestReview[];
|
|
3211
|
-
createdAt: Date;
|
|
3212
|
-
updatedAt: Date;
|
|
3213
|
-
createdById: string;
|
|
3214
|
-
inflight?: {
|
|
3215
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3216
|
-
retryAfter: Date;
|
|
3217
|
-
} | undefined;
|
|
3218
|
-
} | {
|
|
3219
|
-
type: "CREATE_GROUP";
|
|
3265
|
+
type: "CREATE_GROUP";
|
|
3220
3266
|
data: {
|
|
3221
3267
|
name: string;
|
|
3222
3268
|
description: string | null;
|
|
@@ -3241,6 +3287,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3241
3287
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3242
3288
|
retryAfter: Date;
|
|
3243
3289
|
} | undefined;
|
|
3290
|
+
scanHistory?: {
|
|
3291
|
+
type: "creation" | "pre_signature";
|
|
3292
|
+
timestamp: string;
|
|
3293
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3294
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3295
|
+
message: string;
|
|
3296
|
+
tinyUrl: string;
|
|
3297
|
+
}[] | undefined;
|
|
3244
3298
|
} | {
|
|
3245
3299
|
type: "EDIT_GROUP";
|
|
3246
3300
|
data: {
|
|
@@ -3267,28 +3321,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3267
3321
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3268
3322
|
retryAfter: Date;
|
|
3269
3323
|
} | undefined;
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
quorum: number;
|
|
3279
|
-
}[];
|
|
3280
|
-
currentStepIndex: number;
|
|
3281
|
-
expiresAt: Date;
|
|
3282
|
-
targetId: string | null;
|
|
3283
|
-
note: Note | null;
|
|
3284
|
-
reviews: RequestReview[];
|
|
3285
|
-
createdAt: Date;
|
|
3286
|
-
updatedAt: Date;
|
|
3287
|
-
createdById: string;
|
|
3288
|
-
inflight?: {
|
|
3289
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3290
|
-
retryAfter: Date;
|
|
3291
|
-
} | undefined;
|
|
3324
|
+
scanHistory?: {
|
|
3325
|
+
type: "creation" | "pre_signature";
|
|
3326
|
+
timestamp: string;
|
|
3327
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3328
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3329
|
+
message: string;
|
|
3330
|
+
tinyUrl: string;
|
|
3331
|
+
}[] | undefined;
|
|
3292
3332
|
} | {
|
|
3293
3333
|
type: "CREATE_WHITELIST";
|
|
3294
3334
|
data: {
|
|
@@ -3321,6 +3361,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3321
3361
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3322
3362
|
retryAfter: Date;
|
|
3323
3363
|
} | undefined;
|
|
3364
|
+
scanHistory?: {
|
|
3365
|
+
type: "creation" | "pre_signature";
|
|
3366
|
+
timestamp: string;
|
|
3367
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3368
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3369
|
+
message: string;
|
|
3370
|
+
tinyUrl: string;
|
|
3371
|
+
}[] | undefined;
|
|
3324
3372
|
} | {
|
|
3325
3373
|
type: "EDIT_WHITELIST";
|
|
3326
3374
|
data: {
|
|
@@ -3351,6 +3399,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3351
3399
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3352
3400
|
retryAfter: Date;
|
|
3353
3401
|
} | undefined;
|
|
3402
|
+
scanHistory?: {
|
|
3403
|
+
type: "creation" | "pre_signature";
|
|
3404
|
+
timestamp: string;
|
|
3405
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3406
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3407
|
+
message: string;
|
|
3408
|
+
tinyUrl: string;
|
|
3409
|
+
}[] | undefined;
|
|
3354
3410
|
} | {
|
|
3355
3411
|
type: "CREATE_ENTITY";
|
|
3356
3412
|
data: {
|
|
@@ -3377,6 +3433,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3377
3433
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3378
3434
|
retryAfter: Date;
|
|
3379
3435
|
} | undefined;
|
|
3436
|
+
scanHistory?: {
|
|
3437
|
+
type: "creation" | "pre_signature";
|
|
3438
|
+
timestamp: string;
|
|
3439
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3440
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3441
|
+
message: string;
|
|
3442
|
+
tinyUrl: string;
|
|
3443
|
+
}[] | undefined;
|
|
3380
3444
|
} | {
|
|
3381
3445
|
type: "EDIT_ENTITY";
|
|
3382
3446
|
data: {
|
|
@@ -3403,6 +3467,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3403
3467
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3404
3468
|
retryAfter: Date;
|
|
3405
3469
|
} | undefined;
|
|
3470
|
+
scanHistory?: {
|
|
3471
|
+
type: "creation" | "pre_signature";
|
|
3472
|
+
timestamp: string;
|
|
3473
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3474
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3475
|
+
message: string;
|
|
3476
|
+
tinyUrl: string;
|
|
3477
|
+
}[] | undefined;
|
|
3406
3478
|
} | {
|
|
3407
3479
|
type: "REVOKE_ENTITY";
|
|
3408
3480
|
data: Record<string, never>;
|
|
@@ -3425,6 +3497,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3425
3497
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3426
3498
|
retryAfter: Date;
|
|
3427
3499
|
} | undefined;
|
|
3500
|
+
scanHistory?: {
|
|
3501
|
+
type: "creation" | "pre_signature";
|
|
3502
|
+
timestamp: string;
|
|
3503
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3504
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3505
|
+
message: string;
|
|
3506
|
+
tinyUrl: string;
|
|
3507
|
+
}[] | undefined;
|
|
3428
3508
|
} | {
|
|
3429
3509
|
type: "CREATE_PSD_USER";
|
|
3430
3510
|
data: {
|
|
@@ -3449,6 +3529,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3449
3529
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3450
3530
|
retryAfter: Date;
|
|
3451
3531
|
} | undefined;
|
|
3532
|
+
scanHistory?: {
|
|
3533
|
+
type: "creation" | "pre_signature";
|
|
3534
|
+
timestamp: string;
|
|
3535
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3536
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3537
|
+
message: string;
|
|
3538
|
+
tinyUrl: string;
|
|
3539
|
+
}[] | undefined;
|
|
3452
3540
|
} | {
|
|
3453
3541
|
type: "CREATE_API_USER";
|
|
3454
3542
|
data: {
|
|
@@ -3476,30 +3564,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3476
3564
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3477
3565
|
retryAfter: Date;
|
|
3478
3566
|
} | undefined;
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
reviewSteps: {
|
|
3488
|
-
stageName: string;
|
|
3489
|
-
quorum: number;
|
|
3490
|
-
}[];
|
|
3491
|
-
currentStepIndex: number;
|
|
3492
|
-
expiresAt: Date;
|
|
3493
|
-
targetId: string | null;
|
|
3494
|
-
note: Note | null;
|
|
3495
|
-
reviews: RequestReview[];
|
|
3496
|
-
createdAt: Date;
|
|
3497
|
-
updatedAt: Date;
|
|
3498
|
-
createdById: string;
|
|
3499
|
-
inflight?: {
|
|
3500
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3501
|
-
retryAfter: Date;
|
|
3502
|
-
} | undefined;
|
|
3567
|
+
scanHistory?: {
|
|
3568
|
+
type: "creation" | "pre_signature";
|
|
3569
|
+
timestamp: string;
|
|
3570
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3571
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3572
|
+
message: string;
|
|
3573
|
+
tinyUrl: string;
|
|
3574
|
+
}[] | undefined;
|
|
3503
3575
|
} | {
|
|
3504
3576
|
type: "REVOKE_USER";
|
|
3505
3577
|
data: Record<string, never>;
|
|
@@ -3522,6 +3594,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3522
3594
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3523
3595
|
retryAfter: Date;
|
|
3524
3596
|
} | undefined;
|
|
3597
|
+
scanHistory?: {
|
|
3598
|
+
type: "creation" | "pre_signature";
|
|
3599
|
+
timestamp: string;
|
|
3600
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3601
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3602
|
+
message: string;
|
|
3603
|
+
tinyUrl: string;
|
|
3604
|
+
}[] | undefined;
|
|
3525
3605
|
} | {
|
|
3526
3606
|
type: "EDIT_WORKSPACE_RULE";
|
|
3527
3607
|
data: {
|
|
@@ -3550,135 +3630,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3550
3630
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3551
3631
|
retryAfter: Date;
|
|
3552
3632
|
} | undefined;
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
};
|
|
3562
|
-
id: string;
|
|
3563
|
-
legacyId: number;
|
|
3564
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3565
|
-
reviewSteps: {
|
|
3566
|
-
stageName: string;
|
|
3567
|
-
quorum: number;
|
|
3568
|
-
}[];
|
|
3569
|
-
currentStepIndex: number;
|
|
3570
|
-
expiresAt: Date;
|
|
3571
|
-
targetId: string | null;
|
|
3572
|
-
note: Note | null;
|
|
3573
|
-
reviews: RequestReview[];
|
|
3574
|
-
createdAt: Date;
|
|
3575
|
-
updatedAt: Date;
|
|
3576
|
-
createdById: string;
|
|
3577
|
-
inflight?: {
|
|
3578
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3579
|
-
retryAfter: Date;
|
|
3580
|
-
} | undefined;
|
|
3581
|
-
} | {
|
|
3582
|
-
type: "EDIT_SCICONFIG";
|
|
3583
|
-
data: {
|
|
3584
|
-
config: {
|
|
3585
|
-
dapps: string[] | null;
|
|
3586
|
-
customContractCallEnabled: boolean;
|
|
3587
|
-
};
|
|
3588
|
-
};
|
|
3589
|
-
id: string;
|
|
3590
|
-
legacyId: number;
|
|
3591
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3592
|
-
reviewSteps: {
|
|
3593
|
-
stageName: string;
|
|
3594
|
-
quorum: number;
|
|
3595
|
-
}[];
|
|
3596
|
-
currentStepIndex: number;
|
|
3597
|
-
expiresAt: Date;
|
|
3598
|
-
targetId: string | null;
|
|
3599
|
-
note: Note | null;
|
|
3600
|
-
reviews: RequestReview[];
|
|
3601
|
-
createdAt: Date;
|
|
3602
|
-
updatedAt: Date;
|
|
3603
|
-
createdById: string;
|
|
3604
|
-
inflight?: {
|
|
3605
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3606
|
-
retryAfter: Date;
|
|
3607
|
-
} | undefined;
|
|
3608
|
-
} | {
|
|
3609
|
-
type: "CREATE_API_KEY";
|
|
3610
|
-
data: {
|
|
3611
|
-
name: string;
|
|
3612
|
-
entities: string[];
|
|
3613
|
-
scopes: Record<string, never>;
|
|
3614
|
-
};
|
|
3615
|
-
id: string;
|
|
3616
|
-
legacyId: number;
|
|
3617
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3618
|
-
reviewSteps: {
|
|
3619
|
-
stageName: string;
|
|
3620
|
-
quorum: number;
|
|
3621
|
-
}[];
|
|
3622
|
-
currentStepIndex: number;
|
|
3623
|
-
expiresAt: Date;
|
|
3624
|
-
targetId: string | null;
|
|
3625
|
-
note: Note | null;
|
|
3626
|
-
reviews: RequestReview[];
|
|
3627
|
-
createdAt: Date;
|
|
3628
|
-
updatedAt: Date;
|
|
3629
|
-
createdById: string;
|
|
3630
|
-
inflight?: {
|
|
3631
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3632
|
-
retryAfter: Date;
|
|
3633
|
-
} | undefined;
|
|
3634
|
-
} | {
|
|
3635
|
-
type: "EDIT_API_KEY";
|
|
3636
|
-
data: {
|
|
3637
|
-
name: string;
|
|
3638
|
-
entities: string[];
|
|
3639
|
-
scopes: Record<string, never>;
|
|
3640
|
-
};
|
|
3641
|
-
id: string;
|
|
3642
|
-
legacyId: number;
|
|
3643
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3644
|
-
reviewSteps: {
|
|
3645
|
-
stageName: string;
|
|
3646
|
-
quorum: number;
|
|
3647
|
-
}[];
|
|
3648
|
-
currentStepIndex: number;
|
|
3649
|
-
expiresAt: Date;
|
|
3650
|
-
targetId: string | null;
|
|
3651
|
-
note: Note | null;
|
|
3652
|
-
reviews: RequestReview[];
|
|
3653
|
-
createdAt: Date;
|
|
3654
|
-
updatedAt: Date;
|
|
3655
|
-
createdById: string;
|
|
3656
|
-
inflight?: {
|
|
3657
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3658
|
-
retryAfter: Date;
|
|
3659
|
-
} | undefined;
|
|
3660
|
-
} | {
|
|
3661
|
-
type: "REVOKE_API_KEY";
|
|
3662
|
-
data: Record<string, never>;
|
|
3663
|
-
id: string;
|
|
3664
|
-
legacyId: number;
|
|
3665
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3666
|
-
reviewSteps: {
|
|
3667
|
-
stageName: string;
|
|
3668
|
-
quorum: number;
|
|
3669
|
-
}[];
|
|
3670
|
-
currentStepIndex: number;
|
|
3671
|
-
expiresAt: Date;
|
|
3672
|
-
targetId: string | null;
|
|
3673
|
-
note: Note | null;
|
|
3674
|
-
reviews: RequestReview[];
|
|
3675
|
-
createdAt: Date;
|
|
3676
|
-
updatedAt: Date;
|
|
3677
|
-
createdById: string;
|
|
3678
|
-
inflight?: {
|
|
3679
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3680
|
-
retryAfter: Date;
|
|
3681
|
-
} | undefined;
|
|
3633
|
+
scanHistory?: {
|
|
3634
|
+
type: "creation" | "pre_signature";
|
|
3635
|
+
timestamp: string;
|
|
3636
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3637
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3638
|
+
message: string;
|
|
3639
|
+
tinyUrl: string;
|
|
3640
|
+
}[] | undefined;
|
|
3682
3641
|
} | {
|
|
3683
3642
|
type: "CREATE_POLICY";
|
|
3684
3643
|
data: {
|
|
@@ -3724,6 +3683,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3724
3683
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3725
3684
|
retryAfter: Date;
|
|
3726
3685
|
} | undefined;
|
|
3686
|
+
scanHistory?: {
|
|
3687
|
+
type: "creation" | "pre_signature";
|
|
3688
|
+
timestamp: string;
|
|
3689
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3690
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3691
|
+
message: string;
|
|
3692
|
+
tinyUrl: string;
|
|
3693
|
+
}[] | undefined;
|
|
3727
3694
|
} | {
|
|
3728
3695
|
type: "EDIT_POLICY";
|
|
3729
3696
|
data: {
|
|
@@ -3764,6 +3731,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3764
3731
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3765
3732
|
retryAfter: Date;
|
|
3766
3733
|
} | undefined;
|
|
3734
|
+
scanHistory?: {
|
|
3735
|
+
type: "creation" | "pre_signature";
|
|
3736
|
+
timestamp: string;
|
|
3737
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3738
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3739
|
+
message: string;
|
|
3740
|
+
tinyUrl: string;
|
|
3741
|
+
}[] | undefined;
|
|
3767
3742
|
} | {
|
|
3768
3743
|
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
3769
3744
|
data: null;
|
|
@@ -3786,6 +3761,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3786
3761
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3787
3762
|
retryAfter: Date;
|
|
3788
3763
|
} | undefined;
|
|
3764
|
+
scanHistory?: {
|
|
3765
|
+
type: "creation" | "pre_signature";
|
|
3766
|
+
timestamp: string;
|
|
3767
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3768
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3769
|
+
message: string;
|
|
3770
|
+
tinyUrl: string;
|
|
3771
|
+
}[] | undefined;
|
|
3789
3772
|
} | {
|
|
3790
3773
|
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
3791
3774
|
data: {
|
|
@@ -3821,6 +3804,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3821
3804
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3822
3805
|
retryAfter: Date;
|
|
3823
3806
|
} | undefined;
|
|
3807
|
+
scanHistory?: {
|
|
3808
|
+
type: "creation" | "pre_signature";
|
|
3809
|
+
timestamp: string;
|
|
3810
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3811
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3812
|
+
message: string;
|
|
3813
|
+
tinyUrl: string;
|
|
3814
|
+
}[] | undefined;
|
|
3824
3815
|
} | {
|
|
3825
3816
|
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
3826
3817
|
data: {
|
|
@@ -3856,6 +3847,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3856
3847
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3857
3848
|
retryAfter: Date;
|
|
3858
3849
|
} | undefined;
|
|
3850
|
+
scanHistory?: {
|
|
3851
|
+
type: "creation" | "pre_signature";
|
|
3852
|
+
timestamp: string;
|
|
3853
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3854
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3855
|
+
message: string;
|
|
3856
|
+
tinyUrl: string;
|
|
3857
|
+
}[] | undefined;
|
|
3859
3858
|
} | {
|
|
3860
3859
|
type: "TRADELINK_CREATE_EXCHANGE";
|
|
3861
3860
|
data: {
|
|
@@ -3889,6 +3888,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3889
3888
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3890
3889
|
retryAfter: Date;
|
|
3891
3890
|
} | undefined;
|
|
3891
|
+
scanHistory?: {
|
|
3892
|
+
type: "creation" | "pre_signature";
|
|
3893
|
+
timestamp: string;
|
|
3894
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3895
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3896
|
+
message: string;
|
|
3897
|
+
tinyUrl: string;
|
|
3898
|
+
}[] | undefined;
|
|
3892
3899
|
} | {
|
|
3893
3900
|
type: "TRADELINK_EDIT_EXCHANGE";
|
|
3894
3901
|
data: {
|
|
@@ -3922,6 +3929,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3922
3929
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3923
3930
|
retryAfter: Date;
|
|
3924
3931
|
} | undefined;
|
|
3932
|
+
scanHistory?: {
|
|
3933
|
+
type: "creation" | "pre_signature";
|
|
3934
|
+
timestamp: string;
|
|
3935
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3936
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3937
|
+
message: string;
|
|
3938
|
+
tinyUrl: string;
|
|
3939
|
+
}[] | undefined;
|
|
3925
3940
|
} | {
|
|
3926
3941
|
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
3927
3942
|
data: {
|
|
@@ -3955,6 +3970,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3955
3970
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3956
3971
|
retryAfter: Date;
|
|
3957
3972
|
} | undefined;
|
|
3973
|
+
scanHistory?: {
|
|
3974
|
+
type: "creation" | "pre_signature";
|
|
3975
|
+
timestamp: string;
|
|
3976
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
3977
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
3978
|
+
message: string;
|
|
3979
|
+
tinyUrl: string;
|
|
3980
|
+
}[] | undefined;
|
|
3958
3981
|
} | {
|
|
3959
3982
|
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
3960
3983
|
data: {
|
|
@@ -3988,6 +4011,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3988
4011
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3989
4012
|
retryAfter: Date;
|
|
3990
4013
|
} | undefined;
|
|
4014
|
+
scanHistory?: {
|
|
4015
|
+
type: "creation" | "pre_signature";
|
|
4016
|
+
timestamp: string;
|
|
4017
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4018
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4019
|
+
message: string;
|
|
4020
|
+
tinyUrl: string;
|
|
4021
|
+
}[] | undefined;
|
|
3991
4022
|
} | {
|
|
3992
4023
|
type: "TRADELINK_ADJUST_PLEDGE";
|
|
3993
4024
|
data: {
|
|
@@ -4014,6 +4045,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4014
4045
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4015
4046
|
retryAfter: Date;
|
|
4016
4047
|
} | undefined;
|
|
4048
|
+
scanHistory?: {
|
|
4049
|
+
type: "creation" | "pre_signature";
|
|
4050
|
+
timestamp: string;
|
|
4051
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4052
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4053
|
+
message: string;
|
|
4054
|
+
tinyUrl: string;
|
|
4055
|
+
}[] | undefined;
|
|
4017
4056
|
} | {
|
|
4018
4057
|
type: "TRADELINK_REPLEDGE";
|
|
4019
4058
|
data: {
|
|
@@ -4040,6 +4079,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4040
4079
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4041
4080
|
retryAfter: Date;
|
|
4042
4081
|
} | undefined;
|
|
4082
|
+
scanHistory?: {
|
|
4083
|
+
type: "creation" | "pre_signature";
|
|
4084
|
+
timestamp: string;
|
|
4085
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4086
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4087
|
+
message: string;
|
|
4088
|
+
tinyUrl: string;
|
|
4089
|
+
}[] | undefined;
|
|
4043
4090
|
} | {
|
|
4044
4091
|
type: "TRADELINK_CREATE_SETTLEMENT";
|
|
4045
4092
|
data: {
|
|
@@ -4066,6 +4113,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4066
4113
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4067
4114
|
retryAfter: Date;
|
|
4068
4115
|
} | undefined;
|
|
4116
|
+
scanHistory?: {
|
|
4117
|
+
type: "creation" | "pre_signature";
|
|
4118
|
+
timestamp: string;
|
|
4119
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4120
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4121
|
+
message: string;
|
|
4122
|
+
tinyUrl: string;
|
|
4123
|
+
}[] | undefined;
|
|
4069
4124
|
} | {
|
|
4070
4125
|
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
4071
4126
|
data: {
|
|
@@ -4091,6 +4146,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4091
4146
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4092
4147
|
retryAfter: Date;
|
|
4093
4148
|
} | undefined;
|
|
4149
|
+
scanHistory?: {
|
|
4150
|
+
type: "creation" | "pre_signature";
|
|
4151
|
+
timestamp: string;
|
|
4152
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4153
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4154
|
+
message: string;
|
|
4155
|
+
tinyUrl: string;
|
|
4156
|
+
}[] | undefined;
|
|
4094
4157
|
} | {
|
|
4095
4158
|
type: "TRADELINK_WITHDRAW";
|
|
4096
4159
|
data: {
|
|
@@ -4116,6 +4179,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4116
4179
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4117
4180
|
retryAfter: Date;
|
|
4118
4181
|
} | undefined;
|
|
4182
|
+
scanHistory?: {
|
|
4183
|
+
type: "creation" | "pre_signature";
|
|
4184
|
+
timestamp: string;
|
|
4185
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4186
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4187
|
+
message: string;
|
|
4188
|
+
tinyUrl: string;
|
|
4189
|
+
}[] | undefined;
|
|
4119
4190
|
} | {
|
|
4120
4191
|
type: "TRADELINK_ARBITRATE";
|
|
4121
4192
|
data: {
|
|
@@ -4141,8 +4212,465 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4141
4212
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4142
4213
|
retryAfter: Date;
|
|
4143
4214
|
} | undefined;
|
|
4144
|
-
|
|
4145
|
-
|
|
4215
|
+
scanHistory?: {
|
|
4216
|
+
type: "creation" | "pre_signature";
|
|
4217
|
+
timestamp: string;
|
|
4218
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4219
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4220
|
+
message: string;
|
|
4221
|
+
tinyUrl: string;
|
|
4222
|
+
}[] | undefined;
|
|
4223
|
+
} | {
|
|
4224
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
4225
|
+
data: {
|
|
4226
|
+
previousPublicKeys: string[];
|
|
4227
|
+
requestedPublicKeys: string[];
|
|
4228
|
+
};
|
|
4229
|
+
id: string;
|
|
4230
|
+
legacyId: number;
|
|
4231
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4232
|
+
reviewSteps: {
|
|
4233
|
+
stageName: string;
|
|
4234
|
+
quorum: number;
|
|
4235
|
+
}[];
|
|
4236
|
+
currentStepIndex: number;
|
|
4237
|
+
expiresAt: Date;
|
|
4238
|
+
targetId: string | null;
|
|
4239
|
+
note: Note | null;
|
|
4240
|
+
reviews: RequestReview[];
|
|
4241
|
+
createdAt: Date;
|
|
4242
|
+
updatedAt: Date;
|
|
4243
|
+
createdById: string;
|
|
4244
|
+
inflight?: {
|
|
4245
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4246
|
+
retryAfter: Date;
|
|
4247
|
+
} | undefined;
|
|
4248
|
+
scanHistory?: {
|
|
4249
|
+
type: "creation" | "pre_signature";
|
|
4250
|
+
timestamp: string;
|
|
4251
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4252
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4253
|
+
message: string;
|
|
4254
|
+
tinyUrl: string;
|
|
4255
|
+
}[] | undefined;
|
|
4256
|
+
} | {
|
|
4257
|
+
type: "SIGN_MESSAGE";
|
|
4258
|
+
data: {
|
|
4259
|
+
message: {
|
|
4260
|
+
type: "EIP191";
|
|
4261
|
+
data: string;
|
|
4262
|
+
} | {
|
|
4263
|
+
type: "EIP712";
|
|
4264
|
+
data: {
|
|
4265
|
+
types: Record<string, {
|
|
4266
|
+
name: string;
|
|
4267
|
+
type: string;
|
|
4268
|
+
}[]>;
|
|
4269
|
+
primaryType: string;
|
|
4270
|
+
domain: Record<string, any>;
|
|
4271
|
+
message: Record<string, any>;
|
|
4272
|
+
};
|
|
4273
|
+
} | {
|
|
4274
|
+
type: "CIP8";
|
|
4275
|
+
data: string;
|
|
4276
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
4277
|
+
} | {
|
|
4278
|
+
type: "BIP137";
|
|
4279
|
+
data: string;
|
|
4280
|
+
};
|
|
4281
|
+
accountId: string;
|
|
4282
|
+
address: string;
|
|
4283
|
+
derivationPath: string;
|
|
4284
|
+
};
|
|
4285
|
+
id: string;
|
|
4286
|
+
legacyId: number;
|
|
4287
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4288
|
+
reviewSteps: {
|
|
4289
|
+
stageName: string;
|
|
4290
|
+
quorum: number;
|
|
4291
|
+
}[];
|
|
4292
|
+
currentStepIndex: number;
|
|
4293
|
+
expiresAt: Date;
|
|
4294
|
+
targetId: string | null;
|
|
4295
|
+
note: Note | null;
|
|
4296
|
+
reviews: RequestReview[];
|
|
4297
|
+
createdAt: Date;
|
|
4298
|
+
updatedAt: Date;
|
|
4299
|
+
createdById: string;
|
|
4300
|
+
inflight?: {
|
|
4301
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4302
|
+
retryAfter: Date;
|
|
4303
|
+
} | undefined;
|
|
4304
|
+
scanHistory?: {
|
|
4305
|
+
type: "creation" | "pre_signature";
|
|
4306
|
+
timestamp: string;
|
|
4307
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4308
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4309
|
+
message: string;
|
|
4310
|
+
tinyUrl: string;
|
|
4311
|
+
}[] | undefined;
|
|
4312
|
+
} | {
|
|
4313
|
+
type: "CREATE_ACCOUNT";
|
|
4314
|
+
data: {
|
|
4315
|
+
name: string;
|
|
4316
|
+
currency: string;
|
|
4317
|
+
contractAddress: string | null;
|
|
4318
|
+
tokenIdentifier: string | null;
|
|
4319
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
4320
|
+
governance: {
|
|
4321
|
+
type: "CLASSIC";
|
|
4322
|
+
policy: {
|
|
4323
|
+
policyId: string;
|
|
4324
|
+
} | {
|
|
4325
|
+
rules: {
|
|
4326
|
+
reviewSteps: ({
|
|
4327
|
+
quorum: number;
|
|
4328
|
+
userIds: string[];
|
|
4329
|
+
} | {
|
|
4330
|
+
quorum: number;
|
|
4331
|
+
groupId: string;
|
|
4332
|
+
})[];
|
|
4333
|
+
threshold?: {
|
|
4334
|
+
min: string | null;
|
|
4335
|
+
max: string | null;
|
|
4336
|
+
} | undefined;
|
|
4337
|
+
whitelistIds?: string[] | undefined;
|
|
4338
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4339
|
+
}[];
|
|
4340
|
+
};
|
|
4341
|
+
} | {
|
|
4342
|
+
type: "TRADELINK";
|
|
4343
|
+
assetManagerId: string;
|
|
4344
|
+
exchangeConfigs: {
|
|
4345
|
+
exchangeId: string;
|
|
4346
|
+
repledgeAuthorized: boolean;
|
|
4347
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
4348
|
+
}[];
|
|
4349
|
+
} | {
|
|
4350
|
+
type: "RAW_SIGNING";
|
|
4351
|
+
policy: {
|
|
4352
|
+
rules: {
|
|
4353
|
+
operationType: "SIGN_DIGESTS";
|
|
4354
|
+
reviewSteps: {
|
|
4355
|
+
quorum: number;
|
|
4356
|
+
userIds: string[];
|
|
4357
|
+
}[];
|
|
4358
|
+
}[];
|
|
4359
|
+
};
|
|
4360
|
+
};
|
|
4361
|
+
portfolioIds?: string[] | undefined;
|
|
4362
|
+
index: number;
|
|
4363
|
+
derivationPath: string;
|
|
4364
|
+
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";
|
|
4365
|
+
};
|
|
4366
|
+
id: string;
|
|
4367
|
+
legacyId: number;
|
|
4368
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4369
|
+
reviewSteps: {
|
|
4370
|
+
stageName: string;
|
|
4371
|
+
quorum: number;
|
|
4372
|
+
}[];
|
|
4373
|
+
currentStepIndex: number;
|
|
4374
|
+
expiresAt: Date;
|
|
4375
|
+
targetId: string | null;
|
|
4376
|
+
note: Note | null;
|
|
4377
|
+
reviews: RequestReview[];
|
|
4378
|
+
createdAt: Date;
|
|
4379
|
+
updatedAt: Date;
|
|
4380
|
+
createdById: string;
|
|
4381
|
+
inflight?: {
|
|
4382
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4383
|
+
retryAfter: Date;
|
|
4384
|
+
} | undefined;
|
|
4385
|
+
scanHistory?: {
|
|
4386
|
+
type: "creation" | "pre_signature";
|
|
4387
|
+
timestamp: string;
|
|
4388
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4389
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4390
|
+
message: string;
|
|
4391
|
+
tinyUrl: string;
|
|
4392
|
+
}[] | undefined;
|
|
4393
|
+
} | {
|
|
4394
|
+
type: "EDIT_TOKEN_RULE";
|
|
4395
|
+
data: {
|
|
4396
|
+
parentAccountId: string;
|
|
4397
|
+
contractAddress: string;
|
|
4398
|
+
rules: {
|
|
4399
|
+
reviewSteps: ({
|
|
4400
|
+
quorum: number;
|
|
4401
|
+
userIds: string[];
|
|
4402
|
+
} | {
|
|
4403
|
+
quorum: number;
|
|
4404
|
+
groupId: string;
|
|
4405
|
+
})[];
|
|
4406
|
+
threshold?: {
|
|
4407
|
+
min: string | null;
|
|
4408
|
+
max: string | null;
|
|
4409
|
+
} | undefined;
|
|
4410
|
+
whitelistIds?: string[] | undefined;
|
|
4411
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4412
|
+
}[];
|
|
4413
|
+
};
|
|
4414
|
+
id: string;
|
|
4415
|
+
legacyId: number;
|
|
4416
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4417
|
+
reviewSteps: {
|
|
4418
|
+
stageName: string;
|
|
4419
|
+
quorum: number;
|
|
4420
|
+
}[];
|
|
4421
|
+
currentStepIndex: number;
|
|
4422
|
+
expiresAt: Date;
|
|
4423
|
+
targetId: string | null;
|
|
4424
|
+
note: Note | null;
|
|
4425
|
+
reviews: RequestReview[];
|
|
4426
|
+
createdAt: Date;
|
|
4427
|
+
updatedAt: Date;
|
|
4428
|
+
createdById: string;
|
|
4429
|
+
inflight?: {
|
|
4430
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4431
|
+
retryAfter: Date;
|
|
4432
|
+
} | undefined;
|
|
4433
|
+
scanHistory?: {
|
|
4434
|
+
type: "creation" | "pre_signature";
|
|
4435
|
+
timestamp: string;
|
|
4436
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4437
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4438
|
+
message: string;
|
|
4439
|
+
tinyUrl: string;
|
|
4440
|
+
}[] | undefined;
|
|
4441
|
+
} | {
|
|
4442
|
+
type: "REVOKE_GROUP";
|
|
4443
|
+
data: Record<string, never>;
|
|
4444
|
+
id: string;
|
|
4445
|
+
legacyId: number;
|
|
4446
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4447
|
+
reviewSteps: {
|
|
4448
|
+
stageName: string;
|
|
4449
|
+
quorum: number;
|
|
4450
|
+
}[];
|
|
4451
|
+
currentStepIndex: number;
|
|
4452
|
+
expiresAt: Date;
|
|
4453
|
+
targetId: string | null;
|
|
4454
|
+
note: Note | null;
|
|
4455
|
+
reviews: RequestReview[];
|
|
4456
|
+
createdAt: Date;
|
|
4457
|
+
updatedAt: Date;
|
|
4458
|
+
createdById: string;
|
|
4459
|
+
inflight?: {
|
|
4460
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4461
|
+
retryAfter: Date;
|
|
4462
|
+
} | undefined;
|
|
4463
|
+
scanHistory?: {
|
|
4464
|
+
type: "creation" | "pre_signature";
|
|
4465
|
+
timestamp: string;
|
|
4466
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4467
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4468
|
+
message: string;
|
|
4469
|
+
tinyUrl: string;
|
|
4470
|
+
}[] | undefined;
|
|
4471
|
+
} | {
|
|
4472
|
+
type: "CREATE_API_USER_ACCESS";
|
|
4473
|
+
data: {
|
|
4474
|
+
name: string;
|
|
4475
|
+
};
|
|
4476
|
+
id: string;
|
|
4477
|
+
legacyId: number;
|
|
4478
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4479
|
+
reviewSteps: {
|
|
4480
|
+
stageName: string;
|
|
4481
|
+
quorum: number;
|
|
4482
|
+
}[];
|
|
4483
|
+
currentStepIndex: number;
|
|
4484
|
+
expiresAt: Date;
|
|
4485
|
+
targetId: string | null;
|
|
4486
|
+
note: Note | null;
|
|
4487
|
+
reviews: RequestReview[];
|
|
4488
|
+
createdAt: Date;
|
|
4489
|
+
updatedAt: Date;
|
|
4490
|
+
createdById: string;
|
|
4491
|
+
inflight?: {
|
|
4492
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4493
|
+
retryAfter: Date;
|
|
4494
|
+
} | undefined;
|
|
4495
|
+
scanHistory?: {
|
|
4496
|
+
type: "creation" | "pre_signature";
|
|
4497
|
+
timestamp: string;
|
|
4498
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4499
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4500
|
+
message: string;
|
|
4501
|
+
tinyUrl: string;
|
|
4502
|
+
}[] | undefined;
|
|
4503
|
+
} | {
|
|
4504
|
+
type: "CREATE_SCICONFIG";
|
|
4505
|
+
data: {
|
|
4506
|
+
account: string;
|
|
4507
|
+
config: {
|
|
4508
|
+
dapps: string[] | null;
|
|
4509
|
+
customContractCallEnabled: boolean;
|
|
4510
|
+
};
|
|
4511
|
+
};
|
|
4512
|
+
id: string;
|
|
4513
|
+
legacyId: number;
|
|
4514
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4515
|
+
reviewSteps: {
|
|
4516
|
+
stageName: string;
|
|
4517
|
+
quorum: number;
|
|
4518
|
+
}[];
|
|
4519
|
+
currentStepIndex: number;
|
|
4520
|
+
expiresAt: Date;
|
|
4521
|
+
targetId: string | null;
|
|
4522
|
+
note: Note | null;
|
|
4523
|
+
reviews: RequestReview[];
|
|
4524
|
+
createdAt: Date;
|
|
4525
|
+
updatedAt: Date;
|
|
4526
|
+
createdById: string;
|
|
4527
|
+
inflight?: {
|
|
4528
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4529
|
+
retryAfter: Date;
|
|
4530
|
+
} | undefined;
|
|
4531
|
+
scanHistory?: {
|
|
4532
|
+
type: "creation" | "pre_signature";
|
|
4533
|
+
timestamp: string;
|
|
4534
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4535
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4536
|
+
message: string;
|
|
4537
|
+
tinyUrl: string;
|
|
4538
|
+
}[] | undefined;
|
|
4539
|
+
} | {
|
|
4540
|
+
type: "EDIT_SCICONFIG";
|
|
4541
|
+
data: {
|
|
4542
|
+
config: {
|
|
4543
|
+
dapps: string[] | null;
|
|
4544
|
+
customContractCallEnabled: boolean;
|
|
4545
|
+
};
|
|
4546
|
+
};
|
|
4547
|
+
id: string;
|
|
4548
|
+
legacyId: number;
|
|
4549
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4550
|
+
reviewSteps: {
|
|
4551
|
+
stageName: string;
|
|
4552
|
+
quorum: number;
|
|
4553
|
+
}[];
|
|
4554
|
+
currentStepIndex: number;
|
|
4555
|
+
expiresAt: Date;
|
|
4556
|
+
targetId: string | null;
|
|
4557
|
+
note: Note | null;
|
|
4558
|
+
reviews: RequestReview[];
|
|
4559
|
+
createdAt: Date;
|
|
4560
|
+
updatedAt: Date;
|
|
4561
|
+
createdById: string;
|
|
4562
|
+
inflight?: {
|
|
4563
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4564
|
+
retryAfter: Date;
|
|
4565
|
+
} | undefined;
|
|
4566
|
+
scanHistory?: {
|
|
4567
|
+
type: "creation" | "pre_signature";
|
|
4568
|
+
timestamp: string;
|
|
4569
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4570
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4571
|
+
message: string;
|
|
4572
|
+
tinyUrl: string;
|
|
4573
|
+
}[] | undefined;
|
|
4574
|
+
} | {
|
|
4575
|
+
type: "CREATE_API_KEY";
|
|
4576
|
+
data: {
|
|
4577
|
+
name: string;
|
|
4578
|
+
entities: string[];
|
|
4579
|
+
scopes: Record<string, never>;
|
|
4580
|
+
};
|
|
4581
|
+
id: string;
|
|
4582
|
+
legacyId: number;
|
|
4583
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4584
|
+
reviewSteps: {
|
|
4585
|
+
stageName: string;
|
|
4586
|
+
quorum: number;
|
|
4587
|
+
}[];
|
|
4588
|
+
currentStepIndex: number;
|
|
4589
|
+
expiresAt: Date;
|
|
4590
|
+
targetId: string | null;
|
|
4591
|
+
note: Note | null;
|
|
4592
|
+
reviews: RequestReview[];
|
|
4593
|
+
createdAt: Date;
|
|
4594
|
+
updatedAt: Date;
|
|
4595
|
+
createdById: string;
|
|
4596
|
+
inflight?: {
|
|
4597
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4598
|
+
retryAfter: Date;
|
|
4599
|
+
} | undefined;
|
|
4600
|
+
scanHistory?: {
|
|
4601
|
+
type: "creation" | "pre_signature";
|
|
4602
|
+
timestamp: string;
|
|
4603
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4604
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4605
|
+
message: string;
|
|
4606
|
+
tinyUrl: string;
|
|
4607
|
+
}[] | undefined;
|
|
4608
|
+
} | {
|
|
4609
|
+
type: "EDIT_API_KEY";
|
|
4610
|
+
data: {
|
|
4611
|
+
name: string;
|
|
4612
|
+
entities: string[];
|
|
4613
|
+
scopes: Record<string, never>;
|
|
4614
|
+
};
|
|
4615
|
+
id: string;
|
|
4616
|
+
legacyId: number;
|
|
4617
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4618
|
+
reviewSteps: {
|
|
4619
|
+
stageName: string;
|
|
4620
|
+
quorum: number;
|
|
4621
|
+
}[];
|
|
4622
|
+
currentStepIndex: number;
|
|
4623
|
+
expiresAt: Date;
|
|
4624
|
+
targetId: string | null;
|
|
4625
|
+
note: Note | null;
|
|
4626
|
+
reviews: RequestReview[];
|
|
4627
|
+
createdAt: Date;
|
|
4628
|
+
updatedAt: Date;
|
|
4629
|
+
createdById: string;
|
|
4630
|
+
inflight?: {
|
|
4631
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4632
|
+
retryAfter: Date;
|
|
4633
|
+
} | undefined;
|
|
4634
|
+
scanHistory?: {
|
|
4635
|
+
type: "creation" | "pre_signature";
|
|
4636
|
+
timestamp: string;
|
|
4637
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4638
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4639
|
+
message: string;
|
|
4640
|
+
tinyUrl: string;
|
|
4641
|
+
}[] | undefined;
|
|
4642
|
+
} | {
|
|
4643
|
+
type: "REVOKE_API_KEY";
|
|
4644
|
+
data: Record<string, never>;
|
|
4645
|
+
id: string;
|
|
4646
|
+
legacyId: number;
|
|
4647
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
4648
|
+
reviewSteps: {
|
|
4649
|
+
stageName: string;
|
|
4650
|
+
quorum: number;
|
|
4651
|
+
}[];
|
|
4652
|
+
currentStepIndex: number;
|
|
4653
|
+
expiresAt: Date;
|
|
4654
|
+
targetId: string | null;
|
|
4655
|
+
note: Note | null;
|
|
4656
|
+
reviews: RequestReview[];
|
|
4657
|
+
createdAt: Date;
|
|
4658
|
+
updatedAt: Date;
|
|
4659
|
+
createdById: string;
|
|
4660
|
+
inflight?: {
|
|
4661
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
4662
|
+
retryAfter: Date;
|
|
4663
|
+
} | undefined;
|
|
4664
|
+
scanHistory?: {
|
|
4665
|
+
type: "creation" | "pre_signature";
|
|
4666
|
+
timestamp: string;
|
|
4667
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
4668
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
4669
|
+
message: string;
|
|
4670
|
+
tinyUrl: string;
|
|
4671
|
+
}[] | undefined;
|
|
4672
|
+
}) & {
|
|
4673
|
+
workspaceName: string;
|
|
4146
4674
|
};
|
|
4147
4675
|
meta: {
|
|
4148
4676
|
[x: string]: unknown;
|
|
@@ -4226,6 +4754,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4226
4754
|
debugAuthToken?: string;
|
|
4227
4755
|
rootAuthToken?: string;
|
|
4228
4756
|
backofficeRequiredPermission?: BackofficePermission;
|
|
4757
|
+
core: unknown;
|
|
4229
4758
|
prisma: ExtendedPrismaClient;
|
|
4230
4759
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4231
4760
|
user: {
|
|
@@ -4281,6 +4810,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4281
4810
|
httpStatus: number;
|
|
4282
4811
|
path?: string;
|
|
4283
4812
|
stack?: string;
|
|
4813
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
4284
4814
|
maintenance?: boolean | undefined;
|
|
4285
4815
|
};
|
|
4286
4816
|
};
|
|
@@ -4471,6 +5001,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4471
5001
|
debugAuthToken?: string;
|
|
4472
5002
|
rootAuthToken?: string;
|
|
4473
5003
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5004
|
+
core: unknown;
|
|
4474
5005
|
prisma: ExtendedPrismaClient;
|
|
4475
5006
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4476
5007
|
user: {
|
|
@@ -4526,6 +5057,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4526
5057
|
httpStatus: number;
|
|
4527
5058
|
path?: string;
|
|
4528
5059
|
stack?: string;
|
|
5060
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
4529
5061
|
maintenance?: boolean | undefined;
|
|
4530
5062
|
};
|
|
4531
5063
|
};
|
|
@@ -4618,6 +5150,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4618
5150
|
debugAuthToken?: string;
|
|
4619
5151
|
rootAuthToken?: string;
|
|
4620
5152
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5153
|
+
core: unknown;
|
|
4621
5154
|
prisma: ExtendedPrismaClient;
|
|
4622
5155
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4623
5156
|
user: {
|
|
@@ -4673,6 +5206,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4673
5206
|
httpStatus: number;
|
|
4674
5207
|
path?: string;
|
|
4675
5208
|
stack?: string;
|
|
5209
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
4676
5210
|
maintenance?: boolean | undefined;
|
|
4677
5211
|
};
|
|
4678
5212
|
};
|
|
@@ -4802,6 +5336,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4802
5336
|
debugAuthToken?: string;
|
|
4803
5337
|
rootAuthToken?: string;
|
|
4804
5338
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5339
|
+
core: unknown;
|
|
4805
5340
|
prisma: ExtendedPrismaClient;
|
|
4806
5341
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4807
5342
|
user: {
|
|
@@ -4857,6 +5392,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4857
5392
|
httpStatus: number;
|
|
4858
5393
|
path?: string;
|
|
4859
5394
|
stack?: string;
|
|
5395
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
4860
5396
|
maintenance?: boolean | undefined;
|
|
4861
5397
|
};
|
|
4862
5398
|
};
|
|
@@ -4983,6 +5519,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4983
5519
|
};
|
|
4984
5520
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4985
5521
|
}>;
|
|
5522
|
+
compareWithHsm: import("@trpc/server").TRPCQueryProcedure<{
|
|
5523
|
+
input: {
|
|
5524
|
+
workspaceName: string;
|
|
5525
|
+
comparator: "whitelists" | "workspace-name";
|
|
5526
|
+
};
|
|
5527
|
+
output: HsmWorkspaceComparison;
|
|
5528
|
+
meta: {
|
|
5529
|
+
[x: string]: unknown;
|
|
5530
|
+
} & {
|
|
5531
|
+
openapi?: {
|
|
5532
|
+
enabled?: boolean;
|
|
5533
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
5534
|
+
path: `/${string}`;
|
|
5535
|
+
operationId?: string;
|
|
5536
|
+
summary?: string;
|
|
5537
|
+
description?: string;
|
|
5538
|
+
protect?: boolean;
|
|
5539
|
+
tags?: string[];
|
|
5540
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
5541
|
+
deprecated?: boolean;
|
|
5542
|
+
requestHeaders?: import("zod").ZodObject;
|
|
5543
|
+
responseHeaders?: import("zod").ZodObject;
|
|
5544
|
+
successDescription?: string;
|
|
5545
|
+
errorResponses?: number[] | Record<number, string>;
|
|
5546
|
+
};
|
|
5547
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
5548
|
+
}>;
|
|
4986
5549
|
}>>;
|
|
4987
5550
|
}>>;
|
|
4988
5551
|
reports: import("@trpc/server").TRPCBuiltRouter<{
|
|
@@ -4993,6 +5556,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4993
5556
|
debugAuthToken?: string;
|
|
4994
5557
|
rootAuthToken?: string;
|
|
4995
5558
|
backofficeRequiredPermission?: BackofficePermission;
|
|
5559
|
+
core: unknown;
|
|
4996
5560
|
prisma: ExtendedPrismaClient;
|
|
4997
5561
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4998
5562
|
user: {
|
|
@@ -5048,6 +5612,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5048
5612
|
httpStatus: number;
|
|
5049
5613
|
path?: string;
|
|
5050
5614
|
stack?: string;
|
|
5615
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
5051
5616
|
maintenance?: boolean | undefined;
|
|
5052
5617
|
};
|
|
5053
5618
|
};
|
|
@@ -5070,59 +5635,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5070
5635
|
pageSize: number;
|
|
5071
5636
|
total: number;
|
|
5072
5637
|
results: ({
|
|
5073
|
-
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
5074
|
-
data: {
|
|
5075
|
-
previousPublicKeys: string[];
|
|
5076
|
-
requestedPublicKeys: string[];
|
|
5077
|
-
};
|
|
5078
|
-
id: string;
|
|
5079
|
-
legacyId: number;
|
|
5080
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5081
|
-
reviewSteps: {
|
|
5082
|
-
stageName: string;
|
|
5083
|
-
quorum: number;
|
|
5084
|
-
}[];
|
|
5085
|
-
currentStepIndex: number;
|
|
5086
|
-
expiresAt: Date;
|
|
5087
|
-
targetId: string | null;
|
|
5088
|
-
note: Note | null;
|
|
5089
|
-
reviews: RequestReview[];
|
|
5090
|
-
createdAt: Date;
|
|
5091
|
-
updatedAt: Date;
|
|
5092
|
-
createdById: string;
|
|
5093
|
-
inflight?: {
|
|
5094
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5095
|
-
retryAfter: Date;
|
|
5096
|
-
} | undefined;
|
|
5097
|
-
} | {
|
|
5098
|
-
type: "UPDATE_QUORUM";
|
|
5099
|
-
data: {
|
|
5100
|
-
quorum: number;
|
|
5101
|
-
};
|
|
5102
|
-
id: string;
|
|
5103
|
-
legacyId: number;
|
|
5104
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5105
|
-
reviewSteps: {
|
|
5106
|
-
stageName: string;
|
|
5107
|
-
quorum: number;
|
|
5108
|
-
}[];
|
|
5109
|
-
currentStepIndex: number;
|
|
5110
|
-
expiresAt: Date;
|
|
5111
|
-
targetId: string | null;
|
|
5112
|
-
note: Note | null;
|
|
5113
|
-
reviews: RequestReview[];
|
|
5114
|
-
createdAt: Date;
|
|
5115
|
-
updatedAt: Date;
|
|
5116
|
-
createdById: string;
|
|
5117
|
-
inflight?: {
|
|
5118
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5119
|
-
retryAfter: Date;
|
|
5120
|
-
} | undefined;
|
|
5121
|
-
} | {
|
|
5122
5638
|
type: "CREATE_TRANSACTION";
|
|
5123
5639
|
data: {
|
|
5124
5640
|
accountId: string;
|
|
5125
5641
|
transaction: TransactionData;
|
|
5642
|
+
maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
|
|
5126
5643
|
};
|
|
5127
5644
|
id: string;
|
|
5128
5645
|
legacyId: number;
|
|
@@ -5143,34 +5660,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5143
5660
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5144
5661
|
retryAfter: Date;
|
|
5145
5662
|
} | undefined;
|
|
5663
|
+
scanHistory?: {
|
|
5664
|
+
type: "creation" | "pre_signature";
|
|
5665
|
+
timestamp: string;
|
|
5666
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5667
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5668
|
+
message: string;
|
|
5669
|
+
tinyUrl: string;
|
|
5670
|
+
}[] | undefined;
|
|
5146
5671
|
} | {
|
|
5147
|
-
type: "
|
|
5672
|
+
type: "UPDATE_QUORUM";
|
|
5148
5673
|
data: {
|
|
5149
|
-
|
|
5150
|
-
type: "EIP191";
|
|
5151
|
-
data: string;
|
|
5152
|
-
} | {
|
|
5153
|
-
type: "EIP712";
|
|
5154
|
-
data: {
|
|
5155
|
-
types: Record<string, {
|
|
5156
|
-
name: string;
|
|
5157
|
-
type: string;
|
|
5158
|
-
}[]>;
|
|
5159
|
-
primaryType: string;
|
|
5160
|
-
domain: Record<string, any>;
|
|
5161
|
-
message: Record<string, any>;
|
|
5162
|
-
};
|
|
5163
|
-
} | {
|
|
5164
|
-
type: "CIP8";
|
|
5165
|
-
data: string;
|
|
5166
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
5167
|
-
} | {
|
|
5168
|
-
type: "BIP137";
|
|
5169
|
-
data: string;
|
|
5170
|
-
};
|
|
5171
|
-
accountId: string;
|
|
5172
|
-
address: string;
|
|
5173
|
-
derivationPath: string;
|
|
5674
|
+
quorum: number;
|
|
5174
5675
|
};
|
|
5175
5676
|
id: string;
|
|
5176
5677
|
legacyId: number;
|
|
@@ -5191,6 +5692,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5191
5692
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5192
5693
|
retryAfter: Date;
|
|
5193
5694
|
} | undefined;
|
|
5695
|
+
scanHistory?: {
|
|
5696
|
+
type: "creation" | "pre_signature";
|
|
5697
|
+
timestamp: string;
|
|
5698
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5699
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5700
|
+
message: string;
|
|
5701
|
+
tinyUrl: string;
|
|
5702
|
+
}[] | undefined;
|
|
5194
5703
|
} | {
|
|
5195
5704
|
type: "SIGN_DIGESTS";
|
|
5196
5705
|
data: {
|
|
@@ -5219,14 +5728,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5219
5728
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5220
5729
|
retryAfter: Date;
|
|
5221
5730
|
} | undefined;
|
|
5731
|
+
scanHistory?: {
|
|
5732
|
+
type: "creation" | "pre_signature";
|
|
5733
|
+
timestamp: string;
|
|
5734
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5735
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5736
|
+
message: string;
|
|
5737
|
+
tinyUrl: string;
|
|
5738
|
+
}[] | undefined;
|
|
5222
5739
|
} | {
|
|
5223
|
-
type: "
|
|
5740
|
+
type: "EDIT_ACCOUNT";
|
|
5224
5741
|
data: {
|
|
5225
5742
|
name: string;
|
|
5226
|
-
currency: string;
|
|
5227
|
-
contractAddress: string | null;
|
|
5228
|
-
tokenIdentifier: string | null;
|
|
5229
|
-
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
5230
5743
|
governance: {
|
|
5231
5744
|
type: "CLASSIC";
|
|
5232
5745
|
policy: {
|
|
@@ -5250,7 +5763,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5250
5763
|
};
|
|
5251
5764
|
} | {
|
|
5252
5765
|
type: "TRADELINK";
|
|
5253
|
-
assetManagerId: string;
|
|
5254
5766
|
exchangeConfigs: {
|
|
5255
5767
|
exchangeId: string;
|
|
5256
5768
|
repledgeAuthorized: boolean;
|
|
@@ -5268,10 +5780,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5268
5780
|
}[];
|
|
5269
5781
|
};
|
|
5270
5782
|
};
|
|
5271
|
-
portfolioIds?: string[] | undefined;
|
|
5272
|
-
index: number;
|
|
5273
|
-
derivationPath: string;
|
|
5274
|
-
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";
|
|
5275
5783
|
};
|
|
5276
5784
|
id: string;
|
|
5277
5785
|
legacyId: number;
|
|
@@ -5292,50 +5800,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5292
5800
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5293
5801
|
retryAfter: Date;
|
|
5294
5802
|
} | undefined;
|
|
5803
|
+
scanHistory?: {
|
|
5804
|
+
type: "creation" | "pre_signature";
|
|
5805
|
+
timestamp: string;
|
|
5806
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5807
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5808
|
+
message: string;
|
|
5809
|
+
tinyUrl: string;
|
|
5810
|
+
}[] | undefined;
|
|
5295
5811
|
} | {
|
|
5296
|
-
type: "
|
|
5812
|
+
type: "CREATE_GROUP";
|
|
5297
5813
|
data: {
|
|
5298
5814
|
name: string;
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
policy: {
|
|
5302
|
-
policyId: string;
|
|
5303
|
-
} | {
|
|
5304
|
-
rules: {
|
|
5305
|
-
reviewSteps: ({
|
|
5306
|
-
quorum: number;
|
|
5307
|
-
userIds: string[];
|
|
5308
|
-
} | {
|
|
5309
|
-
quorum: number;
|
|
5310
|
-
groupId: string;
|
|
5311
|
-
})[];
|
|
5312
|
-
threshold?: {
|
|
5313
|
-
min: string | null;
|
|
5314
|
-
max: string | null;
|
|
5315
|
-
} | undefined;
|
|
5316
|
-
whitelistIds?: string[] | undefined;
|
|
5317
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5318
|
-
}[];
|
|
5319
|
-
};
|
|
5320
|
-
} | {
|
|
5321
|
-
type: "TRADELINK";
|
|
5322
|
-
exchangeConfigs: {
|
|
5323
|
-
exchangeId: string;
|
|
5324
|
-
repledgeAuthorized: boolean;
|
|
5325
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
5326
|
-
}[];
|
|
5327
|
-
} | {
|
|
5328
|
-
type: "RAW_SIGNING";
|
|
5329
|
-
policy: {
|
|
5330
|
-
rules: {
|
|
5331
|
-
operationType: "SIGN_DIGESTS";
|
|
5332
|
-
reviewSteps: {
|
|
5333
|
-
quorum: number;
|
|
5334
|
-
userIds: string[];
|
|
5335
|
-
}[];
|
|
5336
|
-
}[];
|
|
5337
|
-
};
|
|
5338
|
-
};
|
|
5815
|
+
description: string | null;
|
|
5816
|
+
members: string[];
|
|
5339
5817
|
};
|
|
5340
5818
|
id: string;
|
|
5341
5819
|
legacyId: number;
|
|
@@ -5356,25 +5834,97 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5356
5834
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5357
5835
|
retryAfter: Date;
|
|
5358
5836
|
} | undefined;
|
|
5837
|
+
scanHistory?: {
|
|
5838
|
+
type: "creation" | "pre_signature";
|
|
5839
|
+
timestamp: string;
|
|
5840
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5841
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5842
|
+
message: string;
|
|
5843
|
+
tinyUrl: string;
|
|
5844
|
+
}[] | undefined;
|
|
5359
5845
|
} | {
|
|
5360
|
-
type: "
|
|
5846
|
+
type: "EDIT_GROUP";
|
|
5361
5847
|
data: {
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5848
|
+
name: string;
|
|
5849
|
+
description: string | null;
|
|
5850
|
+
members: string[];
|
|
5851
|
+
};
|
|
5852
|
+
id: string;
|
|
5853
|
+
legacyId: number;
|
|
5854
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5855
|
+
reviewSteps: {
|
|
5856
|
+
stageName: string;
|
|
5857
|
+
quorum: number;
|
|
5858
|
+
}[];
|
|
5859
|
+
currentStepIndex: number;
|
|
5860
|
+
expiresAt: Date;
|
|
5861
|
+
targetId: string | null;
|
|
5862
|
+
note: Note | null;
|
|
5863
|
+
reviews: RequestReview[];
|
|
5864
|
+
createdAt: Date;
|
|
5865
|
+
updatedAt: Date;
|
|
5866
|
+
createdById: string;
|
|
5867
|
+
inflight?: {
|
|
5868
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5869
|
+
retryAfter: Date;
|
|
5870
|
+
} | undefined;
|
|
5871
|
+
scanHistory?: {
|
|
5872
|
+
type: "creation" | "pre_signature";
|
|
5873
|
+
timestamp: string;
|
|
5874
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5875
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5876
|
+
message: string;
|
|
5877
|
+
tinyUrl: string;
|
|
5878
|
+
}[] | undefined;
|
|
5879
|
+
} | {
|
|
5880
|
+
type: "CREATE_WHITELIST";
|
|
5881
|
+
data: {
|
|
5882
|
+
name: string;
|
|
5883
|
+
description: string | null;
|
|
5884
|
+
addresses: {
|
|
5885
|
+
name: string;
|
|
5886
|
+
currency: string;
|
|
5887
|
+
address: string;
|
|
5888
|
+
destinationTag?: string | undefined;
|
|
5889
|
+
}[];
|
|
5890
|
+
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
5891
|
+
};
|
|
5892
|
+
id: string;
|
|
5893
|
+
legacyId: number;
|
|
5894
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5895
|
+
reviewSteps: {
|
|
5896
|
+
stageName: string;
|
|
5897
|
+
quorum: number;
|
|
5898
|
+
}[];
|
|
5899
|
+
currentStepIndex: number;
|
|
5900
|
+
expiresAt: Date;
|
|
5901
|
+
targetId: string | null;
|
|
5902
|
+
note: Note | null;
|
|
5903
|
+
reviews: RequestReview[];
|
|
5904
|
+
createdAt: Date;
|
|
5905
|
+
updatedAt: Date;
|
|
5906
|
+
createdById: string;
|
|
5907
|
+
inflight?: {
|
|
5908
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5909
|
+
retryAfter: Date;
|
|
5910
|
+
} | undefined;
|
|
5911
|
+
scanHistory?: {
|
|
5912
|
+
type: "creation" | "pre_signature";
|
|
5913
|
+
timestamp: string;
|
|
5914
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5915
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5916
|
+
message: string;
|
|
5917
|
+
tinyUrl: string;
|
|
5918
|
+
}[] | undefined;
|
|
5919
|
+
} | {
|
|
5920
|
+
type: "EDIT_WHITELIST";
|
|
5921
|
+
data: {
|
|
5922
|
+
name: string;
|
|
5923
|
+
addresses: {
|
|
5924
|
+
name: string;
|
|
5925
|
+
currency: string;
|
|
5926
|
+
address: string;
|
|
5927
|
+
destinationTag?: string | undefined;
|
|
5378
5928
|
}[];
|
|
5379
5929
|
};
|
|
5380
5930
|
id: string;
|
|
@@ -5396,12 +5946,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5396
5946
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5397
5947
|
retryAfter: Date;
|
|
5398
5948
|
} | undefined;
|
|
5949
|
+
scanHistory?: {
|
|
5950
|
+
type: "creation" | "pre_signature";
|
|
5951
|
+
timestamp: string;
|
|
5952
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5953
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5954
|
+
message: string;
|
|
5955
|
+
tinyUrl: string;
|
|
5956
|
+
}[] | undefined;
|
|
5399
5957
|
} | {
|
|
5400
|
-
type: "
|
|
5958
|
+
type: "CREATE_ENTITY";
|
|
5401
5959
|
data: {
|
|
5402
5960
|
name: string;
|
|
5403
|
-
|
|
5404
|
-
|
|
5961
|
+
accountIds: string[];
|
|
5962
|
+
memberIds: string[];
|
|
5405
5963
|
};
|
|
5406
5964
|
id: string;
|
|
5407
5965
|
legacyId: number;
|
|
@@ -5422,12 +5980,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5422
5980
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5423
5981
|
retryAfter: Date;
|
|
5424
5982
|
} | undefined;
|
|
5983
|
+
scanHistory?: {
|
|
5984
|
+
type: "creation" | "pre_signature";
|
|
5985
|
+
timestamp: string;
|
|
5986
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
5987
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
5988
|
+
message: string;
|
|
5989
|
+
tinyUrl: string;
|
|
5990
|
+
}[] | undefined;
|
|
5425
5991
|
} | {
|
|
5426
|
-
type: "
|
|
5992
|
+
type: "EDIT_ENTITY";
|
|
5427
5993
|
data: {
|
|
5428
5994
|
name: string;
|
|
5429
|
-
|
|
5430
|
-
|
|
5995
|
+
accountIds: string[];
|
|
5996
|
+
memberIds: string[];
|
|
5431
5997
|
};
|
|
5432
5998
|
id: string;
|
|
5433
5999
|
legacyId: number;
|
|
@@ -5448,8 +6014,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5448
6014
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5449
6015
|
retryAfter: Date;
|
|
5450
6016
|
} | undefined;
|
|
6017
|
+
scanHistory?: {
|
|
6018
|
+
type: "creation" | "pre_signature";
|
|
6019
|
+
timestamp: string;
|
|
6020
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6021
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6022
|
+
message: string;
|
|
6023
|
+
tinyUrl: string;
|
|
6024
|
+
}[] | undefined;
|
|
5451
6025
|
} | {
|
|
5452
|
-
type: "
|
|
6026
|
+
type: "REVOKE_ENTITY";
|
|
5453
6027
|
data: Record<string, never>;
|
|
5454
6028
|
id: string;
|
|
5455
6029
|
legacyId: number;
|
|
@@ -5470,18 +6044,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5470
6044
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5471
6045
|
retryAfter: Date;
|
|
5472
6046
|
} | undefined;
|
|
6047
|
+
scanHistory?: {
|
|
6048
|
+
type: "creation" | "pre_signature";
|
|
6049
|
+
timestamp: string;
|
|
6050
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6051
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6052
|
+
message: string;
|
|
6053
|
+
tinyUrl: string;
|
|
6054
|
+
}[] | undefined;
|
|
5473
6055
|
} | {
|
|
5474
|
-
type: "
|
|
6056
|
+
type: "CREATE_PSD_USER";
|
|
5475
6057
|
data: {
|
|
5476
|
-
|
|
5477
|
-
description: string | null;
|
|
5478
|
-
addresses: {
|
|
5479
|
-
name: string;
|
|
5480
|
-
currency: string;
|
|
5481
|
-
address: string;
|
|
5482
|
-
destinationTag?: string | undefined;
|
|
5483
|
-
}[];
|
|
5484
|
-
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
6058
|
+
registrationId: string;
|
|
5485
6059
|
};
|
|
5486
6060
|
id: string;
|
|
5487
6061
|
legacyId: number;
|
|
@@ -5502,16 +6076,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5502
6076
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5503
6077
|
retryAfter: Date;
|
|
5504
6078
|
} | undefined;
|
|
6079
|
+
scanHistory?: {
|
|
6080
|
+
type: "creation" | "pre_signature";
|
|
6081
|
+
timestamp: string;
|
|
6082
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6083
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6084
|
+
message: string;
|
|
6085
|
+
tinyUrl: string;
|
|
6086
|
+
}[] | undefined;
|
|
5505
6087
|
} | {
|
|
5506
|
-
type: "
|
|
6088
|
+
type: "CREATE_API_USER";
|
|
5507
6089
|
data: {
|
|
5508
6090
|
name: string;
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
address: string;
|
|
5513
|
-
destinationTag?: string | undefined;
|
|
5514
|
-
}[];
|
|
6091
|
+
pubKey: string;
|
|
6092
|
+
role: "ADMIN" | "OPERATOR";
|
|
6093
|
+
viewAll?: boolean | undefined;
|
|
5515
6094
|
};
|
|
5516
6095
|
id: string;
|
|
5517
6096
|
legacyId: number;
|
|
@@ -5532,13 +6111,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5532
6111
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5533
6112
|
retryAfter: Date;
|
|
5534
6113
|
} | undefined;
|
|
6114
|
+
scanHistory?: {
|
|
6115
|
+
type: "creation" | "pre_signature";
|
|
6116
|
+
timestamp: string;
|
|
6117
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6118
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6119
|
+
message: string;
|
|
6120
|
+
tinyUrl: string;
|
|
6121
|
+
}[] | undefined;
|
|
5535
6122
|
} | {
|
|
5536
|
-
type: "
|
|
5537
|
-
data:
|
|
5538
|
-
name: string;
|
|
5539
|
-
accountIds: string[];
|
|
5540
|
-
memberIds: string[];
|
|
5541
|
-
};
|
|
6123
|
+
type: "REVOKE_USER";
|
|
6124
|
+
data: Record<string, never>;
|
|
5542
6125
|
id: string;
|
|
5543
6126
|
legacyId: number;
|
|
5544
6127
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5558,12 +6141,22 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5558
6141
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5559
6142
|
retryAfter: Date;
|
|
5560
6143
|
} | undefined;
|
|
6144
|
+
scanHistory?: {
|
|
6145
|
+
type: "creation" | "pre_signature";
|
|
6146
|
+
timestamp: string;
|
|
6147
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6148
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6149
|
+
message: string;
|
|
6150
|
+
tinyUrl: string;
|
|
6151
|
+
}[] | undefined;
|
|
5561
6152
|
} | {
|
|
5562
|
-
type: "
|
|
6153
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
5563
6154
|
data: {
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
6155
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
6156
|
+
reviewConfig: {
|
|
6157
|
+
quorum: number;
|
|
6158
|
+
userIds: string[];
|
|
6159
|
+
}[];
|
|
5567
6160
|
};
|
|
5568
6161
|
id: string;
|
|
5569
6162
|
legacyId: number;
|
|
@@ -5584,9 +6177,40 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5584
6177
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5585
6178
|
retryAfter: Date;
|
|
5586
6179
|
} | undefined;
|
|
6180
|
+
scanHistory?: {
|
|
6181
|
+
type: "creation" | "pre_signature";
|
|
6182
|
+
timestamp: string;
|
|
6183
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6184
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6185
|
+
message: string;
|
|
6186
|
+
tinyUrl: string;
|
|
6187
|
+
}[] | undefined;
|
|
5587
6188
|
} | {
|
|
5588
|
-
type: "
|
|
5589
|
-
data:
|
|
6189
|
+
type: "CREATE_POLICY";
|
|
6190
|
+
data: {
|
|
6191
|
+
name: string;
|
|
6192
|
+
description: string | null;
|
|
6193
|
+
asset: {
|
|
6194
|
+
network: string;
|
|
6195
|
+
contractAddress: string | null;
|
|
6196
|
+
tokenIdentifier: string | null;
|
|
6197
|
+
} | null;
|
|
6198
|
+
govRules: {
|
|
6199
|
+
reviewSteps: ({
|
|
6200
|
+
quorum: number;
|
|
6201
|
+
userIds: string[];
|
|
6202
|
+
} | {
|
|
6203
|
+
quorum: number;
|
|
6204
|
+
groupId: string;
|
|
6205
|
+
})[];
|
|
6206
|
+
threshold?: {
|
|
6207
|
+
min: string | null;
|
|
6208
|
+
max: string | null;
|
|
6209
|
+
} | undefined;
|
|
6210
|
+
whitelistIds?: string[] | undefined;
|
|
6211
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6212
|
+
}[];
|
|
6213
|
+
};
|
|
5590
6214
|
id: string;
|
|
5591
6215
|
legacyId: number;
|
|
5592
6216
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5606,10 +6230,34 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5606
6230
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5607
6231
|
retryAfter: Date;
|
|
5608
6232
|
} | undefined;
|
|
6233
|
+
scanHistory?: {
|
|
6234
|
+
type: "creation" | "pre_signature";
|
|
6235
|
+
timestamp: string;
|
|
6236
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6237
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6238
|
+
message: string;
|
|
6239
|
+
tinyUrl: string;
|
|
6240
|
+
}[] | undefined;
|
|
5609
6241
|
} | {
|
|
5610
|
-
type: "
|
|
6242
|
+
type: "EDIT_POLICY";
|
|
5611
6243
|
data: {
|
|
5612
|
-
|
|
6244
|
+
name: string;
|
|
6245
|
+
description: string | null;
|
|
6246
|
+
govRules: {
|
|
6247
|
+
reviewSteps: ({
|
|
6248
|
+
quorum: number;
|
|
6249
|
+
userIds: string[];
|
|
6250
|
+
} | {
|
|
6251
|
+
quorum: number;
|
|
6252
|
+
groupId: string;
|
|
6253
|
+
})[];
|
|
6254
|
+
threshold?: {
|
|
6255
|
+
min: string | null;
|
|
6256
|
+
max: string | null;
|
|
6257
|
+
} | undefined;
|
|
6258
|
+
whitelistIds?: string[] | undefined;
|
|
6259
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6260
|
+
}[];
|
|
5613
6261
|
};
|
|
5614
6262
|
id: string;
|
|
5615
6263
|
legacyId: number;
|
|
@@ -5630,14 +6278,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5630
6278
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5631
6279
|
retryAfter: Date;
|
|
5632
6280
|
} | undefined;
|
|
6281
|
+
scanHistory?: {
|
|
6282
|
+
type: "creation" | "pre_signature";
|
|
6283
|
+
timestamp: string;
|
|
6284
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6285
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6286
|
+
message: string;
|
|
6287
|
+
tinyUrl: string;
|
|
6288
|
+
}[] | undefined;
|
|
5633
6289
|
} | {
|
|
5634
|
-
type: "
|
|
5635
|
-
data:
|
|
5636
|
-
name: string;
|
|
5637
|
-
pubKey: string;
|
|
5638
|
-
role: "ADMIN" | "OPERATOR";
|
|
5639
|
-
viewAll?: boolean | undefined;
|
|
5640
|
-
};
|
|
6290
|
+
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
6291
|
+
data: null;
|
|
5641
6292
|
id: string;
|
|
5642
6293
|
legacyId: number;
|
|
5643
6294
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5657,10 +6308,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5657
6308
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5658
6309
|
retryAfter: Date;
|
|
5659
6310
|
} | undefined;
|
|
6311
|
+
scanHistory?: {
|
|
6312
|
+
type: "creation" | "pre_signature";
|
|
6313
|
+
timestamp: string;
|
|
6314
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6315
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6316
|
+
message: string;
|
|
6317
|
+
tinyUrl: string;
|
|
6318
|
+
}[] | undefined;
|
|
5660
6319
|
} | {
|
|
5661
|
-
type: "
|
|
6320
|
+
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
5662
6321
|
data: {
|
|
5663
|
-
|
|
6322
|
+
settlement: {
|
|
6323
|
+
quorum: number;
|
|
6324
|
+
userIds: string[];
|
|
6325
|
+
}[];
|
|
6326
|
+
withdraw: {
|
|
6327
|
+
quorum: number;
|
|
6328
|
+
userIds: string[];
|
|
6329
|
+
}[];
|
|
6330
|
+
arbitration: {
|
|
6331
|
+
quorum: number;
|
|
6332
|
+
userIds: string[];
|
|
6333
|
+
}[];
|
|
5664
6334
|
};
|
|
5665
6335
|
id: string;
|
|
5666
6336
|
legacyId: number;
|
|
@@ -5681,9 +6351,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5681
6351
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5682
6352
|
retryAfter: Date;
|
|
5683
6353
|
} | undefined;
|
|
6354
|
+
scanHistory?: {
|
|
6355
|
+
type: "creation" | "pre_signature";
|
|
6356
|
+
timestamp: string;
|
|
6357
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6358
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6359
|
+
message: string;
|
|
6360
|
+
tinyUrl: string;
|
|
6361
|
+
}[] | undefined;
|
|
5684
6362
|
} | {
|
|
5685
|
-
type: "
|
|
5686
|
-
data:
|
|
6363
|
+
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
6364
|
+
data: {
|
|
6365
|
+
settlement: {
|
|
6366
|
+
quorum: number;
|
|
6367
|
+
userIds: string[];
|
|
6368
|
+
}[];
|
|
6369
|
+
withdraw: {
|
|
6370
|
+
quorum: number;
|
|
6371
|
+
userIds: string[];
|
|
6372
|
+
}[];
|
|
6373
|
+
arbitration: {
|
|
6374
|
+
quorum: number;
|
|
6375
|
+
userIds: string[];
|
|
6376
|
+
}[];
|
|
6377
|
+
};
|
|
5687
6378
|
id: string;
|
|
5688
6379
|
legacyId: number;
|
|
5689
6380
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5703,14 +6394,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5703
6394
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5704
6395
|
retryAfter: Date;
|
|
5705
6396
|
} | undefined;
|
|
6397
|
+
scanHistory?: {
|
|
6398
|
+
type: "creation" | "pre_signature";
|
|
6399
|
+
timestamp: string;
|
|
6400
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6401
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6402
|
+
message: string;
|
|
6403
|
+
tinyUrl: string;
|
|
6404
|
+
}[] | undefined;
|
|
5706
6405
|
} | {
|
|
5707
|
-
type: "
|
|
6406
|
+
type: "TRADELINK_CREATE_EXCHANGE";
|
|
5708
6407
|
data: {
|
|
5709
|
-
|
|
5710
|
-
|
|
6408
|
+
tradelinkId: string;
|
|
6409
|
+
groups: {
|
|
5711
6410
|
quorum: number;
|
|
5712
6411
|
userIds: string[];
|
|
5713
6412
|
}[];
|
|
6413
|
+
whitelist: {
|
|
6414
|
+
name: string;
|
|
6415
|
+
currency: string;
|
|
6416
|
+
address: string;
|
|
6417
|
+
}[];
|
|
5714
6418
|
};
|
|
5715
6419
|
id: string;
|
|
5716
6420
|
legacyId: number;
|
|
@@ -5731,14 +6435,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5731
6435
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5732
6436
|
retryAfter: Date;
|
|
5733
6437
|
} | undefined;
|
|
6438
|
+
scanHistory?: {
|
|
6439
|
+
type: "creation" | "pre_signature";
|
|
6440
|
+
timestamp: string;
|
|
6441
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6442
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6443
|
+
message: string;
|
|
6444
|
+
tinyUrl: string;
|
|
6445
|
+
}[] | undefined;
|
|
5734
6446
|
} | {
|
|
5735
|
-
type: "
|
|
6447
|
+
type: "TRADELINK_EDIT_EXCHANGE";
|
|
5736
6448
|
data: {
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
};
|
|
6449
|
+
tradelinkId: string;
|
|
6450
|
+
groups: {
|
|
6451
|
+
quorum: number;
|
|
6452
|
+
userIds: string[];
|
|
6453
|
+
}[];
|
|
6454
|
+
whitelist: {
|
|
6455
|
+
name: string;
|
|
6456
|
+
currency: string;
|
|
6457
|
+
address: string;
|
|
6458
|
+
}[];
|
|
5742
6459
|
};
|
|
5743
6460
|
id: string;
|
|
5744
6461
|
legacyId: number;
|
|
@@ -5759,13 +6476,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5759
6476
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5760
6477
|
retryAfter: Date;
|
|
5761
6478
|
} | undefined;
|
|
6479
|
+
scanHistory?: {
|
|
6480
|
+
type: "creation" | "pre_signature";
|
|
6481
|
+
timestamp: string;
|
|
6482
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6483
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6484
|
+
message: string;
|
|
6485
|
+
tinyUrl: string;
|
|
6486
|
+
}[] | undefined;
|
|
5762
6487
|
} | {
|
|
5763
|
-
type: "
|
|
6488
|
+
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
5764
6489
|
data: {
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
6490
|
+
tradelinkId: string;
|
|
6491
|
+
groups: {
|
|
6492
|
+
quorum: number;
|
|
6493
|
+
userIds: string[];
|
|
6494
|
+
}[];
|
|
6495
|
+
whitelist: {
|
|
6496
|
+
name: string;
|
|
6497
|
+
currency: string;
|
|
6498
|
+
address: string;
|
|
6499
|
+
}[];
|
|
5769
6500
|
};
|
|
5770
6501
|
id: string;
|
|
5771
6502
|
legacyId: number;
|
|
@@ -5786,12 +6517,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5786
6517
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5787
6518
|
retryAfter: Date;
|
|
5788
6519
|
} | undefined;
|
|
6520
|
+
scanHistory?: {
|
|
6521
|
+
type: "creation" | "pre_signature";
|
|
6522
|
+
timestamp: string;
|
|
6523
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6524
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6525
|
+
message: string;
|
|
6526
|
+
tinyUrl: string;
|
|
6527
|
+
}[] | undefined;
|
|
5789
6528
|
} | {
|
|
5790
|
-
type: "
|
|
6529
|
+
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
5791
6530
|
data: {
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
6531
|
+
tradelinkId: string;
|
|
6532
|
+
groups: {
|
|
6533
|
+
quorum: number;
|
|
6534
|
+
userIds: string[];
|
|
6535
|
+
}[];
|
|
6536
|
+
whitelist: {
|
|
6537
|
+
name: string;
|
|
6538
|
+
currency: string;
|
|
6539
|
+
address: string;
|
|
6540
|
+
}[];
|
|
5795
6541
|
};
|
|
5796
6542
|
id: string;
|
|
5797
6543
|
legacyId: number;
|
|
@@ -5812,12 +6558,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5812
6558
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5813
6559
|
retryAfter: Date;
|
|
5814
6560
|
} | undefined;
|
|
6561
|
+
scanHistory?: {
|
|
6562
|
+
type: "creation" | "pre_signature";
|
|
6563
|
+
timestamp: string;
|
|
6564
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6565
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6566
|
+
message: string;
|
|
6567
|
+
tinyUrl: string;
|
|
6568
|
+
}[] | undefined;
|
|
5815
6569
|
} | {
|
|
5816
|
-
type: "
|
|
6570
|
+
type: "TRADELINK_ADJUST_PLEDGE";
|
|
5817
6571
|
data: {
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
|
|
6572
|
+
accountId: string;
|
|
6573
|
+
exchangeId: string;
|
|
6574
|
+
amount: string;
|
|
5821
6575
|
};
|
|
5822
6576
|
id: string;
|
|
5823
6577
|
legacyId: number;
|
|
@@ -5838,9 +6592,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5838
6592
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5839
6593
|
retryAfter: Date;
|
|
5840
6594
|
} | undefined;
|
|
6595
|
+
scanHistory?: {
|
|
6596
|
+
type: "creation" | "pre_signature";
|
|
6597
|
+
timestamp: string;
|
|
6598
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6599
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6600
|
+
message: string;
|
|
6601
|
+
tinyUrl: string;
|
|
6602
|
+
}[] | undefined;
|
|
5841
6603
|
} | {
|
|
5842
|
-
type: "
|
|
5843
|
-
data:
|
|
6604
|
+
type: "TRADELINK_REPLEDGE";
|
|
6605
|
+
data: {
|
|
6606
|
+
accountId: string;
|
|
6607
|
+
exchangeId: string;
|
|
6608
|
+
amount: string;
|
|
6609
|
+
};
|
|
5844
6610
|
id: string;
|
|
5845
6611
|
legacyId: number;
|
|
5846
6612
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5857,34 +6623,23 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5857
6623
|
updatedAt: Date;
|
|
5858
6624
|
createdById: string;
|
|
5859
6625
|
inflight?: {
|
|
5860
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5861
|
-
retryAfter: Date;
|
|
5862
|
-
} | undefined;
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
} | {
|
|
5878
|
-
quorum: number;
|
|
5879
|
-
groupId: string;
|
|
5880
|
-
})[];
|
|
5881
|
-
threshold?: {
|
|
5882
|
-
min: string | null;
|
|
5883
|
-
max: string | null;
|
|
5884
|
-
} | undefined;
|
|
5885
|
-
whitelistIds?: string[] | undefined;
|
|
5886
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5887
|
-
}[];
|
|
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: "TRADELINK_CREATE_SETTLEMENT";
|
|
6639
|
+
data: {
|
|
6640
|
+
accountId: string;
|
|
6641
|
+
exchangeId: string;
|
|
6642
|
+
transaction: SendOnlyTransactionData;
|
|
5888
6643
|
};
|
|
5889
6644
|
id: string;
|
|
5890
6645
|
legacyId: number;
|
|
@@ -5905,26 +6660,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5905
6660
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5906
6661
|
retryAfter: Date;
|
|
5907
6662
|
} | undefined;
|
|
6663
|
+
scanHistory?: {
|
|
6664
|
+
type: "creation" | "pre_signature";
|
|
6665
|
+
timestamp: string;
|
|
6666
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6667
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6668
|
+
message: string;
|
|
6669
|
+
tinyUrl: string;
|
|
6670
|
+
}[] | undefined;
|
|
5908
6671
|
} | {
|
|
5909
|
-
type: "
|
|
6672
|
+
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
5910
6673
|
data: {
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
govRules: {
|
|
5914
|
-
reviewSteps: ({
|
|
5915
|
-
quorum: number;
|
|
5916
|
-
userIds: string[];
|
|
5917
|
-
} | {
|
|
5918
|
-
quorum: number;
|
|
5919
|
-
groupId: string;
|
|
5920
|
-
})[];
|
|
5921
|
-
threshold?: {
|
|
5922
|
-
min: string | null;
|
|
5923
|
-
max: string | null;
|
|
5924
|
-
} | undefined;
|
|
5925
|
-
whitelistIds?: string[] | undefined;
|
|
5926
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5927
|
-
}[];
|
|
6674
|
+
accountId: string;
|
|
6675
|
+
exchangeId: string;
|
|
5928
6676
|
};
|
|
5929
6677
|
id: string;
|
|
5930
6678
|
legacyId: number;
|
|
@@ -5945,9 +6693,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5945
6693
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5946
6694
|
retryAfter: Date;
|
|
5947
6695
|
} | undefined;
|
|
6696
|
+
scanHistory?: {
|
|
6697
|
+
type: "creation" | "pre_signature";
|
|
6698
|
+
timestamp: string;
|
|
6699
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6700
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6701
|
+
message: string;
|
|
6702
|
+
tinyUrl: string;
|
|
6703
|
+
}[] | undefined;
|
|
5948
6704
|
} | {
|
|
5949
|
-
type: "
|
|
5950
|
-
data:
|
|
6705
|
+
type: "TRADELINK_WITHDRAW";
|
|
6706
|
+
data: {
|
|
6707
|
+
accountId: string;
|
|
6708
|
+
transaction: SendOnlyTransactionData;
|
|
6709
|
+
};
|
|
5951
6710
|
id: string;
|
|
5952
6711
|
legacyId: number;
|
|
5953
6712
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5967,21 +6726,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5967
6726
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5968
6727
|
retryAfter: Date;
|
|
5969
6728
|
} | undefined;
|
|
6729
|
+
scanHistory?: {
|
|
6730
|
+
type: "creation" | "pre_signature";
|
|
6731
|
+
timestamp: string;
|
|
6732
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6733
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6734
|
+
message: string;
|
|
6735
|
+
tinyUrl: string;
|
|
6736
|
+
}[] | undefined;
|
|
5970
6737
|
} | {
|
|
5971
|
-
type: "
|
|
6738
|
+
type: "TRADELINK_ARBITRATE";
|
|
5972
6739
|
data: {
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
userIds: string[];
|
|
5976
|
-
}[];
|
|
5977
|
-
withdraw: {
|
|
5978
|
-
quorum: number;
|
|
5979
|
-
userIds: string[];
|
|
5980
|
-
}[];
|
|
5981
|
-
arbitration: {
|
|
5982
|
-
quorum: number;
|
|
5983
|
-
userIds: string[];
|
|
5984
|
-
}[];
|
|
6740
|
+
accountId: string;
|
|
6741
|
+
transaction: SendOnlyTransactionData;
|
|
5985
6742
|
};
|
|
5986
6743
|
id: string;
|
|
5987
6744
|
legacyId: number;
|
|
@@ -6002,21 +6759,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6002
6759
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6003
6760
|
retryAfter: Date;
|
|
6004
6761
|
} | undefined;
|
|
6762
|
+
scanHistory?: {
|
|
6763
|
+
type: "creation" | "pre_signature";
|
|
6764
|
+
timestamp: string;
|
|
6765
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6766
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6767
|
+
message: string;
|
|
6768
|
+
tinyUrl: string;
|
|
6769
|
+
}[] | undefined;
|
|
6005
6770
|
} | {
|
|
6006
|
-
type: "
|
|
6771
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
6007
6772
|
data: {
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
userIds: string[];
|
|
6011
|
-
}[];
|
|
6012
|
-
withdraw: {
|
|
6013
|
-
quorum: number;
|
|
6014
|
-
userIds: string[];
|
|
6015
|
-
}[];
|
|
6016
|
-
arbitration: {
|
|
6017
|
-
quorum: number;
|
|
6018
|
-
userIds: string[];
|
|
6019
|
-
}[];
|
|
6773
|
+
previousPublicKeys: string[];
|
|
6774
|
+
requestedPublicKeys: string[];
|
|
6020
6775
|
};
|
|
6021
6776
|
id: string;
|
|
6022
6777
|
legacyId: number;
|
|
@@ -6037,19 +6792,42 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6037
6792
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6038
6793
|
retryAfter: Date;
|
|
6039
6794
|
} | undefined;
|
|
6795
|
+
scanHistory?: {
|
|
6796
|
+
type: "creation" | "pre_signature";
|
|
6797
|
+
timestamp: string;
|
|
6798
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6799
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6800
|
+
message: string;
|
|
6801
|
+
tinyUrl: string;
|
|
6802
|
+
}[] | undefined;
|
|
6040
6803
|
} | {
|
|
6041
|
-
type: "
|
|
6804
|
+
type: "SIGN_MESSAGE";
|
|
6042
6805
|
data: {
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6806
|
+
message: {
|
|
6807
|
+
type: "EIP191";
|
|
6808
|
+
data: string;
|
|
6809
|
+
} | {
|
|
6810
|
+
type: "EIP712";
|
|
6811
|
+
data: {
|
|
6812
|
+
types: Record<string, {
|
|
6813
|
+
name: string;
|
|
6814
|
+
type: string;
|
|
6815
|
+
}[]>;
|
|
6816
|
+
primaryType: string;
|
|
6817
|
+
domain: Record<string, any>;
|
|
6818
|
+
message: Record<string, any>;
|
|
6819
|
+
};
|
|
6820
|
+
} | {
|
|
6821
|
+
type: "CIP8";
|
|
6822
|
+
data: string;
|
|
6823
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
6824
|
+
} | {
|
|
6825
|
+
type: "BIP137";
|
|
6826
|
+
data: string;
|
|
6827
|
+
};
|
|
6828
|
+
accountId: string;
|
|
6829
|
+
address: string;
|
|
6830
|
+
derivationPath: string;
|
|
6053
6831
|
};
|
|
6054
6832
|
id: string;
|
|
6055
6833
|
legacyId: number;
|
|
@@ -6070,19 +6848,67 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6070
6848
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6071
6849
|
retryAfter: Date;
|
|
6072
6850
|
} | undefined;
|
|
6851
|
+
scanHistory?: {
|
|
6852
|
+
type: "creation" | "pre_signature";
|
|
6853
|
+
timestamp: string;
|
|
6854
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6855
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6856
|
+
message: string;
|
|
6857
|
+
tinyUrl: string;
|
|
6858
|
+
}[] | undefined;
|
|
6073
6859
|
} | {
|
|
6074
|
-
type: "
|
|
6860
|
+
type: "CREATE_ACCOUNT";
|
|
6075
6861
|
data: {
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6862
|
+
name: string;
|
|
6863
|
+
currency: string;
|
|
6864
|
+
contractAddress: string | null;
|
|
6865
|
+
tokenIdentifier: string | null;
|
|
6866
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
6867
|
+
governance: {
|
|
6868
|
+
type: "CLASSIC";
|
|
6869
|
+
policy: {
|
|
6870
|
+
policyId: string;
|
|
6871
|
+
} | {
|
|
6872
|
+
rules: {
|
|
6873
|
+
reviewSteps: ({
|
|
6874
|
+
quorum: number;
|
|
6875
|
+
userIds: string[];
|
|
6876
|
+
} | {
|
|
6877
|
+
quorum: number;
|
|
6878
|
+
groupId: string;
|
|
6879
|
+
})[];
|
|
6880
|
+
threshold?: {
|
|
6881
|
+
min: string | null;
|
|
6882
|
+
max: string | null;
|
|
6883
|
+
} | undefined;
|
|
6884
|
+
whitelistIds?: string[] | undefined;
|
|
6885
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6886
|
+
}[];
|
|
6887
|
+
};
|
|
6888
|
+
} | {
|
|
6889
|
+
type: "TRADELINK";
|
|
6890
|
+
assetManagerId: string;
|
|
6891
|
+
exchangeConfigs: {
|
|
6892
|
+
exchangeId: string;
|
|
6893
|
+
repledgeAuthorized: boolean;
|
|
6894
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
6895
|
+
}[];
|
|
6896
|
+
} | {
|
|
6897
|
+
type: "RAW_SIGNING";
|
|
6898
|
+
policy: {
|
|
6899
|
+
rules: {
|
|
6900
|
+
operationType: "SIGN_DIGESTS";
|
|
6901
|
+
reviewSteps: {
|
|
6902
|
+
quorum: number;
|
|
6903
|
+
userIds: string[];
|
|
6904
|
+
}[];
|
|
6905
|
+
}[];
|
|
6906
|
+
};
|
|
6907
|
+
};
|
|
6908
|
+
portfolioIds?: string[] | undefined;
|
|
6909
|
+
index: number;
|
|
6910
|
+
derivationPath: string;
|
|
6911
|
+
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";
|
|
6086
6912
|
};
|
|
6087
6913
|
id: string;
|
|
6088
6914
|
legacyId: number;
|
|
@@ -6103,18 +6929,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6103
6929
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6104
6930
|
retryAfter: Date;
|
|
6105
6931
|
} | undefined;
|
|
6932
|
+
scanHistory?: {
|
|
6933
|
+
type: "creation" | "pre_signature";
|
|
6934
|
+
timestamp: string;
|
|
6935
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6936
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6937
|
+
message: string;
|
|
6938
|
+
tinyUrl: string;
|
|
6939
|
+
}[] | undefined;
|
|
6106
6940
|
} | {
|
|
6107
|
-
type: "
|
|
6941
|
+
type: "EDIT_TOKEN_RULE";
|
|
6108
6942
|
data: {
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6943
|
+
parentAccountId: string;
|
|
6944
|
+
contractAddress: string;
|
|
6945
|
+
rules: {
|
|
6946
|
+
reviewSteps: ({
|
|
6947
|
+
quorum: number;
|
|
6948
|
+
userIds: string[];
|
|
6949
|
+
} | {
|
|
6950
|
+
quorum: number;
|
|
6951
|
+
groupId: string;
|
|
6952
|
+
})[];
|
|
6953
|
+
threshold?: {
|
|
6954
|
+
min: string | null;
|
|
6955
|
+
max: string | null;
|
|
6956
|
+
} | undefined;
|
|
6957
|
+
whitelistIds?: string[] | undefined;
|
|
6958
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6118
6959
|
}[];
|
|
6119
6960
|
};
|
|
6120
6961
|
id: string;
|
|
@@ -6136,20 +6977,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6136
6977
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6137
6978
|
retryAfter: Date;
|
|
6138
6979
|
} | undefined;
|
|
6980
|
+
scanHistory?: {
|
|
6981
|
+
type: "creation" | "pre_signature";
|
|
6982
|
+
timestamp: string;
|
|
6983
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
6984
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
6985
|
+
message: string;
|
|
6986
|
+
tinyUrl: string;
|
|
6987
|
+
}[] | undefined;
|
|
6139
6988
|
} | {
|
|
6140
|
-
type: "
|
|
6141
|
-
data:
|
|
6142
|
-
tradelinkId: string;
|
|
6143
|
-
groups: {
|
|
6144
|
-
quorum: number;
|
|
6145
|
-
userIds: string[];
|
|
6146
|
-
}[];
|
|
6147
|
-
whitelist: {
|
|
6148
|
-
name: string;
|
|
6149
|
-
currency: string;
|
|
6150
|
-
address: string;
|
|
6151
|
-
}[];
|
|
6152
|
-
};
|
|
6989
|
+
type: "REVOKE_GROUP";
|
|
6990
|
+
data: Record<string, never>;
|
|
6153
6991
|
id: string;
|
|
6154
6992
|
legacyId: number;
|
|
6155
6993
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6169,12 +7007,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6169
7007
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6170
7008
|
retryAfter: Date;
|
|
6171
7009
|
} | undefined;
|
|
7010
|
+
scanHistory?: {
|
|
7011
|
+
type: "creation" | "pre_signature";
|
|
7012
|
+
timestamp: string;
|
|
7013
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7014
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7015
|
+
message: string;
|
|
7016
|
+
tinyUrl: string;
|
|
7017
|
+
}[] | undefined;
|
|
6172
7018
|
} | {
|
|
6173
|
-
type: "
|
|
7019
|
+
type: "CREATE_API_USER_ACCESS";
|
|
6174
7020
|
data: {
|
|
6175
|
-
|
|
6176
|
-
exchangeId: string;
|
|
6177
|
-
amount: string;
|
|
7021
|
+
name: string;
|
|
6178
7022
|
};
|
|
6179
7023
|
id: string;
|
|
6180
7024
|
legacyId: number;
|
|
@@ -6195,12 +7039,22 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6195
7039
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6196
7040
|
retryAfter: Date;
|
|
6197
7041
|
} | undefined;
|
|
7042
|
+
scanHistory?: {
|
|
7043
|
+
type: "creation" | "pre_signature";
|
|
7044
|
+
timestamp: string;
|
|
7045
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7046
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7047
|
+
message: string;
|
|
7048
|
+
tinyUrl: string;
|
|
7049
|
+
}[] | undefined;
|
|
6198
7050
|
} | {
|
|
6199
|
-
type: "
|
|
7051
|
+
type: "CREATE_SCICONFIG";
|
|
6200
7052
|
data: {
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
7053
|
+
account: string;
|
|
7054
|
+
config: {
|
|
7055
|
+
dapps: string[] | null;
|
|
7056
|
+
customContractCallEnabled: boolean;
|
|
7057
|
+
};
|
|
6204
7058
|
};
|
|
6205
7059
|
id: string;
|
|
6206
7060
|
legacyId: number;
|
|
@@ -6221,12 +7075,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6221
7075
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6222
7076
|
retryAfter: Date;
|
|
6223
7077
|
} | undefined;
|
|
7078
|
+
scanHistory?: {
|
|
7079
|
+
type: "creation" | "pre_signature";
|
|
7080
|
+
timestamp: string;
|
|
7081
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7082
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7083
|
+
message: string;
|
|
7084
|
+
tinyUrl: string;
|
|
7085
|
+
}[] | undefined;
|
|
6224
7086
|
} | {
|
|
6225
|
-
type: "
|
|
7087
|
+
type: "EDIT_SCICONFIG";
|
|
6226
7088
|
data: {
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
7089
|
+
config: {
|
|
7090
|
+
dapps: string[] | null;
|
|
7091
|
+
customContractCallEnabled: boolean;
|
|
7092
|
+
};
|
|
6230
7093
|
};
|
|
6231
7094
|
id: string;
|
|
6232
7095
|
legacyId: number;
|
|
@@ -6247,11 +7110,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6247
7110
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6248
7111
|
retryAfter: Date;
|
|
6249
7112
|
} | undefined;
|
|
7113
|
+
scanHistory?: {
|
|
7114
|
+
type: "creation" | "pre_signature";
|
|
7115
|
+
timestamp: string;
|
|
7116
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7117
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7118
|
+
message: string;
|
|
7119
|
+
tinyUrl: string;
|
|
7120
|
+
}[] | undefined;
|
|
6250
7121
|
} | {
|
|
6251
|
-
type: "
|
|
7122
|
+
type: "CREATE_API_KEY";
|
|
6252
7123
|
data: {
|
|
6253
|
-
|
|
6254
|
-
|
|
7124
|
+
name: string;
|
|
7125
|
+
entities: string[];
|
|
7126
|
+
scopes: Record<string, never>;
|
|
6255
7127
|
};
|
|
6256
7128
|
id: string;
|
|
6257
7129
|
legacyId: number;
|
|
@@ -6272,11 +7144,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6272
7144
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6273
7145
|
retryAfter: Date;
|
|
6274
7146
|
} | undefined;
|
|
7147
|
+
scanHistory?: {
|
|
7148
|
+
type: "creation" | "pre_signature";
|
|
7149
|
+
timestamp: string;
|
|
7150
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7151
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7152
|
+
message: string;
|
|
7153
|
+
tinyUrl: string;
|
|
7154
|
+
}[] | undefined;
|
|
6275
7155
|
} | {
|
|
6276
|
-
type: "
|
|
7156
|
+
type: "EDIT_API_KEY";
|
|
6277
7157
|
data: {
|
|
6278
|
-
|
|
6279
|
-
|
|
7158
|
+
name: string;
|
|
7159
|
+
entities: string[];
|
|
7160
|
+
scopes: Record<string, never>;
|
|
6280
7161
|
};
|
|
6281
7162
|
id: string;
|
|
6282
7163
|
legacyId: number;
|
|
@@ -6297,12 +7178,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6297
7178
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6298
7179
|
retryAfter: Date;
|
|
6299
7180
|
} | undefined;
|
|
7181
|
+
scanHistory?: {
|
|
7182
|
+
type: "creation" | "pre_signature";
|
|
7183
|
+
timestamp: string;
|
|
7184
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7185
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7186
|
+
message: string;
|
|
7187
|
+
tinyUrl: string;
|
|
7188
|
+
}[] | undefined;
|
|
6300
7189
|
} | {
|
|
6301
|
-
type: "
|
|
6302
|
-
data:
|
|
6303
|
-
accountId: string;
|
|
6304
|
-
transaction: SendOnlyTransactionData;
|
|
6305
|
-
};
|
|
7190
|
+
type: "REVOKE_API_KEY";
|
|
7191
|
+
data: Record<string, never>;
|
|
6306
7192
|
id: string;
|
|
6307
7193
|
legacyId: number;
|
|
6308
7194
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6322,6 +7208,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6322
7208
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
6323
7209
|
retryAfter: Date;
|
|
6324
7210
|
} | undefined;
|
|
7211
|
+
scanHistory?: {
|
|
7212
|
+
type: "creation" | "pre_signature";
|
|
7213
|
+
timestamp: string;
|
|
7214
|
+
riskLevel: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE";
|
|
7215
|
+
riskCategory: "ADDRESS" | "LOSING_OPERATION" | "NA" | "OTHERS" | "SMART_CONTRACT";
|
|
7216
|
+
message: string;
|
|
7217
|
+
tinyUrl: string;
|
|
7218
|
+
}[] | undefined;
|
|
6325
7219
|
})[];
|
|
6326
7220
|
};
|
|
6327
7221
|
meta: {
|
|
@@ -6393,6 +7287,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6393
7287
|
debugAuthToken?: string;
|
|
6394
7288
|
rootAuthToken?: string;
|
|
6395
7289
|
backofficeRequiredPermission?: BackofficePermission;
|
|
7290
|
+
core: unknown;
|
|
6396
7291
|
prisma: ExtendedPrismaClient;
|
|
6397
7292
|
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
6398
7293
|
user: {
|
|
@@ -6448,6 +7343,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6448
7343
|
httpStatus: number;
|
|
6449
7344
|
path?: string;
|
|
6450
7345
|
stack?: string;
|
|
7346
|
+
maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
|
|
6451
7347
|
maintenance?: boolean | undefined;
|
|
6452
7348
|
};
|
|
6453
7349
|
};
|