@ledgerhq/revault-api 1.67.0 → 1.68.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.
@@ -1,4 +1,4 @@
1
- import { Ai as UserDeviceType, Bn as ExtendedPrismaClient, Rn as RateLimitMetricsMeta, fn as zOidcConfig, gi as GateUserType, ji as UserRole, ui as ActivationStatus, vi as MaintenanceMode, zn as ActivityTracer } from "../app-lib-Baqa_iuc.mjs";
1
+ import { Ai as UserDeviceType, Bn as ExtendedPrismaClient, Rn as RateLimitMetricsMeta, fn as zOidcConfig, gi as GateUserType, ji as UserRole, ui as ActivationStatus, vi as MaintenanceMode, zn as ActivityTracer } from "../app-lib-DithEPD6.mjs";
2
2
  import z$1, { z } from "zod";
3
3
  //#region src/workspaces/schemas.d.ts
4
4
  declare const zWorkspaceName: z$1.ZodString;
@@ -35,6 +35,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
35
35
  updatedAt: Date;
36
36
  } | null;
37
37
  authorization: string | null;
38
+ readOnly: boolean;
38
39
  activityTracer: ActivityTracer;
39
40
  };
40
41
  meta: {
@@ -91,6 +92,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
91
92
  updatedAt: Date;
92
93
  } | null;
93
94
  authorization: string | null;
95
+ readOnly: boolean;
94
96
  activityTracer: ActivityTracer;
95
97
  };
96
98
  meta: {
@@ -136,6 +138,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
136
138
  data: {
137
139
  accountId: string;
138
140
  transaction: {
141
+ amount: string;
142
+ currency: string;
143
+ maxFee: string | null;
144
+ recipient: string;
145
+ type: "TEZOS_LIKE_SEND";
146
+ feeStrategy: {
147
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
148
+ };
149
+ } | {
150
+ type: "TEZOS_LIKE_DELEGATE";
151
+ currency: string;
152
+ maxFee: string | null;
153
+ recipient: string;
154
+ feeStrategy: {
155
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
156
+ };
157
+ } | {
158
+ type: "TEZOS_LIKE_UNDELEGATE";
159
+ currency: string;
160
+ maxFee: string | null;
161
+ feeStrategy: {
162
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
163
+ };
164
+ } | {
139
165
  amount: string;
140
166
  currency: string;
141
167
  maxFee: string | null;
@@ -360,10 +386,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
360
386
  };
361
387
  validatorPubKey: string;
362
388
  executionFee: string;
363
- } | {
364
- type: "GENERIC_TRANSACTION";
365
- currency: string;
366
- rawTx: string;
367
389
  } | {
368
390
  amount: string;
369
391
  currency: string;
@@ -605,29 +627,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
605
627
  amount: string;
606
628
  useAllAmount: boolean;
607
629
  } | {
608
- amount: string;
609
- currency: string;
610
- maxFee: string | null;
611
- recipient: string;
612
- type: "TEZOS_LIKE_SEND";
613
- feeStrategy: {
614
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
615
- };
616
- } | {
617
- type: "TEZOS_LIKE_DELEGATE";
618
- currency: string;
619
- maxFee: string | null;
620
- recipient: string;
621
- feeStrategy: {
622
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
623
- };
624
- } | {
625
- type: "TEZOS_LIKE_UNDELEGATE";
630
+ type: "GENERIC_TRANSACTION";
626
631
  currency: string;
627
- maxFee: string | null;
628
- feeStrategy: {
629
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
630
- };
632
+ rawTx: string;
631
633
  } | {
632
634
  amount: string;
633
635
  currency: string;
@@ -711,64 +713,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
711
713
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
712
714
  retryAfter: Date;
713
715
  } | undefined;
714
- } | {
715
- type: "SIGN_MESSAGE";
716
- data: {
717
- message: {
718
- type: "EIP191";
719
- data: string;
720
- } | {
721
- type: "EIP712";
722
- data: {
723
- types: Record<string, {
724
- name: string;
725
- type: string;
726
- }[]>;
727
- primaryType: string;
728
- domain: Record<string, any>;
729
- message: Record<string, any>;
730
- };
731
- } | {
732
- type: "CIP8";
733
- data: string;
734
- signingKey: "PAYMENT" | "STAKE";
735
- } | {
736
- type: "BIP137";
737
- data: string;
738
- };
739
- accountId: string;
740
- address: string;
741
- derivationPath: string;
742
- };
743
- id: string;
744
- legacyId: number;
745
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
746
- reviewSteps: {
747
- stageName: string;
748
- quorum: number;
749
- }[];
750
- currentStepIndex: number;
751
- expiresAt: Date;
752
- targetId: string | null;
753
- note: {
754
- title: string;
755
- content: string;
756
- } | null;
757
- reviews: {
758
- stepIndex: number;
759
- userId: string;
760
- groupName: string | null;
761
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
762
- createdAt: Date;
763
- updatedAt: Date;
764
- }[];
765
- createdAt: Date;
766
- updatedAt: Date;
767
- createdById: string;
768
- inflight?: {
769
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
770
- retryAfter: Date;
771
- } | undefined;
772
716
  } | {
773
717
  type: "SIGN_DIGESTS";
774
718
  data: {
@@ -808,13 +752,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
808
752
  retryAfter: Date;
809
753
  } | undefined;
810
754
  } | {
811
- type: "CREATE_ACCOUNT";
755
+ type: "EDIT_ACCOUNT";
812
756
  data: {
813
757
  name: string;
814
- currency: string;
815
- contractAddress: string | null;
816
- tokenIdentifier: string | null;
817
- bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
818
758
  governance: {
819
759
  type: "CLASSIC";
820
760
  policy: {
@@ -838,7 +778,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
838
778
  };
839
779
  } | {
840
780
  type: "TRADELINK";
841
- assetManagerId: string;
842
781
  exchangeConfigs: {
843
782
  exchangeId: string;
844
783
  repledgeAuthorized: boolean;
@@ -856,9 +795,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
856
795
  }[];
857
796
  };
858
797
  };
859
- index: number;
860
- derivationPath: string;
861
- 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";
862
798
  };
863
799
  id: string;
864
800
  legacyId: number;
@@ -890,49 +826,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
890
826
  retryAfter: Date;
891
827
  } | undefined;
892
828
  } | {
893
- type: "EDIT_ACCOUNT";
829
+ type: "CREATE_GROUP";
894
830
  data: {
895
831
  name: string;
896
- governance: {
897
- type: "CLASSIC";
898
- policy: {
899
- policyId: string;
900
- } | {
901
- rules: {
902
- reviewSteps: ({
903
- quorum: number;
904
- userIds: string[];
905
- } | {
906
- quorum: number;
907
- groupId: string;
908
- })[];
909
- threshold?: {
910
- min: string | null;
911
- max: string | null;
912
- } | undefined;
913
- whitelistIds?: string[] | undefined;
914
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
915
- }[];
916
- };
917
- } | {
918
- type: "TRADELINK";
919
- exchangeConfigs: {
920
- exchangeId: string;
921
- repledgeAuthorized: boolean;
922
- needsAssetManagerApprovalForSettlements: boolean;
923
- }[];
924
- } | {
925
- type: "RAW_SIGNING";
926
- policy: {
927
- rules: {
928
- operationType: "SIGN_DIGESTS";
929
- reviewSteps: {
930
- quorum: number;
931
- userIds: string[];
932
- }[];
933
- }[];
934
- };
935
- };
832
+ description: string | null;
833
+ members: string[];
936
834
  };
937
835
  id: string;
938
836
  legacyId: number;
@@ -964,25 +862,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
964
862
  retryAfter: Date;
965
863
  } | undefined;
966
864
  } | {
967
- type: "EDIT_TOKEN_RULE";
865
+ type: "EDIT_GROUP";
968
866
  data: {
969
- parentAccountId: string;
970
- contractAddress: string;
971
- rules: {
972
- reviewSteps: ({
973
- quorum: number;
974
- userIds: string[];
975
- } | {
976
- quorum: number;
977
- groupId: string;
978
- })[];
979
- threshold?: {
980
- min: string | null;
981
- max: string | null;
982
- } | undefined;
983
- whitelistIds?: string[] | undefined;
984
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
985
- }[];
867
+ name: string;
868
+ description: string | null;
869
+ members: string[];
986
870
  };
987
871
  id: string;
988
872
  legacyId: number;
@@ -1014,11 +898,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1014
898
  retryAfter: Date;
1015
899
  } | undefined;
1016
900
  } | {
1017
- type: "CREATE_GROUP";
901
+ type: "CREATE_WHITELIST";
1018
902
  data: {
1019
903
  name: string;
1020
904
  description: string | null;
1021
- members: string[];
905
+ addresses: {
906
+ name: string;
907
+ currency: string;
908
+ address: string;
909
+ destinationTag?: string | undefined;
910
+ }[];
911
+ type: "SMART_CONTRACT" | "TRANSACTION";
1022
912
  };
1023
913
  id: string;
1024
914
  legacyId: number;
@@ -1050,11 +940,15 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1050
940
  retryAfter: Date;
1051
941
  } | undefined;
1052
942
  } | {
1053
- type: "EDIT_GROUP";
943
+ type: "EDIT_WHITELIST";
1054
944
  data: {
1055
945
  name: string;
1056
- description: string | null;
1057
- members: string[];
946
+ addresses: {
947
+ name: string;
948
+ currency: string;
949
+ address: string;
950
+ destinationTag?: string | undefined;
951
+ }[];
1058
952
  };
1059
953
  id: string;
1060
954
  legacyId: number;
@@ -1086,8 +980,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1086
980
  retryAfter: Date;
1087
981
  } | undefined;
1088
982
  } | {
1089
- type: "REVOKE_GROUP";
1090
- data: Record<string, never>;
983
+ type: "CREATE_ENTITY";
984
+ data: {
985
+ name: string;
986
+ accountIds: string[];
987
+ memberIds: string[];
988
+ };
1091
989
  id: string;
1092
990
  legacyId: number;
1093
991
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1118,17 +1016,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1118
1016
  retryAfter: Date;
1119
1017
  } | undefined;
1120
1018
  } | {
1121
- type: "CREATE_WHITELIST";
1019
+ type: "EDIT_ENTITY";
1122
1020
  data: {
1123
1021
  name: string;
1124
- description: string | null;
1125
- addresses: {
1126
- name: string;
1127
- currency: string;
1128
- address: string;
1129
- destinationTag?: string | undefined;
1130
- }[];
1131
- type: "SMART_CONTRACT" | "TRANSACTION";
1022
+ accountIds: string[];
1023
+ memberIds: string[];
1132
1024
  };
1133
1025
  id: string;
1134
1026
  legacyId: number;
@@ -1160,16 +1052,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1160
1052
  retryAfter: Date;
1161
1053
  } | undefined;
1162
1054
  } | {
1163
- type: "EDIT_WHITELIST";
1164
- data: {
1165
- name: string;
1166
- addresses: {
1167
- name: string;
1168
- currency: string;
1169
- address: string;
1170
- destinationTag?: string | undefined;
1171
- }[];
1172
- };
1055
+ type: "REVOKE_ENTITY";
1056
+ data: Record<string, never>;
1173
1057
  id: string;
1174
1058
  legacyId: number;
1175
1059
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1200,11 +1084,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1200
1084
  retryAfter: Date;
1201
1085
  } | undefined;
1202
1086
  } | {
1203
- type: "CREATE_ENTITY";
1087
+ type: "CREATE_PSD_USER";
1204
1088
  data: {
1205
- name: string;
1206
- accountIds: string[];
1207
- memberIds: string[];
1089
+ registrationId: string;
1208
1090
  };
1209
1091
  id: string;
1210
1092
  legacyId: number;
@@ -1236,11 +1118,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1236
1118
  retryAfter: Date;
1237
1119
  } | undefined;
1238
1120
  } | {
1239
- type: "EDIT_ENTITY";
1121
+ type: "CREATE_API_USER";
1240
1122
  data: {
1241
1123
  name: string;
1242
- accountIds: string[];
1243
- memberIds: string[];
1124
+ pubKey: string;
1125
+ role: "ADMIN" | "OPERATOR";
1126
+ viewAll?: boolean | undefined;
1244
1127
  };
1245
1128
  id: string;
1246
1129
  legacyId: number;
@@ -1272,7 +1155,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1272
1155
  retryAfter: Date;
1273
1156
  } | undefined;
1274
1157
  } | {
1275
- type: "REVOKE_ENTITY";
1158
+ type: "REVOKE_USER";
1276
1159
  data: Record<string, never>;
1277
1160
  id: string;
1278
1161
  legacyId: number;
@@ -1304,9 +1187,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1304
1187
  retryAfter: Date;
1305
1188
  } | undefined;
1306
1189
  } | {
1307
- type: "CREATE_PSD_USER";
1190
+ type: "EDIT_WORKSPACE_RULE";
1308
1191
  data: {
1309
- registrationId: string;
1192
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
1193
+ reviewConfig: {
1194
+ quorum: number;
1195
+ userIds: string[];
1196
+ }[];
1310
1197
  };
1311
1198
  id: string;
1312
1199
  legacyId: number;
@@ -1338,12 +1225,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1338
1225
  retryAfter: Date;
1339
1226
  } | undefined;
1340
1227
  } | {
1341
- type: "CREATE_API_USER";
1228
+ type: "CREATE_POLICY";
1342
1229
  data: {
1343
1230
  name: string;
1344
- pubKey: string;
1345
- role: "ADMIN" | "OPERATOR";
1346
- viewAll?: boolean | undefined;
1231
+ description: string | null;
1232
+ asset: {
1233
+ network: string;
1234
+ contractAddress: string | null;
1235
+ tokenIdentifier: string | null;
1236
+ } | null;
1237
+ govRules: {
1238
+ reviewSteps: ({
1239
+ quorum: number;
1240
+ userIds: string[];
1241
+ } | {
1242
+ quorum: number;
1243
+ groupId: string;
1244
+ })[];
1245
+ threshold?: {
1246
+ min: string | null;
1247
+ max: string | null;
1248
+ } | undefined;
1249
+ whitelistIds?: string[] | undefined;
1250
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1251
+ }[];
1347
1252
  };
1348
1253
  id: string;
1349
1254
  legacyId: number;
@@ -1375,9 +1280,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1375
1280
  retryAfter: Date;
1376
1281
  } | undefined;
1377
1282
  } | {
1378
- type: "CREATE_API_USER_ACCESS";
1283
+ type: "EDIT_POLICY";
1379
1284
  data: {
1380
1285
  name: string;
1286
+ description: string | null;
1287
+ govRules: {
1288
+ reviewSteps: ({
1289
+ quorum: number;
1290
+ userIds: string[];
1291
+ } | {
1292
+ quorum: number;
1293
+ groupId: string;
1294
+ })[];
1295
+ threshold?: {
1296
+ min: string | null;
1297
+ max: string | null;
1298
+ } | undefined;
1299
+ whitelistIds?: string[] | undefined;
1300
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1301
+ }[];
1381
1302
  };
1382
1303
  id: string;
1383
1304
  legacyId: number;
@@ -1409,8 +1330,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1409
1330
  retryAfter: Date;
1410
1331
  } | undefined;
