@ledgerhq/revault-api 1.68.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-CV4NzTrx.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: {
@@ -140,18 +142,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
140
142
  currency: string;
141
143
  maxFee: string | null;
142
144
  recipient: string;
143
- type: "TRON_LIKE_SEND";
145
+ type: "TEZOS_LIKE_SEND";
144
146
  feeStrategy: {
145
- type: "FAST" | "NORMAL" | "SLOW";
147
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
146
148
  };
147
149
  } | {
148
- amount: string;
150
+ type: "TEZOS_LIKE_DELEGATE";
149
151
  currency: string;
150
152
  maxFee: string | null;
151
153
  recipient: string;
152
- type: "TRON_LIKE_SEND_TOKEN";
153
154
  feeStrategy: {
154
- type: "FAST" | "NORMAL" | "SLOW";
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";
155
163
  };
156
164
  } | {
157
165
  amount: string;
@@ -378,10 +386,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
378
386
  };
379
387
  validatorPubKey: string;
380
388
  executionFee: string;
381
- } | {
382
- type: "GENERIC_TRANSACTION";
383
- currency: string;
384
- rawTx: string;
385
389
  } | {
386
390
  amount: string;
387
391
  currency: string;
@@ -623,28 +627,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
623
627
  amount: string;
624
628
  useAllAmount: boolean;
625
629
  } | {
626
- amount: string;
630
+ type: "GENERIC_TRANSACTION";
627
631
  currency: string;
628
- maxFee: string | null;
629
- recipient: string;
630
- type: "TEZOS_LIKE_SEND";
631
- feeStrategy: {
632
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
633
- };
632
+ rawTx: string;
634
633
  } | {
635
- type: "TEZOS_LIKE_DELEGATE";
634
+ amount: string;
636
635
  currency: string;
637
636
  maxFee: string | null;
638
637
  recipient: string;
638
+ type: "TRON_LIKE_SEND";
639
639
  feeStrategy: {
640
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
640
+ type: "FAST" | "NORMAL" | "SLOW";
641
641
  };
642
642
  } | {
643
- type: "TEZOS_LIKE_UNDELEGATE";
643
+ amount: string;
644
644
  currency: string;
645
645
  maxFee: string | null;
646
+ recipient: string;
647
+ type: "TRON_LIKE_SEND_TOKEN";
646
648
  feeStrategy: {
647
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
649
+ type: "FAST" | "NORMAL" | "SLOW";
648
650
  };
649
651
  };
650
652
  };
@@ -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,14 +1225,32 @@ 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;
1347
- };
1348
- id: string;
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
+ }[];
1252
+ };
1253
+ id: string;
1349
1254
  legacyId: number;
1350
1255
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1351
1256
  reviewSteps: {
@@ -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,115 @@ 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";
2533
- } | {
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
- };
2208
+ type: "CIP8";
2209
+ data: string;
2210
+ signingKey: "PAYMENT" | "STAKE";
2543
2211
  } | {
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";
2593
2300
  };
2594
2301
  id: string;
2595
2302
  legacyId: number;
@@ -2620,6 +2327,301 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2620
2327
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2621
2328
  retryAfter: Date;
2622
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>;
2563
+ };
2564
+ id: string;
2565
+ legacyId: number;
2566
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2567
+ reviewSteps: {
2568
+ stageName: string;
2569
+ quorum: number;
2570
+ }[];
2571
+ currentStepIndex: number;
2572
+ expiresAt: Date;
2573
+ targetId: string | null;
2574
+ note: {
2575
+ title: string;
2576
+ content: string;
2577
+ } | null;
2578
+ reviews: {
2579
+ stepIndex: number;
2580
+ userId: string;
2581
+ groupName: string | null;
2582
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2583
+ createdAt: Date;
2584
+ updatedAt: Date;
2585
+ }[];
2586
+ createdAt: Date;
2587
+ updatedAt: Date;
2588
+ createdById: string;
2589
+ inflight?: {
2590
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2591
+ retryAfter: Date;
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: {
@@ -2713,6 +2715,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2713
2715
  updatedAt: Date;
2714
2716
  } | null;
2715
2717
  authorization: string | null;
2718
+ readOnly: boolean;
2716
2719
  activityTracer: ActivityTracer;
2717
2720
  };
2718
2721
  meta: {
@@ -2769,6 +2772,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2769
2772
  updatedAt: Date;
2770
2773
  } | null;
2771
2774
  authorization: string | null;
2775
+ readOnly: boolean;
2772
2776
  activityTracer: ActivityTracer;
2773
2777
  };
2774
2778
  meta: {
@@ -2925,6 +2929,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2925
2929
  updatedAt: Date;
2926
2930
  } | null;
2927
2931
  authorization: string | null;
2932
+ readOnly: boolean;
2928
2933
  activityTracer: ActivityTracer;
2929
2934
  };
2930
2935
  meta: {
@@ -3162,6 +3167,155 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3162
3167
  } & RateLimitMetricsMeta;
3163
3168
  }>;
3164
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
+ }>>;
3165
3319
  users: import("@trpc/server").TRPCBuiltRouter<{
3166
3320
  ctx: {
3167
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;
@@ -3193,6 +3347,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3193
3347
  updatedAt: Date;
3194
3348
  } | null;
3195
3349
  authorization: string | null;
3350
+ readOnly: boolean;
3196
3351
  activityTracer: ActivityTracer;
3197
3352
  };
3198
3353
  meta: {
@@ -3305,6 +3460,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3305
3460
  updatedAt: Date;
3306
3461
  } | null;
3307
3462
  authorization: string | null;
3463
+ readOnly: boolean;
3308
3464
  activityTracer: ActivityTracer;
