@ledgerhq/revault-api 1.82.1 → 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.
@@ -1,10 +1,10 @@
1
- import { Cr as RateLimitMetricsMeta, Er as ActivationStatus, Jr as UserDeviceType, Mr as GateUserType, Pr as MaintenanceMode, Qr as BackofficePermission, Xn as VaultRequestResponse, Yr as UserRole, Zr as ExtendedPrismaClient, ia as SendOnlyTransactionData, io as Note, mr as BackofficePermissionMeta, oa as TransactionData, pi as HsmCertificate, qn as RequestReview, wr as ActivityTracer, yr as zOidcConfig } from "../app-lib-B1PMGp4x.mjs";
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/app.d.ts
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
  };
@@ -1947,7 +2002,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1947
2002
  status?: "ACTIVE" | "INACTIVE" | undefined;
1948
2003
  address?: string | undefined;
1949
2004
  currency?: string | undefined;
1950
- sortBy?: "createdAt" | "name" | "status" | "updatedAt" | undefined;
2005
+ sortBy?: "addressCount" | "createdAt" | "name" | "status" | "updatedAt" | undefined;
1951
2006
  sortOrder?: "asc" | "desc" | undefined;
1952
2007
  };
1953
2008
  output: {
@@ -1968,6 +2023,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1968
2023
  address: string;
1969
2024
  destinationTag?: string | undefined;
1970
2025
  }[];
2026
+ addressCount: number;
1971
2027
  createdAt: Date;
1972
2028
  updatedAt: Date;
1973
2029
  description: string | null;
@@ -2013,6 +2069,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2013
2069
  address: string;
2014
2070
  destinationTag?: string | undefined;
2015
2071
  }[];
2072
+ addressCount: number;
2016
2073
  createdAt: Date;
2017
2074
  updatedAt: Date;
2018
2075
  description: string | null;
@@ -2042,6 +2099,142 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2042
2099
  } & RateLimitMetricsMeta & BackofficePermissionMeta;
2043
2100
  }>;
2044
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
+ }>>;
2045
2238
  policies: import("@trpc/server").TRPCBuiltRouter<{
2046
2239
  ctx: {
2047
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;
@@ -2050,6 +2243,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2050
2243
  debugAuthToken?: string;
2051
2244
  rootAuthToken?: string;
2052
2245
  backofficeRequiredPermission?: BackofficePermission;
2246
+ core: unknown;
2053
2247
  prisma: ExtendedPrismaClient;
2054
2248
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
2055
2249
  user: {
@@ -2105,6 +2299,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2105
2299
  httpStatus: number;
2106
2300
  path?: string;
2107
2301
  stack?: string;
2302
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
2108
2303
  maintenance?: boolean | undefined;
2109
2304
  };
2110
2305
  };
@@ -2137,6 +2332,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2137
2332
  address: string;
2138
2333
  destinationTag?: string | undefined;
2139
2334
  }[];
2335
+ addressCount: number;
2140
2336
  createdAt: Date;
2141
2337
  updatedAt: Date;
2142
2338
  description: string | null;
@@ -2264,6 +2460,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2264
2460
  address: string;
2265
2461
  destinationTag?: string | undefined;
2266
2462
  }[];
2463
+ addressCount: number;
2267
2464
  createdAt: Date;
2268
2465
  updatedAt: Date;
2269
2466
  description: string | null;
@@ -2373,6 +2570,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2373
2570
  address: string;
2374
2571
  destinationTag?: string | undefined;
2375
2572
  }[];
2573
+ addressCount: number;
2376
2574
  createdAt: Date;
2377
2575
  updatedAt: Date;
2378
2576
  description: string | null;
@@ -2453,6 +2651,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2453
2651
  debugAuthToken?: string;
2454
2652
  rootAuthToken?: string;
2455
2653
  backofficeRequiredPermission?: BackofficePermission;
2654
+ core: unknown;
2456
2655
  prisma: ExtendedPrismaClient;
2457
2656
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
2458
2657
  user: {
@@ -2508,6 +2707,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2508
2707
  httpStatus: number;
2509
2708
  path?: string;
2510
2709
  stack?: string;
2710
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
2511
2711
  maintenance?: boolean | undefined;
2512
2712
  };
2513
2713
  };
@@ -2568,6 +2768,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2568
2768
  debugAuthToken?: string;
2569
2769
  rootAuthToken?: string;
2570
2770
  backofficeRequiredPermission?: BackofficePermission;
2771
+ core: unknown;
2571
2772
  prisma: ExtendedPrismaClient;
2572
2773
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
2573
2774
  user: {
@@ -2623,6 +2824,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2623
2824
  httpStatus: number;
2624
2825
  path?: string;
2625
2826
  stack?: string;
2827
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
2626
2828
  maintenance?: boolean | undefined;
2627
2829
  };
2628
2830
  };
@@ -2771,6 +2973,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2771
2973
  debugAuthToken?: string;
2772
2974
  rootAuthToken?: string;
2773
2975
  backofficeRequiredPermission?: BackofficePermission;
2976
+ core: unknown;
2774
2977
  prisma: ExtendedPrismaClient;
2775
2978
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
2776
2979
  user: {
@@ -2826,6 +3029,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2826
3029
  httpStatus: number;
2827
3030
  path?: string;
2828
3031
  stack?: string;
3032
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
2829
3033
  maintenance?: boolean | undefined;
2830
3034
  };
2831
3035
  };
@@ -2884,20 +3088,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2884
3088
  id: string;
2885
3089
  };