1411
1332
  } | {
1412
- type: "REVOKE_USER";
1413
- data: Record<string, never>;
1333
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
1334
+ data: null;
1414
1335
  id: string;
1415
1336
  legacyId: number;
1416
1337
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1441,10 +1362,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1441
1362
  retryAfter: Date;
1442
1363
  } | undefined;
1443
1364
  } | {
1444
- type: "EDIT_WORKSPACE_RULE";
1365
+ type: "TRADELINK_CREATE_CUSTODIAN";
1445
1366
  data: {
1446
- permission: "CREATE_ACCOUNT_WITH_POLICY";
1447
- reviewConfig: {
1367
+ settlement: {
1368
+ quorum: number;
1369
+ userIds: string[];
1370
+ }[];
1371
+ withdraw: {
1372
+ quorum: number;
1373
+ userIds: string[];
1374
+ }[];
1375
+ arbitration: {
1448
1376
  quorum: number;
1449
1377
  userIds: string[];
1450
1378
  }[];
@@ -1479,13 +1407,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1479
1407
  retryAfter: Date;
1480
1408
  } | undefined;
1481
1409
  } | {
1482
- type: "CREATE_SCICONFIG";
1410
+ type: "TRADELINK_EDIT_CUSTODIAN";
1483
1411
  data: {
1484
- account: string;
1485
- config: {
1486
- dapps: string[] | null;
1487
- customContractCallEnabled: boolean;
1488
- };
1412
+ settlement: {
1413
+ quorum: number;
1414
+ userIds: string[];
1415
+ }[];
1416
+ withdraw: {
1417
+ quorum: number;
1418
+ userIds: string[];
1419
+ }[];
1420
+ arbitration: {
1421
+ quorum: number;
1422
+ userIds: string[];
1423
+ }[];
1489
1424
  };
1490
1425
  id: string;
1491
1426
  legacyId: number;
@@ -1517,12 +1452,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1517
1452
  retryAfter: Date;
1518
1453
  } | undefined;
1519
1454
  } | {
1520
- type: "EDIT_SCICONFIG";
1455
+ type: "TRADELINK_CREATE_EXCHANGE";
1521
1456
  data: {
1522
- config: {
1523
- dapps: string[] | null;
1524
- customContractCallEnabled: boolean;
1525
- };
1457
+ tradelinkId: string;
1458
+ groups: {
1459
+ quorum: number;
1460
+ userIds: string[];
1461
+ }[];
1462
+ whitelist: {
1463
+ name: string;
1464
+ currency: string;
1465
+ address: string;
1466
+ }[];
1526
1467
  };
1527
1468
  id: string;
1528
1469
  legacyId: number;
@@ -1554,11 +1495,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1554
1495
  retryAfter: Date;
1555
1496
  } | undefined;
1556
1497
  } | {
1557
- type: "CREATE_API_KEY";
1498
+ type: "TRADELINK_EDIT_EXCHANGE";
1558
1499
  data: {
1559
- name: string;
1560
- entities: string[];
1561
- scopes: Record<string, never>;
1500
+ tradelinkId: string;
1501
+ groups: {
1502
+ quorum: number;
1503
+ userIds: string[];
1504
+ }[];
1505
+ whitelist: {
1506
+ name: string;
1507
+ currency: string;
1508
+ address: string;
1509
+ }[];
1562
1510
  };
1563
1511
  id: string;
1564
1512
  legacyId: number;
@@ -1590,11 +1538,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1590
1538
  retryAfter: Date;
1591
1539
  } | undefined;
1592
1540
  } | {
1593
- type: "EDIT_API_KEY";
1541
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
1594
1542
  data: {
1595
- name: string;
1596
- entities: string[];
1597
- scopes: Record<string, never>;
1543
+ tradelinkId: string;
1544
+ groups: {
1545
+ quorum: number;
1546
+ userIds: string[];
1547
+ }[];
1548
+ whitelist: {
1549
+ name: string;
1550
+ currency: string;
1551
+ address: string;
1552
+ }[];
1598
1553
  };
1599
1554
  id: string;
1600
1555
  legacyId: number;
@@ -1626,61 +1581,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1626
1581
  retryAfter: Date;
1627
1582
  } | undefined;
1628
1583
  } | {
1629
- type: "REVOKE_API_KEY";
1630
- data: Record<string, never>;
1631
- id: string;
1632
- legacyId: number;
1633
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1634
- reviewSteps: {
1635
- stageName: string;
1636
- quorum: number;
1637
- }[];
1638
- currentStepIndex: number;
1639
- expiresAt: Date;
1640
- targetId: string | null;
1641
- note: {
1642
- title: string;
1643
- content: string;
1644
- } | null;
1645
- reviews: {
1646
- stepIndex: number;
1647
- userId: string;
1648
- groupName: string | null;
1649
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1650
- createdAt: Date;
1651
- updatedAt: Date;
1652
- }[];
1653
- createdAt: Date;
1654
- updatedAt: Date;
1655
- createdById: string;
1656
- inflight?: {
1657
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1658
- retryAfter: Date;
1659
- } | undefined;
1660
- } | {
1661
- type: "CREATE_POLICY";
1584
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
1662
1585
  data: {
1663
- name: string;
1664
- description: string | null;
1665
- asset: {
1666
- network: string;
1667
- contractAddress: string | null;
1668
- tokenIdentifier: string | null;
1669
- } | null;
1670
- govRules: {
1671
- reviewSteps: ({
1672
- quorum: number;
1673
- userIds: string[];
1674
- } | {
1675
- quorum: number;
1676
- groupId: string;
1677
- })[];
1678
- threshold?: {
1679
- min: string | null;
1680
- max: string | null;
1681
- } | undefined;
1682
- whitelistIds?: string[] | undefined;
1683
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1586
+ tradelinkId: string;
1587
+ groups: {
1588
+ quorum: number;
1589
+ userIds: string[];
1590
+ }[];
1591
+ whitelist: {
1592
+ name: string;
1593
+ currency: string;
1594
+ address: string;
1684
1595
  }[];
1685
1596
  };
1686
1597
  id: string;
@@ -1713,25 +1624,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1713
1624
  retryAfter: Date;
1714
1625
  } | undefined;
1715
1626
  } | {
1716
- type: "EDIT_POLICY";
1627
+ type: "TRADELINK_ADJUST_PLEDGE";
1717
1628
  data: {
1718
- name: string;
1719
- description: string | null;
1720
- govRules: {
1721
- reviewSteps: ({
1722
- quorum: number;
1723
- userIds: string[];
1724
- } | {
1725
- quorum: number;
1726
- groupId: string;
1727
- })[];
1728
- threshold?: {
1729
- min: string | null;
1730
- max: string | null;
1731
- } | undefined;
1732
- whitelistIds?: string[] | undefined;
1733
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1734
- }[];
1629
+ accountId: string;
1630
+ exchangeId: string;
1631
+ amount: string;
1735
1632
  };
1736
1633
  id: string;
1737
1634
  legacyId: number;
@@ -1763,8 +1660,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1763
1660
  retryAfter: Date;
1764
1661
  } | undefined;
1765
1662
  } | {
1766
- type: "TRADELINK_ACTIVATE_ACCOUNT";
1767
- data: null;
1663
+ type: "TRADELINK_REPLEDGE";
1664
+ data: {
1665
+ accountId: string;
1666
+ exchangeId: string;
1667
+ amount: string;
1668
+ };
1768
1669
  id: string;
1769
1670
  legacyId: number;
1770
1671
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1795,151 +1696,128 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1795
1696
  retryAfter: Date;
1796
1697
  } | undefined;
1797
1698
  } | {
1798
- type: "TRADELINK_CREATE_CUSTODIAN";
1699
+ type: "TRADELINK_CREATE_SETTLEMENT";
1799
1700
  data: {
1800
- settlement: {
1801
- quorum: number;
1802
- userIds: string[];
1803
- }[];
1804
- withdraw: {
1805
- quorum: number;
1806
- userIds: string[];
1807
- }[];
1808
- arbitration: {
1809
- quorum: number;
1810
- userIds: string[];
1811
- }[];
1812
- };
1813
- id: string;
1814
- legacyId: number;
1815
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1816
- reviewSteps: {
1817
- stageName: string;
1818
- quorum: number;
1819
- }[];
1820
- currentStepIndex: number;
1821
- expiresAt: Date;
1822
- targetId: string | null;
1823
- note: {
1824
- title: string;
1825
- content: string;
1826
- } | null;
1827
- reviews: {
1828
- stepIndex: number;
1829
- userId: string;
1830
- groupName: string | null;
1831
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1832
- createdAt: Date;
1833
- updatedAt: Date;
1834
- }[];
1835
- createdAt: Date;
1836
- updatedAt: Date;
1837
- createdById: string;
1838
- inflight?: {
1839
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1840
- retryAfter: Date;
1841
- } | undefined;
1842
- } | {
1843
- type: "TRADELINK_EDIT_CUSTODIAN";
1844
- data: {
1845
- settlement: {
1846
- quorum: number;
1847
- userIds: string[];
1848
- }[];
1849
- withdraw: {
1850
- quorum: number;
1851
- userIds: string[];
1852
- }[];
1853
- arbitration: {
1854
- quorum: number;
1855
- userIds: string[];
1856
- }[];
1857
- };
1858
- id: string;
1859
- legacyId: number;
1860
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1861
- reviewSteps: {
1862
- stageName: string;
1863
- quorum: number;
1864
- }[];
1865
- currentStepIndex: number;
1866
- expiresAt: Date;
1867
- targetId: string | null;
1868
- note: {
1869
- title: string;
1870
- content: string;
1871
- } | null;
1872
- reviews: {
1873
- stepIndex: number;
1874
- userId: string;
1875
- groupName: string | null;
1876
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1877
- createdAt: Date;
1878
- updatedAt: Date;
1879
- }[];
1880
- createdAt: Date;
1881
- updatedAt: Date;
1882
- createdById: string;
1883
- inflight?: {
1884
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1885
- retryAfter: Date;
1886
- } | undefined;
1887
- } | {
1888
- type: "TRADELINK_CREATE_EXCHANGE";
1889
- data: {
1890
- tradelinkId: string;
1891
- groups: {
1892
- quorum: number;
1893
- userIds: string[];
1894
- }[];
1895
- whitelist: {
1896
- name: string;
1701
+ accountId: string;
1702
+ exchangeId: string;
1703
+ transaction: {
1704
+ amount: string;
1897
1705
  currency: string;
1898
- address: string;
1899
- }[];
1900
- };
1901
- id: string;
1902
- legacyId: number;
1903
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1904
- reviewSteps: {
1905
- stageName: string;
1906
- quorum: number;
1907
- }[];
1908
- currentStepIndex: number;
1909
- expiresAt: Date;
1910
- targetId: string | null;
1911
- note: {
1912
- title: string;
1913
- content: string;
1914
- } | null;
1915
- reviews: {
1916
- stepIndex: number;
1917
- userId: string;
1918
- groupName: string | null;
1919
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1920
- createdAt: Date;
1921
- updatedAt: Date;
1922
- }[];
1923
- createdAt: Date;
1924
- updatedAt: Date;
1925
- createdById: string;
1926
- inflight?: {
1927
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1928
- retryAfter: Date;
1929
- } | undefined;
1930
- } | {
1931
- type: "TRADELINK_EDIT_EXCHANGE";
1932
- data: {
1933
- tradelinkId: string;
1934
- groups: {
1935
- quorum: number;
1936
- userIds: string[];
1937
- }[];
1938
- whitelist: {
1939
- name: string;
1706
+ maxFee: string | null;
1707
+ recipient: string;
1708
+ type: "TEZOS_LIKE_SEND";
1709
+ feeStrategy: {
1710
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1711
+ };
1712
+ } | {
1713
+ amount: string;
1940
1714
  currency: string;
1941
- address: string;
1942
- }[];
1715
+ maxFee: string | null;
1716
+ recipient: string;
1717
+ type: "BITCOIN_LIKE_SEND";
1718
+ feeStrategy: {
1719
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1720
+ feePerByte?: string | null | undefined;
1721
+ };
1722
+ } | {
1723
+ amount: string;
1724
+ currency: string;
1725
+ recipient: string;
1726
+ executeBeforeSeconds?: number | undefined;
1727
+ reason: string | null;
1728
+ type: "CANTON_LIKE_SEND";
1729
+ } | {
1730
+ amount: string;
1731
+ currency: string;
1732
+ maxFee: string | null;
1733
+ recipient: string;
1734
+ type: "CARDANO_LIKE_SEND";
1735
+ feeStrategy: {
1736
+ type: "FAST" | "NORMAL" | "SLOW";
1737
+ };
1738
+ } | {
1739
+ amount: string;
1740
+ currency: string;
1741
+ maxFee: string | null;
1742
+ recipient: string;
1743
+ replacingTxHash?: string | undefined;
1744
+ type: "ETHEREUM_LIKE_SEND";
1745
+ feeStrategy: {
1746
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1747
+ gasPrice: string;
1748
+ gasLimit: string;
1749
+ } | {
1750
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1751
+ maxPriorityFeePerGas: string;
1752
+ maxFeePerGas: string;
1753
+ gasLimit: string;
1754
+ };
1755
+ } | {
1756
+ amount: string;
1757
+ currency: string;
1758
+ maxFee: string | null;
1759
+ recipient: string;
1760
+ type: "HEDERA_LIKE_SEND";
1761
+ feeStrategy: {
1762
+ type: "FAST" | "NORMAL" | "SLOW";
1763
+ };
1764
+ } | {
1765
+ amount: string;
1766
+ currency: string;
1767
+ maxFee: string | null;
1768
+ recipient: string;
1769
+ type: "POLKADOT_LIKE_SEND";
1770
+ } | {
1771
+ amount: string;
1772
+ currency: string;
1773
+ maxFee: string | null;
1774
+ recipient: string;
1775
+ type: "RIPPLE_LIKE_SEND";
1776
+ destinationTag: string | null;
1777
+ feeStrategy: {
1778
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1779
+ };
1780
+ } | {
1781
+ amount: string;
1782
+ currency: string;
1783
+ maxFee: string | null;
1784
+ recipient: string;
1785
+ type: "SOLANA_LIKE_SEND";
1786
+ feeStrategy: {
1787
+ type: "FAST" | "NORMAL" | "SLOW";
1788
+ };
1789
+ } | {
1790
+ amount: string;
1791
+ currency: string;
1792
+ maxFee: string | null;
1793
+ recipient: string;
1794
+ type: "STELLAR_LIKE_SEND";
1795
+ memo: {
1796
+ type: "MEMO_TEXT";
1797
+ value: string;
1798
+ } | {
1799
+ type: "MEMO_ID";
1800
+ value: string;
1801
+ } | {
1802
+ type: "MEMO_HASH";
1803
+ value: string;
1804
+ } | {
1805
+ type: "MEMO_RETURN";
1806
+ value: string;
1807
+ } | null;
1808
+ feeStrategy: {
1809
+ type: "FAST" | "NORMAL" | "SLOW";
1810
+ };
1811
+ } | {
1812
+ amount: string;
1813
+ currency: string;
1814
+ maxFee: string | null;
1815
+ recipient: string;
1816
+ type: "SUI_LIKE_SEND";
1817
+ feeStrategy: {
1818
+ type: "FAST" | "NORMAL" | "SLOW";
1819
+ };
1820
+ };
1943
1821
  };
1944
1822
  id: string;
1945
1823
  legacyId: number;
@@ -1971,18 +1849,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1971
1849
  retryAfter: Date;
1972
1850
  } | undefined;