3309
3465
  };
3310
3466
  meta: {
@@ -3409,6 +3565,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3409
3565
  updatedAt: Date;
3410
3566
  } | null;
3411
3567
  authorization: string | null;
3568
+ readOnly: boolean;
3412
3569
  activityTracer: ActivityTracer;
3413
3570
  };
3414
3571
  meta: {
@@ -3589,6 +3746,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3589
3746
  updatedAt: Date;
3590
3747
  } | null;
3591
3748
  authorization: string | null;
3749
+ readOnly: boolean;
3592
3750
  activityTracer: ActivityTracer;
3593
3751
  };
3594
3752
  meta: {
@@ -3709,6 +3867,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3709
3867
  updatedAt: Date;
3710
3868
  } | null;
3711
3869
  authorization: string | null;
3870
+ readOnly: boolean;
3712
3871
  activityTracer: ActivityTracer;
3713
3872
  };
3714
3873
  meta: {
@@ -3821,6 +3980,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3821
3980
  updatedAt: Date;
3822
3981
  } | null;
3823
3982
  authorization: string | null;
3983
+ readOnly: boolean;
3824
3984
  activityTracer: ActivityTracer;
3825
3985
  };
3826
3986
  meta: {
@@ -3990,6 +4150,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3990
4150
  updatedAt: Date;
3991
4151
  } | null;
3992
4152
  authorization: string | null;
4153
+ readOnly: boolean;
3993
4154
  activityTracer: ActivityTracer;
3994
4155
  };
3995
4156
  meta: {
@@ -4093,6 +4254,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4093
4254
  updatedAt: Date;
4094
4255
  } | null;
4095
4256
  authorization: string | null;
4257
+ readOnly: boolean;
4096
4258
  activityTracer: ActivityTracer;
4097
4259
  };
4098
4260
  meta: {
@@ -4226,6 +4388,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4226
4388
  updatedAt: Date;
4227
4389
  } | null;
4228
4390
  authorization: string | null;
4391
+ readOnly: boolean;
4229
4392
  activityTracer: ActivityTracer;
4230
4393
  };
4231
4394
  meta: {
@@ -4283,18 +4446,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4283
4446
  currency: string;
4284
4447
  maxFee: string | null;
4285
4448
  recipient: string;
4286
- type: "TRON_LIKE_SEND";
4449
+ type: "TEZOS_LIKE_SEND";
4287
4450
  feeStrategy: {
4288
- type: "FAST" | "NORMAL" | "SLOW";
4451
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4289
4452
  };
4290
4453
  } | {
4291
- amount: string;
4454
+ type: "TEZOS_LIKE_DELEGATE";
4292
4455
  currency: string;
4293
4456
  maxFee: string | null;
4294
4457
  recipient: string;
4295
- type: "TRON_LIKE_SEND_TOKEN";
4296
4458
  feeStrategy: {
4297
- type: "FAST" | "NORMAL" | "SLOW";
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";
4298
4467
  };
4299
4468
  } | {
4300
4469
  amount: string;
@@ -4521,10 +4690,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4521
4690
  };
4522
4691
  validatorPubKey: string;
4523
4692
  executionFee: string;
4524
- } | {
4525
- type: "GENERIC_TRANSACTION";
4526
- currency: string;
4527
- rawTx: string;
4528
4693
  } | {
4529
4694
  amount: string;
4530
4695
  currency: string;
@@ -4766,28 +4931,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4766
4931
  amount: string;
4767
4932
  useAllAmount: boolean;
4768
4933
  } | {
4769
- amount: string;
4934
+ type: "GENERIC_TRANSACTION";
4770
4935
  currency: string;
4771
- maxFee: string | null;
4772
- recipient: string;
4773
- type: "TEZOS_LIKE_SEND";
4774
- feeStrategy: {
4775
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4776
- };
4936
+ rawTx: string;
4777
4937
  } | {
4778
- type: "TEZOS_LIKE_DELEGATE";
4938
+ amount: string;
4779
4939
  currency: string;
4780
4940
  maxFee: string | null;
4781
4941
  recipient: string;
4942
+ type: "TRON_LIKE_SEND";
4782
4943
  feeStrategy: {
4783
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4944
+ type: "FAST" | "NORMAL" | "SLOW";
4784
4945
  };
4785
4946
  } | {
4786
- type: "TEZOS_LIKE_UNDELEGATE";
4947
+ amount: string;
4787
4948
  currency: string;
4788
4949
  maxFee: string | null;
4950
+ recipient: string;
4951
+ type: "TRON_LIKE_SEND_TOKEN";
4789
4952
  feeStrategy: {
4790
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4953
+ type: "FAST" | "NORMAL" | "SLOW";
4791
4954
  };
4792
4955
  };
4793
4956
  };
@@ -4854,154 +5017,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4854
5017
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4855
5018
  retryAfter: Date;
4856
5019
  } | undefined;
