@ledgerhq/revault-api 1.81.0 → 1.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{app-lib-B3E79eZs.d.mts → app-lib-B1PMGp4x.d.mts} +4869 -3855
- package/lib/fakes.d.mts +1 -1
- package/lib/fakes.mjs +2 -2
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/index.mjs +315 -2
- package/lib/index.mjs.map +1 -1
- package/lib/internal/app-lib.d.mts +1187 -763
- package/package.json +1 -1
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import z
|
|
3
|
-
import { PrismaClient } from "@/generated/prisma/client";
|
|
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";
|
|
2
|
+
import z from "zod";
|
|
4
3
|
import "trpc-to-openapi";
|
|
5
|
-
|
|
6
|
-
import "ioredis";
|
|
7
|
-
//#region src/workspaces/schemas.d.ts
|
|
4
|
+
//#region src/core/workspaces/schemas.d.ts
|
|
8
5
|
declare const zWorkspaceName: z.ZodString;
|
|
9
6
|
//#endregion
|
|
10
7
|
//#region src/internal/app.d.ts
|
|
@@ -63,7 +60,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
63
60
|
errorResponses?: number[] | Record<number, string>;
|
|
64
61
|
};
|
|
65
62
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
66
|
-
errorShape:
|
|
63
|
+
errorShape: {
|
|
64
|
+
message: string;
|
|
65
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
66
|
+
data: {
|
|
67
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
68
|
+
httpStatus: number;
|
|
69
|
+
path?: string;
|
|
70
|
+
stack?: string;
|
|
71
|
+
maintenance?: boolean | undefined;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
67
74
|
transformer: true;
|
|
68
75
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
69
76
|
backoffice: import("@trpc/server").TRPCBuiltRouter<{
|
|
@@ -121,7 +128,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
121
128
|
errorResponses?: number[] | Record<number, string>;
|
|
122
129
|
};
|
|
123
130
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
124
|
-
errorShape:
|
|
131
|
+
errorShape: {
|
|
132
|
+
message: string;
|
|
133
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
134
|
+
data: {
|
|
135
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
136
|
+
httpStatus: number;
|
|
137
|
+
path?: string;
|
|
138
|
+
stack?: string;
|
|
139
|
+
maintenance?: boolean | undefined;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
125
142
|
transformer: true;
|
|
126
143
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
127
144
|
me: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -207,7 +224,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
207
224
|
errorResponses?: number[] | Record<number, string>;
|
|
208
225
|
};
|
|
209
226
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
210
|
-
errorShape:
|
|
227
|
+
errorShape: {
|
|
228
|
+
message: string;
|
|
229
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
230
|
+
data: {
|
|
231
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
232
|
+
httpStatus: number;
|
|
233
|
+
path?: string;
|
|
234
|
+
stack?: string;
|
|
235
|
+
maintenance?: boolean | undefined;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
211
238
|
transformer: true;
|
|
212
239
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
213
240
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -409,7 +436,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
409
436
|
errorResponses?: number[] | Record<number, string>;
|
|
410
437
|
};
|
|
411
438
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
412
|
-
errorShape:
|
|
439
|
+
errorShape: {
|
|
440
|
+
message: string;
|
|
441
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
442
|
+
data: {
|
|
443
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
444
|
+
httpStatus: number;
|
|
445
|
+
path?: string;
|
|
446
|
+
stack?: string;
|
|
447
|
+
maintenance?: boolean | undefined;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
413
450
|
transformer: true;
|
|
414
451
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
415
452
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -907,7 +944,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
907
944
|
errorResponses?: number[] | Record<number, string>;
|
|
908
945
|
};
|
|
909
946
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
910
|
-
errorShape:
|
|
947
|
+
errorShape: {
|
|
948
|
+
message: string;
|
|
949
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
950
|
+
data: {
|
|
951
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
952
|
+
httpStatus: number;
|
|
953
|
+
path?: string;
|
|
954
|
+
stack?: string;
|
|
955
|
+
maintenance?: boolean | undefined;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
911
958
|
transformer: true;
|
|
912
959
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
913
960
|
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1057,7 +1104,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1057
1104
|
errorResponses?: number[] | Record<number, string>;
|
|
1058
1105
|
};
|
|
1059
1106
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
1060
|
-
errorShape:
|
|
1107
|
+
errorShape: {
|
|
1108
|
+
message: string;
|
|
1109
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1110
|
+
data: {
|
|
1111
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1112
|
+
httpStatus: number;
|
|
1113
|
+
path?: string;
|
|
1114
|
+
stack?: string;
|
|
1115
|
+
maintenance?: boolean | undefined;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1061
1118
|
transformer: true;
|
|
1062
1119
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1063
1120
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -1211,7 +1268,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1211
1268
|
errorResponses?: number[] | Record<number, string>;
|
|
1212
1269
|
};
|
|
1213
1270
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
1214
|
-
errorShape:
|
|
1271
|
+
errorShape: {
|
|
1272
|
+
message: string;
|
|
1273
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1274
|
+
data: {
|
|
1275
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1276
|
+
httpStatus: number;
|
|
1277
|
+
path?: string;
|
|
1278
|
+
stack?: string;
|
|
1279
|
+
maintenance?: boolean | undefined;
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1215
1282
|
transformer: true;
|
|
1216
1283
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1217
1284
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -1351,7 +1418,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1351
1418
|
errorResponses?: number[] | Record<number, string>;
|
|
1352
1419
|
};
|
|
1353
1420
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
1354
|
-
errorShape:
|
|
1421
|
+
errorShape: {
|
|
1422
|
+
message: string;
|
|
1423
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1424
|
+
data: {
|
|
1425
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1426
|
+
httpStatus: number;
|
|
1427
|
+
path?: string;
|
|
1428
|
+
stack?: string;
|
|
1429
|
+
maintenance?: boolean | undefined;
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1355
1432
|
transformer: true;
|
|
1356
1433
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1357
1434
|
networkOptions: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -1664,7 +1741,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1664
1741
|
errorResponses?: number[] | Record<number, string>;
|
|
1665
1742
|
};
|
|
1666
1743
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
1667
|
-
errorShape:
|
|
1744
|
+
errorShape: {
|
|
1745
|
+
message: string;
|
|
1746
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1747
|
+
data: {
|
|
1748
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1749
|
+
httpStatus: number;
|
|
1750
|
+
path?: string;
|
|
1751
|
+
stack?: string;
|
|
1752
|
+
maintenance?: boolean | undefined;
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1668
1755
|
transformer: true;
|
|
1669
1756
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1670
1757
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -1839,7 +1926,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1839
1926
|
errorResponses?: number[] | Record<number, string>;
|
|
1840
1927
|
};
|
|
1841
1928
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
1842
|
-
errorShape:
|
|
1929
|
+
errorShape: {
|
|
1930
|
+
message: string;
|
|
1931
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1932
|
+
data: {
|
|
1933
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
1934
|
+
httpStatus: number;
|
|
1935
|
+
path?: string;
|
|
1936
|
+
stack?: string;
|
|
1937
|
+
maintenance?: boolean | undefined;
|
|
1938
|
+
};
|
|
1939
|
+
};
|
|
1843
1940
|
transformer: true;
|
|
1844
1941
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1845
1942
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2000,7 +2097,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2000
2097
|
errorResponses?: number[] | Record<number, string>;
|
|
2001
2098
|
};
|
|
2002
2099
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2003
|
-
errorShape:
|
|
2100
|
+
errorShape: {
|
|
2101
|
+
message: string;
|
|
2102
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2103
|
+
data: {
|
|
2104
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
2105
|
+
httpStatus: number;
|
|
2106
|
+
path?: string;
|
|
2107
|
+
stack?: string;
|
|
2108
|
+
maintenance?: boolean | undefined;
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2004
2111
|
transformer: true;
|
|
2005
2112
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2006
2113
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2393,7 +2500,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2393
2500
|
errorResponses?: number[] | Record<number, string>;
|
|
2394
2501
|
};
|
|
2395
2502
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2396
|
-
errorShape:
|
|
2503
|
+
errorShape: {
|
|
2504
|
+
message: string;
|
|
2505
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2506
|
+
data: {
|
|
2507
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
2508
|
+
httpStatus: number;
|
|
2509
|
+
path?: string;
|
|
2510
|
+
stack?: string;
|
|
2511
|
+
maintenance?: boolean | undefined;
|
|
2512
|
+
};
|
|
2513
|
+
};
|
|
2397
2514
|
transformer: true;
|
|
2398
2515
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2399
2516
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2498,7 +2615,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2498
2615
|
errorResponses?: number[] | Record<number, string>;
|
|
2499
2616
|
};
|
|
2500
2617
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2501
|
-
errorShape:
|
|
2618
|
+
errorShape: {
|
|
2619
|
+
message: string;
|
|
2620
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2621
|
+
data: {
|
|
2622
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
2623
|
+
httpStatus: number;
|
|
2624
|
+
path?: string;
|
|
2625
|
+
stack?: string;
|
|
2626
|
+
maintenance?: boolean | undefined;
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2502
2629
|
transformer: true;
|
|
2503
2630
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2504
2631
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2539,11 +2666,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2539
2666
|
params: {
|
|
2540
2667
|
startDate: Date;
|
|
2541
2668
|
endDate: Date;
|
|
2542
|
-
|
|
2543
|
-
network: string;
|
|
2544
|
-
contractAddress: string | null;
|
|
2545
|
-
tokenIdentifier: string | null;
|
|
2546
|
-
}[];
|
|
2669
|
+
accountIds?: string[] | undefined;
|
|
2547
2670
|
};
|
|
2548
2671
|
} | {
|
|
2549
2672
|
type: "TRANSACTIONS";
|
|
@@ -2604,11 +2727,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2604
2727
|
params: {
|
|
2605
2728
|
startDate: Date;
|
|
2606
2729
|
endDate: Date;
|
|
2607
|
-
|
|
2608
|
-
network: string;
|
|
2609
|
-
contractAddress: string | null;
|
|
2610
|
-
tokenIdentifier: string | null;
|
|
2611
|
-
}[];
|
|
2730
|
+
accountIds?: string[] | undefined;
|
|
2612
2731
|
};
|
|
2613
2732
|
} | {
|
|
2614
2733
|
type: "TRANSACTIONS";
|
|
@@ -2699,7 +2818,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2699
2818
|
errorResponses?: number[] | Record<number, string>;
|
|
2700
2819
|
};
|
|
2701
2820
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
2702
|
-
errorShape:
|
|
2821
|
+
errorShape: {
|
|
2822
|
+
message: string;
|
|
2823
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2824
|
+
data: {
|
|
2825
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
2826
|
+
httpStatus: number;
|
|
2827
|
+
path?: string;
|
|
2828
|
+
stack?: string;
|
|
2829
|
+
maintenance?: boolean | undefined;
|
|
2830
|
+
};
|
|
2831
|
+
};
|
|
2703
2832
|
transformer: true;
|
|
2704
2833
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2705
2834
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2755,10 +2884,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2755
2884
|
id: string;
|
|
2756
2885
|
};
|
|
2757
2886
|
output: ({
|
|
2758
|
-
type: "
|
|
2887
|
+
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
2759
2888
|
data: {
|
|
2760
|
-
|
|
2761
|
-
|
|
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
|
+
}[];
|
|
2762
2901
|
};
|
|
2763
2902
|
id: string;
|
|
2764
2903
|
legacyId: number;
|
|
@@ -2780,10 +2919,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2780
2919
|
retryAfter: Date;
|
|
2781
2920
|
} | undefined;
|
|
2782
2921
|
} | {
|
|
2783
|
-
type: "
|
|
2784
|
-
data:
|
|
2785
|
-
quorum: number;
|
|
2786
|
-
};
|
|
2922
|
+
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
2923
|
+
data: null;
|
|
2787
2924
|
id: string;
|
|
2788
2925
|
legacyId: number;
|
|
2789
2926
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -2804,10 +2941,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2804
2941
|
retryAfter: Date;
|
|
2805
2942
|
} | undefined;
|
|
2806
2943
|
} | {
|
|
2807
|
-
type: "
|
|
2944
|
+
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
2808
2945
|
data: {
|
|
2809
|
-
|
|
2810
|
-
|
|
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[];
|
|
2957
|
+
}[];
|
|
2811
2958
|
};
|
|
2812
2959
|
id: string;
|
|
2813
2960
|
legacyId: number;
|
|
@@ -2829,33 +2976,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2829
2976
|
retryAfter: Date;
|
|
2830
2977
|
} | undefined;
|
|
2831
2978
|
} | {
|
|
2832
|
-
type: "
|
|
2979
|
+
type: "TRADELINK_CREATE_EXCHANGE";
|
|
2833
2980
|
data: {
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
primaryType: string;
|
|
2845
|
-
domain: Record<string, any>;
|
|
2846
|
-
message: Record<string, any>;
|
|
2847
|
-
};
|
|
2848
|
-
} | {
|
|
2849
|
-
type: "CIP8";
|
|
2850
|
-
data: string;
|
|
2851
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
2852
|
-
} | {
|
|
2853
|
-
type: "BIP137";
|
|
2854
|
-
data: string;
|
|
2855
|
-
};
|
|
2856
|
-
accountId: string;
|
|
2857
|
-
address: string;
|
|
2858
|
-
derivationPath: string;
|
|
2981
|
+
tradelinkId: string;
|
|
2982
|
+
groups: {
|
|
2983
|
+
quorum: number;
|
|
2984
|
+
userIds: string[];
|
|
2985
|
+
}[];
|
|
2986
|
+
whitelist: {
|
|
2987
|
+
name: string;
|
|
2988
|
+
currency: string;
|
|
2989
|
+
address: string;
|
|
2990
|
+
}[];
|
|
2859
2991
|
};
|
|
2860
2992
|
id: string;
|
|
2861
2993
|
legacyId: number;
|
|
@@ -2877,12 +3009,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2877
3009
|
retryAfter: Date;
|
|
2878
3010
|
} | undefined;
|
|
2879
3011
|
} | {
|
|
2880
|
-
type: "
|
|
3012
|
+
type: "TRADELINK_EDIT_EXCHANGE";
|
|
2881
3013
|
data: {
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
3014
|
+
tradelinkId: string;
|
|
3015
|
+
groups: {
|
|
3016
|
+
quorum: number;
|
|
3017
|
+
userIds: string[];
|
|
3018
|
+
}[];
|
|
3019
|
+
whitelist: {
|
|
3020
|
+
name: string;
|
|
3021
|
+
currency: string;
|
|
3022
|
+
address: string;
|
|
2886
3023
|
}[];
|
|
2887
3024
|
};
|
|
2888
3025
|
id: string;
|
|
@@ -2905,58 +3042,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2905
3042
|
retryAfter: Date;
|
|
2906
3043
|
} | undefined;
|
|
2907
3044
|
} | {
|
|
2908
|
-
type: "
|
|
3045
|
+
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
2909
3046
|
data: {
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
rules: {
|
|
2921
|
-
reviewSteps: ({
|
|
2922
|
-
quorum: number;
|
|
2923
|
-
userIds: string[];
|
|
2924
|
-
} | {
|
|
2925
|
-
quorum: number;
|
|
2926
|
-
groupId: string;
|
|
2927
|
-
})[];
|
|
2928
|
-
threshold?: {
|
|
2929
|
-
min: string | null;
|
|
2930
|
-
max: string | null;
|
|
2931
|
-
} | undefined;
|
|
2932
|
-
whitelistIds?: string[] | undefined;
|
|
2933
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
2934
|
-
}[];
|
|
2935
|
-
};
|
|
2936
|
-
} | {
|
|
2937
|
-
type: "TRADELINK";
|
|
2938
|
-
assetManagerId: string;
|
|
2939
|
-
exchangeConfigs: {
|
|
2940
|
-
exchangeId: string;
|
|
2941
|
-
repledgeAuthorized: boolean;
|
|
2942
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
2943
|
-
}[];
|
|
2944
|
-
} | {
|
|
2945
|
-
type: "RAW_SIGNING";
|
|
2946
|
-
policy: {
|
|
2947
|
-
rules: {
|
|
2948
|
-
operationType: "SIGN_DIGESTS";
|
|
2949
|
-
reviewSteps: {
|
|
2950
|
-
quorum: number;
|
|
2951
|
-
userIds: string[];
|
|
2952
|
-
}[];
|
|
2953
|
-
}[];
|
|
2954
|
-
};
|
|
2955
|
-
};
|
|
2956
|
-
portfolioIds?: string[] | undefined;
|
|
2957
|
-
index: number;
|
|
2958
|
-
derivationPath: string;
|
|
2959
|
-
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
3047
|
+
tradelinkId: string;
|
|
3048
|
+
groups: {
|
|
3049
|
+
quorum: number;
|
|
3050
|
+
userIds: string[];
|
|
3051
|
+
}[];
|
|
3052
|
+
whitelist: {
|
|
3053
|
+
name: string;
|
|
3054
|
+
currency: string;
|
|
3055
|
+
address: string;
|
|
3056
|
+
}[];
|
|
2960
3057
|
};
|
|
2961
3058
|
id: string;
|
|
2962
3059
|
legacyId: number;
|
|
@@ -2978,49 +3075,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2978
3075
|
retryAfter: Date;
|
|
2979
3076
|
} | undefined;
|
|
2980
3077
|
} | {
|
|
2981
|
-
type: "
|
|
3078
|
+
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
2982
3079
|
data: {
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
} | {
|
|
2994
|
-
quorum: number;
|
|
2995
|
-
groupId: string;
|
|
2996
|
-
})[];
|
|
2997
|
-
threshold?: {
|
|
2998
|
-
min: string | null;
|
|
2999
|
-
max: string | null;
|
|
3000
|
-
} | undefined;
|
|
3001
|
-
whitelistIds?: string[] | undefined;
|
|
3002
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3003
|
-
}[];
|
|
3004
|
-
};
|
|
3005
|
-
} | {
|
|
3006
|
-
type: "TRADELINK";
|
|
3007
|
-
exchangeConfigs: {
|
|
3008
|
-
exchangeId: string;
|
|
3009
|
-
repledgeAuthorized: boolean;
|
|
3010
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
3011
|
-
}[];
|
|
3012
|
-
} | {
|
|
3013
|
-
type: "RAW_SIGNING";
|
|
3014
|
-
policy: {
|
|
3015
|
-
rules: {
|
|
3016
|
-
operationType: "SIGN_DIGESTS";
|
|
3017
|
-
reviewSteps: {
|
|
3018
|
-
quorum: number;
|
|
3019
|
-
userIds: string[];
|
|
3020
|
-
}[];
|
|
3021
|
-
}[];
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3080
|
+
tradelinkId: string;
|
|
3081
|
+
groups: {
|
|
3082
|
+
quorum: number;
|
|
3083
|
+
userIds: string[];
|
|
3084
|
+
}[];
|
|
3085
|
+
whitelist: {
|
|
3086
|
+
name: string;
|
|
3087
|
+
currency: string;
|
|
3088
|
+
address: string;
|
|
3089
|
+
}[];
|
|
3024
3090
|
};
|
|
3025
3091
|
id: string;
|
|
3026
3092
|
legacyId: number;
|
|
@@ -3042,25 +3108,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3042
3108
|
retryAfter: Date;
|
|
3043
3109
|
} | undefined;
|
|
3044
3110
|
} | {
|
|
3045
|
-
type: "
|
|
3111
|
+
type: "TRADELINK_ADJUST_PLEDGE";
|
|
3046
3112
|
data: {
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
reviewSteps: ({
|
|
3051
|
-
quorum: number;
|
|
3052
|
-
userIds: string[];
|
|
3053
|
-
} | {
|
|
3054
|
-
quorum: number;
|
|
3055
|
-
groupId: string;
|
|
3056
|
-
})[];
|
|
3057
|
-
threshold?: {
|
|
3058
|
-
min: string | null;
|
|
3059
|
-
max: string | null;
|
|
3060
|
-
} | undefined;
|
|
3061
|
-
whitelistIds?: string[] | undefined;
|
|
3062
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3063
|
-
}[];
|
|
3113
|
+
accountId: string;
|
|
3114
|
+
exchangeId: string;
|
|
3115
|
+
amount: string;
|
|
3064
3116
|
};
|
|
3065
3117
|
id: string;
|
|
3066
3118
|
legacyId: number;
|
|
@@ -3082,11 +3134,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3082
3134
|
retryAfter: Date;
|
|
3083
3135
|
} | undefined;
|
|
3084
3136
|
} | {
|
|
3085
|
-
type: "
|
|
3137
|
+
type: "TRADELINK_REPLEDGE";
|
|
3086
3138
|
data: {
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3139
|
+
accountId: string;
|
|
3140
|
+
exchangeId: string;
|
|
3141
|
+
amount: string;
|
|
3090
3142
|
};
|
|
3091
3143
|
id: string;
|
|
3092
3144
|
legacyId: number;
|
|
@@ -3108,11 +3160,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3108
3160
|
retryAfter: Date;
|
|
3109
3161
|
} | undefined;
|
|
3110
3162
|
} | {
|
|
3111
|
-
type: "
|
|
3163
|
+
type: "TRADELINK_CREATE_SETTLEMENT";
|
|
3112
3164
|
data: {
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3165
|
+
accountId: string;
|
|
3166
|
+
exchangeId: string;
|
|
3167
|
+
transaction: SendOnlyTransactionData;
|
|
3116
3168
|
};
|
|
3117
3169
|
id: string;
|
|
3118
3170
|
legacyId: number;
|
|
@@ -3134,8 +3186,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3134
3186
|
retryAfter: Date;
|
|
3135
3187
|
} | undefined;
|
|
3136
3188
|
} | {
|
|
3137
|
-
type: "
|
|
3138
|
-
data:
|
|
3189
|
+
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
3190
|
+
data: {
|
|
3191
|
+
accountId: string;
|
|
3192
|
+
exchangeId: string;
|
|
3193
|
+
};
|
|
3139
3194
|
id: string;
|
|
3140
3195
|
legacyId: number;
|
|
3141
3196
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3156,17 +3211,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3156
3211
|
retryAfter: Date;
|
|
3157
3212
|
} | undefined;
|
|
3158
3213
|
} | {
|
|
3159
|
-
type: "
|
|
3214
|
+
type: "TRADELINK_WITHDRAW";
|
|
3160
3215
|
data: {
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
addresses: {
|
|
3164
|
-
name: string;
|
|
3165
|
-
currency: string;
|
|
3166
|
-
address: string;
|
|
3167
|
-
destinationTag?: string | undefined;
|
|
3168
|
-
}[];
|
|
3169
|
-
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3216
|
+
accountId: string;
|
|
3217
|
+
transaction: SendOnlyTransactionData;
|
|
3170
3218
|
};
|
|
3171
3219
|
id: string;
|
|
3172
3220
|
legacyId: number;
|
|
@@ -3188,15 +3236,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3188
3236
|
retryAfter: Date;
|
|
3189
3237
|
} | undefined;
|
|
3190
3238
|
} | {
|
|
3191
|
-
type: "
|
|
3239
|
+
type: "TRADELINK_ARBITRATE";
|
|
3192
3240
|
data: {
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
name: string;
|
|
3196
|
-
currency: string;
|
|
3197
|
-
address: string;
|
|
3198
|
-
destinationTag?: string | undefined;
|
|
3199
|
-
}[];
|
|
3241
|
+
accountId: string;
|
|
3242
|
+
transaction: SendOnlyTransactionData;
|
|
3200
3243
|
};
|
|
3201
3244
|
id: string;
|
|
3202
3245
|
legacyId: number;
|
|
@@ -3218,11 +3261,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3218
3261
|
retryAfter: Date;
|
|
3219
3262
|
} | undefined;
|
|
3220
3263
|
} | {
|
|
3221
|
-
type: "
|
|
3264
|
+
type: "UPDATE_QUORUM";
|
|
3222
3265
|
data: {
|
|
3223
|
-
|
|
3224
|
-
accountIds: string[];
|
|
3225
|
-
memberIds: string[];
|
|
3266
|
+
quorum: number;
|
|
3226
3267
|
};
|
|
3227
3268
|
id: string;
|
|
3228
3269
|
legacyId: number;
|
|
@@ -3244,11 +3285,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3244
3285
|
retryAfter: Date;
|
|
3245
3286
|
} | undefined;
|
|
3246
3287
|
} | {
|
|
3247
|
-
type: "
|
|
3288
|
+
type: "CREATE_TRANSACTION";
|
|
3248
3289
|
data: {
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
memberIds: string[];
|
|
3290
|
+
accountId: string;
|
|
3291
|
+
transaction: TransactionData;
|
|
3252
3292
|
};
|
|
3253
3293
|
id: string;
|
|
3254
3294
|
legacyId: number;
|
|
@@ -3270,8 +3310,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3270
3310
|
retryAfter: Date;
|
|
3271
3311
|
} | undefined;
|
|
3272
3312
|
} | {
|
|
3273
|
-
type: "
|
|
3274
|
-
data:
|
|
3313
|
+
type: "SIGN_DIGESTS";
|
|
3314
|
+
data: {
|
|
3315
|
+
accountId: string;
|
|
3316
|
+
digests: {
|
|
3317
|
+
digest: string;
|
|
3318
|
+
derivationPath: string;
|
|
3319
|
+
}[];
|
|
3320
|
+
};
|
|
3275
3321
|
id: string;
|
|
3276
3322
|
legacyId: number;
|
|
3277
3323
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3292,9 +3338,49 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3292
3338
|
retryAfter: Date;
|
|
3293
3339
|
} | undefined;
|
|
3294
3340
|
} | {
|
|
3295
|
-
type: "
|
|
3341
|
+
type: "EDIT_ACCOUNT";
|
|
3296
3342
|
data: {
|
|
3297
|
-
|
|
3343
|
+
name: string;
|
|
3344
|
+
governance: {
|
|
3345
|
+
type: "CLASSIC";
|
|
3346
|
+
policy: {
|
|
3347
|
+
policyId: string;
|
|
3348
|
+
} | {
|
|
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
|
+
};
|
|
3298
3384
|
};
|
|
3299
3385
|
id: string;
|
|
3300
3386
|
legacyId: number;
|
|
@@ -3316,12 +3402,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3316
3402
|
retryAfter: Date;
|
|
3317
3403
|
} | undefined;
|
|
3318
3404
|
} | {
|
|
3319
|
-
type: "
|
|
3405
|
+
type: "CREATE_GROUP";
|
|
3320
3406
|
data: {
|
|
3321
3407
|
name: string;
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
viewAll?: boolean | undefined;
|
|
3408
|
+
description: string | null;
|
|
3409
|
+
members: string[];
|
|
3325
3410
|
};
|
|
3326
3411
|
id: string;
|
|
3327
3412
|
legacyId: number;
|
|
@@ -3343,9 +3428,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3343
3428
|
retryAfter: Date;
|
|
3344
3429
|
} | undefined;
|
|
3345
3430
|
} | {
|
|
3346
|
-
type: "
|
|
3431
|
+
type: "EDIT_GROUP";
|
|
3347
3432
|
data: {
|
|
3348
3433
|
name: string;
|
|
3434
|
+
description: string | null;
|
|
3435
|
+
members: string[];
|
|
3349
3436
|
};
|
|
3350
3437
|
id: string;
|
|
3351
3438
|
legacyId: number;
|
|
@@ -3367,8 +3454,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3367
3454
|
retryAfter: Date;
|
|
3368
3455
|
} | undefined;
|
|
3369
3456
|
} | {
|
|
3370
|
-
type: "
|
|
3371
|
-
data:
|
|
3457
|
+
type: "CREATE_WHITELIST";
|
|
3458
|
+
data: {
|
|
3459
|
+
name: string;
|
|
3460
|
+
description: string | null;
|
|
3461
|
+
addresses: {
|
|
3462
|
+
name: string;
|
|
3463
|
+
currency: string;
|
|
3464
|
+
address: string;
|
|
3465
|
+
destinationTag?: string | undefined;
|
|
3466
|
+
}[];
|
|
3467
|
+
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
3468
|
+
};
|
|
3372
3469
|
id: string;
|
|
3373
3470
|
legacyId: number;
|
|
3374
3471
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3389,12 +3486,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3389
3486
|
retryAfter: Date;
|
|
3390
3487
|
} | undefined;
|
|
3391
3488
|
} | {
|
|
3392
|
-
type: "
|
|
3489
|
+
type: "EDIT_WHITELIST";
|
|
3393
3490
|
data: {
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3491
|
+
name: string;
|
|
3492
|
+
addresses: {
|
|
3493
|
+
name: string;
|
|
3494
|
+
currency: string;
|
|
3495
|
+
address: string;
|
|
3496
|
+
destinationTag?: string | undefined;
|
|
3398
3497
|
}[];
|
|
3399
3498
|
};
|
|
3400
3499
|
id: string;
|
|
@@ -3417,13 +3516,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3417
3516
|
retryAfter: Date;
|
|
3418
3517
|
} | undefined;
|
|
3419
3518
|
} | {
|
|
3420
|
-
type: "
|
|
3519
|
+
type: "CREATE_ENTITY";
|
|
3421
3520
|
data: {
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
customContractCallEnabled: boolean;
|
|
3426
|
-
};
|
|
3521
|
+
name: string;
|
|
3522
|
+
accountIds: string[];
|
|
3523
|
+
memberIds: string[];
|
|
3427
3524
|
};
|
|
3428
3525
|
id: string;
|
|
3429
3526
|
legacyId: number;
|
|
@@ -3445,12 +3542,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3445
3542
|
retryAfter: Date;
|
|
3446
3543
|
} | undefined;
|
|
3447
3544
|
} | {
|
|
3448
|
-
type: "
|
|
3545
|
+
type: "EDIT_ENTITY";
|
|
3449
3546
|
data: {
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
};
|
|
3547
|
+
name: string;
|
|
3548
|
+
accountIds: string[];
|
|
3549
|
+
memberIds: string[];
|
|
3454
3550
|
};
|
|
3455
3551
|
id: string;
|
|
3456
3552
|
legacyId: number;
|
|
@@ -3472,11 +3568,31 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3472
3568
|
retryAfter: Date;
|
|
3473
3569
|
} | undefined;
|
|
3474
3570
|
} | {
|
|
3475
|
-
type: "
|
|
3571
|
+
type: "REVOKE_ENTITY";
|
|
3572
|
+
data: Record<string, never>;
|
|
3573
|
+
id: string;
|
|
3574
|
+
legacyId: number;
|
|
3575
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3576
|
+
reviewSteps: {
|
|
3577
|
+
stageName: string;
|
|
3578
|
+
quorum: number;
|
|
3579
|
+
}[];
|
|
3580
|
+
currentStepIndex: number;
|
|
3581
|
+
expiresAt: Date;
|
|
3582
|
+
targetId: string | null;
|
|
3583
|
+
note: Note | null;
|
|
3584
|
+
reviews: RequestReview[];
|
|
3585
|
+
createdAt: Date;
|
|
3586
|
+
updatedAt: Date;
|
|
3587
|
+
createdById: string;
|
|
3588
|
+
inflight?: {
|
|
3589
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3590
|
+
retryAfter: Date;
|
|
3591
|
+
} | undefined;
|
|
3592
|
+
} | {
|
|
3593
|
+
type: "CREATE_PSD_USER";
|
|
3476
3594
|
data: {
|
|
3477
|
-
|
|
3478
|
-
entities: string[];
|
|
3479
|
-
scopes: Record<string, never>;
|
|
3595
|
+
registrationId: string;
|
|
3480
3596
|
};
|
|
3481
3597
|
id: string;
|
|
3482
3598
|
legacyId: number;
|
|
@@ -3498,11 +3614,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3498
3614
|
retryAfter: Date;
|
|
3499
3615
|
} | undefined;
|
|
3500
3616
|
} | {
|
|
3501
|
-
type: "
|
|
3617
|
+
type: "CREATE_API_USER";
|
|
3502
3618
|
data: {
|
|
3503
3619
|
name: string;
|
|
3504
|
-
|
|
3505
|
-
|
|
3620
|
+
pubKey: string;
|
|
3621
|
+
role: "ADMIN" | "OPERATOR";
|
|
3622
|
+
viewAll?: boolean | undefined;
|
|
3506
3623
|
};
|
|
3507
3624
|
id: string;
|
|
3508
3625
|
legacyId: number;
|
|
@@ -3524,7 +3641,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3524
3641
|
retryAfter: Date;
|
|
3525
3642
|
} | undefined;
|
|
3526
3643
|
} | {
|
|
3527
|
-
type: "
|
|
3644
|
+
type: "REVOKE_USER";
|
|
3528
3645
|
data: Record<string, never>;
|
|
3529
3646
|
id: string;
|
|
3530
3647
|
legacyId: number;
|
|
@@ -3545,6 +3662,34 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3545
3662
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3546
3663
|
retryAfter: Date;
|
|
3547
3664
|
} | undefined;
|
|
3665
|
+
} | {
|
|
3666
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
3667
|
+
data: {
|
|
3668
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
3669
|
+
reviewConfig: {
|
|
3670
|
+
quorum: number;
|
|
3671
|
+
userIds: string[];
|
|
3672
|
+
}[];
|
|
3673
|
+
};
|
|
3674
|
+
id: string;
|
|
3675
|
+
legacyId: number;
|
|
3676
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
3677
|
+
reviewSteps: {
|
|
3678
|
+
stageName: string;
|
|
3679
|
+
quorum: number;
|
|
3680
|
+
}[];
|
|
3681
|
+
currentStepIndex: number;
|
|
3682
|
+
expiresAt: Date;
|
|
3683
|
+
targetId: string | null;
|
|
3684
|
+
note: Note | null;
|
|
3685
|
+
reviews: RequestReview[];
|
|
3686
|
+
createdAt: Date;
|
|
3687
|
+
updatedAt: Date;
|
|
3688
|
+
createdById: string;
|
|
3689
|
+
inflight?: {
|
|
3690
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3691
|
+
retryAfter: Date;
|
|
3692
|
+
} | undefined;
|
|
3548
3693
|
} | {
|
|
3549
3694
|
type: "CREATE_POLICY";
|
|
3550
3695
|
data: {
|
|
@@ -3631,8 +3776,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3631
3776
|
retryAfter: Date;
|
|
3632
3777
|
} | undefined;
|
|
3633
3778
|
} | {
|
|
3634
|
-
type: "
|
|
3635
|
-
data:
|
|
3779
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
3780
|
+
data: {
|
|
3781
|
+
previousPublicKeys: string[];
|
|
3782
|
+
requestedPublicKeys: string[];
|
|
3783
|
+
};
|
|
3636
3784
|
id: string;
|
|
3637
3785
|
legacyId: number;
|
|
3638
3786
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3653,20 +3801,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3653
3801
|
retryAfter: Date;
|
|
3654
3802
|
} | undefined;
|
|
3655
3803
|
} | {
|
|
3656
|
-
type: "
|
|
3804
|
+
type: "SIGN_MESSAGE";
|
|
3657
3805
|
data: {
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
}
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3806
|
+
message: {
|
|
3807
|
+
type: "EIP191";
|
|
3808
|
+
data: string;
|
|
3809
|
+
} | {
|
|
3810
|
+
type: "EIP712";
|
|
3811
|
+
data: {
|
|
3812
|
+
types: Record<string, {
|
|
3813
|
+
name: string;
|
|
3814
|
+
type: string;
|
|
3815
|
+
}[]>;
|
|
3816
|
+
primaryType: string;
|
|
3817
|
+
domain: Record<string, any>;
|
|
3818
|
+
message: Record<string, any>;
|
|
3819
|
+
};
|
|
3820
|
+
} | {
|
|
3821
|
+
type: "CIP8";
|
|
3822
|
+
data: string;
|
|
3823
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
3824
|
+
} | {
|
|
3825
|
+
type: "BIP137";
|
|
3826
|
+
data: string;
|
|
3827
|
+
};
|
|
3828
|
+
accountId: string;
|
|
3829
|
+
address: string;
|
|
3830
|
+
derivationPath: string;
|
|
3670
3831
|
};
|
|
3671
3832
|
id: string;
|
|
3672
3833
|
legacyId: number;
|
|
@@ -3688,20 +3849,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3688
3849
|
retryAfter: Date;
|
|
3689
3850
|
} | undefined;
|
|
3690
3851
|
} | {
|
|
3691
|
-
type: "
|
|
3852
|
+
type: "CREATE_ACCOUNT";
|
|
3692
3853
|
data: {
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3854
|
+
name: string;
|
|
3855
|
+
currency: string;
|
|
3856
|
+
contractAddress: string | null;
|
|
3857
|
+
tokenIdentifier: string | null;
|
|
3858
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
3859
|
+
governance: {
|
|
3860
|
+
type: "CLASSIC";
|
|
3861
|
+
policy: {
|
|
3862
|
+
policyId: string;
|
|
3863
|
+
} | {
|
|
3864
|
+
rules: {
|
|
3865
|
+
reviewSteps: ({
|
|
3866
|
+
quorum: number;
|
|
3867
|
+
userIds: string[];
|
|
3868
|
+
} | {
|
|
3869
|
+
quorum: number;
|
|
3870
|
+
groupId: string;
|
|
3871
|
+
})[];
|
|
3872
|
+
threshold?: {
|
|
3873
|
+
min: string | null;
|
|
3874
|
+
max: string | null;
|
|
3875
|
+
} | undefined;
|
|
3876
|
+
whitelistIds?: string[] | undefined;
|
|
3877
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3878
|
+
}[];
|
|
3879
|
+
};
|
|
3880
|
+
} | {
|
|
3881
|
+
type: "TRADELINK";
|
|
3882
|
+
assetManagerId: string;
|
|
3883
|
+
exchangeConfigs: {
|
|
3884
|
+
exchangeId: string;
|
|
3885
|
+
repledgeAuthorized: boolean;
|
|
3886
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
3887
|
+
}[];
|
|
3888
|
+
} | {
|
|
3889
|
+
type: "RAW_SIGNING";
|
|
3890
|
+
policy: {
|
|
3891
|
+
rules: {
|
|
3892
|
+
operationType: "SIGN_DIGESTS";
|
|
3893
|
+
reviewSteps: {
|
|
3894
|
+
quorum: number;
|
|
3895
|
+
userIds: string[];
|
|
3896
|
+
}[];
|
|
3897
|
+
}[];
|
|
3898
|
+
};
|
|
3899
|
+
};
|
|
3900
|
+
portfolioIds?: string[] | undefined;
|
|
3901
|
+
index: number;
|
|
3902
|
+
derivationPath: string;
|
|
3903
|
+
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
3705
3904
|
};
|
|
3706
3905
|
id: string;
|
|
3707
3906
|
legacyId: number;
|
|
@@ -3723,17 +3922,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3723
3922
|
retryAfter: Date;
|
|
3724
3923
|
} | undefined;
|
|
3725
3924
|
} | {
|
|
3726
|
-
type: "
|
|
3925
|
+
type: "EDIT_TOKEN_RULE";
|
|
3727
3926
|
data: {
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3927
|
+
parentAccountId: string;
|
|
3928
|
+
contractAddress: string;
|
|
3929
|
+
rules: {
|
|
3930
|
+
reviewSteps: ({
|
|
3931
|
+
quorum: number;
|
|
3932
|
+
userIds: string[];
|
|
3933
|
+
} | {
|
|
3934
|
+
quorum: number;
|
|
3935
|
+
groupId: string;
|
|
3936
|
+
})[];
|
|
3937
|
+
threshold?: {
|
|
3938
|
+
min: string | null;
|
|
3939
|
+
max: string | null;
|
|
3940
|
+
} | undefined;
|
|
3941
|
+
whitelistIds?: string[] | undefined;
|
|
3942
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
3737
3943
|
}[];
|
|
3738
3944
|
};
|
|
3739
3945
|
id: string;
|
|
@@ -3756,19 +3962,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3756
3962
|
retryAfter: Date;
|
|
3757
3963
|
} | undefined;
|
|
3758
3964
|
} | {
|
|
3759
|
-
type: "
|
|
3760
|
-
data:
|
|
3761
|
-
tradelinkId: string;
|
|
3762
|
-
groups: {
|
|
3763
|
-
quorum: number;
|
|
3764
|
-
userIds: string[];
|
|
3765
|
-
}[];
|
|
3766
|
-
whitelist: {
|
|
3767
|
-
name: string;
|
|
3768
|
-
currency: string;
|
|
3769
|
-
address: string;
|
|
3770
|
-
}[];
|
|
3771
|
-
};
|
|
3965
|
+
type: "REVOKE_GROUP";
|
|
3966
|
+
data: Record<string, never>;
|
|
3772
3967
|
id: string;
|
|
3773
3968
|
legacyId: number;
|
|
3774
3969
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3789,18 +3984,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3789
3984
|
retryAfter: Date;
|
|
3790
3985
|
} | undefined;
|
|
3791
3986
|
} | {
|
|
3792
|
-
type: "
|
|
3987
|
+
type: "CREATE_API_USER_ACCESS";
|
|
3793
3988
|
data: {
|
|
3794
|
-
|
|
3795
|
-
groups: {
|
|
3796
|
-
quorum: number;
|
|
3797
|
-
userIds: string[];
|
|
3798
|
-
}[];
|
|
3799
|
-
whitelist: {
|
|
3800
|
-
name: string;
|
|
3801
|
-
currency: string;
|
|
3802
|
-
address: string;
|
|
3803
|
-
}[];
|
|
3989
|
+
name: string;
|
|
3804
3990
|
};
|
|
3805
3991
|
id: string;
|
|
3806
3992
|
legacyId: number;
|
|
@@ -3822,18 +4008,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3822
4008
|
retryAfter: Date;
|
|
3823
4009
|
} | undefined;
|
|
3824
4010
|
} | {
|
|
3825
|
-
type: "
|
|
4011
|
+
type: "CREATE_SCICONFIG";
|
|
3826
4012
|
data: {
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
}
|
|
3832
|
-
whitelist: {
|
|
3833
|
-
name: string;
|
|
3834
|
-
currency: string;
|
|
3835
|
-
address: string;
|
|
3836
|
-
}[];
|
|
4013
|
+
account: string;
|
|
4014
|
+
config: {
|
|
4015
|
+
dapps: string[] | null;
|
|
4016
|
+
customContractCallEnabled: boolean;
|
|
4017
|
+
};
|
|
3837
4018
|
};
|
|
3838
4019
|
id: string;
|
|
3839
4020
|
legacyId: number;
|
|
@@ -3855,11 +4036,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3855
4036
|
retryAfter: Date;
|
|
3856
4037
|
} | undefined;
|
|
3857
4038
|
} | {
|
|
3858
|
-
type: "
|
|
4039
|
+
type: "EDIT_SCICONFIG";
|
|
3859
4040
|
data: {
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
4041
|
+
config: {
|
|
4042
|
+
dapps: string[] | null;
|
|
4043
|
+
customContractCallEnabled: boolean;
|
|
4044
|
+
};
|
|
3863
4045
|
};
|
|
3864
4046
|
id: string;
|
|
3865
4047
|
legacyId: number;
|
|
@@ -3881,11 +4063,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3881
4063
|
retryAfter: Date;
|
|
3882
4064
|
} | undefined;
|
|
3883
4065
|
} | {
|
|
3884
|
-
type: "
|
|
4066
|
+
type: "CREATE_API_KEY";
|
|
3885
4067
|
data: {
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
4068
|
+
name: string;
|
|
4069
|
+
entities: string[];
|
|
4070
|
+
scopes: Record<string, never>;
|
|
3889
4071
|
};
|
|
3890
4072
|
id: string;
|
|
3891
4073
|
legacyId: number;
|
|
@@ -3907,11 +4089,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3907
4089
|
retryAfter: Date;
|
|
3908
4090
|
} | undefined;
|
|
3909
4091
|
} | {
|
|
3910
|
-
type: "
|
|
4092
|
+
type: "EDIT_API_KEY";
|
|
3911
4093
|
data: {
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
4094
|
+
name: string;
|
|
4095
|
+
entities: string[];
|
|
4096
|
+
scopes: Record<string, never>;
|
|
3915
4097
|
};
|
|
3916
4098
|
id: string;
|
|
3917
4099
|
legacyId: number;
|
|
@@ -3933,11 +4115,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3933
4115
|
retryAfter: Date;
|
|
3934
4116
|
} | undefined;
|
|
3935
4117
|
} | {
|
|
3936
|
-
type: "
|
|
3937
|
-
data:
|
|
3938
|
-
accountId: string;
|
|
3939
|
-
exchangeId: string;
|
|
3940
|
-
};
|
|
4118
|
+
type: "REVOKE_API_KEY";
|
|
4119
|
+
data: Record<string, never>;
|
|
3941
4120
|
id: string;
|
|
3942
4121
|
legacyId: number;
|
|
3943
4122
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -3957,58 +4136,205 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3957
4136
|
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
3958
4137
|
retryAfter: Date;
|
|
3959
4138
|
} | undefined;
|
|
3960
|
-
}
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
4139
|
+
}) & {
|
|
4140
|
+
workspaceName: string;
|
|
4141
|
+
};
|
|
4142
|
+
meta: {
|
|
4143
|
+
[x: string]: unknown;
|
|
4144
|
+
} & {
|
|
4145
|
+
openapi?: {
|
|
4146
|
+
enabled?: boolean;
|
|
4147
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4148
|
+
path: `/${string}`;
|
|
4149
|
+
operationId?: string;
|
|
4150
|
+
summary?: string;
|
|
4151
|
+
description?: string;
|
|
4152
|
+
protect?: boolean;
|
|
4153
|
+
tags?: string[];
|
|
4154
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4155
|
+
deprecated?: boolean;
|
|
4156
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4157
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4158
|
+
successDescription?: string;
|
|
4159
|
+
errorResponses?: number[] | Record<number, string>;
|
|
3965
4160
|
};
|
|
4161
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4162
|
+
}>;
|
|
4163
|
+
restart: import("@trpc/server").TRPCMutationProcedure<{
|
|
4164
|
+
input: {
|
|
3966
4165
|
id: string;
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
data: {
|
|
3988
|
-
accountId: string;
|
|
3989
|
-
transaction: SendOnlyTransactionData;
|
|
4166
|
+
};
|
|
4167
|
+
output: void;
|
|
4168
|
+
meta: {
|
|
4169
|
+
[x: string]: unknown;
|
|
4170
|
+
} & {
|
|
4171
|
+
openapi?: {
|
|
4172
|
+
enabled?: boolean;
|
|
4173
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4174
|
+
path: `/${string}`;
|
|
4175
|
+
operationId?: string;
|
|
4176
|
+
summary?: string;
|
|
4177
|
+
description?: string;
|
|
4178
|
+
protect?: boolean;
|
|
4179
|
+
tags?: string[];
|
|
4180
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4181
|
+
deprecated?: boolean;
|
|
4182
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4183
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4184
|
+
successDescription?: string;
|
|
4185
|
+
errorResponses?: number[] | Record<number, string>;
|
|
3990
4186
|
};
|
|
4187
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4188
|
+
}>;
|
|
4189
|
+
expire: import("@trpc/server").TRPCMutationProcedure<{
|
|
4190
|
+
input: {
|
|
3991
4191
|
id: string;
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4192
|
+
};
|
|
4193
|
+
output: void;
|
|
4194
|
+
meta: {
|
|
4195
|
+
[x: string]: unknown;
|
|
4196
|
+
} & {
|
|
4197
|
+
openapi?: {
|
|
4198
|
+
enabled?: boolean;
|
|
4199
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4200
|
+
path: `/${string}`;
|
|
4201
|
+
operationId?: string;
|
|
4202
|
+
summary?: string;
|
|
4203
|
+
description?: string;
|
|
4204
|
+
protect?: boolean;
|
|
4205
|
+
tags?: string[];
|
|
4206
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4207
|
+
deprecated?: boolean;
|
|
4208
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4209
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4210
|
+
successDescription?: string;
|
|
4211
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4212
|
+
};
|
|
4213
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4214
|
+
}>;
|
|
4215
|
+
}>>;
|
|
4216
|
+
relationships: import("@trpc/server").TRPCBuiltRouter<{
|
|
4217
|
+
ctx: {
|
|
4218
|
+
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;
|
|
4219
|
+
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;
|
|
4220
|
+
info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
|
|
4221
|
+
debugAuthToken?: string;
|
|
4222
|
+
rootAuthToken?: string;
|
|
4223
|
+
backofficeRequiredPermission?: BackofficePermission;
|
|
4224
|
+
prisma: ExtendedPrismaClient;
|
|
4225
|
+
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4226
|
+
user: {
|
|
4227
|
+
id: string;
|
|
4228
|
+
workspaceName: string;
|
|
4229
|
+
name: string;
|
|
4230
|
+
authUserId: string | null;
|
|
4231
|
+
pubKey: string;
|
|
4232
|
+
deviceType: UserDeviceType;
|
|
4233
|
+
deviceUserId: string | null;
|
|
4234
|
+
hsmId: string | null;
|
|
4235
|
+
u2fKeyHandle: string | null;
|
|
4236
|
+
u2fPubKey: string | null;
|
|
4237
|
+
legacyViewAll: boolean;
|
|
4238
|
+
role: UserRole;
|
|
4239
|
+
status: ActivationStatus;
|
|
4240
|
+
isSuspended: boolean;
|
|
4241
|
+
gateType: GateUserType | null;
|
|
4242
|
+
gateId: number;
|
|
4243
|
+
syncId: string;
|
|
4003
4244
|
createdAt: Date;
|
|
4004
4245
|
updatedAt: Date;
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4246
|
+
} | null;
|
|
4247
|
+
authorization: string | null;
|
|
4248
|
+
readOnly: boolean;
|
|
4249
|
+
activityTracer: ActivityTracer;
|
|
4250
|
+
};
|
|
4251
|
+
meta: {
|
|
4252
|
+
[x: string]: unknown;
|
|
4253
|
+
} & {
|
|
4254
|
+
openapi?: {
|
|
4255
|
+
enabled?: boolean;
|
|
4256
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4257
|
+
path: `/${string}`;
|
|
4258
|
+
operationId?: string;
|
|
4259
|
+
summary?: string;
|
|
4260
|
+
description?: string;
|
|
4261
|
+
protect?: boolean;
|
|
4262
|
+
tags?: string[];
|
|
4263
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4264
|
+
deprecated?: boolean;
|
|
4265
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4266
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4267
|
+
successDescription?: string;
|
|
4268
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4269
|
+
};
|
|
4270
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4271
|
+
errorShape: {
|
|
4272
|
+
message: string;
|
|
4273
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4274
|
+
data: {
|
|
4275
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4276
|
+
httpStatus: number;
|
|
4277
|
+
path?: string;
|
|
4278
|
+
stack?: string;
|
|
4279
|
+
maintenance?: boolean | undefined;
|
|
4280
|
+
};
|
|
4281
|
+
};
|
|
4282
|
+
transformer: true;
|
|
4283
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4284
|
+
dryRun: import("@trpc/server").TRPCQueryProcedure<{
|
|
4285
|
+
input: {
|
|
4286
|
+
workspaceName: string;
|
|
4287
|
+
shapeLimit?: number | undefined;
|
|
4288
|
+
};
|
|
4289
|
+
output: {
|
|
4290
|
+
workspaceName: string;
|
|
4291
|
+
dryRun: true;
|
|
4292
|
+
rawTupleCount: number;
|
|
4293
|
+
uniqueTupleCount: number;
|
|
4294
|
+
duplicateTupleCount: number;
|
|
4295
|
+
buildDurationMs: number;
|
|
4296
|
+
shapeCounts: {
|
|
4297
|
+
objectType: string;
|
|
4298
|
+
relation: string;
|
|
4299
|
+
subjectType: string;
|
|
4300
|
+
subjectRelation: string;
|
|
4301
|
+
count: number;
|
|
4302
|
+
}[];
|
|
4303
|
+
};
|
|
4304
|
+
meta: {
|
|
4305
|
+
[x: string]: unknown;
|
|
4306
|
+
} & {
|
|
4307
|
+
openapi?: {
|
|
4308
|
+
enabled?: boolean;
|
|
4309
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4310
|
+
path: `/${string}`;
|
|
4311
|
+
operationId?: string;
|
|
4312
|
+
summary?: string;
|
|
4313
|
+
description?: string;
|
|
4314
|
+
protect?: boolean;
|
|
4315
|
+
tags?: string[];
|
|
4316
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4317
|
+
deprecated?: boolean;
|
|
4318
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4319
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4320
|
+
successDescription?: string;
|
|
4321
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4322
|
+
};
|
|
4323
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4324
|
+
}>;
|
|
4325
|
+
materialize: import("@trpc/server").TRPCMutationProcedure<{
|
|
4326
|
+
input: {
|
|
4327
|
+
workspaceName: string;
|
|
4328
|
+
confirm: string;
|
|
4329
|
+
};
|
|
4330
|
+
output: {
|
|
4011
4331
|
workspaceName: string;
|
|
4332
|
+
rawTupleCount: number;
|
|
4333
|
+
uniqueTupleCount: number;
|
|
4334
|
+
currentTupleCount: number;
|
|
4335
|
+
buildDurationMs: number;
|
|
4336
|
+
writeDurationMs: number;
|
|
4337
|
+
totalDurationMs: number;
|
|
4012
4338
|
};
|
|
4013
4339
|
meta: {
|
|
4014
4340
|
[x: string]: unknown;
|
|
@@ -4031,11 +4357,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4031
4357
|
};
|
|
4032
4358
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4033
4359
|
}>;
|
|
4034
|
-
|
|
4360
|
+
health: import("@trpc/server").TRPCQueryProcedure<{
|
|
4035
4361
|
input: {
|
|
4036
|
-
|
|
4362
|
+
workspaceName: string;
|
|
4363
|
+
shapeLimit?: number | undefined;
|
|
4364
|
+
};
|
|
4365
|
+
output: {
|
|
4366
|
+
workspaceName: string;
|
|
4367
|
+
currentTupleCount: number;
|
|
4368
|
+
sourceTypeCounts: {
|
|
4369
|
+
sourceType: string;
|
|
4370
|
+
count: number;
|
|
4371
|
+
}[];
|
|
4372
|
+
shapeCounts: {
|
|
4373
|
+
objectType: string;
|
|
4374
|
+
relation: string;
|
|
4375
|
+
subjectType: string;
|
|
4376
|
+
subjectRelation: string;
|
|
4377
|
+
count: number;
|
|
4378
|
+
}[];
|
|
4037
4379
|
};
|
|
4038
|
-
output: void;
|
|
4039
4380
|
meta: {
|
|
4040
4381
|
[x: string]: unknown;
|
|
4041
4382
|
} & {
|
|
@@ -4057,11 +4398,44 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4057
4398
|
};
|
|
4058
4399
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4059
4400
|
}>;
|
|
4060
|
-
|
|
4401
|
+
driftCheck: import("@trpc/server").TRPCQueryProcedure<{
|
|
4061
4402
|
input: {
|
|
4062
|
-
|
|
4403
|
+
workspaceName: string;
|
|
4404
|
+
sampleLimit?: number | undefined;
|
|
4405
|
+
};
|
|
4406
|
+
output: {
|
|
4407
|
+
workspaceName: string;
|
|
4408
|
+
expectedTupleCount: number;
|
|
4409
|
+
actualTupleCount: number;
|
|
4410
|
+
missingTupleCount: number;
|
|
4411
|
+
extraTupleCount: number;
|
|
4412
|
+
missingSamples: {
|
|
4413
|
+
workspaceName: string;
|
|
4414
|
+
objectType: string;
|
|
4415
|
+
objectId: string;
|
|
4416
|
+
relation: string;
|
|
4417
|
+
subjectType: string;
|
|
4418
|
+
subjectId: string;
|
|
4419
|
+
subjectRelation?: string | null | undefined;
|
|
4420
|
+
sourceType: string;
|
|
4421
|
+
sourceId: string;
|
|
4422
|
+
}[];
|
|
4423
|
+
extraSamples: {
|
|
4424
|
+
workspaceName: string;
|
|
4425
|
+
objectType: string;
|
|
4426
|
+
objectId: string;
|
|
4427
|
+
relation: string;
|
|
4428
|
+
subjectType: string;
|
|
4429
|
+
subjectId: string;
|
|
4430
|
+
subjectRelation?: string | null | undefined;
|
|
4431
|
+
sourceType: string;
|
|
4432
|
+
sourceId: string;
|
|
4433
|
+
}[];
|
|
4434
|
+
buildDurationMs: number;
|
|
4435
|
+
readDurationMs: number;
|
|
4436
|
+
compareDurationMs: number;
|
|
4437
|
+
totalDurationMs: number;
|
|
4063
4438
|
};
|
|
4064
|
-
output: void;
|
|
4065
4439
|
meta: {
|
|
4066
4440
|
[x: string]: unknown;
|
|
4067
4441
|
} & {
|
|
@@ -4139,7 +4513,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4139
4513
|
errorResponses?: number[] | Record<number, string>;
|
|
4140
4514
|
};
|
|
4141
4515
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4142
|
-
errorShape:
|
|
4516
|
+
errorShape: {
|
|
4517
|
+
message: string;
|
|
4518
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4519
|
+
data: {
|
|
4520
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4521
|
+
httpStatus: number;
|
|
4522
|
+
path?: string;
|
|
4523
|
+
stack?: string;
|
|
4524
|
+
maintenance?: boolean | undefined;
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4143
4527
|
transformer: true;
|
|
4144
4528
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4145
4529
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4276,7 +4660,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4276
4660
|
errorResponses?: number[] | Record<number, string>;
|
|
4277
4661
|
};
|
|
4278
4662
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4279
|
-
errorShape:
|
|
4663
|
+
errorShape: {
|
|
4664
|
+
message: string;
|
|
4665
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4666
|
+
data: {
|
|
4667
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4668
|
+
httpStatus: number;
|
|
4669
|
+
path?: string;
|
|
4670
|
+
stack?: string;
|
|
4671
|
+
maintenance?: boolean | undefined;
|
|
4672
|
+
};
|
|
4673
|
+
};
|
|
4280
4674
|
transformer: true;
|
|
4281
4675
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4282
4676
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4450,7 +4844,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4450
4844
|
errorResponses?: number[] | Record<number, string>;
|
|
4451
4845
|
};
|
|
4452
4846
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4453
|
-
errorShape:
|
|
4847
|
+
errorShape: {
|
|
4848
|
+
message: string;
|
|
4849
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4850
|
+
data: {
|
|
4851
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
4852
|
+
httpStatus: number;
|
|
4853
|
+
path?: string;
|
|
4854
|
+
stack?: string;
|
|
4855
|
+
maintenance?: boolean | undefined;
|
|
4856
|
+
};
|
|
4857
|
+
};
|
|
4454
4858
|
transformer: true;
|
|
4455
4859
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4456
4860
|
objectsVersion: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4631,7 +5035,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4631
5035
|
errorResponses?: number[] | Record<number, string>;
|
|
4632
5036
|
};
|
|
4633
5037
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4634
|
-
errorShape:
|
|
5038
|
+
errorShape: {
|
|
5039
|
+
message: string;
|
|
5040
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5041
|
+
data: {
|
|
5042
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
5043
|
+
httpStatus: number;
|
|
5044
|
+
path?: string;
|
|
5045
|
+
stack?: string;
|
|
5046
|
+
maintenance?: boolean | undefined;
|
|
5047
|
+
};
|
|
5048
|
+
};
|
|
4635
5049
|
transformer: true;
|
|
4636
5050
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4637
5051
|
listRequests: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4651,10 +5065,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4651
5065
|
pageSize: number;
|
|
4652
5066
|
total: number;
|
|
4653
5067
|
results: ({
|
|
4654
|
-
type: "
|
|
5068
|
+
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
4655
5069
|
data: {
|
|
4656
|
-
|
|
4657
|
-
|
|
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
|
+
}[];
|
|
4658
5082
|
};
|
|
4659
5083
|
id: string;
|
|
4660
5084
|
legacyId: number;
|
|
@@ -4676,10 +5100,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4676
5100
|
retryAfter: Date;
|
|
4677
5101
|
} | undefined;
|
|
4678
5102
|
} | {
|
|
4679
|
-
type: "
|
|
4680
|
-
data:
|
|
4681
|
-
quorum: number;
|
|
4682
|
-
};
|
|
5103
|
+
type: "TRADELINK_ACTIVATE_ACCOUNT";
|
|
5104
|
+
data: null;
|
|
4683
5105
|
id: string;
|
|
4684
5106
|
legacyId: number;
|
|
4685
5107
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -4700,10 +5122,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4700
5122
|
retryAfter: Date;
|
|
4701
5123
|
} | undefined;
|
|
4702
5124
|
} | {
|
|
4703
|
-
type: "
|
|
5125
|
+
type: "TRADELINK_EDIT_CUSTODIAN";
|
|
4704
5126
|
data: {
|
|
4705
|
-
|
|
4706
|
-
|
|
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[];
|
|
5138
|
+
}[];
|
|
4707
5139
|
};
|
|
4708
5140
|
id: string;
|
|
4709
5141
|
legacyId: number;
|
|
@@ -4725,33 +5157,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4725
5157
|
retryAfter: Date;
|
|
4726
5158
|
} | undefined;
|
|
4727
5159
|
} | {
|
|
4728
|
-
type: "
|
|
5160
|
+
type: "TRADELINK_CREATE_EXCHANGE";
|
|
4729
5161
|
data: {
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
primaryType: string;
|
|
4741
|
-
domain: Record<string, any>;
|
|
4742
|
-
message: Record<string, any>;
|
|
4743
|
-
};
|
|
4744
|
-
} | {
|
|
4745
|
-
type: "CIP8";
|
|
4746
|
-
data: string;
|
|
4747
|
-
signingKey: "PAYMENT" | "STAKE";
|
|
4748
|
-
} | {
|
|
4749
|
-
type: "BIP137";
|
|
4750
|
-
data: string;
|
|
4751
|
-
};
|
|
4752
|
-
accountId: string;
|
|
4753
|
-
address: string;
|
|
4754
|
-
derivationPath: string;
|
|
5162
|
+
tradelinkId: string;
|
|
5163
|
+
groups: {
|
|
5164
|
+
quorum: number;
|
|
5165
|
+
userIds: string[];
|
|
5166
|
+
}[];
|
|
5167
|
+
whitelist: {
|
|
5168
|
+
name: string;
|
|
5169
|
+
currency: string;
|
|
5170
|
+
address: string;
|
|
5171
|
+
}[];
|
|
4755
5172
|
};
|
|
4756
5173
|
id: string;
|
|
4757
5174
|
legacyId: number;
|
|
@@ -4773,12 +5190,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4773
5190
|
retryAfter: Date;
|
|
4774
5191
|
} | undefined;
|
|
4775
5192
|
} | {
|
|
4776
|
-
type: "
|
|
5193
|
+
type: "TRADELINK_EDIT_EXCHANGE";
|
|
4777
5194
|
data: {
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
5195
|
+
tradelinkId: string;
|
|
5196
|
+
groups: {
|
|
5197
|
+
quorum: number;
|
|
5198
|
+
userIds: string[];
|
|
5199
|
+
}[];
|
|
5200
|
+
whitelist: {
|
|
5201
|
+
name: string;
|
|
5202
|
+
currency: string;
|
|
5203
|
+
address: string;
|
|
4782
5204
|
}[];
|
|
4783
5205
|
};
|
|
4784
5206
|
id: string;
|
|
@@ -4801,58 +5223,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4801
5223
|
retryAfter: Date;
|
|
4802
5224
|
} | undefined;
|
|
4803
5225
|
} | {
|
|
4804
|
-
type: "
|
|
5226
|
+
type: "TRADELINK_CREATE_ASSET_MANAGER";
|
|
4805
5227
|
data: {
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
rules: {
|
|
4817
|
-
reviewSteps: ({
|
|
4818
|
-
quorum: number;
|
|
4819
|
-
userIds: string[];
|
|
4820
|
-
} | {
|
|
4821
|
-
quorum: number;
|
|
4822
|
-
groupId: string;
|
|
4823
|
-
})[];
|
|
4824
|
-
threshold?: {
|
|
4825
|
-
min: string | null;
|
|
4826
|
-
max: string | null;
|
|
4827
|
-
} | undefined;
|
|
4828
|
-
whitelistIds?: string[] | undefined;
|
|
4829
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4830
|
-
}[];
|
|
4831
|
-
};
|
|
4832
|
-
} | {
|
|
4833
|
-
type: "TRADELINK";
|
|
4834
|
-
assetManagerId: string;
|
|
4835
|
-
exchangeConfigs: {
|
|
4836
|
-
exchangeId: string;
|
|
4837
|
-
repledgeAuthorized: boolean;
|
|
4838
|
-
needsAssetManagerApprovalForSettlements: boolean;
|
|
4839
|
-
}[];
|
|
4840
|
-
} | {
|
|
4841
|
-
type: "RAW_SIGNING";
|
|
4842
|
-
policy: {
|
|
4843
|
-
rules: {
|
|
4844
|
-
operationType: "SIGN_DIGESTS";
|
|
4845
|
-
reviewSteps: {
|
|
4846
|
-
quorum: number;
|
|
4847
|
-
userIds: string[];
|
|
4848
|
-
}[];
|
|
4849
|
-
}[];
|
|
4850
|
-
};
|
|
4851
|
-
};
|
|
4852
|
-
portfolioIds?: string[] | undefined;
|
|
4853
|
-
index: number;
|
|
4854
|
-
derivationPath: string;
|
|
4855
|
-
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
5228
|
+
tradelinkId: string;
|
|
5229
|
+
groups: {
|
|
5230
|
+
quorum: number;
|
|
5231
|
+
userIds: string[];
|
|
5232
|
+
}[];
|
|
5233
|
+
whitelist: {
|
|
5234
|
+
name: string;
|
|
5235
|
+
currency: string;
|
|
5236
|
+
address: string;
|
|
5237
|
+
}[];
|
|
4856
5238
|
};
|
|
4857
5239
|
id: string;
|
|
4858
5240
|
legacyId: number;
|
|
@@ -4874,49 +5256,44 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4874
5256
|
retryAfter: Date;
|
|
4875
5257
|
} | undefined;
|
|
4876
5258
|
} | {
|
|
4877
|
-
type: "
|
|
5259
|
+
type: "TRADELINK_EDIT_ASSET_MANAGER";
|
|
4878
5260
|
data: {
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
userIds: string[];
|
|
4916
|
-
}[];
|
|
4917
|
-
}[];
|
|
4918
|
-
};
|
|
4919
|
-
};
|
|
5261
|
+
tradelinkId: string;
|
|
5262
|
+
groups: {
|
|
5263
|
+
quorum: number;
|
|
5264
|
+
userIds: string[];
|
|
5265
|
+
}[];
|
|
5266
|
+
whitelist: {
|
|
5267
|
+
name: string;
|
|
5268
|
+
currency: string;
|
|
5269
|
+
address: string;
|
|
5270
|
+
}[];
|
|
5271
|
+
};
|
|
5272
|
+
id: string;
|
|
5273
|
+
legacyId: number;
|
|
5274
|
+
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5275
|
+
reviewSteps: {
|
|
5276
|
+
stageName: string;
|
|
5277
|
+
quorum: number;
|
|
5278
|
+
}[];
|
|
5279
|
+
currentStepIndex: number;
|
|
5280
|
+
expiresAt: Date;
|
|
5281
|
+
targetId: string | null;
|
|
5282
|
+
note: Note | null;
|
|
5283
|
+
reviews: RequestReview[];
|
|
5284
|
+
createdAt: Date;
|
|
5285
|
+
updatedAt: Date;
|
|
5286
|
+
createdById: string;
|
|
5287
|
+
inflight?: {
|
|
5288
|
+
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5289
|
+
retryAfter: Date;
|
|
5290
|
+
} | undefined;
|
|
5291
|
+
} | {
|
|
5292
|
+
type: "TRADELINK_ADJUST_PLEDGE";
|
|
5293
|
+
data: {
|
|
5294
|
+
accountId: string;
|
|
5295
|
+
exchangeId: string;
|
|
5296
|
+
amount: string;
|
|
4920
5297
|
};
|
|
4921
5298
|
id: string;
|
|
4922
5299
|
legacyId: number;
|
|
@@ -4938,25 +5315,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4938
5315
|
retryAfter: Date;
|
|
4939
5316
|
} | undefined;
|
|
4940
5317
|
} | {
|
|
4941
|
-
type: "
|
|
5318
|
+
type: "TRADELINK_REPLEDGE";
|
|
4942
5319
|
data: {
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
reviewSteps: ({
|
|
4947
|
-
quorum: number;
|
|
4948
|
-
userIds: string[];
|
|
4949
|
-
} | {
|
|
4950
|
-
quorum: number;
|
|
4951
|
-
groupId: string;
|
|
4952
|
-
})[];
|
|
4953
|
-
threshold?: {
|
|
4954
|
-
min: string | null;
|
|
4955
|
-
max: string | null;
|
|
4956
|
-
} | undefined;
|
|
4957
|
-
whitelistIds?: string[] | undefined;
|
|
4958
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
4959
|
-
}[];
|
|
5320
|
+
accountId: string;
|
|
5321
|
+
exchangeId: string;
|
|
5322
|
+
amount: string;
|
|
4960
5323
|
};
|
|
4961
5324
|
id: string;
|
|
4962
5325
|
legacyId: number;
|
|
@@ -4978,11 +5341,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4978
5341
|
retryAfter: Date;
|
|
4979
5342
|
} | undefined;
|
|
4980
5343
|
} | {
|
|
4981
|
-
type: "
|
|
5344
|
+
type: "TRADELINK_CREATE_SETTLEMENT";
|
|
4982
5345
|
data: {
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
5346
|
+
accountId: string;
|
|
5347
|
+
exchangeId: string;
|
|
5348
|
+
transaction: SendOnlyTransactionData;
|
|
4986
5349
|
};
|
|
4987
5350
|
id: string;
|
|
4988
5351
|
legacyId: number;
|
|
@@ -5004,11 +5367,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5004
5367
|
retryAfter: Date;
|
|
5005
5368
|
} | undefined;
|
|
5006
5369
|
} | {
|
|
5007
|
-
type: "
|
|
5370
|
+
type: "TRADELINK_FORCE_UNPLEDGE";
|
|
5008
5371
|
data: {
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
members: string[];
|
|
5372
|
+
accountId: string;
|
|
5373
|
+
exchangeId: string;
|
|
5012
5374
|
};
|
|
5013
5375
|
id: string;
|
|
5014
5376
|
legacyId: number;
|
|
@@ -5030,8 +5392,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5030
5392
|
retryAfter: Date;
|
|
5031
5393
|
} | undefined;
|
|
5032
5394
|
} | {
|
|
5033
|
-
type: "
|
|
5034
|
-
data:
|
|
5395
|
+
type: "TRADELINK_WITHDRAW";
|
|
5396
|
+
data: {
|
|
5397
|
+
accountId: string;
|
|
5398
|
+
transaction: SendOnlyTransactionData;
|
|
5399
|
+
};
|
|
5035
5400
|
id: string;
|
|
5036
5401
|
legacyId: number;
|
|
5037
5402
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5052,17 +5417,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5052
5417
|
retryAfter: Date;
|
|
5053
5418
|
} | undefined;
|
|
5054
5419
|
} | {
|
|
5055
|
-
type: "
|
|
5420
|
+
type: "TRADELINK_ARBITRATE";
|
|
5056
5421
|
data: {
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
addresses: {
|
|
5060
|
-
name: string;
|
|
5061
|
-
currency: string;
|
|
5062
|
-
address: string;
|
|
5063
|
-
destinationTag?: string | undefined;
|
|
5064
|
-
}[];
|
|
5065
|
-
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
5422
|
+
accountId: string;
|
|
5423
|
+
transaction: SendOnlyTransactionData;
|
|
5066
5424
|
};
|
|
5067
5425
|
id: string;
|
|
5068
5426
|
legacyId: number;
|
|
@@ -5084,15 +5442,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5084
5442
|
retryAfter: Date;
|
|
5085
5443
|
} | undefined;
|
|
5086
5444
|
} | {
|
|
5087
|
-
type: "
|
|
5445
|
+
type: "UPDATE_QUORUM";
|
|
5088
5446
|
data: {
|
|
5089
|
-
|
|
5090
|
-
addresses: {
|
|
5091
|
-
name: string;
|
|
5092
|
-
currency: string;
|
|
5093
|
-
address: string;
|
|
5094
|
-
destinationTag?: string | undefined;
|
|
5095
|
-
}[];
|
|
5447
|
+
quorum: number;
|
|
5096
5448
|
};
|
|
5097
5449
|
id: string;
|
|
5098
5450
|
legacyId: number;
|
|
@@ -5114,11 +5466,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5114
5466
|
retryAfter: Date;
|
|
5115
5467
|
} | undefined;
|
|
5116
5468
|
} | {
|
|
5117
|
-
type: "
|
|
5469
|
+
type: "CREATE_TRANSACTION";
|
|
5118
5470
|
data: {
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
memberIds: string[];
|
|
5471
|
+
accountId: string;
|
|
5472
|
+
transaction: TransactionData;
|
|
5122
5473
|
};
|
|
5123
5474
|
id: string;
|
|
5124
5475
|
legacyId: number;
|
|
@@ -5140,11 +5491,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5140
5491
|
retryAfter: Date;
|
|
5141
5492
|
} | undefined;
|
|
5142
5493
|
} | {
|
|
5143
|
-
type: "
|
|
5494
|
+
type: "SIGN_DIGESTS";
|
|
5144
5495
|
data: {
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5496
|
+
accountId: string;
|
|
5497
|
+
digests: {
|
|
5498
|
+
digest: string;
|
|
5499
|
+
derivationPath: string;
|
|
5500
|
+
}[];
|
|
5148
5501
|
};
|
|
5149
5502
|
id: string;
|
|
5150
5503
|
legacyId: number;
|
|
@@ -5166,8 +5519,50 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5166
5519
|
retryAfter: Date;
|
|
5167
5520
|
} | undefined;
|
|
5168
5521
|
} | {
|
|
5169
|
-
type: "
|
|
5170
|
-
data:
|
|
5522
|
+
type: "EDIT_ACCOUNT";
|
|
5523
|
+
data: {
|
|
5524
|
+
name: string;
|
|
5525
|
+
governance: {
|
|
5526
|
+
type: "CLASSIC";
|
|
5527
|
+
policy: {
|
|
5528
|
+
policyId: string;
|
|
5529
|
+
} | {
|
|
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
|
+
};
|
|
5565
|
+
};
|
|
5171
5566
|
id: string;
|
|
5172
5567
|
legacyId: number;
|
|
5173
5568
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5188,9 +5583,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5188
5583
|
retryAfter: Date;
|
|
5189
5584
|
} | undefined;
|
|
5190
5585
|
} | {
|
|
5191
|
-
type: "
|
|
5586
|
+
type: "CREATE_GROUP";
|
|
5192
5587
|
data: {
|
|
5193
|
-
|
|
5588
|
+
name: string;
|
|
5589
|
+
description: string | null;
|
|
5590
|
+
members: string[];
|
|
5194
5591
|
};
|
|
5195
5592
|
id: string;
|
|
5196
5593
|
legacyId: number;
|
|
@@ -5212,12 +5609,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5212
5609
|
retryAfter: Date;
|
|
5213
5610
|
} | undefined;
|
|
5214
5611
|
} | {
|
|
5215
|
-
type: "
|
|
5612
|
+
type: "EDIT_GROUP";
|
|
5216
5613
|
data: {
|
|
5217
5614
|
name: string;
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
viewAll?: boolean | undefined;
|
|
5615
|
+
description: string | null;
|
|
5616
|
+
members: string[];
|
|
5221
5617
|
};
|
|
5222
5618
|
id: string;
|
|
5223
5619
|
legacyId: number;
|
|
@@ -5239,9 +5635,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5239
5635
|
retryAfter: Date;
|
|
5240
5636
|
} | undefined;
|
|
5241
5637
|
} | {
|
|
5242
|
-
type: "
|
|
5638
|
+
type: "CREATE_WHITELIST";
|
|
5243
5639
|
data: {
|
|
5244
5640
|
name: string;
|
|
5641
|
+
description: string | null;
|
|
5642
|
+
addresses: {
|
|
5643
|
+
name: string;
|
|
5644
|
+
currency: string;
|
|
5645
|
+
address: string;
|
|
5646
|
+
destinationTag?: string | undefined;
|
|
5647
|
+
}[];
|
|
5648
|
+
type: "SMART_CONTRACT" | "TRANSACTION";
|
|
5245
5649
|
};
|
|
5246
5650
|
id: string;
|
|
5247
5651
|
legacyId: number;
|
|
@@ -5263,8 +5667,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5263
5667
|
retryAfter: Date;
|
|
5264
5668
|
} | undefined;
|
|
5265
5669
|
} | {
|
|
5266
|
-
type: "
|
|
5267
|
-
data:
|
|
5670
|
+
type: "EDIT_WHITELIST";
|
|
5671
|
+
data: {
|
|
5672
|
+
name: string;
|
|
5673
|
+
addresses: {
|
|
5674
|
+
name: string;
|
|
5675
|
+
currency: string;
|
|
5676
|
+
address: string;
|
|
5677
|
+
destinationTag?: string | undefined;
|
|
5678
|
+
}[];
|
|
5679
|
+
};
|
|
5268
5680
|
id: string;
|
|
5269
5681
|
legacyId: number;
|
|
5270
5682
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5285,13 +5697,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5285
5697
|
retryAfter: Date;
|
|
5286
5698
|
} | undefined;
|
|
5287
5699
|
} | {
|
|
5288
|
-
type: "
|
|
5700
|
+
type: "CREATE_ENTITY";
|
|
5289
5701
|
data: {
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
userIds: string[];
|
|
5294
|
-
}[];
|
|
5702
|
+
name: string;
|
|
5703
|
+
accountIds: string[];
|
|
5704
|
+
memberIds: string[];
|
|
5295
5705
|
};
|
|
5296
5706
|
id: string;
|
|
5297
5707
|
legacyId: number;
|
|
@@ -5313,13 +5723,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5313
5723
|
retryAfter: Date;
|
|
5314
5724
|
} | undefined;
|
|
5315
5725
|
} | {
|
|
5316
|
-
type: "
|
|
5726
|
+
type: "EDIT_ENTITY";
|
|
5317
5727
|
data: {
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
customContractCallEnabled: boolean;
|
|
5322
|
-
};
|
|
5728
|
+
name: string;
|
|
5729
|
+
accountIds: string[];
|
|
5730
|
+
memberIds: string[];
|
|
5323
5731
|
};
|
|
5324
5732
|
id: string;
|
|
5325
5733
|
legacyId: number;
|
|
@@ -5341,13 +5749,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5341
5749
|
retryAfter: Date;
|
|
5342
5750
|
} | undefined;
|
|
5343
5751
|
} | {
|
|
5344
|
-
type: "
|
|
5345
|
-
data:
|
|
5346
|
-
config: {
|
|
5347
|
-
dapps: string[] | null;
|
|
5348
|
-
customContractCallEnabled: boolean;
|
|
5349
|
-
};
|
|
5350
|
-
};
|
|
5752
|
+
type: "REVOKE_ENTITY";
|
|
5753
|
+
data: Record<string, never>;
|
|
5351
5754
|
id: string;
|
|
5352
5755
|
legacyId: number;
|
|
5353
5756
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5368,11 +5771,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5368
5771
|
retryAfter: Date;
|
|
5369
5772
|
} | undefined;
|
|
5370
5773
|
} | {
|
|
5371
|
-
type: "
|
|
5774
|
+
type: "CREATE_PSD_USER";
|
|
5372
5775
|
data: {
|
|
5373
|
-
|
|
5374
|
-
entities: string[];
|
|
5375
|
-
scopes: Record<string, never>;
|
|
5776
|
+
registrationId: string;
|
|
5376
5777
|
};
|
|
5377
5778
|
id: string;
|
|
5378
5779
|
legacyId: number;
|
|
@@ -5394,11 +5795,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5394
5795
|
retryAfter: Date;
|
|
5395
5796
|
} | undefined;
|
|
5396
5797
|
} | {
|
|
5397
|
-
type: "
|
|
5798
|
+
type: "CREATE_API_USER";
|
|
5398
5799
|
data: {
|
|
5399
5800
|
name: string;
|
|
5400
|
-
|
|
5401
|
-
|
|
5801
|
+
pubKey: string;
|
|
5802
|
+
role: "ADMIN" | "OPERATOR";
|
|
5803
|
+
viewAll?: boolean | undefined;
|
|
5402
5804
|
};
|
|
5403
5805
|
id: string;
|
|
5404
5806
|
legacyId: number;
|
|
@@ -5420,7 +5822,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5420
5822
|
retryAfter: Date;
|
|
5421
5823
|
} | undefined;
|
|
5422
5824
|
} | {
|
|
5423
|
-
type: "
|
|
5825
|
+
type: "REVOKE_USER";
|
|
5424
5826
|
data: Record<string, never>;
|
|
5425
5827
|
id: string;
|
|
5426
5828
|
legacyId: number;
|
|
@@ -5442,29 +5844,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5442
5844
|
retryAfter: Date;
|
|
5443
5845
|
} | undefined;
|
|
5444
5846
|
} | {
|
|
5445
|
-
type: "
|
|
5847
|
+
type: "EDIT_WORKSPACE_RULE";
|
|
5446
5848
|
data: {
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
contractAddress: string | null;
|
|
5452
|
-
tokenIdentifier: string | null;
|
|
5453
|
-
} | null;
|
|
5454
|
-
govRules: {
|
|
5455
|
-
reviewSteps: ({
|
|
5456
|
-
quorum: number;
|
|
5457
|
-
userIds: string[];
|
|
5458
|
-
} | {
|
|
5459
|
-
quorum: number;
|
|
5460
|
-
groupId: string;
|
|
5461
|
-
})[];
|
|
5462
|
-
threshold?: {
|
|
5463
|
-
min: string | null;
|
|
5464
|
-
max: string | null;
|
|
5465
|
-
} | undefined;
|
|
5466
|
-
whitelistIds?: string[] | undefined;
|
|
5467
|
-
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5849
|
+
permission: "CREATE_ACCOUNT_WITH_POLICY";
|
|
5850
|
+
reviewConfig: {
|
|
5851
|
+
quorum: number;
|
|
5852
|
+
userIds: string[];
|
|
5468
5853
|
}[];
|
|
5469
5854
|
};
|
|
5470
5855
|
id: string;
|
|
@@ -5487,10 +5872,15 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5487
5872
|
retryAfter: Date;
|
|
5488
5873
|
} | undefined;
|
|
5489
5874
|
} | {
|
|
5490
|
-
type: "
|
|
5875
|
+
type: "CREATE_POLICY";
|
|
5491
5876
|
data: {
|
|
5492
5877
|
name: string;
|
|
5493
5878
|
description: string | null;
|
|
5879
|
+
asset: {
|
|
5880
|
+
network: string;
|
|
5881
|
+
contractAddress: string | null;
|
|
5882
|
+
tokenIdentifier: string | null;
|
|
5883
|
+
} | null;
|
|
5494
5884
|
govRules: {
|
|
5495
5885
|
reviewSteps: ({
|
|
5496
5886
|
quorum: number;
|
|
@@ -5527,41 +5917,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5527
5917
|
retryAfter: Date;
|
|
5528
5918
|
} | undefined;
|
|
5529
5919
|
} | {
|
|
5530
|
-
type: "
|
|
5531
|
-
data: null;
|
|
5532
|
-
id: string;
|
|
5533
|
-
legacyId: number;
|
|
5534
|
-
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
5535
|
-
reviewSteps: {
|
|
5536
|
-
stageName: string;
|
|
5537
|
-
quorum: number;
|
|
5538
|
-
}[];
|
|
5539
|
-
currentStepIndex: number;
|
|
5540
|
-
expiresAt: Date;
|
|
5541
|
-
targetId: string | null;
|
|
5542
|
-
note: Note | null;
|
|
5543
|
-
reviews: RequestReview[];
|
|
5544
|
-
createdAt: Date;
|
|
5545
|
-
updatedAt: Date;
|
|
5546
|
-
createdById: string;
|
|
5547
|
-
inflight?: {
|
|
5548
|
-
completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
|
|
5549
|
-
retryAfter: Date;
|
|
5550
|
-
} | undefined;
|
|
5551
|
-
} | {
|
|
5552
|
-
type: "TRADELINK_CREATE_CUSTODIAN";
|
|
5920
|
+
type: "EDIT_POLICY";
|
|
5553
5921
|
data: {
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
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";
|
|
5565
5938
|
}[];
|
|
5566
5939
|
};
|
|
5567
5940
|
id: string;
|
|
@@ -5584,20 +5957,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5584
5957
|
retryAfter: Date;
|
|
5585
5958
|
} | undefined;
|
|
5586
5959
|
} | {
|
|
5587
|
-
type: "
|
|
5960
|
+
type: "EDIT_EXTERNAL_SIGNER_PUBKEYS";
|
|
5588
5961
|
data: {
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
userIds: string[];
|
|
5592
|
-
}[];
|
|
5593
|
-
withdraw: {
|
|
5594
|
-
quorum: number;
|
|
5595
|
-
userIds: string[];
|
|
5596
|
-
}[];
|
|
5597
|
-
arbitration: {
|
|
5598
|
-
quorum: number;
|
|
5599
|
-
userIds: string[];
|
|
5600
|
-
}[];
|
|
5962
|
+
previousPublicKeys: string[];
|
|
5963
|
+
requestedPublicKeys: string[];
|
|
5601
5964
|
};
|
|
5602
5965
|
id: string;
|
|
5603
5966
|
legacyId: number;
|
|
@@ -5619,18 +5982,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5619
5982
|
retryAfter: Date;
|
|
5620
5983
|
} | undefined;
|
|
5621
5984
|
} | {
|
|
5622
|
-
type: "
|
|
5985
|
+
type: "SIGN_MESSAGE";
|
|
5623
5986
|
data: {
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5987
|
+
message: {
|
|
5988
|
+
type: "EIP191";
|
|
5989
|
+
data: string;
|
|
5990
|
+
} | {
|
|
5991
|
+
type: "EIP712";
|
|
5992
|
+
data: {
|
|
5993
|
+
types: Record<string, {
|
|
5994
|
+
name: string;
|
|
5995
|
+
type: string;
|
|
5996
|
+
}[]>;
|
|
5997
|
+
primaryType: string;
|
|
5998
|
+
domain: Record<string, any>;
|
|
5999
|
+
message: Record<string, any>;
|
|
6000
|
+
};
|
|
6001
|
+
} | {
|
|
6002
|
+
type: "CIP8";
|
|
6003
|
+
data: string;
|
|
6004
|
+
signingKey: "PAYMENT" | "STAKE";
|
|
6005
|
+
} | {
|
|
6006
|
+
type: "BIP137";
|
|
6007
|
+
data: string;
|
|
6008
|
+
};
|
|
6009
|
+
accountId: string;
|
|
6010
|
+
address: string;
|
|
6011
|
+
derivationPath: string;
|
|
5634
6012
|
};
|
|
5635
6013
|
id: string;
|
|
5636
6014
|
legacyId: number;
|
|
@@ -5652,18 +6030,58 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5652
6030
|
retryAfter: Date;
|
|
5653
6031
|
} | undefined;
|
|
5654
6032
|
} | {
|
|
5655
|
-
type: "
|
|
6033
|
+
type: "CREATE_ACCOUNT";
|
|
5656
6034
|
data: {
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
6035
|
+
name: string;
|
|
6036
|
+
currency: string;
|
|
6037
|
+
contractAddress: string | null;
|
|
6038
|
+
tokenIdentifier: string | null;
|
|
6039
|
+
bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
|
|
6040
|
+
governance: {
|
|
6041
|
+
type: "CLASSIC";
|
|
6042
|
+
policy: {
|
|
6043
|
+
policyId: string;
|
|
6044
|
+
} | {
|
|
6045
|
+
rules: {
|
|
6046
|
+
reviewSteps: ({
|
|
6047
|
+
quorum: number;
|
|
6048
|
+
userIds: string[];
|
|
6049
|
+
} | {
|
|
6050
|
+
quorum: number;
|
|
6051
|
+
groupId: string;
|
|
6052
|
+
})[];
|
|
6053
|
+
threshold?: {
|
|
6054
|
+
min: string | null;
|
|
6055
|
+
max: string | null;
|
|
6056
|
+
} | undefined;
|
|
6057
|
+
whitelistIds?: string[] | undefined;
|
|
6058
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
6059
|
+
}[];
|
|
6060
|
+
};
|
|
6061
|
+
} | {
|
|
6062
|
+
type: "TRADELINK";
|
|
6063
|
+
assetManagerId: string;
|
|
6064
|
+
exchangeConfigs: {
|
|
6065
|
+
exchangeId: string;
|
|
6066
|
+
repledgeAuthorized: boolean;
|
|
6067
|
+
needsAssetManagerApprovalForSettlements: boolean;
|
|
6068
|
+
}[];
|
|
6069
|
+
} | {
|
|
6070
|
+
type: "RAW_SIGNING";
|
|
6071
|
+
policy: {
|
|
6072
|
+
rules: {
|
|
6073
|
+
operationType: "SIGN_DIGESTS";
|
|
6074
|
+
reviewSteps: {
|
|
6075
|
+
quorum: number;
|
|
6076
|
+
userIds: string[];
|
|
6077
|
+
}[];
|
|
6078
|
+
}[];
|
|
6079
|
+
};
|
|
6080
|
+
};
|
|
6081
|
+
portfolioIds?: string[] | undefined;
|
|
6082
|
+
index: number;
|
|
6083
|
+
derivationPath: string;
|
|
6084
|
+
type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
|
|
5667
6085
|
};
|
|
5668
6086
|
id: string;
|
|
5669
6087
|
legacyId: number;
|
|
@@ -5685,17 +6103,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5685
6103
|
retryAfter: Date;
|
|
5686
6104
|
} | undefined;
|
|
5687
6105
|
} | {
|
|
5688
|
-
type: "
|
|
6106
|
+
type: "EDIT_TOKEN_RULE";
|
|
5689
6107
|
data: {
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
6108
|
+
parentAccountId: string;
|
|
6109
|
+
contractAddress: string;
|
|
6110
|
+
rules: {
|
|
6111
|
+
reviewSteps: ({
|
|
6112
|
+
quorum: number;
|
|
6113
|
+
userIds: string[];
|
|
6114
|
+
} | {
|
|
6115
|
+
quorum: number;
|
|
6116
|
+
groupId: string;
|
|
6117
|
+
})[];
|
|
6118
|
+
threshold?: {
|
|
6119
|
+
min: string | null;
|
|
6120
|
+
max: string | null;
|
|
6121
|
+
} | undefined;
|
|
6122
|
+
whitelistIds?: string[] | undefined;
|
|
6123
|
+
operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
|
|
5699
6124
|
}[];
|
|
5700
6125
|
};
|
|
5701
6126
|
id: string;
|
|
@@ -5718,19 +6143,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5718
6143
|
retryAfter: Date;
|
|
5719
6144
|
} | undefined;
|
|
5720
6145
|
} | {
|
|
5721
|
-
type: "
|
|
5722
|
-
data:
|
|
5723
|
-
tradelinkId: string;
|
|
5724
|
-
groups: {
|
|
5725
|
-
quorum: number;
|
|
5726
|
-
userIds: string[];
|
|
5727
|
-
}[];
|
|
5728
|
-
whitelist: {
|
|
5729
|
-
name: string;
|
|
5730
|
-
currency: string;
|
|
5731
|
-
address: string;
|
|
5732
|
-
}[];
|
|
5733
|
-
};
|
|
6146
|
+
type: "REVOKE_GROUP";
|
|
6147
|
+
data: Record<string, never>;
|
|
5734
6148
|
id: string;
|
|
5735
6149
|
legacyId: number;
|
|
5736
6150
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -5751,11 +6165,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5751
6165
|
retryAfter: Date;
|
|
5752
6166
|
} | undefined;
|
|
5753
6167
|
} | {
|
|
5754
|
-
type: "
|
|
6168
|
+
type: "CREATE_API_USER_ACCESS";
|
|
5755
6169
|
data: {
|
|
5756
|
-
|
|
5757
|
-
exchangeId: string;
|
|
5758
|
-
amount: string;
|
|
6170
|
+
name: string;
|
|
5759
6171
|
};
|
|
5760
6172
|
id: string;
|
|
5761
6173
|
legacyId: number;
|
|
@@ -5777,11 +6189,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5777
6189
|
retryAfter: Date;
|
|
5778
6190
|
} | undefined;
|
|
5779
6191
|
} | {
|
|
5780
|
-
type: "
|
|
6192
|
+
type: "CREATE_SCICONFIG";
|
|
5781
6193
|
data: {
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
6194
|
+
account: string;
|
|
6195
|
+
config: {
|
|
6196
|
+
dapps: string[] | null;
|
|
6197
|
+
customContractCallEnabled: boolean;
|
|
6198
|
+
};
|
|
5785
6199
|
};
|
|
5786
6200
|
id: string;
|
|
5787
6201
|
legacyId: number;
|
|
@@ -5803,11 +6217,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5803
6217
|
retryAfter: Date;
|
|
5804
6218
|
} | undefined;
|
|
5805
6219
|
} | {
|
|
5806
|
-
type: "
|
|
6220
|
+
type: "EDIT_SCICONFIG";
|
|
5807
6221
|
data: {
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
6222
|
+
config: {
|
|
6223
|
+
dapps: string[] | null;
|
|
6224
|
+
customContractCallEnabled: boolean;
|
|
6225
|
+
};
|
|
5811
6226
|
};
|
|
5812
6227
|
id: string;
|
|
5813
6228
|
legacyId: number;
|
|
@@ -5829,10 +6244,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5829
6244
|
retryAfter: Date;
|
|
5830
6245
|
} | undefined;
|
|
5831
6246
|
} | {
|
|
5832
|
-
type: "
|
|
6247
|
+
type: "CREATE_API_KEY";
|
|
5833
6248
|
data: {
|
|
5834
|
-
|
|
5835
|
-
|
|
6249
|
+
name: string;
|
|
6250
|
+
entities: string[];
|
|
6251
|
+
scopes: Record<string, never>;
|
|
5836
6252
|
};
|
|
5837
6253
|
id: string;
|
|
5838
6254
|
legacyId: number;
|
|
@@ -5854,10 +6270,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5854
6270
|
retryAfter: Date;
|
|
5855
6271
|
} | undefined;
|
|
5856
6272
|
} | {
|
|
5857
|
-
type: "
|
|
6273
|
+
type: "EDIT_API_KEY";
|
|
5858
6274
|
data: {
|
|
5859
|
-
|
|
5860
|
-
|
|
6275
|
+
name: string;
|
|
6276
|
+
entities: string[];
|
|
6277
|
+
scopes: Record<string, never>;
|
|
5861
6278
|
};
|
|
5862
6279
|
id: string;
|
|
5863
6280
|
legacyId: number;
|
|
@@ -5879,11 +6296,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5879
6296
|
retryAfter: Date;
|
|
5880
6297
|
} | undefined;
|
|
5881
6298
|
} | {
|
|
5882
|
-
type: "
|
|
5883
|
-
data:
|
|
5884
|
-
accountId: string;
|
|
5885
|
-
transaction: SendOnlyTransactionData;
|
|
5886
|
-
};
|
|
6299
|
+
type: "REVOKE_API_KEY";
|
|
6300
|
+
data: Record<string, never>;
|
|
5887
6301
|
id: string;
|
|
5888
6302
|
legacyId: number;
|
|
5889
6303
|
state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
|
|
@@ -6021,7 +6435,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6021
6435
|
errorResponses?: number[] | Record<number, string>;
|
|
6022
6436
|
};
|
|
6023
6437
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
6024
|
-
errorShape:
|
|
6438
|
+
errorShape: {
|
|
6439
|
+
message: string;
|
|
6440
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6441
|
+
data: {
|
|
6442
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
|
|
6443
|
+
httpStatus: number;
|
|
6444
|
+
path?: string;
|
|
6445
|
+
stack?: string;
|
|
6446
|
+
maintenance?: boolean | undefined;
|
|
6447
|
+
};
|
|
6448
|
+
};
|
|
6025
6449
|
transformer: true;
|
|
6026
6450
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6027
6451
|
list: import("@trpc/server").TRPCQueryProcedure<{
|