1973
1851
  } | {
1974
- type: "TRADELINK_CREATE_ASSET_MANAGER";
1852
+ type: "TRADELINK_FORCE_UNPLEDGE";
1975
1853
  data: {
1976
- tradelinkId: string;
1977
- groups: {
1978
- quorum: number;
1979
- userIds: string[];
1980
- }[];
1981
- whitelist: {
1982
- name: string;
1983
- currency: string;
1984
- address: string;
1985
- }[];
1854
+ accountId: string;
1855
+ exchangeId: string;
1986
1856
  };
1987
1857
  id: string;
1988
1858
  legacyId: number;
@@ -2014,126 +1884,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2014
1884
  retryAfter: Date;
2015
1885
  } | undefined;
2016
1886
  } | {
2017
- type: "TRADELINK_EDIT_ASSET_MANAGER";
1887
+ type: "TRADELINK_WITHDRAW";
2018
1888
  data: {
2019
- tradelinkId: string;
2020
- groups: {
2021
- quorum: number;
2022
- userIds: string[];
2023
- }[];
2024
- whitelist: {
2025
- name: string;
1889
+ accountId: string;
1890
+ transaction: {
1891
+ amount: string;
2026
1892
  currency: string;
2027
- address: string;
2028
- }[];
2029
- };
2030
- id: string;
2031
- legacyId: number;
2032
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2033
- reviewSteps: {
2034
- stageName: string;
2035
- quorum: number;
2036
- }[];
2037
- currentStepIndex: number;
2038
- expiresAt: Date;
2039
- targetId: string | null;
2040
- note: {
2041
- title: string;
2042
- content: string;
2043
- } | null;
2044
- reviews: {
2045
- stepIndex: number;
2046
- userId: string;
2047
- groupName: string | null;
2048
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2049
- createdAt: Date;
2050
- updatedAt: Date;
2051
- }[];
2052
- createdAt: Date;
2053
- updatedAt: Date;
2054
- createdById: string;
2055
- inflight?: {
2056
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2057
- retryAfter: Date;
2058
- } | undefined;
2059
- } | {
2060
- type: "TRADELINK_ADJUST_PLEDGE";
2061
- data: {
2062
- accountId: string;
2063
- exchangeId: string;
2064
- amount: string;
2065
- };
2066
- id: string;
2067
- legacyId: number;
2068
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2069
- reviewSteps: {
2070
- stageName: string;
2071
- quorum: number;
2072
- }[];
2073
- currentStepIndex: number;
2074
- expiresAt: Date;
2075
- targetId: string | null;
2076
- note: {
2077
- title: string;
2078
- content: string;
2079
- } | null;
2080
- reviews: {
2081
- stepIndex: number;
2082
- userId: string;
2083
- groupName: string | null;
2084
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2085
- createdAt: Date;
2086
- updatedAt: Date;
2087
- }[];
2088
- createdAt: Date;
2089
- updatedAt: Date;
2090
- createdById: string;
2091
- inflight?: {
2092
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2093
- retryAfter: Date;
2094
- } | undefined;
2095
- } | {
2096
- type: "TRADELINK_REPLEDGE";
2097
- data: {
2098
- accountId: string;
2099
- exchangeId: string;
2100
- amount: string;
2101
- };
2102
- id: string;
2103
- legacyId: number;
2104
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2105
- reviewSteps: {
2106
- stageName: string;
2107
- quorum: number;
2108
- }[];
2109
- currentStepIndex: number;
2110
- expiresAt: Date;
2111
- targetId: string | null;
2112
- note: {
2113
- title: string;
2114
- content: string;
2115
- } | null;
2116
- reviews: {
2117
- stepIndex: number;
2118
- userId: string;
2119
- groupName: string | null;
2120
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2121
- createdAt: Date;
2122
- updatedAt: Date;
2123
- }[];
2124
- createdAt: Date;
2125
- updatedAt: Date;
2126
- createdById: string;
2127
- inflight?: {
2128
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2129
- retryAfter: Date;
2130
- } | undefined;
2131
- } | {
2132
- type: "TRADELINK_CREATE_SETTLEMENT";
2133
- data: {
2134
- accountId: string;
2135
- exchangeId: string;
2136
- transaction: {
1893
+ maxFee: string | null;
1894
+ recipient: string;
1895
+ type: "TEZOS_LIKE_SEND";
1896
+ feeStrategy: {
1897
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1898
+ };
1899
+ } | {
2137
1900
  amount: string;
2138
1901
  currency: string;
2139
1902
  maxFee: string | null;
@@ -2241,15 +2004,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2241
2004
  feeStrategy: {
2242
2005
  type: "FAST" | "NORMAL" | "SLOW";
2243
2006
  };
2244
- } | {
2245
- amount: string;
2246
- currency: string;
2247
- maxFee: string | null;
2248
- recipient: string;
2249
- type: "TEZOS_LIKE_SEND";
2250
- feeStrategy: {
2251
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2252
- };
2253
2007
  };
2254
2008
  };
2255
2009
  id: string;
@@ -2282,45 +2036,19 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2282
2036
  retryAfter: Date;
2283
2037
  } | undefined;
2284
2038
  } | {
2285
- type: "TRADELINK_FORCE_UNPLEDGE";
2286
- data: {
2287
- accountId: string;
2288
- exchangeId: string;
2289
- };
2290
- id: string;
2291
- legacyId: number;
2292
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2293
- reviewSteps: {
2294
- stageName: string;
2295
- quorum: number;
2296
- }[];
2297
- currentStepIndex: number;
2298
- expiresAt: Date;
2299
- targetId: string | null;
2300
- note: {
2301
- title: string;
2302
- content: string;
2303
- } | null;
2304
- reviews: {
2305
- stepIndex: number;
2306
- userId: string;
2307
- groupName: string | null;
2308
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2309
- createdAt: Date;
2310
- updatedAt: Date;
2311
- }[];
2312
- createdAt: Date;
2313
- updatedAt: Date;
2314
- createdById: string;
2315
- inflight?: {
2316
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2317
- retryAfter: Date;
2318
- } | undefined;
2319
- } | {
2320
- type: "TRADELINK_WITHDRAW";
2039
+ type: "TRADELINK_ARBITRATE";
2321
2040
  data: {
2322
2041
  accountId: string;
2323
2042
  transaction: {
2043
+ amount: string;
2044
+ currency: string;
2045
+ maxFee: string | null;
2046
+ recipient: string;
2047
+ type: "TEZOS_LIKE_SEND";
2048
+ feeStrategy: {
2049
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2050
+ };
2051
+ } | {
2324
2052
  amount: string;
2325
2053
  currency: string;
2326
2054
  maxFee: string | null;
@@ -2428,15 +2156,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2428
2156
  feeStrategy: {
2429
2157
  type: "FAST" | "NORMAL" | "SLOW";
2430
2158
  };
2431
- } | {
2432
- amount: string;
2433
- currency: string;
2434
- maxFee: string | null;
2435
- recipient: string;
2436
- type: "TEZOS_LIKE_SEND";
2437
- feeStrategy: {
2438
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2439
- };
2440
2159
  };
2441
2160
  };
2442
2161
  id: string;
@@ -2469,127 +2188,378 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2469
2188
  retryAfter: Date;
2470
2189
  } | undefined;