4857
- } | {
4858
- type: "SIGN_MESSAGE";
4859
- data: {
4860
- message: {
4861
- type: "EIP191";
4862
- data: string;
4863
- } | {
4864
- type: "EIP712";
4865
- data: {
4866
- types: Record<string, {
4867
- name: string;
4868
- type: string;
4869
- }[]>;
4870
- primaryType: string;
4871
- domain: Record<string, any>;
4872
- message: Record<string, any>;
4873
- };
4874
- } | {
4875
- type: "CIP8";
4876
- data: string;
4877
- signingKey: "PAYMENT" | "STAKE";
4878
- } | {
4879
- type: "BIP137";
4880
- data: string;
4881
- };
4882
- accountId: string;
4883
- address: string;
4884
- derivationPath: string;
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: "SIGN_DIGESTS";
4917
- data: {
4918
- accountId: string;
4919
- digests: {
4920
- digest: string;
4921
- derivationPath: string;
4922
- }[];
4923
- };
4924
- id: string;
4925
- legacyId: number;
4926
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
4927
- reviewSteps: {
4928
- stageName: string;
4929
- quorum: number;
4930
- }[];
4931
- currentStepIndex: number;
4932
- expiresAt: Date;
4933
- targetId: string | null;
4934
- note: {
4935
- title: string;
4936
- content: string;
4937
- } | null;
4938
- reviews: {
4939
- stepIndex: number;
4940
- userId: string;
4941
- groupName: string | null;
4942
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
4943
- createdAt: Date;
4944
- updatedAt: Date;
4945
- }[];
4946
- createdAt: Date;
4947
- updatedAt: Date;
4948
- createdById: string;
4949
- inflight?: {
4950
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
4951
- retryAfter: Date;
4952
- } | undefined;
4953
- } | {
4954
- type: "CREATE_ACCOUNT";
4955
- data: {
4956
- name: string;
4957
- currency: string;
4958
- contractAddress: string | null;
4959
- tokenIdentifier: string | null;
4960
- bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
4961
- governance: {
4962
- type: "CLASSIC";
4963
- policy: {
4964
- policyId: string;
4965
- } | {
4966
- rules: {
4967
- reviewSteps: ({
4968
- quorum: number;
4969
- userIds: string[];
4970
- } | {
4971
- quorum: number;
4972
- groupId: string;
4973
- })[];
4974
- threshold?: {
4975
- min: string | null;
4976
- max: string | null;
4977
- } | undefined;
4978
- whitelistIds?: string[] | undefined;
4979
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
4980
- }[];
4981
- };
4982
- } | {
4983
- type: "TRADELINK";
4984
- assetManagerId: string;
4985
- exchangeConfigs: {
4986
- exchangeId: string;
4987
- repledgeAuthorized: boolean;
4988
- needsAssetManagerApprovalForSettlements: boolean;
4989
- }[];
4990
- } | {
4991
- type: "RAW_SIGNING";
4992
- policy: {
4993
- rules: {
4994
- operationType: "SIGN_DIGESTS";
4995
- reviewSteps: {
4996
- quorum: number;
4997
- userIds: string[];
4998
- }[];
4999
- }[];
5000
- };
5001
- };
5002
- index: number;
5003
- derivationPath: string;
5004
- 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
+ }[];
5005
5028
  };
5006
5029
  id: string;
5007
5030
  legacyId: number;
@@ -5107,25 +5130,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5107
5130
  retryAfter: Date;
5108
5131
  } | undefined;
5109
5132
  } | {
5110
- type: "EDIT_TOKEN_RULE";
5133
+ type: "CREATE_GROUP";
5111
5134
  data: {
5112
- parentAccountId: string;
5113
- contractAddress: string;
5114
- rules: {
5115
- reviewSteps: ({
5116
- quorum: number;
5117
- userIds: string[];
5118
- } | {
5119
- quorum: number;
5120
- groupId: string;
5121
- })[];
5122
- threshold?: {
5123
- min: string | null;
5124
- max: string | null;
5125
- } | undefined;
5126
- whitelistIds?: string[] | undefined;
5127
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5128
- }[];
5135
+ name: string;
5136
+ description: string | null;
5137
+ members: string[];
5129
5138
  };
5130
5139
  id: string;
5131
5140
  legacyId: number;
@@ -5157,7 +5166,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5157
5166
  retryAfter: Date;
5158
5167
  } | undefined;
5159
5168
  } | {
5160
- type: "CREATE_GROUP";
5169
+ type: "EDIT_GROUP";
5161
5170
  data: {
5162
5171
  name: string;
5163
5172
  description: string | null;
@@ -5193,11 +5202,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5193
5202
  retryAfter: Date;
5194
5203
  } | undefined;
5195
5204
  } | {
5196
- type: "EDIT_GROUP";
5205
+ type: "CREATE_WHITELIST";
5197
5206
  data: {
5198
5207
  name: string;
5199
5208
  description: string | null;
5200
- members: string[];
5209
+ addresses: {
5210
+ name: string;
5211
+ currency: string;
5212
+ address: string;
5213
+ destinationTag?: string | undefined;
5214
+ }[];
5215
+ type: "SMART_CONTRACT" | "TRANSACTION";
5201
5216
  };
5202
5217
  id: string;
5203
5218
  legacyId: number;
@@ -5229,8 +5244,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5229
5244
  retryAfter: Date;
5230
5245
  } | undefined;
5231
5246
  } | {
5232
- type: "REVOKE_GROUP";
5233
- 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
+ };
5234
5257
  id: string;
5235
5258
  legacyId: number;
5236
5259
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5261,17 +5284,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5261
5284
  retryAfter: Date;
5262
5285
  } | undefined;
5263
5286
  } | {
5264
- type: "CREATE_WHITELIST";
5287
+ type: "CREATE_ENTITY";
5265
5288
  data: {
5266
5289
  name: string;
5267
- description: string | null;
5268
- addresses: {
5269
- name: string;
5270
- currency: string;
5271
- address: string;
5272
- destinationTag?: string | undefined;
5273
- }[];
5274
- type: "SMART_CONTRACT" | "TRANSACTION";
5290
+ accountIds: string[];
5291
+ memberIds: string[];
5275
5292
  };
5276
5293
  id: string;
5277
5294
  legacyId: number;
@@ -5303,15 +5320,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5303
5320
  retryAfter: Date;
5304
5321
  } | undefined;