2886
3090
  output: ({
2887
- type: "TRADELINK_CREATE_CUSTODIAN";
3091
+ type: "CREATE_TRANSACTION";
2888
3092
  data: {
2889
- settlement: {
2890
- quorum: number;
2891
- userIds: string[];
2892
- }[];
2893
- withdraw: {
2894
- quorum: number;
2895
- userIds: string[];
2896
- }[];
2897
- arbitration: {
2898
- quorum: number;
2899
- userIds: string[];
2900
- }[];
3093
+ accountId: string;
3094
+ transaction: TransactionData;
3095
+ maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
2901
3096
  };
2902
3097
  id: string;
2903
3098
  legacyId: number;
@@ -2918,9 +3113,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2918
3113
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2919
3114
  retryAfter: Date;
2920
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;
2921
3124
  } | {
2922
- type: "TRADELINK_ACTIVATE_ACCOUNT";
2923
- data: null;
3125
+ type: "UPDATE_QUORUM";
3126
+ data: {
3127
+ quorum: number;
3128
+ };
2924
3129
  id: string;
2925
3130
  legacyId: number;
2926
3131
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -2940,20 +3145,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2940
3145
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2941
3146
  retryAfter: Date;
2942
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;
2943
3156
  } | {
2944
- type: "TRADELINK_EDIT_CUSTODIAN";
3157
+ type: "SIGN_DIGESTS";
2945
3158
  data: {
2946
- settlement: {
2947
- quorum: number;
2948
- userIds: string[];
2949
- }[];
2950
- withdraw: {
2951
- quorum: number;
2952
- userIds: string[];
2953
- }[];
2954
- arbitration: {
2955
- quorum: number;
2956
- userIds: string[];
3159
+ accountId: string;
3160
+ digests: {
3161
+ digest: string;
3162
+ derivationPath: string;
2957
3163
  }[];
2958
3164
  };
2959
3165
  id: string;
@@ -2975,19 +3181,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2975
3181
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2976
3182
  retryAfter: Date;
2977
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;
2978
3192
  } | {
2979
- type: "TRADELINK_CREATE_EXCHANGE";
3193
+ type: "EDIT_ACCOUNT";
2980
3194
  data: {
2981
- tradelinkId: string;
2982
- groups: {
2983
- quorum: number;
2984
- userIds: string[];
2985
- }[];
2986
- whitelist: {
2987
- name: string;
2988
- currency: string;
2989
- address: string;
2990
- }[];
3195
+ name: string;
3196
+ governance: {
3197
+ type: "CLASSIC";
3198
+ policy: {
3199
+ policyId: string;
3200
+ } | {
3201
+ rules: {
3202
+ reviewSteps: ({
3203
+ quorum: number;
3204
+ userIds: string[];
3205
+ } | {
3206
+ quorum: number;
3207
+ groupId: string;
3208
+ })[];
3209
+ threshold?: {
3210
+ min: string | null;
3211
+ max: string | null;
3212
+ } | undefined;
3213
+ whitelistIds?: string[] | undefined;
3214
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3215
+ }[];
3216
+ };
3217
+ } | {
3218
+ type: "TRADELINK";
3219
+ exchangeConfigs: {
3220
+ exchangeId: string;
3221
+ repledgeAuthorized: boolean;
3222
+ needsAssetManagerApprovalForSettlements: boolean;
3223
+ }[];
3224
+ } | {
3225
+ type: "RAW_SIGNING";
3226
+ policy: {
3227
+ rules: {
3228
+ operationType: "SIGN_DIGESTS";
3229
+ reviewSteps: {
3230
+ quorum: number;
3231
+ userIds: string[];
3232
+ }[];
3233
+ }[];
3234
+ };
3235
+ };
2991
3236
  };
2992
3237
  id: string;
2993
3238
  legacyId: number;
@@ -3008,19 +3253,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3008
3253
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3009
3254
  retryAfter: Date;
3010
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;
3011
3264
  } | {
3012
- type: "TRADELINK_EDIT_EXCHANGE";
3265
+ type: "CREATE_GROUP";
3013
3266
  data: {
3014
- tradelinkId: string;
3015
- groups: {
3016
- quorum: number;
3017
- userIds: string[];
3018
- }[];
3019
- whitelist: {
3020
- name: string;
3021
- currency: string;
3022
- address: string;
3023
- }[];
3267
+ name: string;
3268
+ description: string | null;
3269
+ members: string[];
3024
3270
  };
3025
3271
  id: string;
3026
3272
  legacyId: number;
@@ -3041,19 +3287,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3041
3287
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3042
3288
  retryAfter: Date;
3043
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;
3044
3298
  } | {
3045
- type: "TRADELINK_CREATE_ASSET_MANAGER";
3299
+ type: "EDIT_GROUP";
3046
3300
  data: {
3047
- tradelinkId: string;
3048
- groups: {
3049
- quorum: number;
3050
- userIds: string[];
3051
- }[];
3052
- whitelist: {
3053
- name: string;
3054
- currency: string;
3055
- address: string;
3056
- }[];
3301
+ name: string;
3302
+ description: string | null;
3303
+ members: string[];
3057
3304
  };
3058
3305
  id: string;
3059
3306
  legacyId: number;
@@ -3074,19 +3321,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3074
3321
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3075
3322
  retryAfter: Date;
3076
3323
  } | 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;
3077
3332
  } | {
3078
- type: "TRADELINK_EDIT_ASSET_MANAGER";
3333
+ type: "CREATE_WHITELIST";
3079
3334
  data: {
3080
- tradelinkId: string;
3081
- groups: {
3082
- quorum: number;
3083
- userIds: string[];
3084
- }[];
3085
- whitelist: {
3335
+ name: string;
3336
+ description: string | null;
3337
+ addresses: {
3086
3338
  name: string;
3087
3339
  currency: string;
3088
3340
  address: string;
3341
+ destinationTag?: string | undefined;
3089
3342
  }[];
3343
+ type: "SMART_CONTRACT" | "TRANSACTION";
3090
3344
  };
3091
3345
  id: string;
3092
3346
  legacyId: number;
@@ -3107,12 +3361,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3107
3361
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3108
3362
  retryAfter: Date;
3109
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;
3110
3372
  } | {
3111
- type: "TRADELINK_ADJUST_PLEDGE";
3373
+ type: "EDIT_WHITELIST";
3112
3374
  data: {
3113
- accountId: string;
3114
- exchangeId: string;
3115
- amount: string;
3375
+ name: string;
3376
+ addresses: {
3377
+ name: string;
3378
+ currency: string;
3379
+ address: string;
3380
+ destinationTag?: string | undefined;
3381
+ }[];
3116
3382
  };
3117
3383
  id: string;
3118
3384
  legacyId: number;
@@ -3133,12 +3399,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3133
3399
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3134
3400
  retryAfter: Date;
3135
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;
3136
3410
  } | {
3137
- type: "TRADELINK_REPLEDGE";
3411
+ type: "CREATE_ENTITY";
3138
3412
  data: {
3139
- accountId: string;
3140
- exchangeId: string;
3141
- amount: string;
3413
+ name: string;
3414
+ accountIds: string[];
3415
+ memberIds: string[];
3142
3416
  };
3143
3417
  id: string;
3144
3418
  legacyId: number;
@@ -3159,12 +3433,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3159
3433
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3160
3434
  retryAfter: Date;
3161
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;
3162
3444
  } | {
3163
- type: "TRADELINK_CREATE_SETTLEMENT";
3445
+ type: "EDIT_ENTITY";
3164
3446
  data: {
3165
- accountId: string;
3166
- exchangeId: string;
3167
- transaction: SendOnlyTransactionData;
3447
+ name: string;
3448
+ accountIds: string[];
3449
+ memberIds: string[];
3168
3450
  };
3169
3451
  id: string;
3170
3452
  legacyId: number;
@@ -3185,12 +3467,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3185
3467
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3186
3468
  retryAfter: Date;
3187
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;
3188
3478
  } | {
3189
- type: "TRADELINK_FORCE_UNPLEDGE";
3190
- data: {
3191
- accountId: string;
3192
- exchangeId: string;
3193
- };
3479
+ type: "REVOKE_ENTITY";
3480
+ data: Record<string, never>;
3194
3481
  id: string;
3195
3482
  legacyId: number;
3196
3483
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -3210,11 +3497,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3210
3497
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3211
3498
  retryAfter: Date;
3212
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;
3213
3508
  } | {
3214
- type: "TRADELINK_WITHDRAW";
3509
+ type: "CREATE_PSD_USER";
3215
3510
  data: {
3216
- accountId: string;
3217
- transaction: SendOnlyTransactionData;
3511
+ registrationId: string;
3218
3512
  };
3219
3513
  id: string;
3220
3514
  legacyId: number;
@@ -3235,11 +3529,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3235
3529
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3236
3530
  retryAfter: Date;
3237
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;
3238
3540
  } | {
3239
- type: "TRADELINK_ARBITRATE";
3541
+ type: "CREATE_API_USER";
3240
3542
  data: {
3241
- accountId: string;
3242
- transaction: SendOnlyTransactionData;
3543
+ name: string;
3544
+ pubKey: string;
3545
+ role: "ADMIN" | "OPERATOR";
3546
+ viewAll?: boolean | undefined;
3243
3547
  };
3244
3548
  id: string;
3245
3549
  legacyId: number;
@@ -3260,11 +3564,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3260
3564
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3261
3565
  retryAfter: Date;
3262
3566
  } | 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;
3263
3575
  } | {
3264
- type: "UPDATE_QUORUM";
3265
- data: {
3266
- quorum: number;
3267
- };
3576
+ type: "REVOKE_USER";
3577
+ data: Record<string, never>;
3268
3578
  id: string;
3269
3579
  legacyId: number;
3270
3580
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -3284,11 +3594,22 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3284
3594
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3285
3595
  retryAfter: Date;
3286
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;
3287
3605
  } | {
3288
- type: "CREATE_TRANSACTION";
3606
+ type: "EDIT_WORKSPACE_RULE";
3289
3607
  data: {
3290
- accountId: string;
3291
- transaction: TransactionData;
3608
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
3609
+ reviewConfig: {
3610
+ quorum: number;
3611
+ userIds: string[];
3612
+ }[];
3292
3613
  };
3293
3614
  id: string;
3294
3615
  legacyId: number;
@@ -3309,13 +3630,38 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3309
3630
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3310
3631
  retryAfter: Date;
3311
3632
  } | 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;
3312
3641
  } | {
3313
- type: "SIGN_DIGESTS";
3642
+ type: "CREATE_POLICY";
3314
3643
  data: {
3315
- accountId: string;
3316
- digests: {
3317
- digest: string;
3318
- derivationPath: string;
3644
+ name: string;
3645
+ description: string | null;
3646
+ asset: {
3647
+ network: string;
3648
+ contractAddress: string | null;
3649
+ tokenIdentifier: string | null;
3650
+ } | null;
3651
+ govRules: {
3652
+ reviewSteps: ({
3653
+ quorum: number;
3654
+ userIds: string[];
3655
+ } | {
3656
+ quorum: number;
3657
+ groupId: string;
3658
+ })[];
3659
+ threshold?: {
3660
+ min: string | null;
3661
+ max: string | null;
3662
+ } | undefined;
3663
+ whitelistIds?: string[] | undefined;
3664
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3319
3665
  }[];
3320
3666
  };
3321
3667
  id: string;
@@ -3337,50 +3683,34 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3337
3683
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3338
3684
  retryAfter: Date;
3339
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;
3340
3694
  } | {
3341
- type: "EDIT_ACCOUNT";
3695
+ type: "EDIT_POLICY";
3342
3696
  data: {
3343
3697
  name: string;
3344
- governance: {
3345
- type: "CLASSIC";
3346
- policy: {
3347
- policyId: string;
3698
+ description: string | null;
3699
+ govRules: {
3700
+ reviewSteps: ({
3701
+ quorum: number;
3702
+ userIds: string[];
3348
3703
  } | {
3349
- rules: {
3350
- reviewSteps: ({
3351
- quorum: number;
3352
- userIds: string[];
3353
- } | {
3354
- quorum: number;
3355
- groupId: string;
3356
- })[];
3357
- threshold?: {
3358
- min: string | null;
3359
- max: string | null;
3360
- } | undefined;
3361
- whitelistIds?: string[] | undefined;
3362
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3363
- }[];
3364
- };
3365
- } | {
3366
- type: "TRADELINK";
3367
- exchangeConfigs: {
3368
- exchangeId: string;
3369
- repledgeAuthorized: boolean;
3370
- needsAssetManagerApprovalForSettlements: boolean;
3371
- }[];
3372
- } | {
3373
- type: "RAW_SIGNING";
3374
- policy: {
3375
- rules: {
3376
- operationType: "SIGN_DIGESTS";
3377
- reviewSteps: {
3378
- quorum: number;
3379
- userIds: string[];
3380
- }[];
3381
- }[];
3382
- };
3383
- };
3704
+ quorum: number;
3705
+ groupId: string;
3706
+ })[];
3707
+ threshold?: {
3708
+ min: string | null;
3709
+ max: string | null;
3710
+ } | undefined;
3711
+ whitelistIds?: string[] | undefined;
3712
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3713
+ }[];
3384
3714
  };
3385
3715
  id: string;
3386
3716
  legacyId: number;
@@ -3401,13 +3731,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3401
3731
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3402
3732
  retryAfter: Date;
3403
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;
3404
3742
  } | {
3405
- type: "CREATE_GROUP";
3406
- data: {
3407
- name: string;
3408
- description: string | null;
3409
- members: string[];
3410
- };
3743
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
3744
+ data: null;
3411
3745
  id: string;
3412
3746
  legacyId: number;
3413
3747
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -3427,12 +3761,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3427
3761
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3428
3762
  retryAfter: Date;
3429
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;
3430
3772
  } | {
3431
- type: "EDIT_GROUP";
3773
+ type: "TRADELINK_CREATE_CUSTODIAN";
3432
3774
  data: {
3433
- name: string;
3434
- description: string | null;
3435
- members: string[];
3775
+ settlement: {
3776
+ quorum: number;
3777
+ userIds: string[];
3778
+ }[];
3779
+ withdraw: {
3780
+ quorum: number;
3781
+ userIds: string[];
3782
+ }[];
3783
+ arbitration: {
3784
+ quorum: number;
3785
+ userIds: string[];
3786
+ }[];
3436
3787
  };
3437
3788
  id: string;
3438
3789
  legacyId: number;
@@ -3453,18 +3804,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3453
3804
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3454
3805
  retryAfter: Date;
3455
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;
3456
3815
  } | {
3457
- type: "CREATE_WHITELIST";
3816
+ type: "TRADELINK_EDIT_CUSTODIAN";
3458
3817
  data: {
3459
- name: string;
3460
- description: string | null;
3461
- addresses: {
3462
- name: string;
3463
- currency: string;
3464
- address: string;
3465
- destinationTag?: string | undefined;
3818
+ settlement: {
3819
+ quorum: number;
3820
+ userIds: string[];
3821
+ }[];
3822
+ withdraw: {
3823
+ quorum: number;
3824
+ userIds: string[];
3825
+ }[];
3826
+ arbitration: {
3827
+ quorum: number;
3828
+ userIds: string[];
3466
3829
  }[];
3467
- type: "SMART_CONTRACT" | "TRANSACTION";
3468
3830
  };
3469
3831
  id: string;
3470
3832
  legacyId: number;
@@ -3485,15 +3847,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3485
3847
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3486
3848
  retryAfter: Date;
3487
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;
3488
3858
  } | {
3489
- type: "EDIT_WHITELIST";
3859
+ type: "TRADELINK_CREATE_EXCHANGE";
3490
3860
  data: {
3491
- name: string;
3492
- addresses: {
3861
+ tradelinkId: string;
3862
+ groups: {
3863
+ quorum: number;
3864
+ userIds: string[];
3865
+ }[];
3866
+ whitelist: {
3493
3867
  name: string;
3494
3868
  currency: string;
3495
3869
  address: string;
3496
- destinationTag?: string | undefined;
3497
3870
  }[];
3498
3871
  };
3499
3872
  id: string;
@@ -3515,12 +3888,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3515
3888
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3516
3889
  retryAfter: Date;
3517
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;
3518
3899
  } | {
3519
- type: "CREATE_ENTITY";
3900
+ type: "TRADELINK_EDIT_EXCHANGE";
3520
3901
  data: {
3521
- name: string;
3522
- accountIds: string[];
3523
- memberIds: string[];
3902
+ tradelinkId: string;
3903
+ groups: {
3904
+ quorum: number;
3905
+ userIds: string[];
3906
+ }[];
3907
+ whitelist: {
3908
+ name: string;
3909
+ currency: string;
3910
+ address: string;
3911
+ }[];
3524
3912
  };
3525
3913
  id: string;
3526
3914
  legacyId: number;
@@ -3541,12 +3929,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3541
3929
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3542
3930
  retryAfter: Date;
3543
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;
3544
3940
  } | {
3545
- type: "EDIT_ENTITY";
3941
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
3546
3942
  data: {
3547
- name: string;
3548
- accountIds: string[];
3549
- memberIds: string[];
3943
+ tradelinkId: string;
3944
+ groups: {
3945
+ quorum: number;
3946
+ userIds: string[];
3947
+ }[];
3948
+ whitelist: {
3949
+ name: string;
3950
+ currency: string;
3951
+ address: string;
3952
+ }[];
3550
3953
  };
3551
3954
  id: string;
3552
3955
  legacyId: number;
@@ -3567,9 +3970,28 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3567
3970
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3568
3971
  retryAfter: Date;
3569
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;
3570
3981
  } | {
3571
- type: "REVOKE_ENTITY";
3572
- data: Record<string, never>;
3982
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
3983
+ data: {
3984
+ tradelinkId: string;
3985
+ groups: {
3986
+ quorum: number;
3987
+ userIds: string[];
3988
+ }[];
3989
+ whitelist: {
3990
+ name: string;
3991
+ currency: string;
3992
+ address: string;
3993
+ }[];
3994
+ };
3573
3995
  id: string;
3574
3996
  legacyId: number;
3575
3997
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -3589,10 +4011,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3589
4011
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3590
4012
  retryAfter: Date;
3591
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;
3592
4022
  } | {
3593
- type: "CREATE_PSD_USER";
4023
+ type: "TRADELINK_ADJUST_PLEDGE";
3594
4024
  data: {
3595
- registrationId: string;
4025
+ accountId: string;
4026
+ exchangeId: string;
4027
+ amount: string;
3596
4028
  };
3597
4029
  id: string;
3598
4030
  legacyId: number;
@@ -3613,13 +4045,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3613
4045
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3614
4046
  retryAfter: Date;
3615
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;
3616
4056
  } | {
3617
- type: "CREATE_API_USER";
4057
+ type: "TRADELINK_REPLEDGE";
3618
4058
  data: {
3619
- name: string;
3620
- pubKey: string;
3621
- role: "ADMIN" | "OPERATOR";
3622
- viewAll?: boolean | undefined;
4059
+ accountId: string;
4060
+ exchangeId: string;
4061
+ amount: string;
3623
4062
  };
3624
4063
  id: string;
3625
4064
  legacyId: number;
@@ -3640,9 +4079,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3640
4079
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3641
4080
  retryAfter: Date;
3642
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;
3643
4090
  } | {
3644
- type: "REVOKE_USER";
3645
- data: Record<string, never>;
4091
+ type: "TRADELINK_CREATE_SETTLEMENT";
4092
+ data: {
4093
+ accountId: string;
4094
+ exchangeId: string;
4095
+ transaction: SendOnlyTransactionData;
4096
+ };
3646
4097
  id: string;
3647
4098
  legacyId: number;
3648
4099
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -3662,14 +4113,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3662
4113
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3663
4114
  retryAfter: Date;
3664
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;
3665
4124
  } | {
3666
- type: "EDIT_WORKSPACE_RULE";
4125
+ type: "TRADELINK_FORCE_UNPLEDGE";
3667
4126
  data: {
3668
- permission: "CREATE_ACCOUNT_WITH_POLICY";
3669
- reviewConfig: {
3670
- quorum: number;
3671
- userIds: string[];
3672
- }[];
4127
+ accountId: string;
4128
+ exchangeId: string;
3673
4129
  };
3674
4130
  id: string;
3675
4131
  legacyId: number;
@@ -3690,31 +4146,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3690
4146
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3691
4147
  retryAfter: Date;
3692
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;
3693
4157
  } | {
3694
- type: "CREATE_POLICY";
4158
+ type: "TRADELINK_WITHDRAW";
3695
4159
  data: {
3696
- name: string;
3697
- description: string | null;
3698
- asset: {
3699
- network: string;
3700
- contractAddress: string | null;
3701
- tokenIdentifier: string | null;
3702
- } | null;
3703
- govRules: {
3704
- reviewSteps: ({
3705
- quorum: number;
3706
- userIds: string[];
3707
- } | {
3708
- quorum: number;
3709
- groupId: string;
3710
- })[];
3711
- threshold?: {
3712
- min: string | null;
3713
- max: string | null;
3714
- } | undefined;
3715
- whitelistIds?: string[] | undefined;
3716
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3717
- }[];
4160
+ accountId: string;
4161
+ transaction: SendOnlyTransactionData;
3718
4162
  };
3719
4163
  id: string;
3720
4164
  legacyId: number;
@@ -3735,26 +4179,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3735
4179
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3736
4180
  retryAfter: Date;
3737
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;
3738
4190
  } | {
3739
- type: "EDIT_POLICY";
4191
+ type: "TRADELINK_ARBITRATE";
3740
4192
  data: {
3741
- name: string;
3742
- description: string | null;
3743
- govRules: {
3744
- reviewSteps: ({
3745
- quorum: number;
3746
- userIds: string[];
3747
- } | {
3748
- quorum: number;
3749
- groupId: string;
3750
- })[];
3751
- threshold?: {
3752
- min: string | null;
3753
- max: string | null;
3754
- } | undefined;
3755
- whitelistIds?: string[] | undefined;
3756
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
3757
- }[];
4193
+ accountId: string;
4194
+ transaction: SendOnlyTransactionData;
3758
4195
  };
3759
4196
  id: string;
3760
4197
  legacyId: number;
@@ -3775,6 +4212,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3775
4212
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3776
4213
  retryAfter: Date;
3777
4214
  } | undefined;
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;
3778
4223
  } | {
3779
4224
  type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
3780
4225
  data: {
@@ -3800,6 +4245,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3800
4245
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3801
4246
  retryAfter: Date;
3802
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;
3803
4256
  } | {
3804
4257
  type: "SIGN_MESSAGE";
3805
4258
  data: {
@@ -3848,6 +4301,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3848
4301
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3849
4302
  retryAfter: Date;
3850
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;
3851
4312
  } | {
3852
4313
  type: "CREATE_ACCOUNT";
3853
4314
  data: {
@@ -3921,6 +4382,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3921
4382
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3922
4383
  retryAfter: Date;
3923
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;
3924
4393
  } | {
3925
4394
  type: "EDIT_TOKEN_RULE";
3926
4395
  data: {
@@ -3961,6 +4430,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3961
4430
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3962
4431
  retryAfter: Date;
3963
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;
3964
4441
  } | {
3965
4442
  type: "REVOKE_GROUP";
3966
4443
  data: Record<string, never>;
@@ -3983,6 +4460,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3983
4460
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
3984
4461
  retryAfter: Date;
3985
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;
3986
4471
  } | {
3987
4472
  type: "CREATE_API_USER_ACCESS";
3988
4473
  data: {
@@ -4007,6 +4492,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4007
4492
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4008
4493
  retryAfter: Date;
4009
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;
4010
4503
  } | {
4011
4504
  type: "CREATE_SCICONFIG";
4012
4505
  data: {
@@ -4035,6 +4528,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4035
4528
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4036
4529
  retryAfter: Date;
4037
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;
4038
4539
  } | {
4039
4540
  type: "EDIT_SCICONFIG";
4040
4541
  data: {
@@ -4062,6 +4563,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4062
4563
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4063
4564
  retryAfter: Date;
4064
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;
4065
4574
  } | {
4066
4575
  type: "CREATE_API_KEY";
4067
4576
  data: {
@@ -4088,6 +4597,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4088
4597
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4089
4598
  retryAfter: Date;
4090
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;
4091
4608
  } | {
4092
4609
  type: "EDIT_API_KEY";
4093
4610
  data: {
@@ -4114,6 +4631,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4114
4631
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4115
4632
  retryAfter: Date;
4116
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;
4117
4642
  } | {
4118
4643
  type: "REVOKE_API_KEY";
4119
4644
  data: Record<string, never>;
@@ -4136,6 +4661,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4136
4661
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4137
4662
  retryAfter: Date;
4138
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;
4139
4672
  }) & {
4140
4673
  workspaceName: string;
4141
4674
  };
@@ -4221,6 +4754,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4221
4754
  debugAuthToken?: string;
4222
4755
  rootAuthToken?: string;
4223
4756
  backofficeRequiredPermission?: BackofficePermission;
4757
+ core: unknown;
4224
4758
  prisma: ExtendedPrismaClient;
4225
4759
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
4226
4760
  user: {
@@ -4276,6 +4810,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4276
4810
  httpStatus: number;
4277
4811
  path?: string;
4278
4812
  stack?: string;
4813
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
4279
4814
  maintenance?: boolean | undefined;
4280
4815
  };
4281
4816
  };
@@ -4466,6 +5001,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4466
5001
  debugAuthToken?: string;
4467
5002
  rootAuthToken?: string;
4468
5003
  backofficeRequiredPermission?: BackofficePermission;
5004
+ core: unknown;
4469
5005
  prisma: ExtendedPrismaClient;
4470
5006
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
4471
5007
  user: {
@@ -4521,6 +5057,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4521
5057
  httpStatus: number;
4522
5058
  path?: string;
4523
5059
  stack?: string;
5060
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
4524
5061
  maintenance?: boolean | undefined;
4525
5062
  };
4526
5063
  };
@@ -4613,6 +5150,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4613
5150
  debugAuthToken?: string;
4614
5151
  rootAuthToken?: string;
4615
5152
  backofficeRequiredPermission?: BackofficePermission;
5153
+ core: unknown;
4616
5154
  prisma: ExtendedPrismaClient;
4617
5155
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
4618
5156
  user: {
@@ -4668,6 +5206,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4668
5206
  httpStatus: number;
4669
5207
  path?: string;
4670
5208
  stack?: string;
5209
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
4671
5210
  maintenance?: boolean | undefined;
4672
5211
  };
4673
5212
  };
@@ -4797,6 +5336,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4797
5336
  debugAuthToken?: string;
4798
5337
  rootAuthToken?: string;
4799
5338
  backofficeRequiredPermission?: BackofficePermission;
5339
+ core: unknown;
4800
5340
  prisma: ExtendedPrismaClient;
4801
5341
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
4802
5342
  user: {
@@ -4852,6 +5392,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4852
5392
  httpStatus: number;
4853
5393
  path?: string;
4854
5394
  stack?: string;
5395
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
4855
5396
  maintenance?: boolean | undefined;
4856
5397
  };
4857
5398
  };
@@ -4978,6 +5519,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4978
5519
  };
4979
5520
  } & RateLimitMetricsMeta & BackofficePermissionMeta;
4980
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
+ }>;
4981
5549
  }>>;
4982
5550
  }>>;
4983
5551
  reports: import("@trpc/server").TRPCBuiltRouter<{
@@ -4988,6 +5556,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4988
5556
  debugAuthToken?: string;
4989
5557
  rootAuthToken?: string;
4990
5558
  backofficeRequiredPermission?: BackofficePermission;
5559
+ core: unknown;
4991
5560
  prisma: ExtendedPrismaClient;
4992
5561
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
4993
5562
  user: {
@@ -5043,6 +5612,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5043
5612
  httpStatus: number;
5044
5613
  path?: string;
5045
5614
  stack?: string;
5615
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
5046
5616
  maintenance?: boolean | undefined;
5047
5617
  };
5048
5618
  };
@@ -5065,20 +5635,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5065
5635
  pageSize: number;
5066
5636
  total: number;
5067
5637
  results: ({
5068
- type: "TRADELINK_CREATE_CUSTODIAN";
5638
+ type: "CREATE_TRANSACTION";
5069
5639
  data: {
5070
- settlement: {
5071
- quorum: number;
5072
- userIds: string[];
5073
- }[];
5074
- withdraw: {
5075
- quorum: number;
5076
- userIds: string[];
5077
- }[];
5078
- arbitration: {
5079
- quorum: number;
5080
- userIds: string[];
5081
- }[];
5640
+ accountId: string;
5641
+ transaction: TransactionData;
5642
+ maxAllowedRiskLevel?: "BENIGN" | "RISK" | "THREAT" | "UNAVAILABLE" | undefined;
5082
5643
  };
5083
5644
  id: string;
5084
5645
  legacyId: number;
@@ -5099,9 +5660,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5099
5660
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5100
5661
  retryAfter: Date;
5101
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;
5102
5671
  } | {
5103
- type: "TRADELINK_ACTIVATE_ACCOUNT";
5104
- data: null;
5672
+ type: "UPDATE_QUORUM";
5673
+ data: {
5674
+ quorum: number;
5675
+ };
5105
5676
  id: string;
5106
5677
  legacyId: number;
5107
5678
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5121,20 +5692,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5121
5692
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5122
5693
  retryAfter: Date;
5123
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;
5124
5703
  } | {
5125
- type: "TRADELINK_EDIT_CUSTODIAN";
5704
+ type: "SIGN_DIGESTS";
5126
5705
  data: {
5127
- settlement: {
5128
- quorum: number;
5129
- userIds: string[];
5130
- }[];
5131
- withdraw: {
5132
- quorum: number;
5133
- userIds: string[];
5134
- }[];
5135
- arbitration: {
5136
- quorum: number;
5137
- userIds: string[];
5706
+ accountId: string;
5707
+ digests: {
5708
+ digest: string;
5709
+ derivationPath: string;
5138
5710
  }[];
5139
5711
  };
5140
5712
  id: string;
@@ -5156,19 +5728,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5156
5728
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5157
5729
  retryAfter: Date;
5158
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;
5159
5739
  } | {
5160
- type: "TRADELINK_CREATE_EXCHANGE";
5740
+ type: "EDIT_ACCOUNT";
5161
5741
  data: {
5162
- tradelinkId: string;
5163
- groups: {
5164
- quorum: number;
5165
- userIds: string[];
5166
- }[];
5167
- whitelist: {
5168
- name: string;
5169
- currency: string;
5170
- address: string;
5171
- }[];
5742
+ name: string;
5743
+ governance: {
5744
+ type: "CLASSIC";
5745
+ policy: {
5746
+ policyId: string;
5747
+ } | {
5748
+ rules: {
5749
+ reviewSteps: ({
5750
+ quorum: number;
5751
+ userIds: string[];
5752
+ } | {
5753
+ quorum: number;
5754
+ groupId: string;
5755
+ })[];
5756
+ threshold?: {
5757
+ min: string | null;
5758
+ max: string | null;
5759
+ } | undefined;
5760
+ whitelistIds?: string[] | undefined;
5761
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5762
+ }[];
5763
+ };
5764
+ } | {
5765
+ type: "TRADELINK";
5766
+ exchangeConfigs: {
5767
+ exchangeId: string;
5768
+ repledgeAuthorized: boolean;
5769
+ needsAssetManagerApprovalForSettlements: boolean;
5770
+ }[];
5771
+ } | {
5772
+ type: "RAW_SIGNING";
5773
+ policy: {
5774
+ rules: {
5775
+ operationType: "SIGN_DIGESTS";
5776
+ reviewSteps: {
5777
+ quorum: number;
5778
+ userIds: string[];
5779
+ }[];
5780
+ }[];
5781
+ };
5782
+ };
5172
5783
  };
5173
5784
  id: string;
5174
5785
  legacyId: number;
@@ -5189,19 +5800,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5189
5800
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5190
5801
  retryAfter: Date;
5191
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;
5192
5811
  } | {
5193
- type: "TRADELINK_EDIT_EXCHANGE";
5812
+ type: "CREATE_GROUP";
5194
5813
  data: {
5195
- tradelinkId: string;
5196
- groups: {
5197
- quorum: number;
5198
- userIds: string[];
5199
- }[];
5200
- whitelist: {
5201
- name: string;
5202
- currency: string;
5203
- address: string;
5204
- }[];
5814
+ name: string;
5815
+ description: string | null;
5816
+ members: string[];
5205
5817
  };
5206
5818
  id: string;
5207
5819
  legacyId: number;
@@ -5222,19 +5834,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5222
5834
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5223
5835
  retryAfter: Date;
5224
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;
5225
5845
  } | {
5226
- type: "TRADELINK_CREATE_ASSET_MANAGER";
5846
+ type: "EDIT_GROUP";
5227
5847
  data: {
5228
- tradelinkId: string;
5229
- groups: {
5230
- quorum: number;
5231
- userIds: string[];
5232
- }[];
5233
- whitelist: {
5234
- name: string;
5235
- currency: string;
5236
- address: string;
5237
- }[];
5848
+ name: string;
5849
+ description: string | null;
5850
+ members: string[];
5238
5851
  };
5239
5852
  id: string;
5240
5853
  legacyId: number;
@@ -5255,19 +5868,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5255
5868
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5256
5869
  retryAfter: Date;
5257
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;
5258
5879
  } | {
5259
- type: "TRADELINK_EDIT_ASSET_MANAGER";
5880
+ type: "CREATE_WHITELIST";
5260
5881
  data: {
5261
- tradelinkId: string;
5262
- groups: {
5263
- quorum: number;
5264
- userIds: string[];
5265
- }[];
5266
- whitelist: {
5882
+ name: string;
5883
+ description: string | null;
5884
+ addresses: {
5267
5885
  name: string;
5268
5886
  currency: string;
5269
5887
  address: string;
5888
+ destinationTag?: string | undefined;
5270
5889
  }[];
5890
+ type: "SMART_CONTRACT" | "TRANSACTION";
5271
5891
  };
5272
5892
  id: string;
5273
5893
  legacyId: number;
@@ -5288,12 +5908,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5288
5908
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5289
5909
  retryAfter: Date;
5290
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;
5291
5919
  } | {
5292
- type: "TRADELINK_ADJUST_PLEDGE";
5920
+ type: "EDIT_WHITELIST";
5293
5921
  data: {
5294
- accountId: string;
5295
- exchangeId: string;
5296
- amount: string;
5922
+ name: string;
5923
+ addresses: {
5924
+ name: string;
5925
+ currency: string;
5926
+ address: string;
5927
+ destinationTag?: string | undefined;
5928
+ }[];
5297
5929
  };
5298
5930
  id: string;
5299
5931
  legacyId: number;
@@ -5314,12 +5946,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5314
5946
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5315
5947
  retryAfter: Date;
5316
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;
5317
5957
  } | {
5318
- type: "TRADELINK_REPLEDGE";
5958
+ type: "CREATE_ENTITY";
5319
5959
  data: {
5320
- accountId: string;
5321
- exchangeId: string;
5322
- amount: string;
5960
+ name: string;
5961
+ accountIds: string[];
5962
+ memberIds: string[];
5323
5963
  };
5324
5964
  id: string;
5325
5965
  legacyId: number;
@@ -5340,12 +5980,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5340
5980
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5341
5981
  retryAfter: Date;
5342
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;
5343
5991
  } | {
5344
- type: "TRADELINK_CREATE_SETTLEMENT";
5992
+ type: "EDIT_ENTITY";
5345
5993
  data: {
5346
- accountId: string;
5347
- exchangeId: string;
5348
- transaction: SendOnlyTransactionData;
5994
+ name: string;
5995
+ accountIds: string[];
5996
+ memberIds: string[];
5349
5997
  };
5350
5998
  id: string;
5351
5999
  legacyId: number;
@@ -5366,12 +6014,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5366
6014
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5367
6015
  retryAfter: Date;
5368
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;
5369
6025
  } | {
5370
- type: "TRADELINK_FORCE_UNPLEDGE";
5371
- data: {
5372
- accountId: string;
5373
- exchangeId: string;
5374
- };
6026
+ type: "REVOKE_ENTITY";
6027
+ data: Record<string, never>;
5375
6028
  id: string;
5376
6029
  legacyId: number;
5377
6030
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5391,11 +6044,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5391
6044
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5392
6045
  retryAfter: Date;
5393
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;
5394
6055
  } | {
5395
- type: "TRADELINK_WITHDRAW";
6056
+ type: "CREATE_PSD_USER";
5396
6057
  data: {
5397
- accountId: string;
5398
- transaction: SendOnlyTransactionData;
6058
+ registrationId: string;
5399
6059
  };
5400
6060
  id: string;
5401
6061
  legacyId: number;
@@ -5416,11 +6076,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5416
6076
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5417
6077
  retryAfter: Date;
5418
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;
5419
6087
  } | {
5420
- type: "TRADELINK_ARBITRATE";
6088
+ type: "CREATE_API_USER";
5421
6089
  data: {
5422
- accountId: string;
5423
- transaction: SendOnlyTransactionData;
6090
+ name: string;
6091
+ pubKey: string;
6092
+ role: "ADMIN" | "OPERATOR";
6093
+ viewAll?: boolean | undefined;
5424
6094
  };
5425
6095
  id: string;
5426
6096
  legacyId: number;
@@ -5441,11 +6111,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5441
6111
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5442
6112
  retryAfter: Date;
5443
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;
5444
6122
  } | {
5445
- type: "UPDATE_QUORUM";
5446
- data: {
5447
- quorum: number;
5448
- };
6123
+ type: "REVOKE_USER";
6124
+ data: Record<string, never>;
5449
6125
  id: string;
5450
6126
  legacyId: number;
5451
6127
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5465,11 +6141,22 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5465
6141
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5466
6142
  retryAfter: Date;
5467
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;
5468
6152
  } | {
5469
- type: "CREATE_TRANSACTION";
6153
+ type: "EDIT_WORKSPACE_RULE";
5470
6154
  data: {
5471
- accountId: string;
5472
- transaction: TransactionData;
6155
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
6156
+ reviewConfig: {
6157
+ quorum: number;
6158
+ userIds: string[];
6159
+ }[];
5473
6160
  };
5474
6161
  id: string;
5475
6162
  legacyId: number;
@@ -5490,13 +6177,38 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5490
6177
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5491
6178
  retryAfter: Date;
5492
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;
5493
6188
  } | {
5494
- type: "SIGN_DIGESTS";
6189
+ type: "CREATE_POLICY";
5495
6190
  data: {
5496
- accountId: string;
5497
- digests: {
5498
- digest: string;
5499
- derivationPath: string;
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";
5500
6212
  }[];
5501
6213
  };
5502
6214
  id: string;
@@ -5518,50 +6230,34 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5518
6230
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5519
6231
  retryAfter: Date;
5520
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;
5521
6241
  } | {
5522
- type: "EDIT_ACCOUNT";
6242
+ type: "EDIT_POLICY";
5523
6243
  data: {
5524
6244
  name: string;
5525
- governance: {
5526
- type: "CLASSIC";
5527
- policy: {
5528
- policyId: string;
6245
+ description: string | null;
6246
+ govRules: {
6247
+ reviewSteps: ({
6248
+ quorum: number;
6249
+ userIds: string[];
5529
6250
  } | {
5530
- rules: {
5531
- reviewSteps: ({
5532
- quorum: number;
5533
- userIds: string[];
5534
- } | {
5535
- quorum: number;
5536
- groupId: string;
5537
- })[];
5538
- threshold?: {
5539
- min: string | null;
5540
- max: string | null;
5541
- } | undefined;
5542
- whitelistIds?: string[] | undefined;
5543
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5544
- }[];
5545
- };
5546
- } | {
5547
- type: "TRADELINK";
5548
- exchangeConfigs: {
5549
- exchangeId: string;
5550
- repledgeAuthorized: boolean;
5551
- needsAssetManagerApprovalForSettlements: boolean;
5552
- }[];
5553
- } | {
5554
- type: "RAW_SIGNING";
5555
- policy: {
5556
- rules: {
5557
- operationType: "SIGN_DIGESTS";
5558
- reviewSteps: {
5559
- quorum: number;
5560
- userIds: string[];
5561
- }[];
5562
- }[];
5563
- };
5564
- };
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
+ }[];
5565
6261
  };
5566
6262
  id: string;
5567
6263
  legacyId: number;
@@ -5582,13 +6278,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5582
6278
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5583
6279
  retryAfter: Date;
5584
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;
5585
6289
  } | {
5586
- type: "CREATE_GROUP";
5587
- data: {
5588
- name: string;
5589
- description: string | null;
5590
- members: string[];
5591
- };
6290
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
6291
+ data: null;
5592
6292
  id: string;
5593
6293
  legacyId: number;
5594
6294
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5608,12 +6308,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5608
6308
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5609
6309
  retryAfter: Date;
5610
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;
5611
6319
  } | {
5612
- type: "EDIT_GROUP";
6320
+ type: "TRADELINK_CREATE_CUSTODIAN";
5613
6321
  data: {
5614
- name: string;
5615
- description: string | null;
5616
- members: string[];
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
+ }[];
5617
6334
  };
5618
6335
  id: string;
5619
6336
  legacyId: number;
@@ -5634,18 +6351,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5634
6351
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5635
6352
  retryAfter: Date;
5636
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;
5637
6362
  } | {
5638
- type: "CREATE_WHITELIST";
6363
+ type: "TRADELINK_EDIT_CUSTODIAN";
5639
6364
  data: {
5640
- name: string;
5641
- description: string | null;
5642
- addresses: {
5643
- name: string;
5644
- currency: string;
5645
- address: string;
5646
- destinationTag?: string | undefined;
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[];
5647
6376
  }[];
5648
- type: "SMART_CONTRACT" | "TRANSACTION";
5649
6377
  };
5650
6378
  id: string;
5651
6379
  legacyId: number;
@@ -5666,15 +6394,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5666
6394
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5667
6395
  retryAfter: Date;
5668
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;
5669
6405
  } | {
5670
- type: "EDIT_WHITELIST";
6406
+ type: "TRADELINK_CREATE_EXCHANGE";
5671
6407
  data: {
5672
- name: string;
5673
- addresses: {
6408
+ tradelinkId: string;
6409
+ groups: {
6410
+ quorum: number;
6411
+ userIds: string[];
6412
+ }[];
6413
+ whitelist: {
5674
6414
  name: string;
5675
6415
  currency: string;
5676
6416
  address: string;
5677
- destinationTag?: string | undefined;
5678
6417
  }[];
5679
6418
  };
5680
6419
  id: string;
@@ -5696,12 +6435,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5696
6435
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5697
6436
  retryAfter: Date;
5698
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;
5699
6446
  } | {
5700
- type: "CREATE_ENTITY";
6447
+ type: "TRADELINK_EDIT_EXCHANGE";
5701
6448
  data: {
5702
- name: string;
5703
- accountIds: string[];
5704
- memberIds: string[];
6449
+ tradelinkId: string;
6450
+ groups: {
6451
+ quorum: number;
6452
+ userIds: string[];
6453
+ }[];
6454
+ whitelist: {
6455
+ name: string;
6456
+ currency: string;
6457
+ address: string;
6458
+ }[];
5705
6459
  };
5706
6460
  id: string;
5707
6461
  legacyId: number;
@@ -5722,12 +6476,27 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5722
6476
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5723
6477
  retryAfter: Date;
5724
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;
5725
6487
  } | {
5726
- type: "EDIT_ENTITY";
6488
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
5727
6489
  data: {
5728
- name: string;
5729
- accountIds: string[];
5730
- memberIds: string[];
6490
+ tradelinkId: string;
6491
+ groups: {
6492
+ quorum: number;
6493
+ userIds: string[];
6494
+ }[];
6495
+ whitelist: {
6496
+ name: string;
6497
+ currency: string;
6498
+ address: string;
6499
+ }[];
5731
6500
  };
5732
6501
  id: string;
5733
6502
  legacyId: number;
@@ -5748,9 +6517,28 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5748
6517
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5749
6518
  retryAfter: Date;
5750
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;
5751
6528
  } | {
5752
- type: "REVOKE_ENTITY";
5753
- data: Record<string, never>;
6529
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
6530
+ data: {
6531
+ tradelinkId: string;
6532
+ groups: {
6533
+ quorum: number;
6534
+ userIds: string[];
6535
+ }[];
6536
+ whitelist: {
6537
+ name: string;
6538
+ currency: string;
6539
+ address: string;
6540
+ }[];
6541
+ };
5754
6542
  id: string;
5755
6543
  legacyId: number;
5756
6544
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5770,10 +6558,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5770
6558
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5771
6559
  retryAfter: Date;
5772
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;
5773
6569
  } | {
5774
- type: "CREATE_PSD_USER";
6570
+ type: "TRADELINK_ADJUST_PLEDGE";
5775
6571
  data: {
5776
- registrationId: string;
6572
+ accountId: string;
6573
+ exchangeId: string;
6574
+ amount: string;
5777
6575
  };
5778
6576
  id: string;
5779
6577
  legacyId: number;
@@ -5794,13 +6592,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5794
6592
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5795
6593
  retryAfter: Date;
5796
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;
5797
6603
  } | {
5798
- type: "CREATE_API_USER";
6604
+ type: "TRADELINK_REPLEDGE";
5799
6605
  data: {
5800
- name: string;
5801
- pubKey: string;
5802
- role: "ADMIN" | "OPERATOR";
5803
- viewAll?: boolean | undefined;
6606
+ accountId: string;
6607
+ exchangeId: string;
6608
+ amount: string;
5804
6609
  };
5805
6610
  id: string;
5806
6611
  legacyId: number;
@@ -5821,9 +6626,21 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5821
6626
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5822
6627
  retryAfter: Date;
5823
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;
5824
6637
  } | {
5825
- type: "REVOKE_USER";
5826
- data: Record<string, never>;
6638
+ type: "TRADELINK_CREATE_SETTLEMENT";
6639
+ data: {
6640
+ accountId: string;
6641
+ exchangeId: string;
6642
+ transaction: SendOnlyTransactionData;
6643
+ };
5827
6644
  id: string;
5828
6645
  legacyId: number;
5829
6646
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5843,14 +6660,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5843
6660
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5844
6661
  retryAfter: Date;
5845
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;
5846
6671
  } | {
5847
- type: "EDIT_WORKSPACE_RULE";
6672
+ type: "TRADELINK_FORCE_UNPLEDGE";
5848
6673
  data: {
5849
- permission: "CREATE_ACCOUNT_WITH_POLICY";
5850
- reviewConfig: {
5851
- quorum: number;
5852
- userIds: string[];
5853
- }[];
6674
+ accountId: string;
6675
+ exchangeId: string;
5854
6676
  };
5855
6677
  id: string;
5856
6678
  legacyId: number;
@@ -5871,31 +6693,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5871
6693
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5872
6694
  retryAfter: Date;
5873
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;
5874
6704
  } | {
5875
- type: "CREATE_POLICY";
6705
+ type: "TRADELINK_WITHDRAW";
5876
6706
  data: {
5877
- name: string;
5878
- description: string | null;
5879
- asset: {
5880
- network: string;
5881
- contractAddress: string | null;
5882
- tokenIdentifier: string | null;
5883
- } | null;
5884
- govRules: {
5885
- reviewSteps: ({
5886
- quorum: number;
5887
- userIds: string[];
5888
- } | {
5889
- quorum: number;
5890
- groupId: string;
5891
- })[];
5892
- threshold?: {
5893
- min: string | null;
5894
- max: string | null;
5895
- } | undefined;
5896
- whitelistIds?: string[] | undefined;
5897
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5898
- }[];
6707
+ accountId: string;
6708
+ transaction: SendOnlyTransactionData;
5899
6709
  };
5900
6710
  id: string;
5901
6711
  legacyId: number;
@@ -5916,26 +6726,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5916
6726
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5917
6727
  retryAfter: Date;
5918
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;
5919
6737
  } | {
5920
- type: "EDIT_POLICY";
6738
+ type: "TRADELINK_ARBITRATE";
5921
6739
  data: {
5922
- name: string;
5923
- description: string | null;
5924
- govRules: {
5925
- reviewSteps: ({
5926
- quorum: number;
5927
- userIds: string[];
5928
- } | {
5929
- quorum: number;
5930
- groupId: string;
5931
- })[];
5932
- threshold?: {
5933
- min: string | null;
5934
- max: string | null;
5935
- } | undefined;
5936
- whitelistIds?: string[] | undefined;
5937
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5938
- }[];
6740
+ accountId: string;
6741
+ transaction: SendOnlyTransactionData;
5939
6742
  };
5940
6743
  id: string;
5941
6744
  legacyId: number;
@@ -5956,6 +6759,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5956
6759
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5957
6760
  retryAfter: Date;
5958
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;
5959
6770
  } | {
5960
6771
  type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
5961
6772
  data: {
@@ -5981,6 +6792,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5981
6792
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5982
6793
  retryAfter: Date;
5983
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;
5984
6803
  } | {
5985
6804
  type: "SIGN_MESSAGE";
5986
6805
  data: {
@@ -6029,6 +6848,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6029
6848
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6030
6849
  retryAfter: Date;
6031
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;
6032
6859
  } | {
6033
6860
  type: "CREATE_ACCOUNT";
6034
6861
  data: {
@@ -6102,6 +6929,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6102
6929
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6103
6930
  retryAfter: Date;
6104
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;
6105
6940
  } | {
6106
6941
  type: "EDIT_TOKEN_RULE";
6107
6942
  data: {
@@ -6142,6 +6977,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6142
6977
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6143
6978
  retryAfter: Date;
6144
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;
6145
6988
  } | {
6146
6989
  type: "REVOKE_GROUP";
6147
6990
  data: Record<string, never>;
@@ -6164,6 +7007,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6164
7007
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6165
7008
  retryAfter: Date;
6166
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;
6167
7018
  } | {
6168
7019
  type: "CREATE_API_USER_ACCESS";
6169
7020
  data: {
@@ -6188,6 +7039,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6188
7039
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6189
7040
  retryAfter: Date;
6190
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;
6191
7050
  } | {
6192
7051
  type: "CREATE_SCICONFIG";
6193
7052
  data: {
@@ -6216,6 +7075,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6216
7075
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6217
7076
  retryAfter: Date;
6218
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;
6219
7086
  } | {
6220
7087
  type: "EDIT_SCICONFIG";
6221
7088
  data: {
@@ -6243,6 +7110,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6243
7110
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6244
7111
  retryAfter: Date;
6245
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;
6246
7121
  } | {
6247
7122
  type: "CREATE_API_KEY";
6248
7123
  data: {
@@ -6269,6 +7144,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6269
7144
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6270
7145
  retryAfter: Date;
6271
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;
6272
7155
  } | {
6273
7156
  type: "EDIT_API_KEY";
6274
7157
  data: {
@@ -6295,6 +7178,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6295
7178
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6296
7179
  retryAfter: Date;
6297
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;
6298
7189
  } | {
6299
7190
  type: "REVOKE_API_KEY";
6300
7191
  data: Record<string, never>;
@@ -6317,6 +7208,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6317
7208
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6318
7209
  retryAfter: Date;
6319
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;
6320
7219
  })[];
6321
7220
  };
6322
7221
  meta: {
@@ -6388,6 +7287,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6388
7287
  debugAuthToken?: string;
6389
7288
  rootAuthToken?: string;
6390
7289
  backofficeRequiredPermission?: BackofficePermission;
7290
+ core: unknown;
6391
7291
  prisma: ExtendedPrismaClient;
6392
7292
  io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
6393
7293
  user: {
@@ -6443,6 +7343,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6443
7343
  httpStatus: number;
6444
7344
  path?: string;
6445
7345
  stack?: string;
7346
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
6446
7347
  maintenance?: boolean | undefined;
6447
7348
  };
6448
7349
  };