2471
2190
  } | {
2472
- type: "TRADELINK_ARBITRATE";
2191
+ type: "SIGN_MESSAGE";
2473
2192
  data: {
2474
- accountId: string;
2475
- transaction: {
2476
- amount: string;
2477
- currency: string;
2478
- maxFee: string | null;
2479
- recipient: string;
2480
- type: "BITCOIN_LIKE_SEND";
2481
- feeStrategy: {
2482
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2483
- feePerByte?: string | null | undefined;
2484
- };
2485
- } | {
2486
- amount: string;
2487
- currency: string;
2488
- recipient: string;
2489
- executeBeforeSeconds?: number | undefined;
2490
- reason: string | null;
2491
- type: "CANTON_LIKE_SEND";
2492
- } | {
2493
- amount: string;
2494
- currency: string;
2495
- maxFee: string | null;
2496
- recipient: string;
2497
- type: "CARDANO_LIKE_SEND";
2498
- feeStrategy: {
2499
- type: "FAST" | "NORMAL" | "SLOW";
2500
- };
2501
- } | {
2502
- amount: string;
2503
- currency: string;
2504
- maxFee: string | null;
2505
- recipient: string;
2506
- replacingTxHash?: string | undefined;
2507
- type: "ETHEREUM_LIKE_SEND";
2508
- feeStrategy: {
2509
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2510
- gasPrice: string;
2511
- gasLimit: string;
2512
- } | {
2513
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2514
- maxPriorityFeePerGas: string;
2515
- maxFeePerGas: string;
2516
- gasLimit: string;
2517
- };
2193
+ message: {
2194
+ type: "EIP191";
2195
+ data: string;
2518
2196
  } | {
2519
- amount: string;
2520
- currency: string;
2521
- maxFee: string | null;
2522
- recipient: string;
2523
- type: "HEDERA_LIKE_SEND";
2524
- feeStrategy: {
2525
- type: "FAST" | "NORMAL" | "SLOW";
2197
+ type: "EIP712";
2198
+ data: {
2199
+ types: Record<string, {
2200
+ name: string;
2201
+ type: string;
2202
+ }[]>;
2203
+ primaryType: string;
2204
+ domain: Record<string, any>;
2205
+ message: Record<string, any>;
2526
2206
  };
2527
2207
  } | {
2528
- amount: string;
2529
- currency: string;
2530
- maxFee: string | null;
2531
- recipient: string;
2532
- type: "POLKADOT_LIKE_SEND";
2208
+ type: "CIP8";
2209
+ data: string;
2210
+ signingKey: "PAYMENT" | "STAKE";
2533
2211
  } | {
2534
- amount: string;
2535
- currency: string;
2536
- maxFee: string | null;
2537
- recipient: string;
2538
- type: "RIPPLE_LIKE_SEND";
2539
- destinationTag: string | null;
2540
- feeStrategy: {
2541
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2542
- };
2543
- } | {
2544
- amount: string;
2545
- currency: string;
2546
- maxFee: string | null;
2547
- recipient: string;
2548
- type: "SOLANA_LIKE_SEND";
2549
- feeStrategy: {
2550
- type: "FAST" | "NORMAL" | "SLOW";
2551
- };
2552
- } | {
2553
- amount: string;
2554
- currency: string;
2555
- maxFee: string | null;
2556
- recipient: string;
2557
- type: "STELLAR_LIKE_SEND";
2558
- memo: {
2559
- type: "MEMO_TEXT";
2560
- value: string;
2561
- } | {
2562
- type: "MEMO_ID";
2563
- value: string;
2564
- } | {
2565
- type: "MEMO_HASH";
2566
- value: string;
2212
+ type: "BIP137";
2213
+ data: string;
2214
+ };
2215
+ accountId: string;
2216
+ address: string;
2217
+ derivationPath: string;
2218
+ };
2219
+ id: string;
2220
+ legacyId: number;
2221
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2222
+ reviewSteps: {
2223
+ stageName: string;
2224
+ quorum: number;
2225
+ }[];
2226
+ currentStepIndex: number;
2227
+ expiresAt: Date;
2228
+ targetId: string | null;
2229
+ note: {
2230
+ title: string;
2231
+ content: string;
2232
+ } | null;
2233
+ reviews: {
2234
+ stepIndex: number;
2235
+ userId: string;
2236
+ groupName: string | null;
2237
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2238
+ createdAt: Date;
2239
+ updatedAt: Date;
2240
+ }[];
2241
+ createdAt: Date;
2242
+ updatedAt: Date;
2243
+ createdById: string;
2244
+ inflight?: {
2245
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2246
+ retryAfter: Date;
2247
+ } | undefined;
2248
+ } | {
2249
+ type: "CREATE_ACCOUNT";
2250
+ data: {
2251
+ name: string;
2252
+ currency: string;
2253
+ contractAddress: string | null;
2254
+ tokenIdentifier: string | null;
2255
+ bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
2256
+ governance: {
2257
+ type: "CLASSIC";
2258
+ policy: {
2259
+ policyId: string;
2567
2260
  } | {
2568
- type: "MEMO_RETURN";
2569
- value: string;
2570
- } | null;
2571
- feeStrategy: {
2572
- type: "FAST" | "NORMAL" | "SLOW";
2261
+ rules: {
2262
+ reviewSteps: ({
2263
+ quorum: number;
2264
+ userIds: string[];
2265
+ } | {
2266
+ quorum: number;
2267
+ groupId: string;
2268
+ })[];
2269
+ threshold?: {
2270
+ min: string | null;
2271
+ max: string | null;
2272
+ } | undefined;
2273
+ whitelistIds?: string[] | undefined;
2274
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
2275
+ }[];
2573
2276
  };
2574
2277
  } | {
2575
- amount: string;
2576
- currency: string;
2577
- maxFee: string | null;
2578
- recipient: string;
2579
- type: "SUI_LIKE_SEND";
2580
- feeStrategy: {
2581
- type: "FAST" | "NORMAL" | "SLOW";
2582
- };
2278
+ type: "TRADELINK";
2279
+ assetManagerId: string;
2280
+ exchangeConfigs: {
2281
+ exchangeId: string;
2282
+ repledgeAuthorized: boolean;
2283
+ needsAssetManagerApprovalForSettlements: boolean;
2284
+ }[];
2583
2285
  } | {
2584
- amount: string;
2585
- currency: string;
2586
- maxFee: string | null;
2587
- recipient: string;
2588
- type: "TEZOS_LIKE_SEND";
2589
- feeStrategy: {
2590
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2286
+ type: "RAW_SIGNING";
2287
+ policy: {
2288
+ rules: {
2289
+ operationType: "SIGN_DIGESTS";
2290
+ reviewSteps: {
2291
+ quorum: number;
2292
+ userIds: string[];
2293
+ }[];
2294
+ }[];
2591
2295
  };
2592
2296
  };
2297
+ index: number;
2298
+ derivationPath: string;
2299
+ 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";
2300
+ };
2301
+ id: string;
2302
+ legacyId: number;
2303
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2304
+ reviewSteps: {
2305
+ stageName: string;
2306
+ quorum: number;
2307
+ }[];
2308
+ currentStepIndex: number;
2309
+ expiresAt: Date;
2310
+ targetId: string | null;
2311
+ note: {
2312
+ title: string;
2313
+ content: string;
2314
+ } | null;
2315
+ reviews: {
2316
+ stepIndex: number;
2317
+ userId: string;
2318
+ groupName: string | null;
2319
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2320
+ createdAt: Date;
2321
+ updatedAt: Date;
2322
+ }[];
2323
+ createdAt: Date;
2324
+ updatedAt: Date;
2325
+ createdById: string;
2326
+ inflight?: {
2327
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2328
+ retryAfter: Date;
2329
+ } | undefined;
2330
+ } | {
2331
+ type: "EDIT_TOKEN_RULE";
2332
+ data: {
2333
+ parentAccountId: string;
2334
+ contractAddress: string;
2335
+ rules: {
2336
+ reviewSteps: ({
2337
+ quorum: number;
2338
+ userIds: string[];
2339
+ } | {
2340
+ quorum: number;
2341
+ groupId: string;
2342
+ })[];
2343
+ threshold?: {
2344
+ min: string | null;
2345
+ max: string | null;
2346
+ } | undefined;
2347
+ whitelistIds?: string[] | undefined;
2348
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
2349
+ }[];
2350
+ };
2351
+ id: string;
2352
+ legacyId: number;
2353
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2354
+ reviewSteps: {
2355
+ stageName: string;
2356
+ quorum: number;
2357
+ }[];
2358
+ currentStepIndex: number;
2359
+ expiresAt: Date;
2360
+ targetId: string | null;
2361
+ note: {
2362
+ title: string;
2363
+ content: string;
2364
+ } | null;
2365
+ reviews: {
2366
+ stepIndex: number;
2367
+ userId: string;
2368
+ groupName: string | null;
2369
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2370
+ createdAt: Date;
2371
+ updatedAt: Date;
2372
+ }[];
2373
+ createdAt: Date;
2374
+ updatedAt: Date;
2375
+ createdById: string;
2376
+ inflight?: {
2377
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2378
+ retryAfter: Date;
2379
+ } | undefined;
2380
+ } | {
2381
+ type: "REVOKE_GROUP";
2382
+ data: Record<string, never>;
2383
+ id: string;
2384
+ legacyId: number;
2385
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2386
+ reviewSteps: {
2387
+ stageName: string;
2388
+ quorum: number;
2389
+ }[];
2390
+ currentStepIndex: number;
2391
+ expiresAt: Date;
2392
+ targetId: string | null;
2393
+ note: {
2394
+ title: string;
2395
+ content: string;
2396
+ } | null;
2397
+ reviews: {
2398
+ stepIndex: number;
2399
+ userId: string;
2400
+ groupName: string | null;
2401
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2402
+ createdAt: Date;
2403
+ updatedAt: Date;
2404
+ }[];
2405
+ createdAt: Date;
2406
+ updatedAt: Date;
2407
+ createdById: string;
2408
+ inflight?: {
2409
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2410
+ retryAfter: Date;
2411
+ } | undefined;
2412
+ } | {
2413
+ type: "CREATE_API_USER_ACCESS";
2414
+ data: {
2415
+ name: string;
2416
+ };
2417
+ id: string;
2418
+ legacyId: number;
2419
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2420
+ reviewSteps: {
2421
+ stageName: string;
2422
+ quorum: number;
2423
+ }[];
2424
+ currentStepIndex: number;
2425
+ expiresAt: Date;
2426
+ targetId: string | null;
2427
+ note: {
2428
+ title: string;
2429
+ content: string;
2430
+ } | null;
2431
+ reviews: {
2432
+ stepIndex: number;
2433
+ userId: string;
2434
+ groupName: string | null;
2435
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2436
+ createdAt: Date;
2437
+ updatedAt: Date;
2438
+ }[];
2439
+ createdAt: Date;
2440
+ updatedAt: Date;
2441
+ createdById: string;
2442
+ inflight?: {
2443
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2444
+ retryAfter: Date;
2445
+ } | undefined;
2446
+ } | {
2447
+ type: "CREATE_SCICONFIG";
2448
+ data: {
2449
+ account: string;
2450
+ config: {
2451
+ dapps: string[] | null;
2452
+ customContractCallEnabled: boolean;
2453
+ };
2454
+ };
2455
+ id: string;
2456
+ legacyId: number;
2457
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2458
+ reviewSteps: {
2459
+ stageName: string;
2460
+ quorum: number;
2461
+ }[];
2462
+ currentStepIndex: number;
2463
+ expiresAt: Date;
2464
+ targetId: string | null;
2465
+ note: {
2466
+ title: string;
2467
+ content: string;
2468
+ } | null;
2469
+ reviews: {
2470
+ stepIndex: number;
2471
+ userId: string;
2472
+ groupName: string | null;
2473
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2474
+ createdAt: Date;
2475
+ updatedAt: Date;
2476
+ }[];
2477
+ createdAt: Date;
2478
+ updatedAt: Date;
2479
+ createdById: string;
2480
+ inflight?: {
2481
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2482
+ retryAfter: Date;
2483
+ } | undefined;
2484
+ } | {
2485
+ type: "EDIT_SCICONFIG";
2486
+ data: {
2487
+ config: {
2488
+ dapps: string[] | null;
2489
+ customContractCallEnabled: boolean;
2490
+ };
2491
+ };
2492
+ id: string;
2493
+ legacyId: number;
2494
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2495
+ reviewSteps: {
2496
+ stageName: string;
2497
+ quorum: number;
2498
+ }[];
2499
+ currentStepIndex: number;
2500
+ expiresAt: Date;
2501
+ targetId: string | null;
2502
+ note: {
2503
+ title: string;
2504
+ content: string;
2505
+ } | null;
2506
+ reviews: {
2507
+ stepIndex: number;
2508
+ userId: string;
2509
+ groupName: string | null;
2510
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2511
+ createdAt: Date;
2512
+ updatedAt: Date;
2513
+ }[];
2514
+ createdAt: Date;
2515
+ updatedAt: Date;
2516
+ createdById: string;
2517
+ inflight?: {
2518
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2519
+ retryAfter: Date;
2520
+ } | undefined;
2521
+ } | {
2522
+ type: "CREATE_API_KEY";
2523
+ data: {
2524
+ name: string;
2525
+ entities: string[];
2526
+ scopes: Record<string, never>;
2527
+ };
2528
+ id: string;
2529
+ legacyId: number;
2530
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2531
+ reviewSteps: {
2532
+ stageName: string;
2533
+ quorum: number;
2534
+ }[];
2535
+ currentStepIndex: number;
2536
+ expiresAt: Date;
2537
+ targetId: string | null;
2538
+ note: {
2539
+ title: string;
2540
+ content: string;
2541
+ } | null;
2542
+ reviews: {
2543
+ stepIndex: number;
2544
+ userId: string;
2545
+ groupName: string | null;
2546
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2547
+ createdAt: Date;
2548
+ updatedAt: Date;
2549
+ }[];
2550
+ createdAt: Date;
2551
+ updatedAt: Date;
2552
+ createdById: string;
2553
+ inflight?: {
2554
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2555
+ retryAfter: Date;
2556
+ } | undefined;
2557
+ } | {
2558
+ type: "EDIT_API_KEY";
2559
+ data: {
2560
+ name: string;
2561
+ entities: string[];
2562
+ scopes: Record<string, never>;
2593
2563
  };
2594
2564
  id: string;
2595
2565
  legacyId: number;
@@ -2620,6 +2590,38 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2620
2590
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2621
2591
  retryAfter: Date;
2622
2592
  } | undefined;
2593
+ } | {
2594
+ type: "REVOKE_API_KEY";
2595
+ data: Record<string, never>;
2596
+ id: string;
2597
+ legacyId: number;
2598
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2599
+ reviewSteps: {
2600
+ stageName: string;
2601
+ quorum: number;
2602
+ }[];
2603
+ currentStepIndex: number;
2604
+ expiresAt: Date;
2605
+ targetId: string | null;
2606
+ note: {
2607
+ title: string;
2608
+ content: string;
2609
+ } | null;
2610
+ reviews: {
2611
+ stepIndex: number;
2612
+ userId: string;
2613
+ groupName: string | null;
2614
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2615
+ createdAt: Date;
2616
+ updatedAt: Date;
2617
+ }[];
2618
+ createdAt: Date;
2619
+ updatedAt: Date;
2620
+ createdById: string;
2621
+ inflight?: {
2622
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2623
+ retryAfter: Date;
2624
+ } | undefined;
2623
2625
  })[];
2624
2626
  };
2625
2627
  meta: {
@@ -2643,6 +2645,44 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2643
2645
  };
2644
2646
  } & RateLimitMetricsMeta;
2645
2647
  }>;
2648
+ updateReportTaskResult: import("@trpc/server").TRPCMutationProcedure<{
2649
+ input: {
2650
+ taskId: string;
2651
+ result: {
2652
+ status: "COMPLETED";
2653
+ s3Region?: string | undefined;
2654
+ s3Bucket?: string | undefined;
2655
+ s3Key: string;
2656
+ } | {
2657
+ status: "FAILED";
2658
+ };
2659
+ };
2660
+ output: {
2661
+ id: string;
2662
+ generationTaskId: string;
2663
+ status: "COMPLETED" | "DELETED" | "FAILED" | "INITIAL" | "PURGED" | "SCHEDULED";
2664
+ };
2665
+ meta: {
2666
+ [x: string]: unknown;
2667
+ } & {
2668
+ openapi?: {
2669
+ enabled?: boolean;
2670
+ method: import("trpc-to-openapi").OpenApiMethod;
2671
+ path: `/${string}`;
2672
+ operationId?: string;
2673
+ summary?: string;
2674
+ description?: string;
2675
+ protect?: boolean;
2676
+ tags?: string[];
2677
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2678
+ deprecated?: boolean;
2679
+ requestHeaders?: import("zod").ZodObject;
2680
+ responseHeaders?: import("zod").ZodObject;
2681
+ successDescription?: string;
2682
+ errorResponses?: number[] | Record<number, string>;
2683
+ };
2684
+ } & RateLimitMetricsMeta;
2685
+ }>;
2646
2686
  }>>;
2647
2687
  backoffice: import("@trpc/server").TRPCBuiltRouter<{
2648
2688
  ctx: {
@@ -2675,6 +2715,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2675
2715
  updatedAt: Date;
2676
2716
  } | null;
2677
2717
  authorization: string | null;
2718
+ readOnly: boolean;
2678
2719
  activityTracer: ActivityTracer;
2679
2720
  };
2680
2721
  meta: {
@@ -2731,6 +2772,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2731
2772
  updatedAt: Date;
2732
2773
  } | null;
2733
2774
  authorization: string | null;
2775
+ readOnly: boolean;
2734
2776
  activityTracer: ActivityTracer;
2735
2777
  };
2736
2778
  meta: {
@@ -2887,6 +2929,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2887
2929
  updatedAt: Date;
2888
2930
  } | null;
2889
2931
  authorization: string | null;
2932
+ readOnly: boolean;
2890
2933
  activityTracer: ActivityTracer;
2891
2934
  };
2892
2935
  meta: {
@@ -3124,6 +3167,155 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3124
3167
  } & RateLimitMetricsMeta;
3125
3168
  }>;
3126
3169
  }>>;
3170
+ impersonations: import("@trpc/server").TRPCBuiltRouter<{
3171
+ ctx: {
3172
+ 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;
3173
+ 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;
3174
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
3175
+ debugAuthToken?: string;
3176
+ rootAuthToken?: string;
3177
+ prisma: ExtendedPrismaClient;
3178
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
3179
+ user: {
3180
+ id: string;
3181
+ workspaceName: string;
3182
+ name: string;
3183
+ authUserId: string | null;
3184
+ pubKey: string;
3185
+ deviceType: UserDeviceType;
3186
+ deviceUserId: string | null;
3187
+ hsmId: string | null;
3188
+ u2fKeyHandle: string | null;
3189
+ u2fPubKey: string | null;
3190
+ legacyViewAll: boolean;
3191
+ role: UserRole;
3192
+ status: ActivationStatus;
3193
+ isSuspended: boolean;
3194
+ gateType: GateUserType | null;
3195
+ gateId: number;
3196
+ syncId: string;
3197
+ createdAt: Date;
3198
+ updatedAt: Date;
3199
+ } | null;
3200
+ authorization: string | null;
3201
+ readOnly: boolean;
3202
+ activityTracer: ActivityTracer;
3203
+ };
3204
+ meta: {
3205
+ [x: string]: unknown;
3206
+ } & {
3207
+ openapi?: {
3208
+ enabled?: boolean;
3209
+ method: import("trpc-to-openapi").OpenApiMethod;
3210
+ path: `/${string}`;
3211
+ operationId?: string;
3212
+ summary?: string;
3213
+ description?: string;
3214
+ protect?: boolean;
3215
+ tags?: string[];
3216
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3217
+ deprecated?: boolean;
3218
+ requestHeaders?: import("zod").ZodObject;
3219
+ responseHeaders?: import("zod").ZodObject;
3220
+ successDescription?: string;
3221
+ errorResponses?: number[] | Record<number, string>;
3222
+ };
3223
+ } & RateLimitMetricsMeta;
3224
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3225
+ transformer: true;
3226
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3227
+ request: import("@trpc/server").TRPCMutationProcedure<{
3228
+ input: {
3229
+ targetUserId: string;
3230
+ reason: string;
3231
+ };
3232
+ output: {
3233
+ code: string;
3234
+ impersonationId: string;
3235
+ };
3236
+ meta: {
3237
+ [x: string]: unknown;
3238
+ } & {
3239
+ openapi?: {
3240
+ enabled?: boolean;
3241
+ method: import("trpc-to-openapi").OpenApiMethod;
3242
+ path: `/${string}`;
3243
+ operationId?: string;
3244
+ summary?: string;
3245
+ description?: string;
3246
+ protect?: boolean;
3247
+ tags?: string[];
3248
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3249
+ deprecated?: boolean;
3250
+ requestHeaders?: import("zod").ZodObject;
3251
+ responseHeaders?: import("zod").ZodObject;
3252
+ successDescription?: string;
3253
+ errorResponses?: number[] | Record<number, string>;
3254
+ };
3255
+ } & RateLimitMetricsMeta;
3256
+ }>;
3257
+ revoke: import("@trpc/server").TRPCMutationProcedure<{
3258
+ input: {
3259
+ impersonationId: string;
3260
+ };
3261
+ output: void;
3262
+ meta: {
3263
+ [x: string]: unknown;
3264
+ } & {
3265
+ openapi?: {
3266
+ enabled?: boolean;
3267
+ method: import("trpc-to-openapi").OpenApiMethod;
3268
+ path: `/${string}`;
3269
+ operationId?: string;
3270
+ summary?: string;
3271
+ description?: string;
3272
+ protect?: boolean;
3273
+ tags?: string[];
3274
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3275
+ deprecated?: boolean;
3276
+ requestHeaders?: import("zod").ZodObject;
3277
+ responseHeaders?: import("zod").ZodObject;
3278
+ successDescription?: string;
3279
+ errorResponses?: number[] | Record<number, string>;
3280
+ };
3281
+ } & RateLimitMetricsMeta;
3282
+ }>;
3283
+ listActive: import("@trpc/server").TRPCQueryProcedure<{
3284
+ input: {
3285
+ workspaceName?: string | undefined;
3286
+ };
3287
+ output: {
3288
+ id: string;
3289
+ operatorSub: string;
3290
+ operatorGroups: string[];
3291
+ targetUserId: string;
3292
+ workspaceName: string;
3293
+ reason: string;
3294
+ startedAt: Date;
3295
+ expiresAt: Date;
3296
+ }[];
3297
+ meta: {
3298
+ [x: string]: unknown;
3299
+ } & {
3300
+ openapi?: {
3301
+ enabled?: boolean;
3302
+ method: import("trpc-to-openapi").OpenApiMethod;
3303
+ path: `/${string}`;
3304
+ operationId?: string;
3305
+ summary?: string;
3306
+ description?: string;
3307
+ protect?: boolean;
3308
+ tags?: string[];
3309
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3310
+ deprecated?: boolean;
3311
+ requestHeaders?: import("zod").ZodObject;
3312
+ responseHeaders?: import("zod").ZodObject;
3313
+ successDescription?: string;
3314
+ errorResponses?: number[] | Record<number, string>;
3315
+ };
3316
+ } & RateLimitMetricsMeta;
3317
+ }>;
3318
+ }>>;
3127
3319
  users: import("@trpc/server").TRPCBuiltRouter<{
3128
3320
  ctx: {
3129
3321
  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;
@@ -3155,6 +3347,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3155
3347
  updatedAt: Date;
3156
3348
  } | null;
3157
3349
  authorization: string | null;
3350
+ readOnly: boolean;
3158
3351
  activityTracer: ActivityTracer;
3159
3352
  };