5305
5322
  } | {
5306
- type: "EDIT_WHITELIST";
5323
+ type: "EDIT_ENTITY";
5307
5324
  data: {
5308
5325
  name: string;
5309
- addresses: {
5310
- name: string;
5311
- currency: string;
5312
- address: string;
5313
- destinationTag?: string | undefined;
5314
- }[];
5326
+ accountIds: string[];
5327
+ memberIds: string[];
5315
5328
  };
5316
5329
  id: string;
5317
5330
  legacyId: number;
@@ -5343,11 +5356,41 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5343
5356
  retryAfter: Date;
5344
5357
  } | undefined;
5345
5358
  } | {
5346
- 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";
5347
5392
  data: {
5348
- name: string;
5349
- accountIds: string[];
5350
- memberIds: string[];
5393
+ registrationId: string;
5351
5394
  };
5352
5395
  id: string;
5353
5396
  legacyId: number;
@@ -5379,11 +5422,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5379
5422
  retryAfter: Date;
5380
5423
  } | undefined;
5381
5424
  } | {
5382
- type: "EDIT_ENTITY";
5425
+ type: "CREATE_API_USER";
5383
5426
  data: {
5384
5427
  name: string;
5385
- accountIds: string[];
5386
- memberIds: string[];
5428
+ pubKey: string;
5429
+ role: "ADMIN" | "OPERATOR";
5430
+ viewAll?: boolean | undefined;
5387
5431
  };
5388
5432
  id: string;
5389
5433
  legacyId: number;
@@ -5415,7 +5459,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5415
5459
  retryAfter: Date;
5416
5460
  } | undefined;
5417
5461
  } | {
5418
- type: "REVOKE_ENTITY";
5462
+ type: "REVOKE_USER";
5419
5463
  data: Record<string, never>;
5420
5464
  id: string;
5421
5465
  legacyId: number;
@@ -5447,9 +5491,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5447
5491
  retryAfter: Date;
5448
5492
  } | undefined;
5449
5493
  } | {
5450
- type: "CREATE_PSD_USER";
5494
+ type: "EDIT_WORKSPACE_RULE";
5451
5495
  data: {
5452
- registrationId: string;
5496
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
5497
+ reviewConfig: {
5498
+ quorum: number;
5499
+ userIds: string[];
5500
+ }[];
5453
5501
  };
5454
5502
  id: string;
5455
5503
  legacyId: number;
@@ -5481,12 +5529,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5481
5529
  retryAfter: Date;
5482
5530
  } | undefined;
5483
5531
  } | {
5484
- type: "CREATE_API_USER";
5532
+ type: "CREATE_POLICY";
5485
5533
  data: {
5486
5534
  name: string;
5487
- pubKey: string;
5488
- role: "ADMIN" | "OPERATOR";
5489
- 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
+ }[];
5490
5556
  };
5491
5557
  id: string;
5492
5558
  legacyId: number;
@@ -5518,9 +5584,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5518
5584
  retryAfter: Date;
5519
5585
  } | undefined;
5520
5586
  } | {
5521
- type: "CREATE_API_USER_ACCESS";
5587
+ type: "EDIT_POLICY";
5522
5588
  data: {
5523
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
+ }[];
5524
5606
  };
5525
5607
  id: string;
5526
5608
  legacyId: number;
@@ -5552,8 +5634,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5552
5634
  retryAfter: Date;
5553
5635
  } | undefined;
5554
5636
  } | {
5555
- type: "REVOKE_USER";
5556
- data: Record<string, never>;
5637
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
5638
+ data: null;
5557
5639
  id: string;
5558
5640
  legacyId: number;
5559
5641
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5584,10 +5666,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5584
5666
  retryAfter: Date;
5585
5667
  } | undefined;
5586
5668
  } | {
5587
- type: "EDIT_WORKSPACE_RULE";
5669
+ type: "TRADELINK_CREATE_CUSTODIAN";
5588
5670
  data: {
5589
- permission: "CREATE_ACCOUNT_WITH_POLICY";
5590
- reviewConfig: {
5671
+ settlement: {
5672
+ quorum: number;
5673
+ userIds: string[];
5674
+ }[];
5675
+ withdraw: {
5676
+ quorum: number;
5677
+ userIds: string[];
5678
+ }[];
5679
+ arbitration: {
5591
5680
  quorum: number;
5592
5681
  userIds: string[];
5593
5682
  }[];
@@ -5622,13 +5711,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5622
5711
  retryAfter: Date;
5623
5712
  } | undefined;
5624
5713
  } | {
5625
- type: "CREATE_SCICONFIG";
5714
+ type: "TRADELINK_EDIT_CUSTODIAN";
5626
5715
  data: {
5627
- account: string;
5628
- config: {
5629
- dapps: string[] | null;
5630
- customContractCallEnabled: boolean;
5631
- };
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
+ }[];
5632
5728
  };
5633
5729
  id: string;
5634
5730
  legacyId: number;
@@ -5660,12 +5756,61 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5660
5756
  retryAfter: Date;
5661
5757
  } | undefined;
5662
5758
  } | {
5663
- 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";
5664
5803
  data: {
5665
- config: {
5666
- dapps: string[] | null;
5667
- customContractCallEnabled: boolean;
5668
- };
5804
+ tradelinkId: string;
5805
+ groups: {
5806
+ quorum: number;
5807
+ userIds: string[];
5808
+ }[];
5809
+ whitelist: {
5810
+ name: string;
5811
+ currency: string;
5812
+ address: string;
5813
+ }[];
5669
5814
  };
5670
5815
  id: string;
5671
5816
  legacyId: number;
@@ -5697,11 +5842,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5697
5842
  retryAfter: Date;
5698
5843
  } | undefined;