3160
3353
  meta: {
@@ -3267,6 +3460,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3267
3460
  updatedAt: Date;
3268
3461
  } | null;
3269
3462
  authorization: string | null;
3463
+ readOnly: boolean;
3270
3464
  activityTracer: ActivityTracer;
3271
3465
  };
3272
3466
  meta: {
@@ -3371,6 +3565,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3371
3565
  updatedAt: Date;
3372
3566
  } | null;
3373
3567
  authorization: string | null;
3568
+ readOnly: boolean;
3374
3569
  activityTracer: ActivityTracer;
3375
3570
  };
3376
3571
  meta: {
@@ -3551,6 +3746,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3551
3746
  updatedAt: Date;
3552
3747
  } | null;
3553
3748
  authorization: string | null;
3749
+ readOnly: boolean;
3554
3750
  activityTracer: ActivityTracer;
3555
3751
  };
3556
3752
  meta: {
@@ -3671,6 +3867,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3671
3867
  updatedAt: Date;
3672
3868
  } | null;
3673
3869
  authorization: string | null;
3870
+ readOnly: boolean;
3674
3871
  activityTracer: ActivityTracer;
3675
3872
  };
3676
3873
  meta: {
@@ -3783,6 +3980,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3783
3980
  updatedAt: Date;
3784
3981
  } | null;
3785
3982
  authorization: string | null;
3983
+ readOnly: boolean;
3786
3984
  activityTracer: ActivityTracer;
3787
3985
  };
3788
3986
  meta: {
@@ -3952,6 +4150,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3952
4150
  updatedAt: Date;
3953
4151
  } | null;
3954
4152
  authorization: string | null;
4153
+ readOnly: boolean;
3955
4154
  activityTracer: ActivityTracer;
3956
4155
  };
3957
4156
  meta: {
@@ -4055,6 +4254,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4055
4254
  updatedAt: Date;
4056
4255
  } | null;
4057
4256
  authorization: string | null;
4257
+ readOnly: boolean;
4058
4258
  activityTracer: ActivityTracer;
4059
4259
  };
4060
4260
  meta: {
@@ -4188,6 +4388,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4188
4388
  updatedAt: Date;
4189
4389
  } | null;
4190
4390
  authorization: string | null;
4391
+ readOnly: boolean;
4191
4392
  activityTracer: ActivityTracer;
4192
4393
  };
4193
4394
  meta: {
@@ -4241,6 +4442,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4241
4442
  data: {
4242
4443
  accountId: string;
4243
4444
  transaction: {
4445
+ amount: string;
4446
+ currency: string;
4447
+ maxFee: string | null;
4448
+ recipient: string;
4449
+ type: "TEZOS_LIKE_SEND";
4450
+ feeStrategy: {
4451
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4452
+ };
4453
+ } | {
4454
+ type: "TEZOS_LIKE_DELEGATE";
4455
+ currency: string;
4456
+ maxFee: string | null;
4457
+ recipient: string;
4458
+ feeStrategy: {
4459
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4460
+ };
4461
+ } | {
4462
+ type: "TEZOS_LIKE_UNDELEGATE";
4463
+ currency: string;
4464
+ maxFee: string | null;
4465
+ feeStrategy: {
4466
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4467
+ };
4468
+ } | {
4244
4469
  amount: string;
4245
4470
  currency: string;
4246
4471
  maxFee: string | null;
@@ -4465,10 +4690,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4465
4690
  };
4466
4691
  validatorPubKey: string;
4467
4692
  executionFee: string;
4468
- } | {
4469
- type: "GENERIC_TRANSACTION";
4470
- currency: string;
4471
- rawTx: string;
4472
4693
  } | {
4473
4694
  amount: string;
4474
4695
  currency: string;
@@ -4710,29 +4931,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4710
4931
  amount: string;
4711
4932
  useAllAmount: boolean;
4712
4933
  } | {
4713
- amount: string;
4714
- currency: string;
4715
- maxFee: string | null;
4716
- recipient: string;
4717
- type: "TEZOS_LIKE_SEND";
4718
- feeStrategy: {
4719
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4720
- };
4721
- } | {
4722
- type: "TEZOS_LIKE_DELEGATE";
4723
- currency: string;
4724
- maxFee: string | null;
4725
- recipient: string;
4726
- feeStrategy: {
4727
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4728
- };
4729
- } | {
4730
- type: "TEZOS_LIKE_UNDELEGATE";
4934
+ type: "GENERIC_TRANSACTION";
4731
4935
  currency: string;
4732
- maxFee: string | null;
4733
- feeStrategy: {
4734
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4735
- };
4936
+ rawTx: string;
4736
4937
  } | {
4737
4938
  amount: string;
4738
4939
  currency: string;
@@ -4816,154 +5017,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4816
5017
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4817
5018
  retryAfter: Date;
4818
5019
  } | undefined;
4819
- } | {
4820
- type: "SIGN_MESSAGE";
4821
- data: {
4822
- message: {
4823
- type: "EIP191";
4824
- data: string;
4825
- } | {
4826
- type: "EIP712";
4827
- data: {
4828
- types: Record<string, {
4829
- name: string;
4830
- type: string;
4831
- }[]>;
4832
- primaryType: string;
4833
- domain: Record<string, any>;
4834
- message: Record<string, any>;
4835
- };
4836
- } | {
4837
- type: "CIP8";
4838
- data: string;
4839
- signingKey: "PAYMENT" | "STAKE";
4840
- } | {
4841
- type: "BIP137";
4842
- data: string;
4843
- };
4844
- accountId: string;
4845
- address: string;
4846
- derivationPath: string;
4847
- };
4848
- id: string;
4849
- legacyId: number;
4850
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
4851
- reviewSteps: {
4852
- stageName: string;
4853
- quorum: number;
4854
- }[];
4855
- currentStepIndex: number;
4856
- expiresAt: Date;
4857
- targetId: string | null;
4858
- note: {
4859
- title: string;
4860
- content: string;
4861
- } | null;
4862
- reviews: {
4863
- stepIndex: number;
4864
- userId: string;
4865
- groupName: string | null;
4866
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
4867
- createdAt: Date;
4868
- updatedAt: Date;
4869
- }[];
4870
- createdAt: Date;
4871
- updatedAt: Date;
4872
- createdById: string;
4873
- inflight?: {
4874
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4875
- retryAfter: Date;
4876
- } | undefined;
4877
- } | {
4878
- type: "SIGN_DIGESTS";
4879
- data: {
4880
- accountId: string;
4881
- digests: {
4882
- digest: string;
4883
- derivationPath: string;
4884
- }[];
4885
- };
4886
- id: string;
4887
- legacyId: number;
4888
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
4889
- reviewSteps: {
4890
- stageName: string;
4891
- quorum: number;
4892
- }[];
4893
- currentStepIndex: number;
4894
- expiresAt: Date;
4895
- targetId: string | null;
4896
- note: {
4897
- title: string;
4898
- content: string;
4899
- } | null;
4900
- reviews: {
4901
- stepIndex: number;
4902
- userId: string;
4903
- groupName: string | null;
4904
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
4905
- createdAt: Date;
4906
- updatedAt: Date;
4907
- }[];
4908
- createdAt: Date;
4909
- updatedAt: Date;
4910
- createdById: string;
4911
- inflight?: {
4912
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4913
- retryAfter: Date;
4914
- } | undefined;
4915
- } | {
4916
- type: "CREATE_ACCOUNT";
4917
- data: {
4918
- name: string;
4919
- currency: string;
4920
- contractAddress: string | null;
4921
- tokenIdentifier: string | null;
4922
- bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
4923
- governance: {
4924
- type: "CLASSIC";
4925
- policy: {
4926
- policyId: string;
4927
- } | {
4928
- rules: {
4929
- reviewSteps: ({
4930
- quorum: number;
4931
- userIds: string[];
4932
- } | {
4933
- quorum: number;
4934
- groupId: string;
4935
- })[];
4936
- threshold?: {
4937
- min: string | null;
4938
- max: string | null;
4939
- } | undefined;
4940
- whitelistIds?: string[] | undefined;
4941
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
4942
- }[];
4943
- };
4944
- } | {
4945
- type: "TRADELINK";
4946
- assetManagerId: string;
4947
- exchangeConfigs: {
4948
- exchangeId: string;
4949
- repledgeAuthorized: boolean;
4950
- needsAssetManagerApprovalForSettlements: boolean;
4951
- }[];
4952
- } | {
4953
- type: "RAW_SIGNING";
4954
- policy: {
4955
- rules: {
4956
- operationType: "SIGN_DIGESTS";
4957
- reviewSteps: {
4958
- quorum: number;
4959
- userIds: string[];
4960
- }[];
4961
- }[];
4962
- };
4963
- };
4964
- index: number;
4965
- derivationPath: string;
4966
- 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";
5020
+ } | {
5021
+ type: "SIGN_DIGESTS";
5022
+ data: {
5023
+ accountId: string;
5024
+ digests: {
5025
+ digest: string;
5026
+ derivationPath: string;
5027
+ }[];
4967
5028
  };
4968
5029
  id: string;
4969
5030
  legacyId: number;
@@ -5069,25 +5130,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5069
5130
  retryAfter: Date;
5070
5131
  } | undefined;
5071
5132
  } | {
5072
- type: "EDIT_TOKEN_RULE";
5133
+ type: "CREATE_GROUP";
5073
5134
  data: {
5074
- parentAccountId: string;
5075
- contractAddress: string;
5076
- rules: {
5077
- reviewSteps: ({
5078
- quorum: number;
5079
- userIds: string[];
5080
- } | {
5081
- quorum: number;
5082
- groupId: string;
5083
- })[];
5084
- threshold?: {
5085
- min: string | null;
5086
- max: string | null;
5087
- } | undefined;
5088
- whitelistIds?: string[] | undefined;
5089
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5090
- }[];
5135
+ name: string;
5136
+ description: string | null;
5137
+ members: string[];
5091
5138
  };
5092
5139
  id: string;
5093
5140
  legacyId: number;
@@ -5119,7 +5166,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5119
5166
  retryAfter: Date;
5120
5167
  } | undefined;
5121
5168
  } | {
5122
- type: "CREATE_GROUP";
5169
+ type: "EDIT_GROUP";
5123
5170
  data: {
5124
5171
  name: string;
5125
5172
  description: string | null;
@@ -5155,11 +5202,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5155
5202
  retryAfter: Date;
5156
5203
  } | undefined;
5157
5204
  } | {
5158
- type: "EDIT_GROUP";
5205
+ type: "CREATE_WHITELIST";
5159
5206
  data: {
5160
5207
  name: string;
5161
5208
  description: string | null;
5162
- members: string[];
5209
+ addresses: {
5210
+ name: string;
5211
+ currency: string;
5212
+ address: string;
5213
+ destinationTag?: string | undefined;
5214
+ }[];
5215
+ type: "SMART_CONTRACT" | "TRANSACTION";
5163
5216
  };
5164
5217
  id: string;
5165
5218
  legacyId: number;
@@ -5191,8 +5244,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5191
5244
  retryAfter: Date;
5192
5245
  } | undefined;
5193
5246
  } | {
5194
- type: "REVOKE_GROUP";
5195
- data: Record<string, never>;
5247
+ type: "EDIT_WHITELIST";
5248
+ data: {
5249
+ name: string;
5250
+ addresses: {
5251
+ name: string;
5252
+ currency: string;
5253
+ address: string;
5254
+ destinationTag?: string | undefined;
5255
+ }[];
5256
+ };
5196
5257
  id: string;
5197
5258
  legacyId: number;
5198
5259
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5223,17 +5284,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5223
5284
  retryAfter: Date;
5224
5285
  } | undefined;
5225
5286
  } | {
5226
- type: "CREATE_WHITELIST";
5287
+ type: "CREATE_ENTITY";
5227
5288
  data: {
5228
5289
  name: string;
5229
- description: string | null;
5230
- addresses: {
5231
- name: string;
5232
- currency: string;
5233
- address: string;
5234
- destinationTag?: string | undefined;
5235
- }[];
5236
- type: "SMART_CONTRACT" | "TRANSACTION";
5290
+ accountIds: string[];
5291
+ memberIds: string[];
5237
5292
  };
5238
5293
  id: string;
5239
5294
  legacyId: number;
@@ -5265,15 +5320,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5265
5320
  retryAfter: Date;
5266
5321
  } | undefined;
5267
5322
  } | {
5268
- type: "EDIT_WHITELIST";
5323
+ type: "EDIT_ENTITY";
5269
5324
  data: {
5270
5325
  name: string;
5271
- addresses: {
5272
- name: string;
5273
- currency: string;
5274
- address: string;
5275
- destinationTag?: string | undefined;
5276
- }[];
5326
+ accountIds: string[];
5327
+ memberIds: string[];
5277
5328
  };
5278
5329
  id: string;
5279
5330
  legacyId: number;
@@ -5305,11 +5356,41 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5305
5356
  retryAfter: Date;
5306
5357
  } | undefined;
5307
5358
  } | {
5308
- type: "CREATE_ENTITY";
5359
+ type: "REVOKE_ENTITY";
5360
+ data: Record<string, never>;
5361
+ id: string;
5362
+ legacyId: number;
5363
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5364
+ reviewSteps: {
5365
+ stageName: string;
5366
+ quorum: number;
5367
+ }[];
5368
+ currentStepIndex: number;
5369
+ expiresAt: Date;
5370
+ targetId: string | null;
5371
+ note: {
5372
+ title: string;
5373
+ content: string;
5374
+ } | null;
5375
+ reviews: {
5376
+ stepIndex: number;
5377
+ userId: string;
5378
+ groupName: string | null;
5379
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5380
+ createdAt: Date;
5381
+ updatedAt: Date;
5382
+ }[];
5383
+ createdAt: Date;
5384
+ updatedAt: Date;
5385
+ createdById: string;
5386
+ inflight?: {
5387
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5388
+ retryAfter: Date;
5389
+ } | undefined;
5390
+ } | {
5391
+ type: "CREATE_PSD_USER";
5309
5392
  data: {
5310
- name: string;
5311
- accountIds: string[];
5312
- memberIds: string[];
5393
+ registrationId: string;
5313
5394
  };
5314
5395
  id: string;
5315
5396
  legacyId: number;
@@ -5341,11 +5422,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5341
5422
  retryAfter: Date;
5342
5423
  } | undefined;