5699
5844
  } | {
5700
- type: "CREATE_API_KEY";
5845
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
5701
5846
  data: {
5702
- name: string;
5703
- entities: string[];
5704
- 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
+ }[];
5705
5857
  };
5706
5858
  id: string;
5707
5859
  legacyId: number;
@@ -5733,11 +5885,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5733
5885
  retryAfter: Date;
5734
5886
  } | undefined;
5735
5887
  } | {
5736
- type: "EDIT_API_KEY";
5888
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
5737
5889
  data: {
5738
- name: string;
5739
- entities: string[];
5740
- 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
+ }[];
5741
5900
  };
5742
5901
  id: string;
5743
5902
  legacyId: number;
@@ -5769,8 +5928,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5769
5928
  retryAfter: Date;
5770
5929
  } | undefined;
5771
5930
  } | {
5772
- type: "REVOKE_API_KEY";
5773
- data: Record<string, never>;
5931
+ type: "TRADELINK_ADJUST_PLEDGE";
5932
+ data: {
5933
+ accountId: string;
5934
+ exchangeId: string;
5935
+ amount: string;
5936
+ };
5774
5937
  id: string;
5775
5938
  legacyId: number;
5776
5939
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5801,30 +5964,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5801
5964
  retryAfter: Date;
5802
5965
  } | undefined;
5803
5966
  } | {
5804
- type: "CREATE_POLICY";
5967
+ type: "TRADELINK_REPLEDGE";
5805
5968
  data: {
5806
- name: string;
5807
- description: string | null;
5808
- asset: {
5809
- network: string;
5810
- contractAddress: string | null;
5811
- tokenIdentifier: string | null;
5812
- } | null;
5813
- govRules: {
5814
- reviewSteps: ({
5815
- quorum: number;
5816
- userIds: string[];
5817
- } | {
5818
- quorum: number;
5819
- groupId: string;
5820
- })[];
5821
- threshold?: {
5822
- min: string | null;
5823
- max: string | null;
5824
- } | undefined;
5825
- whitelistIds?: string[] | undefined;
5826
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5827
- }[];
5969
+ accountId: string;
5970
+ exchangeId: string;
5971
+ amount: string;
5828
5972
  };
5829
5973
  id: string;
5830
5974
  legacyId: number;
@@ -5856,25 +6000,128 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5856
6000
  retryAfter: Date;
5857
6001
  } | undefined;
5858
6002
  } | {
5859
- type: "EDIT_POLICY";
6003
+ type: "TRADELINK_CREATE_SETTLEMENT";
5860
6004
  data: {
5861
- name: string;
5862
- description: string | null;
5863
- govRules: {
5864
- reviewSteps: ({
5865
- quorum: number;
5866
- 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;
5867
6053
  } | {
5868
- quorum: number;
5869
- groupId: string;
5870
- })[];
5871
- threshold?: {
5872
- min: string | null;
5873
- max: string | null;
5874
- } | undefined;
5875
- whitelistIds?: string[] | undefined;
5876
- operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5877
- }[];
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
+ };
5878
6125
  };
5879
6126
  id: string;
5880
6127
  legacyId: number;
@@ -5906,8 +6153,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5906
6153
  retryAfter: Date;
5907
6154
  } | undefined;
5908
6155
  } | {
5909
- type: "TRADELINK_ACTIVATE_ACCOUNT";
5910
- data: null;
6156
+ type: "TRADELINK_FORCE_UNPLEDGE";
6157
+ data: {
6158
+ accountId: string;
6159
+ exchangeId: string;
6160
+ };
5911
6161
  id: string;
5912
6162
  legacyId: number;
5913
6163
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5938,20 +6188,127 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5938
6188
  retryAfter: Date;
5939
6189
  } | undefined;
5940
6190
  } | {
5941
- type: "TRADELINK_CREATE_CUSTODIAN";
6191
+ type: "TRADELINK_WITHDRAW";
5942
6192
  data: {
5943
- settlement: {
5944
- quorum: number;
5945
- userIds: string[];
5946
- }[];
5947
- withdraw: {
5948
- quorum: number;
5949
- userIds: string[];
5950
- }[];
5951
- arbitration: {
5952
- quorum: number;
5953
- userIds: string[];
5954
- }[];
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
+ };
5955
6312
  };
5956
6313
  id: string;
5957
6314
  legacyId: number;
@@ -5983,20 +6340,127 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5983
6340
  retryAfter: Date;
5984
6341
  } | undefined;
5985
6342
  } | {
5986
- type: "TRADELINK_EDIT_CUSTODIAN";
6343
+ type: "TRADELINK_ARBITRATE";
5987
6344
  data: {
5988
- settlement: {
5989
- quorum: number;
5990
- userIds: string[];
5991
- }[];
5992
- withdraw: {
5993
- quorum: number;
5994
- userIds: string[];
5995
- }[];
5996
- arbitration: {
5997
- quorum: number;
5998
- userIds: string[];
5999
- }[];
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
+ };
6000
6464
  };
6001
6465
  id: string;
6002
6466
  legacyId: number;
@@ -6028,18 +6492,33 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6028
6492
  retryAfter: Date;
6029
6493
  } | undefined;
6030
6494
  } | {
6031
- type: "TRADELINK_CREATE_EXCHANGE";
6495
+ type: "SIGN_MESSAGE";
6032
6496
  data: {
6033
- tradelinkId: string;
6034
- groups: {
6035
- quorum: number;
6036
- userIds: string[];
6037
- }[];
6038
- whitelist: {
6039
- name: string;
6040
- currency: string;
6041
- address: string;
6042
- }[];
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;
6043
6522
  };
6044
6523
  id: string;
6045
6524
  legacyId: number;
@@ -6071,18 +6550,57 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6071
6550
  retryAfter: Date;
6072
6551
  } | undefined;
6073
6552
  } | {
6074
- type: "TRADELINK_EDIT_EXCHANGE";
6553
+ type: "CREATE_ACCOUNT";
6075
6554
  data: {
6076
- tradelinkId: string;
6077
- groups: {
6078
- quorum: number;
6079
- userIds: string[];
6080
- }[];
6081
- whitelist: {
6082
- name: string;
6083
- currency: string;
6084
- address: string;
6085
- }[];
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";
6086
6604
  };
6087
6605
  id: string;
6088
6606
  legacyId: number;
@@ -6114,17 +6632,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6114
6632
  retryAfter: Date;
6115
6633
  } | undefined;
6116
6634
  } | {
6117
- type: "TRADELINK_CREATE_ASSET_MANAGER";
6635
+ type: "EDIT_TOKEN_RULE";
6118
6636
  data: {
6119
- tradelinkId: string;
6120
- groups: {
6121
- quorum: number;
6122
- userIds: string[];
6123
- }[];
6124
- whitelist: {
6125
- name: string;
6126
- currency: string;
6127
- 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";
6128
6653
  }[];
6129
6654
  };
6130
6655
  id: string;
@@ -6157,19 +6682,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6157
6682
  retryAfter: Date;
6158
6683
  } | undefined;
6159
6684
  } | {
6160
- type: "TRADELINK_EDIT_ASSET_MANAGER";
6161
- data: {
6162
- tradelinkId: string;
6163
- groups: {
6164
- quorum: number;
6165
- userIds: string[];
6166
- }[];
6167
- whitelist: {
6168
- name: string;
6169
- currency: string;
6170
- address: string;
6171
- }[];
6172
- };
6685
+ type: "REVOKE_GROUP";
6686
+ data: Record<string, never>;
6173
6687
  id: string;
6174
6688
  legacyId: number;
6175
6689
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -6200,11 +6714,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6200
6714
  retryAfter: Date;
6201
6715
  } | undefined;
6202
6716
  } | {
6203
- type: "TRADELINK_ADJUST_PLEDGE";
6717
+ type: "CREATE_API_USER_ACCESS";
6204
6718
  data: {
6205
- accountId: string;
6206
- exchangeId: string;
6207
- amount: string;
6719
+ name: string;
6208
6720
  };
6209
6721
  id: string;
6210
6722
  legacyId: number;
@@ -6236,11 +6748,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6236
6748
  retryAfter: Date;
6237
6749
  } | undefined;
6238
6750
  } | {
6239
- type: "TRADELINK_REPLEDGE";
6751
+ type: "CREATE_SCICONFIG";
6240
6752
  data: {
6241
- accountId: string;
6242
- exchangeId: string;
6243
- amount: string;
6753
+ account: string;
6754
+ config: {
6755
+ dapps: string[] | null;
6756
+ customContractCallEnabled: boolean;
6757
+ };
6244
6758
  };
6245
6759
  id: string;
6246
6760
  legacyId: number;
@@ -6272,127 +6786,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6272
6786
  retryAfter: Date;
6273
6787
  } | undefined;
6274
6788
  } | {
6275
- type: "TRADELINK_CREATE_SETTLEMENT";
6789
+ type: "EDIT_SCICONFIG";
6276
6790
  data: {
6277
- accountId: string;
6278
- exchangeId: string;
6279
- transaction: {
6280
- amount: string;
6281
- currency: string;
6282
- maxFee: string | null;
6283
- recipient: string;
6284
- type: "BITCOIN_LIKE_SEND";
6285
- feeStrategy: {
6286
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6287
- feePerByte?: string | null | undefined;
6288
- };
6289
- } | {
6290
- amount: string;
6291
- currency: string;
6292
- recipient: string;
6293
- executeBeforeSeconds?: number | undefined;
6294
- reason: string | null;
6295
- type: "CANTON_LIKE_SEND";
6296
- } | {
6297
- amount: string;
6298
- currency: string;
6299
- maxFee: string | null;
6300
- recipient: string;
6301
- type: "CARDANO_LIKE_SEND";
6302
- feeStrategy: {
6303
- type: "FAST" | "NORMAL" | "SLOW";
6304
- };
6305
- } | {
6306
- amount: string;
6307
- currency: string;
6308
- maxFee: string | null;
6309
- recipient: string;
6310
- replacingTxHash?: string | undefined;
6311
- type: "ETHEREUM_LIKE_SEND";
6312
- feeStrategy: {
6313
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6314
- gasPrice: string;
6315
- gasLimit: string;
6316
- } | {
6317
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6318
- maxPriorityFeePerGas: string;
6319
- maxFeePerGas: string;
6320
- gasLimit: string;
6321
- };
6322
- } | {
6323
- amount: string;
6324
- currency: string;
6325
- maxFee: string | null;
6326
- recipient: string;
6327
- type: "HEDERA_LIKE_SEND";
6328
- feeStrategy: {
6329
- type: "FAST" | "NORMAL" | "SLOW";
6330
- };
6331
- } | {
6332
- amount: string;
6333
- currency: string;
6334
- maxFee: string | null;
6335
- recipient: string;
6336
- type: "POLKADOT_LIKE_SEND";
6337
- } | {
6338
- amount: string;
6339
- currency: string;
6340
- maxFee: string | null;
6341
- recipient: string;
6342
- type: "RIPPLE_LIKE_SEND";
6343
- destinationTag: string | null;
6344
- feeStrategy: {
6345
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6346
- };
6347
- } | {
6348
- amount: string;
6349
- currency: string;
6350
- maxFee: string | null;
6351
- recipient: string;
6352
- type: "SOLANA_LIKE_SEND";
6353
- feeStrategy: {
6354
- type: "FAST" | "NORMAL" | "SLOW";
6355
- };
6356
- } | {
6357
- amount: string;
6358
- currency: string;
6359
- maxFee: string | null;
6360
- recipient: string;
6361
- type: "STELLAR_LIKE_SEND";
6362
- memo: {
6363
- type: "MEMO_TEXT";
6364
- value: string;
6365
- } | {
6366
- type: "MEMO_ID";
6367
- value: string;
6368
- } | {
6369
- type: "MEMO_HASH";
6370
- value: string;
6371
- } | {
6372
- type: "MEMO_RETURN";
6373
- value: string;
6374
- } | null;
6375
- feeStrategy: {
6376
- type: "FAST" | "NORMAL" | "SLOW";
6377
- };
6378
- } | {
6379
- amount: string;
6380
- currency: string;
6381
- maxFee: string | null;
6382
- recipient: string;
6383
- type: "SUI_LIKE_SEND";
6384
- feeStrategy: {
6385
- type: "FAST" | "NORMAL" | "SLOW";
6386
- };
6387
- } | {
6388
- amount: string;
6389
- currency: string;
6390
- maxFee: string | null;
6391
- recipient: string;
6392
- type: "TEZOS_LIKE_SEND";
6393
- feeStrategy: {
6394
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6395
- };
6791
+ config: {
6792
+ dapps: string[] | null;
6793
+ customContractCallEnabled: boolean;
6396
6794
  };
6397
6795
  };
6398
6796
  id: string;
@@ -6425,10 +6823,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6425
6823
  retryAfter: Date;
6426
6824
  } | undefined;
6427
6825
  } | {
6428
- type: "TRADELINK_FORCE_UNPLEDGE";
6826
+ type: "CREATE_API_KEY";
6429
6827
  data: {
6430
- accountId: string;
6431
- exchangeId: string;
6828
+ name: string;
6829
+ entities: string[];
6830
+ scopes: Record<string, never>;
6432
6831
  };
6433
6832
  id: string;
6434
6833
  legacyId: number;
@@ -6460,127 +6859,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6460
6859
  retryAfter: Date;
6461
6860
  } | undefined;