5343
5424
  } | {
5344
- type: "EDIT_ENTITY";
5425
+ type: "CREATE_API_USER";
5345
5426
  data: {
5346
5427
  name: string;
5347
- accountIds: string[];
5348
- memberIds: string[];
5428
+ pubKey: string;
5429
+ role: "ADMIN" | "OPERATOR";
5430
+ viewAll?: boolean | undefined;
5349
5431
  };
5350
5432
  id: string;
5351
5433
  legacyId: number;
@@ -5377,7 +5459,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5377
5459
  retryAfter: Date;
5378
5460
  } | undefined;
5379
5461
  } | {
5380
- type: "REVOKE_ENTITY";
5462
+ type: "REVOKE_USER";
5381
5463
  data: Record<string, never>;
5382
5464
  id: string;
5383
5465
  legacyId: number;
@@ -5409,9 +5491,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5409
5491
  retryAfter: Date;
5410
5492
  } | undefined;
5411
5493
  } | {
5412
- type: "CREATE_PSD_USER";
5494
+ type: "EDIT_WORKSPACE_RULE";
5413
5495
  data: {
5414
- registrationId: string;
5496
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
5497
+ reviewConfig: {
5498
+ quorum: number;
5499
+ userIds: string[];
5500
+ }[];
5415
5501
  };
5416
5502
  id: string;
5417
5503
  legacyId: number;
@@ -5443,12 +5529,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5443
5529
  retryAfter: Date;
5444
5530
  } | undefined;
5445
5531
  } | {
5446
- type: "CREATE_API_USER";
5532
+ type: "CREATE_POLICY";
5447
5533
  data: {
5448
5534
  name: string;
5449
- pubKey: string;
5450
- role: "ADMIN" | "OPERATOR";
5451
- viewAll?: boolean | undefined;
5535
+ description: string | null;
5536
+ asset: {
5537
+ network: string;
5538
+ contractAddress: string | null;
5539
+ tokenIdentifier: string | null;
5540
+ } | null;
5541
+ govRules: {
5542
+ reviewSteps: ({
5543
+ quorum: number;
5544
+ userIds: string[];
5545
+ } | {
5546
+ quorum: number;
5547
+ groupId: string;
5548
+ })[];
5549
+ threshold?: {
5550
+ min: string | null;
5551
+ max: string | null;
5552
+ } | undefined;
5553
+ whitelistIds?: string[] | undefined;
5554
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5555
+ }[];
5452
5556
  };
5453
5557
  id: string;
5454
5558
  legacyId: number;
@@ -5480,9 +5584,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5480
5584
  retryAfter: Date;
5481
5585
  } | undefined;
5482
5586
  } | {
5483
- type: "CREATE_API_USER_ACCESS";
5587
+ type: "EDIT_POLICY";
5484
5588
  data: {
5485
5589
  name: string;
5590
+ description: string | null;
5591
+ govRules: {
5592
+ reviewSteps: ({
5593
+ quorum: number;
5594
+ userIds: string[];
5595
+ } | {
5596
+ quorum: number;
5597
+ groupId: string;
5598
+ })[];
5599
+ threshold?: {
5600
+ min: string | null;
5601
+ max: string | null;
5602
+ } | undefined;
5603
+ whitelistIds?: string[] | undefined;
5604
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5605
+ }[];
5486
5606
  };
5487
5607
  id: string;
5488
5608
  legacyId: number;
@@ -5514,8 +5634,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5514
5634
  retryAfter: Date;
5515
5635
  } | undefined;
5516
5636
  } | {
5517
- type: "REVOKE_USER";
5518
- data: Record<string, never>;
5637
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
5638
+ data: null;
5519
5639
  id: string;
5520
5640
  legacyId: number;
5521
5641
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5546,10 +5666,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5546
5666
  retryAfter: Date;
5547
5667
  } | undefined;
5548
5668
  } | {
5549
- type: "EDIT_WORKSPACE_RULE";
5669
+ type: "TRADELINK_CREATE_CUSTODIAN";
5550
5670
  data: {
5551
- permission: "CREATE_ACCOUNT_WITH_POLICY";
5552
- reviewConfig: {
5671
+ settlement: {
5672
+ quorum: number;
5673
+ userIds: string[];
5674
+ }[];
5675
+ withdraw: {
5676
+ quorum: number;
5677
+ userIds: string[];
5678
+ }[];
5679
+ arbitration: {
5553
5680
  quorum: number;
5554
5681
  userIds: string[];
5555
5682
  }[];
@@ -5584,13 +5711,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5584
5711
  retryAfter: Date;
5585
5712
  } | undefined;
5586
5713
  } | {
5587
- type: "CREATE_SCICONFIG";
5714
+ type: "TRADELINK_EDIT_CUSTODIAN";
5588
5715
  data: {
5589
- account: string;
5590
- config: {
5591
- dapps: string[] | null;
5592
- customContractCallEnabled: boolean;
5593
- };
5716
+ settlement: {
5717
+ quorum: number;
5718
+ userIds: string[];
5719
+ }[];
5720
+ withdraw: {
5721
+ quorum: number;
5722
+ userIds: string[];
5723
+ }[];
5724
+ arbitration: {
5725
+ quorum: number;
5726
+ userIds: string[];
5727
+ }[];
5594
5728
  };
5595
5729
  id: string;
5596
5730
  legacyId: number;
@@ -5622,12 +5756,61 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5622
5756
  retryAfter: Date;
5623
5757
  } | undefined;
5624
5758
  } | {
5625
- type: "EDIT_SCICONFIG";
5759
+ type: "TRADELINK_CREATE_EXCHANGE";
5760
+ data: {
5761
+ tradelinkId: string;
5762
+ groups: {
5763
+ quorum: number;
5764
+ userIds: string[];
5765
+ }[];
5766
+ whitelist: {
5767
+ name: string;
5768
+ currency: string;
5769
+ address: string;
5770
+ }[];
5771
+ };
5772
+ id: string;
5773
+ legacyId: number;
5774
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5775
+ reviewSteps: {
5776
+ stageName: string;
5777
+ quorum: number;
5778
+ }[];
5779
+ currentStepIndex: number;
5780
+ expiresAt: Date;
5781
+ targetId: string | null;
5782
+ note: {
5783
+ title: string;
5784
+ content: string;
5785
+ } | null;
5786
+ reviews: {
5787
+ stepIndex: number;
5788
+ userId: string;
5789
+ groupName: string | null;
5790
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5791
+ createdAt: Date;
5792
+ updatedAt: Date;
5793
+ }[];
5794
+ createdAt: Date;
5795
+ updatedAt: Date;
5796
+ createdById: string;
5797
+ inflight?: {
5798
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5799
+ retryAfter: Date;
5800
+ } | undefined;
5801
+ } | {
5802
+ type: "TRADELINK_EDIT_EXCHANGE";
5626
5803
  data: {
5627
- config: {
5628
- dapps: string[] | null;
5629
- customContractCallEnabled: boolean;
5630
- };
5804
+ tradelinkId: string;
5805
+ groups: {
5806
+ quorum: number;
5807
+ userIds: string[];
5808
+ }[];
5809
+ whitelist: {
5810
+ name: string;
5811
+ currency: string;
5812
+ address: string;
5813
+ }[];
5631
5814
  };
5632
5815
  id: string;
5633
5816
  legacyId: number;
@@ -5659,11 +5842,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5659
5842
  retryAfter: Date;
5660
5843
  } | undefined;
5661
5844
  } | {
5662
- type: "CREATE_API_KEY";
5845
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
5663
5846
  data: {
5664
- name: string;
5665
- entities: string[];
5666
- scopes: Record<string, never>;
5847
+ tradelinkId: string;
5848
+ groups: {
5849
+ quorum: number;
5850
+ userIds: string[];
5851
+ }[];
5852
+ whitelist: {
5853
+ name: string;
5854
+ currency: string;
5855
+ address: string;
5856
+ }[];
5667
5857
  };
5668
5858
  id: string;
5669
5859
  legacyId: number;
@@ -5695,11 +5885,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5695
5885
  retryAfter: Date;
5696
5886
  } | undefined;
5697
5887
  } | {
5698
- type: "EDIT_API_KEY";
5888
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
5699
5889
  data: {
5700
- name: string;
5701
- entities: string[];
5702
- scopes: Record<string, never>;
5890
+ tradelinkId: string;
5891
+ groups: {
5892
+ quorum: number;
5893
+ userIds: string[];
5894
+ }[];
5895
+ whitelist: {
5896
+ name: string;
5897
+ currency: string;
5898
+ address: string;
5899
+ }[];
5703
5900
  };
5704
5901
  id: string;
5705
5902
  legacyId: number;
@@ -5731,8 +5928,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5731
5928
  retryAfter: Date;
5732
5929
  } | undefined;
5733
5930
  } | {
5734
- type: "REVOKE_API_KEY";
5735
- data: Record<string, never>;
5931
+ type: "TRADELINK_ADJUST_PLEDGE";
5932
+ data: {
5933
+ accountId: string;
5934
+ exchangeId: string;
5935
+ amount: string;
5936
+ };
5736
5937
  id: string;
5737
5938
  legacyId: number;
5738
5939
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5763,30 +5964,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5763
5964
  retryAfter: Date;
5764
5965
  } | undefined;
5765
5966
  } | {
5766
- type: "CREATE_POLICY";
5967
+ type: "TRADELINK_REPLEDGE";
5767
5968
  data: {
5768
- name: string;
5769
- description: string | null;
5770
- asset: {
5771
- network: string;
5772
- contractAddress: string | null;
5773
- tokenIdentifier: string | null;
5774
- } | null;
5775
- govRules: {
5776
- reviewSteps: ({
5777
- quorum: number;
5778
- userIds: string[];
5779
- } | {
5780
- quorum: number;
5781
- groupId: string;
5782
- })[];
5783
- threshold?: {
5784
- min: string | null;
5785
- max: string | null;
5786
- } | undefined;
5787
- whitelistIds?: string[] | undefined;
5788
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5789
- }[];
5969
+ accountId: string;
5970
+ exchangeId: string;
5971
+ amount: string;
5790
5972
  };
5791
5973
  id: string;
5792
5974
  legacyId: number;
@@ -5818,25 +6000,128 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5818
6000
  retryAfter: Date;
5819
6001
  } | undefined;
5820
6002
  } | {
5821
- type: "EDIT_POLICY";
6003
+ type: "TRADELINK_CREATE_SETTLEMENT";
5822
6004
  data: {
5823
- name: string;
5824
- description: string | null;
5825
- govRules: {
5826
- reviewSteps: ({
5827
- quorum: number;
5828
- userIds: string[];
6005
+ accountId: string;
6006
+ exchangeId: string;
6007
+ transaction: {
6008
+ amount: string;
6009
+ currency: string;
6010
+ maxFee: string | null;
6011
+ recipient: string;
6012
+ type: "TEZOS_LIKE_SEND";
6013
+ feeStrategy: {
6014
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6015
+ };
6016
+ } | {
6017
+ amount: string;
6018
+ currency: string;
6019
+ maxFee: string | null;
6020
+ recipient: string;
6021
+ type: "BITCOIN_LIKE_SEND";
6022
+ feeStrategy: {
6023
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6024
+ feePerByte?: string | null | undefined;
6025
+ };
6026
+ } | {
6027
+ amount: string;
6028
+ currency: string;
6029
+ recipient: string;
6030
+ executeBeforeSeconds?: number | undefined;
6031
+ reason: string | null;
6032
+ type: "CANTON_LIKE_SEND";
6033
+ } | {
6034
+ amount: string;
6035
+ currency: string;
6036
+ maxFee: string | null;
6037
+ recipient: string;
6038
+ type: "CARDANO_LIKE_SEND";
6039
+ feeStrategy: {
6040
+ type: "FAST" | "NORMAL" | "SLOW";
6041
+ };
6042
+ } | {
6043
+ amount: string;
6044
+ currency: string;
6045
+ maxFee: string | null;
6046
+ recipient: string;
6047
+ replacingTxHash?: string | undefined;
6048
+ type: "ETHEREUM_LIKE_SEND";
6049
+ feeStrategy: {
6050
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6051
+ gasPrice: string;
6052
+ gasLimit: string;
5829
6053
  } | {
5830
- quorum: number;
5831
- groupId: string;
5832
- })[];
5833
- threshold?: {
5834
- min: string | null;
5835
- max: string | null;
5836
- } | undefined;
5837
- whitelistIds?: string[] | undefined;
5838
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5839
- }[];
6054
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6055
+ maxPriorityFeePerGas: string;
6056
+ maxFeePerGas: string;
6057
+ gasLimit: string;
6058
+ };
6059
+ } | {
6060
+ amount: string;
6061
+ currency: string;
6062
+ maxFee: string | null;
6063
+ recipient: string;
6064
+ type: "HEDERA_LIKE_SEND";
6065
+ feeStrategy: {
6066
+ type: "FAST" | "NORMAL" | "SLOW";
6067
+ };
6068
+ } | {
6069
+ amount: string;
6070
+ currency: string;
6071
+ maxFee: string | null;
6072
+ recipient: string;
6073
+ type: "POLKADOT_LIKE_SEND";
6074
+ } | {
6075
+ amount: string;
6076
+ currency: string;
6077
+ maxFee: string | null;
6078
+ recipient: string;
6079
+ type: "RIPPLE_LIKE_SEND";
6080
+ destinationTag: string | null;
6081
+ feeStrategy: {
6082
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6083
+ };
6084
+ } | {
6085
+ amount: string;
6086
+ currency: string;
6087
+ maxFee: string | null;
6088
+ recipient: string;
6089
+ type: "SOLANA_LIKE_SEND";
6090
+ feeStrategy: {
6091
+ type: "FAST" | "NORMAL" | "SLOW";
6092
+ };
6093
+ } | {
6094
+ amount: string;
6095
+ currency: string;
6096
+ maxFee: string | null;
6097
+ recipient: string;
6098
+ type: "STELLAR_LIKE_SEND";
6099
+ memo: {
6100
+ type: "MEMO_TEXT";
6101
+ value: string;
6102
+ } | {
6103
+ type: "MEMO_ID";
6104
+ value: string;
6105
+ } | {
6106
+ type: "MEMO_HASH";
6107
+ value: string;
6108
+ } | {
6109
+ type: "MEMO_RETURN";
6110
+ value: string;
6111
+ } | null;
6112
+ feeStrategy: {
6113
+ type: "FAST" | "NORMAL" | "SLOW";
6114
+ };
6115
+ } | {
6116
+ amount: string;
6117
+ currency: string;
6118
+ maxFee: string | null;
6119
+ recipient: string;
6120
+ type: "SUI_LIKE_SEND";
6121
+ feeStrategy: {
6122
+ type: "FAST" | "NORMAL" | "SLOW";
6123
+ };
6124
+ };
5840
6125
  };
5841
6126
  id: string;
5842
6127
  legacyId: number;
@@ -5868,8 +6153,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5868
6153
  retryAfter: Date;
5869
6154
  } | undefined;