6462
6861
  } | {
6463
- type: "TRADELINK_WITHDRAW";
6862
+ type: "EDIT_API_KEY";
6464
6863
  data: {
6465
- accountId: string;
6466
- transaction: {
6467
- amount: string;
6468
- currency: string;
6469
- maxFee: string | null;
6470
- recipient: string;
6471
- type: "BITCOIN_LIKE_SEND";
6472
- feeStrategy: {
6473
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6474
- feePerByte?: string | null | undefined;
6475
- };
6476
- } | {
6477
- amount: string;
6478
- currency: string;
6479
- recipient: string;
6480
- executeBeforeSeconds?: number | undefined;
6481
- reason: string | null;
6482
- type: "CANTON_LIKE_SEND";
6483
- } | {
6484
- amount: string;
6485
- currency: string;
6486
- maxFee: string | null;
6487
- recipient: string;
6488
- type: "CARDANO_LIKE_SEND";
6489
- feeStrategy: {
6490
- type: "FAST" | "NORMAL" | "SLOW";
6491
- };
6492
- } | {
6493
- amount: string;
6494
- currency: string;
6495
- maxFee: string | null;
6496
- recipient: string;
6497
- replacingTxHash?: string | undefined;
6498
- type: "ETHEREUM_LIKE_SEND";
6499
- feeStrategy: {
6500
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6501
- gasPrice: string;
6502
- gasLimit: string;
6503
- } | {
6504
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6505
- maxPriorityFeePerGas: string;
6506
- maxFeePerGas: string;
6507
- gasLimit: string;
6508
- };
6509
- } | {
6510
- amount: string;
6511
- currency: string;
6512
- maxFee: string | null;
6513
- recipient: string;
6514
- type: "HEDERA_LIKE_SEND";
6515
- feeStrategy: {
6516
- type: "FAST" | "NORMAL" | "SLOW";
6517
- };
6518
- } | {
6519
- amount: string;
6520
- currency: string;
6521
- maxFee: string | null;
6522
- recipient: string;
6523
- type: "POLKADOT_LIKE_SEND";
6524
- } | {
6525
- amount: string;
6526
- currency: string;
6527
- maxFee: string | null;
6528
- recipient: string;
6529
- type: "RIPPLE_LIKE_SEND";
6530
- destinationTag: string | null;
6531
- feeStrategy: {
6532
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6533
- };
6534
- } | {
6535
- amount: string;
6536
- currency: string;
6537
- maxFee: string | null;
6538
- recipient: string;
6539
- type: "SOLANA_LIKE_SEND";
6540
- feeStrategy: {
6541
- type: "FAST" | "NORMAL" | "SLOW";
6542
- };
6543
- } | {
6544
- amount: string;
6545
- currency: string;
6546
- maxFee: string | null;
6547
- recipient: string;
6548
- type: "STELLAR_LIKE_SEND";
6549
- memo: {
6550
- type: "MEMO_TEXT";
6551
- value: string;
6552
- } | {
6553
- type: "MEMO_ID";
6554
- value: string;
6555
- } | {
6556
- type: "MEMO_HASH";
6557
- value: string;
6558
- } | {
6559
- type: "MEMO_RETURN";
6560
- value: string;
6561
- } | null;
6562
- feeStrategy: {
6563
- type: "FAST" | "NORMAL" | "SLOW";
6564
- };
6565
- } | {
6566
- amount: string;
6567
- currency: string;
6568
- maxFee: string | null;
6569
- recipient: string;
6570
- type: "SUI_LIKE_SEND";
6571
- feeStrategy: {
6572
- type: "FAST" | "NORMAL" | "SLOW";
6573
- };
6574
- } | {
6575
- amount: string;
6576
- currency: string;
6577
- maxFee: string | null;
6578
- recipient: string;
6579
- type: "TEZOS_LIKE_SEND";
6580
- feeStrategy: {
6581
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6582
- };
6583
- };
6864
+ name: string;
6865
+ entities: string[];
6866
+ scopes: Record<string, never>;
6584
6867
  };
6585
6868
  id: string;
6586
6869
  legacyId: number;
@@ -6612,128 +6895,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6612
6895
  retryAfter: Date;
6613
6896
  } | undefined;