5870
6155
  } | {
5871
- type: "TRADELINK_ACTIVATE_ACCOUNT";
5872
- data: null;
6156
+ type: "TRADELINK_FORCE_UNPLEDGE";
6157
+ data: {
6158
+ accountId: string;
6159
+ exchangeId: string;
6160
+ };
5873
6161
  id: string;
5874
6162
  legacyId: number;
5875
6163
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5900,20 +6188,127 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5900
6188
  retryAfter: Date;
5901
6189
  } | undefined;
5902
6190
  } | {
5903
- type: "TRADELINK_CREATE_CUSTODIAN";
6191
+ type: "TRADELINK_WITHDRAW";
5904
6192
  data: {
5905
- settlement: {
5906
- quorum: number;
5907
- userIds: string[];
5908
- }[];
5909
- withdraw: {
5910
- quorum: number;
5911
- userIds: string[];
5912
- }[];
5913
- arbitration: {
5914
- quorum: number;
5915
- userIds: string[];
5916
- }[];
6193
+ accountId: string;
6194
+ transaction: {
6195
+ amount: string;
6196
+ currency: string;
6197
+ maxFee: string | null;
6198
+ recipient: string;
6199
+ type: "TEZOS_LIKE_SEND";
6200
+ feeStrategy: {
6201
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6202
+ };
6203
+ } | {
6204
+ amount: string;
6205
+ currency: string;
6206
+ maxFee: string | null;
6207
+ recipient: string;
6208
+ type: "BITCOIN_LIKE_SEND";
6209
+ feeStrategy: {
6210
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6211
+ feePerByte?: string | null | undefined;
6212
+ };
6213
+ } | {
6214
+ amount: string;
6215
+ currency: string;
6216
+ recipient: string;
6217
+ executeBeforeSeconds?: number | undefined;
6218
+ reason: string | null;
6219
+ type: "CANTON_LIKE_SEND";
6220
+ } | {
6221
+ amount: string;
6222
+ currency: string;
6223
+ maxFee: string | null;
6224
+ recipient: string;
6225
+ type: "CARDANO_LIKE_SEND";
6226
+ feeStrategy: {
6227
+ type: "FAST" | "NORMAL" | "SLOW";
6228
+ };
6229
+ } | {
6230
+ amount: string;
6231
+ currency: string;
6232
+ maxFee: string | null;
6233
+ recipient: string;
6234
+ replacingTxHash?: string | undefined;
6235
+ type: "ETHEREUM_LIKE_SEND";
6236
+ feeStrategy: {
6237
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6238
+ gasPrice: string;
6239
+ gasLimit: string;
6240
+ } | {
6241
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6242
+ maxPriorityFeePerGas: string;
6243
+ maxFeePerGas: string;
6244
+ gasLimit: string;
6245
+ };
6246
+ } | {
6247
+ amount: string;
6248
+ currency: string;
6249
+ maxFee: string | null;
6250
+ recipient: string;
6251
+ type: "HEDERA_LIKE_SEND";
6252
+ feeStrategy: {
6253
+ type: "FAST" | "NORMAL" | "SLOW";
6254
+ };
6255
+ } | {
6256
+ amount: string;
6257
+ currency: string;
6258
+ maxFee: string | null;
6259
+ recipient: string;
6260
+ type: "POLKADOT_LIKE_SEND";
6261
+ } | {
6262
+ amount: string;
6263
+ currency: string;
6264
+ maxFee: string | null;
6265
+ recipient: string;
6266
+ type: "RIPPLE_LIKE_SEND";
6267
+ destinationTag: string | null;
6268
+ feeStrategy: {
6269
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6270
+ };
6271
+ } | {
6272
+ amount: string;
6273
+ currency: string;
6274
+ maxFee: string | null;
6275
+ recipient: string;
6276
+ type: "SOLANA_LIKE_SEND";
6277
+ feeStrategy: {
6278
+ type: "FAST" | "NORMAL" | "SLOW";
6279
+ };
6280
+ } | {
6281
+ amount: string;
6282
+ currency: string;
6283
+ maxFee: string | null;
6284
+ recipient: string;
6285
+ type: "STELLAR_LIKE_SEND";
6286
+ memo: {
6287
+ type: "MEMO_TEXT";
6288
+ value: string;
6289
+ } | {
6290
+ type: "MEMO_ID";
6291
+ value: string;
6292
+ } | {
6293
+ type: "MEMO_HASH";
6294
+ value: string;
6295
+ } | {
6296
+ type: "MEMO_RETURN";
6297
+ value: string;
6298
+ } | null;
6299
+ feeStrategy: {
6300
+ type: "FAST" | "NORMAL" | "SLOW";
6301
+ };
6302
+ } | {
6303
+ amount: string;
6304
+ currency: string;
6305
+ maxFee: string | null;
6306
+ recipient: string;
6307
+ type: "SUI_LIKE_SEND";
6308
+ feeStrategy: {
6309
+ type: "FAST" | "NORMAL" | "SLOW";
6310
+ };
6311
+ };
5917
6312
  };
5918
6313
  id: string;
5919
6314
  legacyId: number;
@@ -5945,20 +6340,127 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5945
6340
  retryAfter: Date;
5946
6341
  } | undefined;
5947
6342
  } | {
5948
- type: "TRADELINK_EDIT_CUSTODIAN";
6343
+ type: "TRADELINK_ARBITRATE";
5949
6344
  data: {
5950
- settlement: {
5951
- quorum: number;
5952
- userIds: string[];
5953
- }[];
5954
- withdraw: {
5955
- quorum: number;
5956
- userIds: string[];
5957
- }[];
5958
- arbitration: {
5959
- quorum: number;
5960
- userIds: string[];
5961
- }[];
6345
+ accountId: string;
6346
+ transaction: {
6347
+ amount: string;
6348
+ currency: string;
6349
+ maxFee: string | null;
6350
+ recipient: string;
6351
+ type: "TEZOS_LIKE_SEND";
6352
+ feeStrategy: {
6353
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6354
+ };
6355
+ } | {
6356
+ amount: string;
6357
+ currency: string;
6358
+ maxFee: string | null;
6359
+ recipient: string;
6360
+ type: "BITCOIN_LIKE_SEND";
6361
+ feeStrategy: {
6362
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6363
+ feePerByte?: string | null | undefined;
6364
+ };
6365
+ } | {
6366
+ amount: string;
6367
+ currency: string;
6368
+ recipient: string;
6369
+ executeBeforeSeconds?: number | undefined;
6370
+ reason: string | null;
6371
+ type: "CANTON_LIKE_SEND";
6372
+ } | {
6373
+ amount: string;
6374
+ currency: string;
6375
+ maxFee: string | null;
6376
+ recipient: string;
6377
+ type: "CARDANO_LIKE_SEND";
6378
+ feeStrategy: {
6379
+ type: "FAST" | "NORMAL" | "SLOW";
6380
+ };
6381
+ } | {
6382
+ amount: string;
6383
+ currency: string;
6384
+ maxFee: string | null;
6385
+ recipient: string;
6386
+ replacingTxHash?: string | undefined;
6387
+ type: "ETHEREUM_LIKE_SEND";
6388
+ feeStrategy: {
6389
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6390
+ gasPrice: string;
6391
+ gasLimit: string;
6392
+ } | {
6393
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6394
+ maxPriorityFeePerGas: string;
6395
+ maxFeePerGas: string;
6396
+ gasLimit: string;
6397
+ };
6398
+ } | {
6399
+ amount: string;
6400
+ currency: string;
6401
+ maxFee: string | null;
6402
+ recipient: string;
6403
+ type: "HEDERA_LIKE_SEND";
6404
+ feeStrategy: {
6405
+ type: "FAST" | "NORMAL" | "SLOW";
6406
+ };
6407
+ } | {
6408
+ amount: string;
6409
+ currency: string;
6410
+ maxFee: string | null;
6411
+ recipient: string;
6412
+ type: "POLKADOT_LIKE_SEND";
6413
+ } | {
6414
+ amount: string;
6415
+ currency: string;
6416
+ maxFee: string | null;
6417
+ recipient: string;
6418
+ type: "RIPPLE_LIKE_SEND";
6419
+ destinationTag: string | null;
6420
+ feeStrategy: {
6421
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6422
+ };
6423
+ } | {
6424
+ amount: string;
6425
+ currency: string;
6426
+ maxFee: string | null;
6427
+ recipient: string;
6428
+ type: "SOLANA_LIKE_SEND";
6429
+ feeStrategy: {
6430
+ type: "FAST" | "NORMAL" | "SLOW";
6431
+ };
6432
+ } | {
6433
+ amount: string;
6434
+ currency: string;
6435
+ maxFee: string | null;
6436
+ recipient: string;
6437
+ type: "STELLAR_LIKE_SEND";
6438
+ memo: {
6439
+ type: "MEMO_TEXT";
6440
+ value: string;
6441
+ } | {
6442
+ type: "MEMO_ID";
6443
+ value: string;
6444
+ } | {
6445
+ type: "MEMO_HASH";
6446
+ value: string;
6447
+ } | {
6448
+ type: "MEMO_RETURN";
6449
+ value: string;
6450
+ } | null;
6451
+ feeStrategy: {
6452
+ type: "FAST" | "NORMAL" | "SLOW";
6453
+ };
6454
+ } | {
6455
+ amount: string;
6456
+ currency: string;
6457
+ maxFee: string | null;
6458
+ recipient: string;
6459
+ type: "SUI_LIKE_SEND";
6460
+ feeStrategy: {
6461
+ type: "FAST" | "NORMAL" | "SLOW";
6462
+ };
6463
+ };
5962
6464
  };
5963
6465
  id: string;
5964
6466
  legacyId: number;
@@ -5990,18 +6492,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5990
6492
  retryAfter: Date;
5991
6493
  } | undefined;
5992
6494
  } | {
5993
- type: "TRADELINK_CREATE_EXCHANGE";
6495
+ type: "SIGN_MESSAGE";
5994
6496
  data: {
5995
- tradelinkId: string;
5996
- groups: {
5997
- quorum: number;
5998
- userIds: string[];
5999
- }[];
6000
- whitelist: {
6001
- name: string;
6002
- currency: string;
6003
- address: string;
6004
- }[];
6497
+ message: {
6498
+ type: "EIP191";
6499
+ data: string;
6500
+ } | {
6501
+ type: "EIP712";
6502
+ data: {
6503
+ types: Record<string, {
6504
+ name: string;
6505
+ type: string;
6506
+ }[]>;
6507
+ primaryType: string;
6508
+ domain: Record<string, any>;
6509
+ message: Record<string, any>;
6510
+ };
6511
+ } | {
6512
+ type: "CIP8";
6513
+ data: string;
6514
+ signingKey: "PAYMENT" | "STAKE";
6515
+ } | {
6516
+ type: "BIP137";
6517
+ data: string;
6518
+ };
6519
+ accountId: string;
6520
+ address: string;
6521
+ derivationPath: string;
6005
6522
  };
6006
6523
  id: string;
6007
6524
  legacyId: number;
@@ -6033,18 +6550,57 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6033
6550
  retryAfter: Date;
6034
6551
  } | undefined;
6035
6552
  } | {
6036
- type: "TRADELINK_EDIT_EXCHANGE";
6553
+ type: "CREATE_ACCOUNT";
6037
6554
  data: {
6038
- tradelinkId: string;
6039
- groups: {
6040
- quorum: number;
6041
- userIds: string[];
6042
- }[];
6043
- whitelist: {
6044
- name: string;
6045
- currency: string;
6046
- address: string;
6047
- }[];
6555
+ name: string;
6556
+ currency: string;
6557
+ contractAddress: string | null;
6558
+ tokenIdentifier: string | null;
6559
+ bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
6560
+ governance: {
6561
+ type: "CLASSIC";
6562
+ policy: {
6563
+ policyId: string;
6564
+ } | {
6565
+ rules: {
6566
+ reviewSteps: ({
6567
+ quorum: number;
6568
+ userIds: string[];
6569
+ } | {
6570
+ quorum: number;
6571
+ groupId: string;
6572
+ })[];
6573
+ threshold?: {
6574
+ min: string | null;
6575
+ max: string | null;
6576
+ } | undefined;
6577
+ whitelistIds?: string[] | undefined;
6578
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
6579
+ }[];
6580
+ };
6581
+ } | {
6582
+ type: "TRADELINK";
6583
+ assetManagerId: string;
6584
+ exchangeConfigs: {
6585
+ exchangeId: string;
6586
+ repledgeAuthorized: boolean;
6587
+ needsAssetManagerApprovalForSettlements: boolean;
6588
+ }[];
6589
+ } | {
6590
+ type: "RAW_SIGNING";
6591
+ policy: {
6592
+ rules: {
6593
+ operationType: "SIGN_DIGESTS";
6594
+ reviewSteps: {
6595
+ quorum: number;
6596
+ userIds: string[];
6597
+ }[];
6598
+ }[];
6599
+ };
6600
+ };
6601
+ index: number;
6602
+ derivationPath: string;
6603
+ 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";
6048
6604
  };
6049
6605
  id: string;
6050
6606
  legacyId: number;
@@ -6076,17 +6632,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6076
6632
  retryAfter: Date;
6077
6633
  } | undefined;
6078
6634
  } | {
6079
- type: "TRADELINK_CREATE_ASSET_MANAGER";
6635
+ type: "EDIT_TOKEN_RULE";
6080
6636
  data: {
6081
- tradelinkId: string;
6082
- groups: {
6083
- quorum: number;
6084
- userIds: string[];
6085
- }[];
6086
- whitelist: {
6087
- name: string;
6088
- currency: string;
6089
- address: string;
6637
+ parentAccountId: string;
6638
+ contractAddress: string;
6639
+ rules: {
6640
+ reviewSteps: ({
6641
+ quorum: number;
6642
+ userIds: string[];
6643
+ } | {
6644
+ quorum: number;
6645
+ groupId: string;
6646
+ })[];
6647
+ threshold?: {
6648
+ min: string | null;
6649
+ max: string | null;
6650
+ } | undefined;
6651
+ whitelistIds?: string[] | undefined;
6652
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
6090
6653
  }[];
6091
6654
  };
6092
6655
  id: string;
@@ -6119,19 +6682,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6119
6682
  retryAfter: Date;
6120
6683
  } | undefined;
6121
6684
  } | {
6122
- type: "TRADELINK_EDIT_ASSET_MANAGER";
6123
- data: {
6124
- tradelinkId: string;
6125
- groups: {
6126
- quorum: number;
6127
- userIds: string[];
6128
- }[];
6129
- whitelist: {
6130
- name: string;
6131
- currency: string;
6132
- address: string;
6133
- }[];
6134
- };
6685
+ type: "REVOKE_GROUP";
6686
+ data: Record<string, never>;
6135
6687
  id: string;
6136
6688
  legacyId: number;
6137
6689
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -6162,11 +6714,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6162
6714
  retryAfter: Date;
6163
6715
  } | undefined;