6614
6897
  } | {
6615
- type: "TRADELINK_ARBITRATE";
6616
- data: {
6617
- accountId: string;
6618
- transaction: {
6619
- amount: string;
6620
- currency: string;
6621
- maxFee: string | null;
6622
- recipient: string;
6623
- type: "BITCOIN_LIKE_SEND";
6624
- feeStrategy: {
6625
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6626
- feePerByte?: string | null | undefined;
6627
- };
6628
- } | {
6629
- amount: string;
6630
- currency: string;
6631
- recipient: string;
6632
- executeBeforeSeconds?: number | undefined;
6633
- reason: string | null;
6634
- type: "CANTON_LIKE_SEND";
6635
- } | {
6636
- amount: string;
6637
- currency: string;
6638
- maxFee: string | null;
6639
- recipient: string;
6640
- type: "CARDANO_LIKE_SEND";
6641
- feeStrategy: {
6642
- type: "FAST" | "NORMAL" | "SLOW";
6643
- };
6644
- } | {
6645
- amount: string;
6646
- currency: string;
6647
- maxFee: string | null;
6648
- recipient: string;
6649
- replacingTxHash?: string | undefined;
6650
- type: "ETHEREUM_LIKE_SEND";
6651
- feeStrategy: {
6652
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6653
- gasPrice: string;
6654
- gasLimit: string;
6655
- } | {
6656
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6657
- maxPriorityFeePerGas: string;
6658
- maxFeePerGas: string;
6659
- gasLimit: string;
6660
- };
6661
- } | {
6662
- amount: string;
6663
- currency: string;
6664
- maxFee: string | null;
6665
- recipient: string;
6666
- type: "HEDERA_LIKE_SEND";
6667
- feeStrategy: {
6668
- type: "FAST" | "NORMAL" | "SLOW";
6669
- };
6670
- } | {
6671
- amount: string;
6672
- currency: string;
6673
- maxFee: string | null;
6674
- recipient: string;
6675
- type: "POLKADOT_LIKE_SEND";
6676
- } | {
6677
- amount: string;
6678
- currency: string;
6679
- maxFee: string | null;
6680
- recipient: string;
6681
- type: "RIPPLE_LIKE_SEND";
6682
- destinationTag: string | null;
6683
- feeStrategy: {
6684
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6685
- };
6686
- } | {
6687
- amount: string;
6688
- currency: string;
6689
- maxFee: string | null;
6690
- recipient: string;
6691
- type: "SOLANA_LIKE_SEND";
6692
- feeStrategy: {
6693
- type: "FAST" | "NORMAL" | "SLOW";
6694
- };
6695
- } | {
6696
- amount: string;
6697
- currency: string;
6698
- maxFee: string | null;
6699
- recipient: string;
6700
- type: "STELLAR_LIKE_SEND";
6701
- memo: {
6702
- type: "MEMO_TEXT";
6703
- value: string;
6704
- } | {
6705
- type: "MEMO_ID";
6706
- value: string;
6707
- } | {
6708
- type: "MEMO_HASH";
6709
- value: string;
6710
- } | {
6711
- type: "MEMO_RETURN";
6712
- value: string;
6713
- } | null;
6714
- feeStrategy: {
6715
- type: "FAST" | "NORMAL" | "SLOW";
6716
- };
6717
- } | {
6718
- amount: string;
6719
- currency: string;
6720
- maxFee: string | null;
6721
- recipient: string;
6722
- type: "SUI_LIKE_SEND";
6723
- feeStrategy: {
6724
- type: "FAST" | "NORMAL" | "SLOW";
6725
- };
6726
- } | {
6727
- amount: string;
6728
- currency: string;
6729
- maxFee: string | null;
6730
- recipient: string;
6731
- type: "TEZOS_LIKE_SEND";
6732
- feeStrategy: {
6733
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6734
- };
6735
- };
6736
- };
6898
+ type: "REVOKE_API_KEY";
6899
+ data: Record<string, never>;
6737
6900
  id: string;
6738
6901
  legacyId: number;
6739
6902
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -6852,6 +7015,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6852
7015
  updatedAt: Date;
6853
7016
  } | null;
6854
7017
  authorization: string | null;
7018
+ readOnly: boolean;
6855
7019
  activityTracer: ActivityTracer;
6856
7020
  };
6857
7021
  meta: {
@@ -6882,7 +7046,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6882
7046
  page?: number | undefined;
6883
7047
  pageSize?: number | undefined;
6884
7048
  workspaceName?: string | string[] | undefined;
6885
- 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;
6886
7050
  fromDate?: unknown;
6887
7051
  toDate?: unknown;
6888
7052
  sortBy?: "createdAt" | "type" | undefined;
@@ -6896,7 +7060,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6896
7060
  total: number;
6897
7061
  results: {
6898
7062
  id: string;
6899
- 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";
6900
7064
  workspaceName: string | null;
6901
7065
  payload: unknown;
6902
7066
  createdAt: Date;