6164
6716
  } | {
6165
- type: "TRADELINK_ADJUST_PLEDGE";
6717
+ type: "CREATE_API_USER_ACCESS";
6166
6718
  data: {
6167
- accountId: string;
6168
- exchangeId: string;
6169
- amount: string;
6719
+ name: string;
6170
6720
  };
6171
6721
  id: string;
6172
6722
  legacyId: number;
@@ -6198,11 +6748,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6198
6748
  retryAfter: Date;
6199
6749
  } | undefined;
6200
6750
  } | {
6201
- type: "TRADELINK_REPLEDGE";
6751
+ type: "CREATE_SCICONFIG";
6202
6752
  data: {
6203
- accountId: string;
6204
- exchangeId: string;
6205
- amount: string;
6753
+ account: string;
6754
+ config: {
6755
+ dapps: string[] | null;
6756
+ customContractCallEnabled: boolean;
6757
+ };
6206
6758
  };
6207
6759
  id: string;
6208
6760
  legacyId: number;
@@ -6234,127 +6786,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6234
6786
  retryAfter: Date;
6235
6787
  } | undefined;
6236
6788
  } | {
6237
- type: "TRADELINK_CREATE_SETTLEMENT";
6789
+ type: "EDIT_SCICONFIG";
6238
6790
  data: {
6239
- accountId: string;
6240
- exchangeId: string;
6241
- transaction: {
6242
- amount: string;
6243
- currency: string;
6244
- maxFee: string | null;
6245
- recipient: string;
6246
- type: "BITCOIN_LIKE_SEND";
6247
- feeStrategy: {
6248
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6249
- feePerByte?: string | null | undefined;
6250
- };
6251
- } | {
6252
- amount: string;
6253
- currency: string;
6254
- recipient: string;
6255
- executeBeforeSeconds?: number | undefined;
6256
- reason: string | null;
6257
- type: "CANTON_LIKE_SEND";
6258
- } | {
6259
- amount: string;
6260
- currency: string;
6261
- maxFee: string | null;
6262
- recipient: string;
6263
- type: "CARDANO_LIKE_SEND";
6264
- feeStrategy: {
6265
- type: "FAST" | "NORMAL" | "SLOW";
6266
- };
6267
- } | {
6268
- amount: string;
6269
- currency: string;
6270
- maxFee: string | null;
6271
- recipient: string;
6272
- replacingTxHash?: string | undefined;
6273
- type: "ETHEREUM_LIKE_SEND";
6274
- feeStrategy: {
6275
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6276
- gasPrice: string;
6277
- gasLimit: string;
6278
- } | {
6279
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6280
- maxPriorityFeePerGas: string;
6281
- maxFeePerGas: string;
6282
- gasLimit: string;
6283
- };
6284
- } | {
6285
- amount: string;
6286
- currency: string;
6287
- maxFee: string | null;
6288
- recipient: string;
6289
- type: "HEDERA_LIKE_SEND";
6290
- feeStrategy: {
6291
- type: "FAST" | "NORMAL" | "SLOW";
6292
- };
6293
- } | {
6294
- amount: string;
6295
- currency: string;
6296
- maxFee: string | null;
6297
- recipient: string;
6298
- type: "POLKADOT_LIKE_SEND";
6299
- } | {
6300
- amount: string;
6301
- currency: string;
6302
- maxFee: string | null;
6303
- recipient: string;
6304
- type: "RIPPLE_LIKE_SEND";
6305
- destinationTag: string | null;
6306
- feeStrategy: {
6307
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6308
- };
6309
- } | {
6310
- amount: string;
6311
- currency: string;
6312
- maxFee: string | null;
6313
- recipient: string;
6314
- type: "SOLANA_LIKE_SEND";
6315
- feeStrategy: {
6316
- type: "FAST" | "NORMAL" | "SLOW";
6317
- };
6318
- } | {
6319
- amount: string;
6320
- currency: string;
6321
- maxFee: string | null;
6322
- recipient: string;
6323
- type: "STELLAR_LIKE_SEND";
6324
- memo: {
6325
- type: "MEMO_TEXT";
6326
- value: string;
6327
- } | {
6328
- type: "MEMO_ID";
6329
- value: string;
6330
- } | {
6331
- type: "MEMO_HASH";
6332
- value: string;
6333
- } | {
6334
- type: "MEMO_RETURN";
6335
- value: string;
6336
- } | null;
6337
- feeStrategy: {
6338
- type: "FAST" | "NORMAL" | "SLOW";
6339
- };
6340
- } | {
6341
- amount: string;
6342
- currency: string;
6343
- maxFee: string | null;
6344
- recipient: string;
6345
- type: "SUI_LIKE_SEND";
6346
- feeStrategy: {
6347
- type: "FAST" | "NORMAL" | "SLOW";
6348
- };
6349
- } | {
6350
- amount: string;
6351
- currency: string;
6352
- maxFee: string | null;
6353
- recipient: string;
6354
- type: "TEZOS_LIKE_SEND";
6355
- feeStrategy: {
6356
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6357
- };
6791
+ config: {
6792
+ dapps: string[] | null;
6793
+ customContractCallEnabled: boolean;
6358
6794
  };
6359
6795
  };
6360
6796
  id: string;
@@ -6387,10 +6823,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6387
6823
  retryAfter: Date;
6388
6824
  } | undefined;
6389
6825
  } | {
6390
- type: "TRADELINK_FORCE_UNPLEDGE";
6826
+ type: "CREATE_API_KEY";
6391
6827
  data: {
6392
- accountId: string;
6393
- exchangeId: string;
6828
+ name: string;
6829
+ entities: string[];
6830
+ scopes: Record<string, never>;
6394
6831
  };
6395
6832
  id: string;
6396
6833
  legacyId: number;
@@ -6422,127 +6859,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6422
6859
  retryAfter: Date;
6423
6860
  } | undefined;
6424
6861
  } | {
6425
- type: "TRADELINK_WITHDRAW";
6862
+ type: "EDIT_API_KEY";
6426
6863
  data: {
6427
- accountId: string;
6428
- transaction: {
6429
- amount: string;
6430
- currency: string;
6431
- maxFee: string | null;
6432
- recipient: string;
6433
- type: "BITCOIN_LIKE_SEND";
6434
- feeStrategy: {
6435
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6436
- feePerByte?: string | null | undefined;
6437
- };
6438
- } | {
6439
- amount: string;
6440
- currency: string;
6441
- recipient: string;
6442
- executeBeforeSeconds?: number | undefined;
6443
- reason: string | null;
6444
- type: "CANTON_LIKE_SEND";
6445
- } | {
6446
- amount: string;
6447
- currency: string;
6448
- maxFee: string | null;
6449
- recipient: string;
6450
- type: "CARDANO_LIKE_SEND";
6451
- feeStrategy: {
6452
- type: "FAST" | "NORMAL" | "SLOW";
6453
- };
6454
- } | {
6455
- amount: string;
6456
- currency: string;
6457
- maxFee: string | null;
6458
- recipient: string;
6459
- replacingTxHash?: string | undefined;
6460
- type: "ETHEREUM_LIKE_SEND";
6461
- feeStrategy: {
6462
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6463
- gasPrice: string;
6464
- gasLimit: string;
6465
- } | {
6466
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6467
- maxPriorityFeePerGas: string;
6468
- maxFeePerGas: string;
6469
- gasLimit: string;
6470
- };
6471
- } | {
6472
- amount: string;
6473
- currency: string;
6474
- maxFee: string | null;
6475
- recipient: string;
6476
- type: "HEDERA_LIKE_SEND";
6477
- feeStrategy: {
6478
- type: "FAST" | "NORMAL" | "SLOW";
6479
- };
6480
- } | {
6481
- amount: string;
6482
- currency: string;
6483
- maxFee: string | null;
6484
- recipient: string;
6485
- type: "POLKADOT_LIKE_SEND";
6486
- } | {
6487
- amount: string;
6488
- currency: string;
6489
- maxFee: string | null;
6490
- recipient: string;
6491
- type: "RIPPLE_LIKE_SEND";
6492
- destinationTag: string | null;
6493
- feeStrategy: {
6494
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6495
- };
6496
- } | {
6497
- amount: string;
6498
- currency: string;
6499
- maxFee: string | null;
6500
- recipient: string;
6501
- type: "SOLANA_LIKE_SEND";
6502
- feeStrategy: {
6503
- type: "FAST" | "NORMAL" | "SLOW";
6504
- };
6505
- } | {
6506
- amount: string;
6507
- currency: string;
6508
- maxFee: string | null;
6509
- recipient: string;
6510
- type: "STELLAR_LIKE_SEND";
6511
- memo: {
6512
- type: "MEMO_TEXT";
6513
- value: string;
6514
- } | {
6515
- type: "MEMO_ID";
6516
- value: string;
6517
- } | {
6518
- type: "MEMO_HASH";
6519
- value: string;
6520
- } | {
6521
- type: "MEMO_RETURN";
6522
- value: string;
6523
- } | null;
6524
- feeStrategy: {
6525
- type: "FAST" | "NORMAL" | "SLOW";
6526
- };
6527
- } | {
6528
- amount: string;
6529
- currency: string;
6530
- maxFee: string | null;
6531
- recipient: string;
6532
- type: "SUI_LIKE_SEND";
6533
- feeStrategy: {
6534
- type: "FAST" | "NORMAL" | "SLOW";
6535
- };
6536
- } | {
6537
- amount: string;
6538
- currency: string;
6539
- maxFee: string | null;
6540
- recipient: string;
6541
- type: "TEZOS_LIKE_SEND";
6542
- feeStrategy: {
6543
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6544
- };
6545
- };
6864
+ name: string;
6865
+ entities: string[];
6866
+ scopes: Record<string, never>;
6546
6867
  };
6547
6868
  id: string;
6548
6869
  legacyId: number;
@@ -6574,128 +6895,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6574
6895
  retryAfter: Date;
6575
6896
  } | undefined;
6576
6897
  } | {
6577
- type: "TRADELINK_ARBITRATE";
6578
- data: {
6579
- accountId: string;
6580
- transaction: {
6581
- amount: string;
6582
- currency: string;
6583
- maxFee: string | null;
6584
- recipient: string;
6585
- type: "BITCOIN_LIKE_SEND";
6586
- feeStrategy: {
6587
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6588
- feePerByte?: string | null | undefined;
6589
- };
6590
- } | {
6591
- amount: string;
6592
- currency: string;
6593
- recipient: string;
6594
- executeBeforeSeconds?: number | undefined;
6595
- reason: string | null;
6596
- type: "CANTON_LIKE_SEND";
6597
- } | {
6598
- amount: string;
6599
- currency: string;
6600
- maxFee: string | null;
6601
- recipient: string;
6602
- type: "CARDANO_LIKE_SEND";
6603
- feeStrategy: {
6604
- type: "FAST" | "NORMAL" | "SLOW";
6605
- };
6606
- } | {
6607
- amount: string;
6608
- currency: string;
6609
- maxFee: string | null;
6610
- recipient: string;
6611
- replacingTxHash?: string | undefined;
6612
- type: "ETHEREUM_LIKE_SEND";
6613
- feeStrategy: {
6614
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6615
- gasPrice: string;
6616
- gasLimit: string;
6617
- } | {
6618
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6619
- maxPriorityFeePerGas: string;
6620
- maxFeePerGas: string;
6621
- gasLimit: string;
6622
- };
6623
- } | {
6624
- amount: string;
6625
- currency: string;
6626
- maxFee: string | null;
6627
- recipient: string;
6628
- type: "HEDERA_LIKE_SEND";
6629
- feeStrategy: {
6630
- type: "FAST" | "NORMAL" | "SLOW";
6631
- };
6632
- } | {
6633
- amount: string;
6634
- currency: string;
6635
- maxFee: string | null;
6636
- recipient: string;
6637
- type: "POLKADOT_LIKE_SEND";
6638
- } | {
6639
- amount: string;
6640
- currency: string;
6641
- maxFee: string | null;
6642
- recipient: string;
6643
- type: "RIPPLE_LIKE_SEND";
6644
- destinationTag: string | null;
6645
- feeStrategy: {
6646
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6647
- };
6648
- } | {
6649
- amount: string;
6650
- currency: string;
6651
- maxFee: string | null;
6652
- recipient: string;
6653
- type: "SOLANA_LIKE_SEND";
6654
- feeStrategy: {
6655
- type: "FAST" | "NORMAL" | "SLOW";
6656
- };
6657
- } | {
6658
- amount: string;
6659
- currency: string;
6660
- maxFee: string | null;
6661
- recipient: string;
6662
- type: "STELLAR_LIKE_SEND";
6663
- memo: {
6664
- type: "MEMO_TEXT";
6665
- value: string;
6666
- } | {
6667
- type: "MEMO_ID";
6668
- value: string;
6669
- } | {
6670
- type: "MEMO_HASH";
6671
- value: string;
6672
- } | {
6673
- type: "MEMO_RETURN";
6674
- value: string;
6675
- } | null;
6676
- feeStrategy: {
6677
- type: "FAST" | "NORMAL" | "SLOW";
6678
- };
6679
- } | {
6680
- amount: string;
6681
- currency: string;
6682
- maxFee: string | null;
6683
- recipient: string;
6684
- type: "SUI_LIKE_SEND";
6685
- feeStrategy: {
6686
- type: "FAST" | "NORMAL" | "SLOW";
6687
- };
6688
- } | {
6689
- amount: string;
6690
- currency: string;
6691
- maxFee: string | null;
6692
- recipient: string;
6693
- type: "TEZOS_LIKE_SEND";
6694
- feeStrategy: {
6695
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6696
- };
6697
- };
6698
- };
6898
+ type: "REVOKE_API_KEY";
6899
+ data: Record<string, never>;
6699
6900
  id: string;
6700
6901
  legacyId: number;
6701
6902
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -6814,6 +7015,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6814
7015
  updatedAt: Date;
6815
7016
  } | null;
6816
7017
  authorization: string | null;
7018
+ readOnly: boolean;
6817
7019
  activityTracer: ActivityTracer;
6818
7020
  };
6819
7021
  meta: {
@@ -6844,7 +7046,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6844
7046
  page?: number | undefined;
6845
7047
  pageSize?: number | undefined;
6846
7048
  workspaceName?: string | string[] | undefined;
6847
- type?: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED" | undefined;
7049
+ type?: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "BACKOFFICE_USER_IMPERSONATED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED" | undefined;
6848
7050
  fromDate?: unknown;
6849
7051
  toDate?: unknown;
6850
7052
  sortBy?: "createdAt" | "type" | undefined;
@@ -6858,7 +7060,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6858
7060
  total: number;
6859
7061
  results: {
6860
7062
  id: string;
6861
- type: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED";
7063
+ type: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "BACKOFFICE_USER_IMPERSONATED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED";
6862
7064
  workspaceName: string | null;
6863
7065
  payload: unknown;
6864
7066
  createdAt: Date;