@ledgerhq/revault-api 1.68.1 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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-DithEPD6.mjs";
1
+ import { Fn as zOidcConfig, Ni as ActivationStatus, Qi as RevaultMode, Vi as MaintenanceMode, cr as ActivityTracer, ea as UserDeviceType, lr as ExtendedPrismaClient, sr as RateLimitMetricsMeta, ta as UserRole, zi as GateUserType } from "../app-lib-Cg9iMEUe.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;
@@ -138,30 +138,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
138
138
  data: {
139
139
  accountId: string;
140
140
  transaction: {
141
- amount: string;
142
- currency: string;
143
- maxFee: string | null;
144
- recipient: string;
145
- type: "TEZOS_LIKE_SEND";
146
- feeStrategy: {
147
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
148
- };
149
- } | {
150
- type: "TEZOS_LIKE_DELEGATE";
151
- currency: string;
152
- maxFee: string | null;
153
- recipient: string;
154
- feeStrategy: {
155
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
156
- };
157
- } | {
158
- type: "TEZOS_LIKE_UNDELEGATE";
159
- currency: string;
160
- maxFee: string | null;
161
- feeStrategy: {
162
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
163
- };
164
- } | {
165
141
  amount: string;
166
142
  currency: string;
167
143
  maxFee: string | null;
@@ -626,6 +602,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
626
602
  stakedSuiId: string;
627
603
  amount: string;
628
604
  useAllAmount: boolean;
605
+ } | {
606
+ amount: string;
607
+ currency: string;
608
+ maxFee: string | null;
609
+ recipient: string;
610
+ type: "TEZOS_LIKE_SEND";
611
+ feeStrategy: {
612
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
613
+ };
614
+ } | {
615
+ type: "TEZOS_LIKE_DELEGATE";
616
+ currency: string;
617
+ maxFee: string | null;
618
+ recipient: string;
619
+ feeStrategy: {
620
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
621
+ };
622
+ } | {
623
+ type: "TEZOS_LIKE_UNDELEGATE";
624
+ currency: string;
625
+ maxFee: string | null;
626
+ feeStrategy: {
627
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
628
+ };
629
629
  } | {
630
630
  type: "GENERIC_TRANSACTION";
631
631
  currency: string;
@@ -713,6 +713,64 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
713
713
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
714
714
  retryAfter: Date;
715
715
  } | undefined;
716
+ } | {
717
+ type: "SIGN_MESSAGE";
718
+ data: {
719
+ message: {
720
+ type: "EIP191";
721
+ data: string;
722
+ } | {
723
+ type: "EIP712";
724
+ data: {
725
+ types: Record<string, {
726
+ name: string;
727
+ type: string;
728
+ }[]>;
729
+ primaryType: string;
730
+ domain: Record<string, any>;
731
+ message: Record<string, any>;
732
+ };
733
+ } | {
734
+ type: "CIP8";
735
+ data: string;
736
+ signingKey: "PAYMENT" | "STAKE";
737
+ } | {
738
+ type: "BIP137";
739
+ data: string;
740
+ };
741
+ accountId: string;
742
+ address: string;
743
+ derivationPath: string;
744
+ };
745
+ id: string;
746
+ legacyId: number;
747
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
748
+ reviewSteps: {
749
+ stageName: string;
750
+ quorum: number;
751
+ }[];
752
+ currentStepIndex: number;
753
+ expiresAt: Date;
754
+ targetId: string | null;
755
+ note: {
756
+ title: string;
757
+ content: string;
758
+ } | null;
759
+ reviews: {
760
+ stepIndex: number;
761
+ userId: string;
762
+ groupName: string | null;
763
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
764
+ createdAt: Date;
765
+ updatedAt: Date;
766
+ }[];
767
+ createdAt: Date;
768
+ updatedAt: Date;
769
+ createdById: string;
770
+ inflight?: {
771
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
772
+ retryAfter: Date;
773
+ } | undefined;
716
774
  } | {
717
775
  type: "SIGN_DIGESTS";
718
776
  data: {
@@ -752,9 +810,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
752
810
  retryAfter: Date;
753
811
  } | undefined;
754
812
  } | {
755
- type: "EDIT_ACCOUNT";
813
+ type: "CREATE_ACCOUNT";
756
814
  data: {
757
815
  name: string;
816
+ currency: string;
817
+ contractAddress: string | null;
818
+ tokenIdentifier: string | null;
819
+ bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
758
820
  governance: {
759
821
  type: "CLASSIC";
760
822
  policy: {
@@ -778,6 +840,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
778
840
  };
779
841
  } | {
780
842
  type: "TRADELINK";
843
+ assetManagerId: string;
781
844
  exchangeConfigs: {
782
845
  exchangeId: string;
783
846
  repledgeAuthorized: boolean;
@@ -795,6 +858,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
795
858
  }[];
796
859
  };
797
860
  };
861
+ index: number;
862
+ derivationPath: string;
863
+ 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";
798
864
  };
799
865
  id: string;
800
866
  legacyId: number;
@@ -826,11 +892,49 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
826
892
  retryAfter: Date;
827
893
  } | undefined;
828
894
  } | {
829
- type: "CREATE_GROUP";
895
+ type: "EDIT_ACCOUNT";
830
896
  data: {
831
897
  name: string;
832
- description: string | null;
833
- members: string[];
898
+ governance: {
899
+ type: "CLASSIC";
900
+ policy: {
901
+ policyId: string;
902
+ } | {
903
+ rules: {
904
+ reviewSteps: ({
905
+ quorum: number;
906
+ userIds: string[];
907
+ } | {
908
+ quorum: number;
909
+ groupId: string;
910
+ })[];
911
+ threshold?: {
912
+ min: string | null;
913
+ max: string | null;
914
+ } | undefined;
915
+ whitelistIds?: string[] | undefined;
916
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
917
+ }[];
918
+ };
919
+ } | {
920
+ type: "TRADELINK";
921
+ exchangeConfigs: {
922
+ exchangeId: string;
923
+ repledgeAuthorized: boolean;
924
+ needsAssetManagerApprovalForSettlements: boolean;
925
+ }[];
926
+ } | {
927
+ type: "RAW_SIGNING";
928
+ policy: {
929
+ rules: {
930
+ operationType: "SIGN_DIGESTS";
931
+ reviewSteps: {
932
+ quorum: number;
933
+ userIds: string[];
934
+ }[];
935
+ }[];
936
+ };
937
+ };
834
938
  };
835
939
  id: string;
836
940
  legacyId: number;
@@ -862,11 +966,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
862
966
  retryAfter: Date;
863
967
  } | undefined;
864
968
  } | {
865
- type: "EDIT_GROUP";
969
+ type: "EDIT_TOKEN_RULE";
866
970
  data: {
867
- name: string;
868
- description: string | null;
869
- members: string[];
971
+ parentAccountId: string;
972
+ contractAddress: string;
973
+ rules: {
974
+ reviewSteps: ({
975
+ quorum: number;
976
+ userIds: string[];
977
+ } | {
978
+ quorum: number;
979
+ groupId: string;
980
+ })[];
981
+ threshold?: {
982
+ min: string | null;
983
+ max: string | null;
984
+ } | undefined;
985
+ whitelistIds?: string[] | undefined;
986
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
987
+ }[];
870
988
  };
871
989
  id: string;
872
990
  legacyId: number;
@@ -898,17 +1016,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
898
1016
  retryAfter: Date;
899
1017
  } | undefined;
900
1018
  } | {
901
- type: "CREATE_WHITELIST";
1019
+ type: "CREATE_GROUP";
902
1020
  data: {
903
1021
  name: string;
904
1022
  description: string | null;
905
- addresses: {
906
- name: string;
907
- currency: string;
908
- address: string;
909
- destinationTag?: string | undefined;
910
- }[];
911
- type: "SMART_CONTRACT" | "TRANSACTION";
1023
+ members: string[];
912
1024
  };
913
1025
  id: string;
914
1026
  legacyId: number;
@@ -940,15 +1052,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
940
1052
  retryAfter: Date;
941
1053
  } | undefined;
942
1054
  } | {
943
- type: "EDIT_WHITELIST";
1055
+ type: "EDIT_GROUP";
944
1056
  data: {
945
1057
  name: string;
946
- addresses: {
947
- name: string;
948
- currency: string;
949
- address: string;
950
- destinationTag?: string | undefined;
951
- }[];
1058
+ description: string | null;
1059
+ members: string[];
952
1060
  };
953
1061
  id: string;
954
1062
  legacyId: number;
@@ -980,12 +1088,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
980
1088
  retryAfter: Date;
981
1089
  } | undefined;
982
1090
  } | {
983
- type: "CREATE_ENTITY";
984
- data: {
985
- name: string;
986
- accountIds: string[];
987
- memberIds: string[];
988
- };
1091
+ type: "REVOKE_GROUP";
1092
+ data: Record<string, never>;
989
1093
  id: string;
990
1094
  legacyId: number;
991
1095
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1016,11 +1120,17 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1016
1120
  retryAfter: Date;
1017
1121
  } | undefined;
1018
1122
  } | {
1019
- type: "EDIT_ENTITY";
1123
+ type: "CREATE_WHITELIST";
1020
1124
  data: {
1021
1125
  name: string;
1022
- accountIds: string[];
1023
- memberIds: string[];
1126
+ description: string | null;
1127
+ addresses: {
1128
+ name: string;
1129
+ currency: string;
1130
+ address: string;
1131
+ destinationTag?: string | undefined;
1132
+ }[];
1133
+ type: "SMART_CONTRACT" | "TRANSACTION";
1024
1134
  };
1025
1135
  id: string;
1026
1136
  legacyId: number;
@@ -1052,8 +1162,16 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1052
1162
  retryAfter: Date;
1053
1163
  } | undefined;
1054
1164
  } | {
1055
- type: "REVOKE_ENTITY";
1056
- data: Record<string, never>;
1165
+ type: "EDIT_WHITELIST";
1166
+ data: {
1167
+ name: string;
1168
+ addresses: {
1169
+ name: string;
1170
+ currency: string;
1171
+ address: string;
1172
+ destinationTag?: string | undefined;
1173
+ }[];
1174
+ };
1057
1175
  id: string;
1058
1176
  legacyId: number;
1059
1177
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1084,9 +1202,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1084
1202
  retryAfter: Date;
1085
1203
  } | undefined;
1086
1204
  } | {
1087
- type: "CREATE_PSD_USER";
1205
+ type: "CREATE_ENTITY";
1088
1206
  data: {
1089
- registrationId: string;
1207
+ name: string;
1208
+ accountIds: string[];
1209
+ memberIds: string[];
1090
1210
  };
1091
1211
  id: string;
1092
1212
  legacyId: number;
@@ -1118,12 +1238,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1118
1238
  retryAfter: Date;
1119
1239
  } | undefined;
1120
1240
  } | {
1121
- type: "CREATE_API_USER";
1241
+ type: "EDIT_ENTITY";
1122
1242
  data: {
1123
1243
  name: string;
1124
- pubKey: string;
1125
- role: "ADMIN" | "OPERATOR";
1126
- viewAll?: boolean | undefined;
1244
+ accountIds: string[];
1245
+ memberIds: string[];
1127
1246
  };
1128
1247
  id: string;
1129
1248
  legacyId: number;
@@ -1155,7 +1274,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
1274
  retryAfter: Date;
1156
1275
  } | undefined;
1157
1276
  } | {
1158
- type: "REVOKE_USER";
1277
+ type: "REVOKE_ENTITY";
1159
1278
  data: Record<string, never>;
1160
1279
  id: string;
1161
1280
  legacyId: number;
@@ -1187,13 +1306,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1187
1306
  retryAfter: Date;
1188
1307
  } | undefined;
1189
1308
  } | {
1190
- type: "EDIT_WORKSPACE_RULE";
1309
+ type: "CREATE_PSD_USER";
1191
1310
  data: {
1192
- permission: "CREATE_ACCOUNT_WITH_POLICY";
1193
- reviewConfig: {
1194
- quorum: number;
1195
- userIds: string[];
1196
- }[];
1311
+ registrationId: string;
1197
1312
  };
1198
1313
  id: string;
1199
1314
  legacyId: number;
@@ -1225,30 +1340,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1225
1340
  retryAfter: Date;
1226
1341
  } | undefined;
1227
1342
  } | {
1228
- type: "CREATE_POLICY";
1343
+ type: "CREATE_API_USER";
1229
1344
  data: {
1230
1345
  name: 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
- }[];
1346
+ pubKey: string;
1347
+ role: "ADMIN" | "OPERATOR";
1348
+ viewAll?: boolean | undefined;
1252
1349
  };
1253
1350
  id: string;
1254
1351
  legacyId: number;
@@ -1280,25 +1377,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1280
1377
  retryAfter: Date;
1281
1378
  } | undefined;
1282
1379
  } | {
1283
- type: "EDIT_POLICY";
1380
+ type: "CREATE_API_USER_ACCESS";
1284
1381
  data: {
1285
1382
  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
- }[];
1302
1383
  };
1303
1384
  id: string;
1304
1385
  legacyId: number;
@@ -1330,8 +1411,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1330
1411
  retryAfter: Date;
1331
1412
  } | undefined;
1332
1413
  } | {
1333
- type: "TRADELINK_ACTIVATE_ACCOUNT";
1334
- data: null;
1414
+ type: "REVOKE_USER";
1415
+ data: Record<string, never>;
1335
1416
  id: string;
1336
1417
  legacyId: number;
1337
1418
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1362,17 +1443,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1362
1443
  retryAfter: Date;
1363
1444
  } | undefined;
1364
1445
  } | {
1365
- type: "TRADELINK_CREATE_CUSTODIAN";
1446
+ type: "EDIT_WORKSPACE_RULE";
1366
1447
  data: {
1367
- settlement: {
1368
- quorum: number;
1369
- userIds: string[];
1370
- }[];
1371
- withdraw: {
1372
- quorum: number;
1373
- userIds: string[];
1374
- }[];
1375
- arbitration: {
1448
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
1449
+ reviewConfig: {
1376
1450
  quorum: number;
1377
1451
  userIds: string[];
1378
1452
  }[];
@@ -1407,20 +1481,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1407
1481
  retryAfter: Date;
1408
1482
  } | undefined;
1409
1483
  } | {
1410
- type: "TRADELINK_EDIT_CUSTODIAN";
1484
+ type: "CREATE_SCICONFIG";
1411
1485
  data: {
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
- }[];
1486
+ account: string;
1487
+ config: {
1488
+ dapps: string[] | null;
1489
+ customContractCallEnabled: boolean;
1490
+ };
1424
1491
  };
1425
1492
  id: string;
1426
1493
  legacyId: number;
@@ -1452,18 +1519,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1452
1519
  retryAfter: Date;
1453
1520
  } | undefined;
1454
1521
  } | {
1455
- type: "TRADELINK_CREATE_EXCHANGE";
1522
+ type: "EDIT_SCICONFIG";
1456
1523
  data: {
1457
- tradelinkId: string;
1458
- groups: {
1459
- quorum: number;
1460
- userIds: string[];
1461
- }[];
1462
- whitelist: {
1463
- name: string;
1464
- currency: string;
1465
- address: string;
1466
- }[];
1524
+ config: {
1525
+ dapps: string[] | null;
1526
+ customContractCallEnabled: boolean;
1527
+ };
1467
1528
  };
1468
1529
  id: string;
1469
1530
  legacyId: number;
@@ -1495,18 +1556,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1495
1556
  retryAfter: Date;
1496
1557
  } | undefined;
1497
1558
  } | {
1498
- type: "TRADELINK_EDIT_EXCHANGE";
1559
+ type: "CREATE_API_KEY";
1499
1560
  data: {
1500
- tradelinkId: string;
1501
- groups: {
1502
- quorum: number;
1503
- userIds: string[];
1504
- }[];
1505
- whitelist: {
1506
- name: string;
1507
- currency: string;
1508
- address: string;
1509
- }[];
1561
+ name: string;
1562
+ entities: string[];
1563
+ scopes: Record<string, never>;
1510
1564
  };
1511
1565
  id: string;
1512
1566
  legacyId: number;
@@ -1538,18 +1592,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1538
1592
  retryAfter: Date;
1539
1593
  } | undefined;
1540
1594
  } | {
1541
- type: "TRADELINK_CREATE_ASSET_MANAGER";
1595
+ type: "EDIT_API_KEY";
1542
1596
  data: {
1543
- tradelinkId: string;
1544
- groups: {
1545
- quorum: number;
1546
- userIds: string[];
1547
- }[];
1548
- whitelist: {
1549
- name: string;
1550
- currency: string;
1551
- address: string;
1552
- }[];
1597
+ name: string;
1598
+ entities: string[];
1599
+ scopes: Record<string, never>;
1553
1600
  };
1554
1601
  id: string;
1555
1602
  legacyId: number;
@@ -1581,17 +1628,61 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1581
1628
  retryAfter: Date;
1582
1629
  } | undefined;
1583
1630
  } | {
1584
- type: "TRADELINK_EDIT_ASSET_MANAGER";
1631
+ type: "REVOKE_API_KEY";
1632
+ data: Record<string, never>;
1633
+ id: string;
1634
+ legacyId: number;
1635
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1636
+ reviewSteps: {
1637
+ stageName: string;
1638
+ quorum: number;
1639
+ }[];
1640
+ currentStepIndex: number;
1641
+ expiresAt: Date;
1642
+ targetId: string | null;
1643
+ note: {
1644
+ title: string;
1645
+ content: string;
1646
+ } | null;
1647
+ reviews: {
1648
+ stepIndex: number;
1649
+ userId: string;
1650
+ groupName: string | null;
1651
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1652
+ createdAt: Date;
1653
+ updatedAt: Date;
1654
+ }[];
1655
+ createdAt: Date;
1656
+ updatedAt: Date;
1657
+ createdById: string;
1658
+ inflight?: {
1659
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1660
+ retryAfter: Date;
1661
+ } | undefined;
1662
+ } | {
1663
+ type: "CREATE_POLICY";
1585
1664
  data: {
1586
- tradelinkId: string;
1587
- groups: {
1588
- quorum: number;
1589
- userIds: string[];
1590
- }[];
1591
- whitelist: {
1592
- name: string;
1593
- currency: string;
1594
- address: string;
1665
+ name: string;
1666
+ description: string | null;
1667
+ asset: {
1668
+ network: string;
1669
+ contractAddress: string | null;
1670
+ tokenIdentifier: string | null;
1671
+ } | null;
1672
+ govRules: {
1673
+ reviewSteps: ({
1674
+ quorum: number;
1675
+ userIds: string[];
1676
+ } | {
1677
+ quorum: number;
1678
+ groupId: string;
1679
+ })[];
1680
+ threshold?: {
1681
+ min: string | null;
1682
+ max: string | null;
1683
+ } | undefined;
1684
+ whitelistIds?: string[] | undefined;
1685
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1595
1686
  }[];
1596
1687
  };
1597
1688
  id: string;
@@ -1624,11 +1715,25 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1624
1715
  retryAfter: Date;
1625
1716
  } | undefined;
1626
1717
  } | {
1627
- type: "TRADELINK_ADJUST_PLEDGE";
1718
+ type: "EDIT_POLICY";
1628
1719
  data: {
1629
- accountId: string;
1630
- exchangeId: string;
1631
- amount: string;
1720
+ name: string;
1721
+ description: string | null;
1722
+ govRules: {
1723
+ reviewSteps: ({
1724
+ quorum: number;
1725
+ userIds: string[];
1726
+ } | {
1727
+ quorum: number;
1728
+ groupId: string;
1729
+ })[];
1730
+ threshold?: {
1731
+ min: string | null;
1732
+ max: string | null;
1733
+ } | undefined;
1734
+ whitelistIds?: string[] | undefined;
1735
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
1736
+ }[];
1632
1737
  };
1633
1738
  id: string;
1634
1739
  legacyId: number;
@@ -1660,12 +1765,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1660
1765
  retryAfter: Date;
1661
1766
  } | undefined;
1662
1767
  } | {
1663
- type: "TRADELINK_REPLEDGE";
1664
- data: {
1665
- accountId: string;
1666
- exchangeId: string;
1667
- amount: string;
1668
- };
1768
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
1769
+ data: null;
1669
1770
  id: string;
1670
1771
  legacyId: number;
1671
1772
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -1696,128 +1797,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1696
1797
  retryAfter: Date;
1697
1798
  } | undefined;
1698
1799
  } | {
1699
- type: "TRADELINK_CREATE_SETTLEMENT";
1800
+ type: "TRADELINK_CREATE_CUSTODIAN";
1700
1801
  data: {
1701
- accountId: string;
1702
- exchangeId: string;
1703
- transaction: {
1704
- amount: string;
1705
- currency: 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;
1714
- currency: string;
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
- };
1802
+ settlement: {
1803
+ quorum: number;
1804
+ userIds: string[];
1805
+ }[];
1806
+ withdraw: {
1807
+ quorum: number;
1808
+ userIds: string[];
1809
+ }[];
1810
+ arbitration: {
1811
+ quorum: number;
1812
+ userIds: string[];
1813
+ }[];
1821
1814
  };
1822
1815
  id: string;
1823
1816
  legacyId: number;
@@ -1849,10 +1842,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1849
1842
  retryAfter: Date;
1850
1843
  } | undefined;
1851
1844
  } | {
1852
- type: "TRADELINK_FORCE_UNPLEDGE";
1845
+ type: "TRADELINK_EDIT_CUSTODIAN";
1853
1846
  data: {
1854
- accountId: string;
1855
- exchangeId: string;
1847
+ settlement: {
1848
+ quorum: number;
1849
+ userIds: string[];
1850
+ }[];
1851
+ withdraw: {
1852
+ quorum: number;
1853
+ userIds: string[];
1854
+ }[];
1855
+ arbitration: {
1856
+ quorum: number;
1857
+ userIds: string[];
1858
+ }[];
1856
1859
  };
1857
1860
  id: string;
1858
1861
  legacyId: number;
@@ -1884,127 +1887,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1884
1887
  retryAfter: Date;
1885
1888
  } | undefined;
1886
1889
  } | {
1887
- type: "TRADELINK_WITHDRAW";
1890
+ type: "TRADELINK_CREATE_EXCHANGE";
1888
1891
  data: {
1889
- accountId: string;
1890
- transaction: {
1891
- amount: string;
1892
- currency: string;
1893
- maxFee: string | null;
1894
- recipient: string;
1895
- type: "TEZOS_LIKE_SEND";
1896
- feeStrategy: {
1897
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1898
- };
1899
- } | {
1900
- amount: string;
1901
- currency: string;
1902
- maxFee: string | null;
1903
- recipient: string;
1904
- type: "BITCOIN_LIKE_SEND";
1905
- feeStrategy: {
1906
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1907
- feePerByte?: string | null | undefined;
1908
- };
1909
- } | {
1910
- amount: string;
1911
- currency: string;
1912
- recipient: string;
1913
- executeBeforeSeconds?: number | undefined;
1914
- reason: string | null;
1915
- type: "CANTON_LIKE_SEND";
1916
- } | {
1917
- amount: string;
1918
- currency: string;
1919
- maxFee: string | null;
1920
- recipient: string;
1921
- type: "CARDANO_LIKE_SEND";
1922
- feeStrategy: {
1923
- type: "FAST" | "NORMAL" | "SLOW";
1924
- };
1925
- } | {
1926
- amount: string;
1927
- currency: string;
1928
- maxFee: string | null;
1929
- recipient: string;
1930
- replacingTxHash?: string | undefined;
1931
- type: "ETHEREUM_LIKE_SEND";
1932
- feeStrategy: {
1933
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1934
- gasPrice: string;
1935
- gasLimit: string;
1936
- } | {
1937
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1938
- maxPriorityFeePerGas: string;
1939
- maxFeePerGas: string;
1940
- gasLimit: string;
1941
- };
1942
- } | {
1943
- amount: string;
1944
- currency: string;
1945
- maxFee: string | null;
1946
- recipient: string;
1947
- type: "HEDERA_LIKE_SEND";
1948
- feeStrategy: {
1949
- type: "FAST" | "NORMAL" | "SLOW";
1950
- };
1951
- } | {
1952
- amount: string;
1953
- currency: string;
1954
- maxFee: string | null;
1955
- recipient: string;
1956
- type: "POLKADOT_LIKE_SEND";
1957
- } | {
1958
- amount: string;
1959
- currency: string;
1960
- maxFee: string | null;
1961
- recipient: string;
1962
- type: "RIPPLE_LIKE_SEND";
1963
- destinationTag: string | null;
1964
- feeStrategy: {
1965
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
1966
- };
1967
- } | {
1968
- amount: string;
1969
- currency: string;
1970
- maxFee: string | null;
1971
- recipient: string;
1972
- type: "SOLANA_LIKE_SEND";
1973
- feeStrategy: {
1974
- type: "FAST" | "NORMAL" | "SLOW";
1975
- };
1976
- } | {
1977
- amount: string;
1978
- currency: string;
1979
- maxFee: string | null;
1980
- recipient: string;
1981
- type: "STELLAR_LIKE_SEND";
1982
- memo: {
1983
- type: "MEMO_TEXT";
1984
- value: string;
1985
- } | {
1986
- type: "MEMO_ID";
1987
- value: string;
1988
- } | {
1989
- type: "MEMO_HASH";
1990
- value: string;
1991
- } | {
1992
- type: "MEMO_RETURN";
1993
- value: string;
1994
- } | null;
1995
- feeStrategy: {
1996
- type: "FAST" | "NORMAL" | "SLOW";
1997
- };
1998
- } | {
1999
- amount: string;
1892
+ tradelinkId: string;
1893
+ groups: {
1894
+ quorum: number;
1895
+ userIds: string[];
1896
+ }[];
1897
+ whitelist: {
1898
+ name: string;
2000
1899
  currency: string;
2001
- maxFee: string | null;
2002
- recipient: string;
2003
- type: "SUI_LIKE_SEND";
2004
- feeStrategy: {
2005
- type: "FAST" | "NORMAL" | "SLOW";
2006
- };
2007
- };
1900
+ address: string;
1901
+ }[];
2008
1902
  };
2009
1903
  id: string;
2010
1904
  legacyId: number;
@@ -2036,19 +1930,212 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2036
1930
  retryAfter: Date;
2037
1931
  } | undefined;
2038
1932
  } | {
2039
- type: "TRADELINK_ARBITRATE";
1933
+ type: "TRADELINK_EDIT_EXCHANGE";
2040
1934
  data: {
2041
- accountId: string;
2042
- transaction: {
2043
- amount: string;
1935
+ tradelinkId: string;
1936
+ groups: {
1937
+ quorum: number;
1938
+ userIds: string[];
1939
+ }[];
1940
+ whitelist: {
1941
+ name: string;
2044
1942
  currency: string;
2045
- maxFee: string | null;
2046
- recipient: string;
2047
- type: "TEZOS_LIKE_SEND";
2048
- feeStrategy: {
2049
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2050
- };
2051
- } | {
1943
+ address: string;
1944
+ }[];
1945
+ };
1946
+ id: string;
1947
+ legacyId: number;
1948
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1949
+ reviewSteps: {
1950
+ stageName: string;
1951
+ quorum: number;
1952
+ }[];
1953
+ currentStepIndex: number;
1954
+ expiresAt: Date;
1955
+ targetId: string | null;
1956
+ note: {
1957
+ title: string;
1958
+ content: string;
1959
+ } | null;
1960
+ reviews: {
1961
+ stepIndex: number;
1962
+ userId: string;
1963
+ groupName: string | null;
1964
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
1965
+ createdAt: Date;
1966
+ updatedAt: Date;
1967
+ }[];
1968
+ createdAt: Date;
1969
+ updatedAt: Date;
1970
+ createdById: string;
1971
+ inflight?: {
1972
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
1973
+ retryAfter: Date;
1974
+ } | undefined;
1975
+ } | {
1976
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
1977
+ data: {
1978
+ tradelinkId: string;
1979
+ groups: {
1980
+ quorum: number;
1981
+ userIds: string[];
1982
+ }[];
1983
+ whitelist: {
1984
+ name: string;
1985
+ currency: string;
1986
+ address: string;
1987
+ }[];
1988
+ };
1989
+ id: string;
1990
+ legacyId: number;
1991
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
1992
+ reviewSteps: {
1993
+ stageName: string;
1994
+ quorum: number;
1995
+ }[];
1996
+ currentStepIndex: number;
1997
+ expiresAt: Date;
1998
+ targetId: string | null;
1999
+ note: {
2000
+ title: string;
2001
+ content: string;
2002
+ } | null;
2003
+ reviews: {
2004
+ stepIndex: number;
2005
+ userId: string;
2006
+ groupName: string | null;
2007
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2008
+ createdAt: Date;
2009
+ updatedAt: Date;
2010
+ }[];
2011
+ createdAt: Date;
2012
+ updatedAt: Date;
2013
+ createdById: string;
2014
+ inflight?: {
2015
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2016
+ retryAfter: Date;
2017
+ } | undefined;
2018
+ } | {
2019
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
2020
+ data: {
2021
+ tradelinkId: string;
2022
+ groups: {
2023
+ quorum: number;
2024
+ userIds: string[];
2025
+ }[];
2026
+ whitelist: {
2027
+ name: string;
2028
+ currency: string;
2029
+ address: string;
2030
+ }[];
2031
+ };
2032
+ id: string;
2033
+ legacyId: number;
2034
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2035
+ reviewSteps: {
2036
+ stageName: string;
2037
+ quorum: number;
2038
+ }[];
2039
+ currentStepIndex: number;
2040
+ expiresAt: Date;
2041
+ targetId: string | null;
2042
+ note: {
2043
+ title: string;
2044
+ content: string;
2045
+ } | null;
2046
+ reviews: {
2047
+ stepIndex: number;
2048
+ userId: string;
2049
+ groupName: string | null;
2050
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2051
+ createdAt: Date;
2052
+ updatedAt: Date;
2053
+ }[];
2054
+ createdAt: Date;
2055
+ updatedAt: Date;
2056
+ createdById: string;
2057
+ inflight?: {
2058
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2059
+ retryAfter: Date;
2060
+ } | undefined;
2061
+ } | {
2062
+ type: "TRADELINK_ADJUST_PLEDGE";
2063
+ data: {
2064
+ accountId: string;
2065
+ exchangeId: string;
2066
+ amount: string;
2067
+ };
2068
+ id: string;
2069
+ legacyId: number;
2070
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2071
+ reviewSteps: {
2072
+ stageName: string;
2073
+ quorum: number;
2074
+ }[];
2075
+ currentStepIndex: number;
2076
+ expiresAt: Date;
2077
+ targetId: string | null;
2078
+ note: {
2079
+ title: string;
2080
+ content: string;
2081
+ } | null;
2082
+ reviews: {
2083
+ stepIndex: number;
2084
+ userId: string;
2085
+ groupName: string | null;
2086
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2087
+ createdAt: Date;
2088
+ updatedAt: Date;
2089
+ }[];
2090
+ createdAt: Date;
2091
+ updatedAt: Date;
2092
+ createdById: string;
2093
+ inflight?: {
2094
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2095
+ retryAfter: Date;
2096
+ } | undefined;
2097
+ } | {
2098
+ type: "TRADELINK_REPLEDGE";
2099
+ data: {
2100
+ accountId: string;
2101
+ exchangeId: string;
2102
+ amount: string;
2103
+ };
2104
+ id: string;
2105
+ legacyId: number;
2106
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2107
+ reviewSteps: {
2108
+ stageName: string;
2109
+ quorum: number;
2110
+ }[];
2111
+ currentStepIndex: number;
2112
+ expiresAt: Date;
2113
+ targetId: string | null;
2114
+ note: {
2115
+ title: string;
2116
+ content: string;
2117
+ } | null;
2118
+ reviews: {
2119
+ stepIndex: number;
2120
+ userId: string;
2121
+ groupName: string | null;
2122
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2123
+ createdAt: Date;
2124
+ updatedAt: Date;
2125
+ }[];
2126
+ createdAt: Date;
2127
+ updatedAt: Date;
2128
+ createdById: string;
2129
+ inflight?: {
2130
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2131
+ retryAfter: Date;
2132
+ } | undefined;
2133
+ } | {
2134
+ type: "TRADELINK_CREATE_SETTLEMENT";
2135
+ data: {
2136
+ accountId: string;
2137
+ exchangeId: string;
2138
+ transaction: {
2052
2139
  amount: string;
2053
2140
  currency: string;
2054
2141
  maxFee: string | null;
@@ -2156,6 +2243,15 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2156
2243
  feeStrategy: {
2157
2244
  type: "FAST" | "NORMAL" | "SLOW";
2158
2245
  };
2246
+ } | {
2247
+ amount: string;
2248
+ currency: string;
2249
+ maxFee: string | null;
2250
+ recipient: string;
2251
+ type: "TEZOS_LIKE_SEND";
2252
+ feeStrategy: {
2253
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2254
+ };
2159
2255
  };
2160
2256
  };
2161
2257
  id: string;
@@ -2188,33 +2284,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2188
2284
  retryAfter: Date;
2189
2285
  } | undefined;
2190
2286
  } | {
2191
- type: "SIGN_MESSAGE";
2287
+ type: "TRADELINK_FORCE_UNPLEDGE";
2192
2288
  data: {
2193
- message: {
2194
- type: "EIP191";
2195
- data: string;
2196
- } | {
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>;
2206
- };
2207
- } | {
2208
- type: "CIP8";
2209
- data: string;
2210
- signingKey: "PAYMENT" | "STAKE";
2211
- } | {
2212
- type: "BIP137";
2213
- data: string;
2214
- };
2215
2289
  accountId: string;
2216
- address: string;
2217
- derivationPath: string;
2290
+ exchangeId: string;
2218
2291
  };
2219
2292
  id: string;
2220
2293
  legacyId: number;
@@ -2246,247 +2319,126 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2246
2319
  retryAfter: Date;
2247
2320
  } | undefined;
2248
2321
  } | {
2249
- type: "CREATE_ACCOUNT";
2322
+ type: "TRADELINK_WITHDRAW";
2250
2323
  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;
2260
- } | {
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
- }[];
2324
+ accountId: string;
2325
+ transaction: {
2326
+ amount: string;
2327
+ currency: string;
2328
+ maxFee: string | null;
2329
+ recipient: string;
2330
+ type: "BITCOIN_LIKE_SEND";
2331
+ feeStrategy: {
2332
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2333
+ feePerByte?: string | null | undefined;
2276
2334
  };
2277
2335
  } | {
2278
- type: "TRADELINK";
2279
- assetManagerId: string;
2280
- exchangeConfigs: {
2281
- exchangeId: string;
2282
- repledgeAuthorized: boolean;
2283
- needsAssetManagerApprovalForSettlements: boolean;
2284
- }[];
2336
+ amount: string;
2337
+ currency: string;
2338
+ recipient: string;
2339
+ executeBeforeSeconds?: number | undefined;
2340
+ reason: string | null;
2341
+ type: "CANTON_LIKE_SEND";
2285
2342
  } | {
2286
- type: "RAW_SIGNING";
2287
- policy: {
2288
- rules: {
2289
- operationType: "SIGN_DIGESTS";
2290
- reviewSteps: {
2291
- quorum: number;
2292
- userIds: string[];
2293
- }[];
2294
- }[];
2343
+ amount: string;
2344
+ currency: string;
2345
+ maxFee: string | null;
2346
+ recipient: string;
2347
+ type: "CARDANO_LIKE_SEND";
2348
+ feeStrategy: {
2349
+ type: "FAST" | "NORMAL" | "SLOW";
2295
2350
  };
2296
- };
2297
- index: number;
2298
- derivationPath: string;
2299
- type: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE";
2300
- };
2301
- id: string;
2302
- legacyId: number;
2303
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
2304
- reviewSteps: {
2305
- stageName: string;
2306
- quorum: number;
2307
- }[];
2308
- currentStepIndex: number;
2309
- expiresAt: Date;
2310
- targetId: string | null;
2311
- note: {
2312
- title: string;
2313
- content: string;
2314
- } | null;
2315
- reviews: {
2316
- stepIndex: number;
2317
- userId: string;
2318
- groupName: string | null;
2319
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
2320
- createdAt: Date;
2321
- updatedAt: Date;
2322
- }[];
2323
- createdAt: Date;
2324
- updatedAt: Date;
2325
- createdById: string;
2326
- inflight?: {
2327
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
2328
- retryAfter: Date;
2329
- } | undefined;
2330
- } | {
2331
- type: "EDIT_TOKEN_RULE";
2332
- data: {
2333
- parentAccountId: string;
2334
- contractAddress: string;
2335
- rules: {
2336
- reviewSteps: ({
2337
- quorum: number;
2338
- userIds: string[];
2351
+ } | {
2352
+ amount: string;
2353
+ currency: string;
2354
+ maxFee: string | null;
2355
+ recipient: string;
2356
+ replacingTxHash?: string | undefined;
2357
+ type: "ETHEREUM_LIKE_SEND";
2358
+ feeStrategy: {
2359
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2360
+ gasPrice: string;
2361
+ gasLimit: string;
2339
2362
  } | {
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;
2363
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2364
+ maxPriorityFeePerGas: string;
2365
+ maxFeePerGas: string;
2366
+ gasLimit: string;
2367
+ };
2368
+ } | {
2369
+ amount: string;
2370
+ currency: string;
2371
+ maxFee: string | null;
2372
+ recipient: string;
2373
+ type: "HEDERA_LIKE_SEND";
2374
+ feeStrategy: {
2375
+ type: "FAST" | "NORMAL" | "SLOW";
2376
+ };
2377
+ } | {
2378
+ amount: string;
2379
+ currency: string;
2380
+ maxFee: string | null;
2381
+ recipient: string;
2382
+ type: "POLKADOT_LIKE_SEND";
2383
+ } | {
2384
+ amount: string;
2385
+ currency: string;
2386
+ maxFee: string | null;
2387
+ recipient: string;
2388
+ type: "RIPPLE_LIKE_SEND";
2389
+ destinationTag: string | null;
2390
+ feeStrategy: {
2391
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2392
+ };
2393
+ } | {
2394
+ amount: string;
2395
+ currency: string;
2396
+ maxFee: string | null;
2397
+ recipient: string;
2398
+ type: "SOLANA_LIKE_SEND";
2399
+ feeStrategy: {
2400
+ type: "FAST" | "NORMAL" | "SLOW";
2401
+ };
2402
+ } | {
2403
+ amount: string;
2404
+ currency: string;
2405
+ maxFee: string | null;
2406
+ recipient: string;
2407
+ type: "STELLAR_LIKE_SEND";
2408
+ memo: {
2409
+ type: "MEMO_TEXT";
2410
+ value: string;
2411
+ } | {
2412
+ type: "MEMO_ID";
2413
+ value: string;
2414
+ } | {
2415
+ type: "MEMO_HASH";
2416
+ value: string;
2417
+ } | {
2418
+ type: "MEMO_RETURN";
2419
+ value: string;
2420
+ } | null;
2421
+ feeStrategy: {
2422
+ type: "FAST" | "NORMAL" | "SLOW";
2423
+ };
2424
+ } | {
2425
+ amount: string;
2426
+ currency: string;
2427
+ maxFee: string | null;
2428
+ recipient: string;
2429
+ type: "SUI_LIKE_SEND";
2430
+ feeStrategy: {
2431
+ type: "FAST" | "NORMAL" | "SLOW";
2432
+ };
2433
+ } | {
2434
+ amount: string;
2435
+ currency: string;
2436
+ maxFee: string | null;
2437
+ recipient: string;
2438
+ type: "TEZOS_LIKE_SEND";
2439
+ feeStrategy: {
2440
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2441
+ };
2490
2442
  };
2491
2443
  };
2492
2444
  id: string;
@@ -2519,80 +2471,128 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2519
2471
  retryAfter: Date;
2520
2472
  } | undefined;
2521
2473
  } | {
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";
2474
+ type: "TRADELINK_ARBITRATE";
2559
2475
  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>;
2476
+ accountId: string;
2477
+ transaction: {
2478
+ amount: string;
2479
+ currency: string;
2480
+ maxFee: string | null;
2481
+ recipient: string;
2482
+ type: "BITCOIN_LIKE_SEND";
2483
+ feeStrategy: {
2484
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2485
+ feePerByte?: string | null | undefined;
2486
+ };
2487
+ } | {
2488
+ amount: string;
2489
+ currency: string;
2490
+ recipient: string;
2491
+ executeBeforeSeconds?: number | undefined;
2492
+ reason: string | null;
2493
+ type: "CANTON_LIKE_SEND";
2494
+ } | {
2495
+ amount: string;
2496
+ currency: string;
2497
+ maxFee: string | null;
2498
+ recipient: string;
2499
+ type: "CARDANO_LIKE_SEND";
2500
+ feeStrategy: {
2501
+ type: "FAST" | "NORMAL" | "SLOW";
2502
+ };
2503
+ } | {
2504
+ amount: string;
2505
+ currency: string;
2506
+ maxFee: string | null;
2507
+ recipient: string;
2508
+ replacingTxHash?: string | undefined;
2509
+ type: "ETHEREUM_LIKE_SEND";
2510
+ feeStrategy: {
2511
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2512
+ gasPrice: string;
2513
+ gasLimit: string;
2514
+ } | {
2515
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2516
+ maxPriorityFeePerGas: string;
2517
+ maxFeePerGas: string;
2518
+ gasLimit: string;
2519
+ };
2520
+ } | {
2521
+ amount: string;
2522
+ currency: string;
2523
+ maxFee: string | null;
2524
+ recipient: string;
2525
+ type: "HEDERA_LIKE_SEND";
2526
+ feeStrategy: {
2527
+ type: "FAST" | "NORMAL" | "SLOW";
2528
+ };
2529
+ } | {
2530
+ amount: string;
2531
+ currency: string;
2532
+ maxFee: string | null;
2533
+ recipient: string;
2534
+ type: "POLKADOT_LIKE_SEND";
2535
+ } | {
2536
+ amount: string;
2537
+ currency: string;
2538
+ maxFee: string | null;
2539
+ recipient: string;
2540
+ type: "RIPPLE_LIKE_SEND";
2541
+ destinationTag: string | null;
2542
+ feeStrategy: {
2543
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2544
+ };
2545
+ } | {
2546
+ amount: string;
2547
+ currency: string;
2548
+ maxFee: string | null;
2549
+ recipient: string;
2550
+ type: "SOLANA_LIKE_SEND";
2551
+ feeStrategy: {
2552
+ type: "FAST" | "NORMAL" | "SLOW";
2553
+ };
2554
+ } | {
2555
+ amount: string;
2556
+ currency: string;
2557
+ maxFee: string | null;
2558
+ recipient: string;
2559
+ type: "STELLAR_LIKE_SEND";
2560
+ memo: {
2561
+ type: "MEMO_TEXT";
2562
+ value: string;
2563
+ } | {
2564
+ type: "MEMO_ID";
2565
+ value: string;
2566
+ } | {
2567
+ type: "MEMO_HASH";
2568
+ value: string;
2569
+ } | {
2570
+ type: "MEMO_RETURN";
2571
+ value: string;
2572
+ } | null;
2573
+ feeStrategy: {
2574
+ type: "FAST" | "NORMAL" | "SLOW";
2575
+ };
2576
+ } | {
2577
+ amount: string;
2578
+ currency: string;
2579
+ maxFee: string | null;
2580
+ recipient: string;
2581
+ type: "SUI_LIKE_SEND";
2582
+ feeStrategy: {
2583
+ type: "FAST" | "NORMAL" | "SLOW";
2584
+ };
2585
+ } | {
2586
+ amount: string;
2587
+ currency: string;
2588
+ maxFee: string | null;
2589
+ recipient: string;
2590
+ type: "TEZOS_LIKE_SEND";
2591
+ feeStrategy: {
2592
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
2593
+ };
2594
+ };
2595
+ };
2596
2596
  id: string;
2597
2597
  legacyId: number;
2598
2598
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -2955,6 +2955,230 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2955
2955
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2956
2956
  transformer: true;
2957
2957
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2958
+ list: import("@trpc/server").TRPCQueryProcedure<{
2959
+ input: {
2960
+ page?: number | undefined;
2961
+ pageSize?: number | undefined;
2962
+ workspaceName?: string | string[] | undefined;
2963
+ step?: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING" | undefined;
2964
+ hsmHostingMode?: "HOSTED" | "ON_PREM" | undefined;
2965
+ sortBy?: "completedAt" | "createdAt" | "step" | "workspaceName" | undefined;
2966
+ sortOrder?: "asc" | "desc" | undefined;
2967
+ };
2968
+ output: {
2969
+ page: number;
2970
+ next: number | null;
2971
+ prev: number | null;
2972
+ pageSize: number;
2973
+ total: number;
2974
+ results: ({
2975
+ id: string;
2976
+ workspaceName: string;
2977
+ hsmHostingMode: "HOSTED" | "ON_PREM";
2978
+ step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
2979
+ claimedDevices: {
2980
+ pubKey: string;
2981
+ deviceUserId: string;
2982
+ deviceName: string;
2983
+ role: "MASTER_ADMIN" | "SHARED_OWNER" | "WRAPPING_KEY_OWNER";
2984
+ }[];
2985
+ wrappingKey: {
2986
+ ephemeralPubKey: string;
2987
+ ephemeralCertificate: {
2988
+ codeHash: string;
2989
+ attestationPub: string;
2990
+ certificate: string;
2991
+ signature: string;
2992
+ };
2993
+ fragments: {
2994
+ pubKey: string;
2995
+ ephemeralPubKey: string;
2996
+ ephemeralCertificate: {
2997
+ codeHash: string;
2998
+ attestationPub: string;
2999
+ certificate: string;
3000
+ signature: string;
3001
+ };
3002
+ blob: string;
3003
+ }[];
3004
+ } | null;
3005
+ masterAdmins: {
3006
+ name: string;
3007
+ psdModel: "STAX";
3008
+ pubKey: string;
3009
+ registrationChallenge: {
3010
+ challenge: string;
3011
+ ephemeralPublicKey: string;
3012
+ ephemeralPublicKeyAttestation: {
3013
+ codeHash: string;
3014
+ attestationPub: string;
3015
+ certificate: string;
3016
+ signature: string;
3017
+ };
3018
+ handshake: string;
3019
+ handshakeAttestation: {
3020
+ codeHash: string;
3021
+ attestationPub: string;
3022
+ certificate: string;
3023
+ signature: string;
3024
+ };
3025
+ u2fRegisterData: string;
3026
+ ciphertext: string;
3027
+ requestId: string;
3028
+ };
3029
+ registrationResponse: {
3030
+ certificate: {
3031
+ codeHash: string;
3032
+ attestationPub: string;
3033
+ certificate: string;
3034
+ signature: string;
3035
+ };
3036
+ u2fRegister: string;
3037
+ u2fKeyHandle: string;
3038
+ registerData: string;
3039
+ validationKey: string;
3040
+ pairingPayload: string;
3041
+ } | null;
3042
+ role: "MASTER_ADMIN";
3043
+ review: {
3044
+ challenge: {
3045
+ challengeType: "PSD";
3046
+ wActions: string[];
3047
+ handshake: string;
3048
+ handshakeAttestation: {
3049
+ codeHash: string;
3050
+ attestationPub: string;
3051
+ certificate: string;
3052
+ signature: string;
3053
+ };
3054
+ partitionId: string;
3055
+ };
3056
+ signature: string | null;
3057
+ } | null;
3058
+ reviewOfExternalSigners: {
3059
+ challenge: {
3060
+ challengeType: "PSD";
3061
+ wActions: string[];
3062
+ handshake: string;
3063
+ handshakeAttestation: {
3064
+ codeHash: string;
3065
+ attestationPub: string;
3066
+ certificate: string;
3067
+ signature: string;
3068
+ };
3069
+ partitionId: string;
3070
+ };
3071
+ signature: string | null;
3072
+ } | null;
3073
+ }[];
3074
+ sharedOwners: {
3075
+ name: string;
3076
+ psdModel: "STAX";
3077
+ pubKey: string;
3078
+ registrationChallenge: {
3079
+ challenge: string;
3080
+ ephemeralPublicKey: string;
3081
+ ephemeralPublicKeyAttestation: {
3082
+ codeHash: string;
3083
+ attestationPub: string;
3084
+ certificate: string;
3085
+ signature: string;
3086
+ };
3087
+ handshake: string;
3088
+ handshakeAttestation: {
3089
+ codeHash: string;
3090
+ attestationPub: string;
3091
+ certificate: string;
3092
+ signature: string;
3093
+ };
3094
+ u2fRegisterData: string;
3095
+ ciphertext: string;
3096
+ requestId: string;
3097
+ };
3098
+ registrationResponse: {
3099
+ certificate: {
3100
+ codeHash: string;
3101
+ attestationPub: string;
3102
+ certificate: string;
3103
+ signature: string;
3104
+ };
3105
+ u2fRegister: string;
3106
+ u2fKeyHandle: string;
3107
+ registerData: string;
3108
+ validationKey: string;
3109
+ pairingPayload: string;
3110
+ } | null;
3111
+ role: "SHARED_OWNER";
3112
+ review: {
3113
+ seedChallenge: {
3114
+ challengeType: "PSD";
3115
+ wActions: string[];
3116
+ handshake: string;
3117
+ handshakeAttestation: {
3118
+ codeHash: string;
3119
+ attestationPub: string;
3120
+ certificate: string;
3121
+ signature: string;
3122
+ };
3123
+ partitionId: string;
3124
+ kkHandshake: string;
3125
+ kkHandshakeAttestation: {
3126
+ codeHash: string;
3127
+ attestationPub: string;
3128
+ certificate: string;
3129
+ signature: string;
3130
+ };
3131
+ ephemeralPublicKey: string;
3132
+ certificate: {
3133
+ codeHash: string;
3134
+ attestationPub: string;
3135
+ certificate: string;
3136
+ signature: string;
3137
+ };
3138
+ blob: string;
3139
+ };
3140
+ seedFragment: {
3141
+ approverBlob: string;
3142
+ challengeResponse: string;
3143
+ handshake: string;
3144
+ handshakeAttestation: {
3145
+ codeHash: string;
3146
+ attestationPub: string;
3147
+ certificate: string;
3148
+ signature: string;
3149
+ };
3150
+ } | null;
3151
+ } | null;
3152
+ }[];
3153
+ createdAt: Date;
3154
+ completedAt: Date | null;
3155
+ } & {
3156
+ mode: RevaultMode;
3157
+ compartmentId: number;
3158
+ targetHsmName: string | null;
3159
+ })[];
3160
+ };
3161
+ meta: {
3162
+ [x: string]: unknown;
3163
+ } & {
3164
+ openapi?: {
3165
+ enabled?: boolean;
3166
+ method: import("trpc-to-openapi").OpenApiMethod;
3167
+ path: `/${string}`;
3168
+ operationId?: string;
3169
+ summary?: string;
3170
+ description?: string;
3171
+ protect?: boolean;
3172
+ tags?: string[];
3173
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3174
+ deprecated?: boolean;
3175
+ requestHeaders?: import("zod").ZodObject;
3176
+ responseHeaders?: import("zod").ZodObject;
3177
+ successDescription?: string;
3178
+ errorResponses?: number[] | Record<number, string>;
3179
+ };
3180
+ } & RateLimitMetricsMeta;
3181
+ }>;
2958
3182
  create: import("@trpc/server").TRPCMutationProcedure<{
2959
3183
  input: {
2960
3184
  workspaceName: string;
@@ -4442,30 +4666,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4442
4666
  data: {
4443
4667
  accountId: string;
4444
4668
  transaction: {
4445
- amount: string;
4446
- currency: string;
4447
- maxFee: string | null;
4448
- recipient: string;
4449
- type: "TEZOS_LIKE_SEND";
4450
- feeStrategy: {
4451
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4452
- };
4453
- } | {
4454
- type: "TEZOS_LIKE_DELEGATE";
4455
- currency: string;
4456
- maxFee: string | null;
4457
- recipient: string;
4458
- feeStrategy: {
4459
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4460
- };
4461
- } | {
4462
- type: "TEZOS_LIKE_UNDELEGATE";
4463
- currency: string;
4464
- maxFee: string | null;
4465
- feeStrategy: {
4466
- type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4467
- };
4468
- } | {
4469
4669
  amount: string;
4470
4670
  currency: string;
4471
4671
  maxFee: string | null;
@@ -4930,6 +5130,30 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4930
5130
  stakedSuiId: string;
4931
5131
  amount: string;
4932
5132
  useAllAmount: boolean;
5133
+ } | {
5134
+ amount: string;
5135
+ currency: string;
5136
+ maxFee: string | null;
5137
+ recipient: string;
5138
+ type: "TEZOS_LIKE_SEND";
5139
+ feeStrategy: {
5140
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
5141
+ };
5142
+ } | {
5143
+ type: "TEZOS_LIKE_DELEGATE";
5144
+ currency: string;
5145
+ maxFee: string | null;
5146
+ recipient: string;
5147
+ feeStrategy: {
5148
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
5149
+ };
5150
+ } | {
5151
+ type: "TEZOS_LIKE_UNDELEGATE";
5152
+ currency: string;
5153
+ maxFee: string | null;
5154
+ feeStrategy: {
5155
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
5156
+ };
4933
5157
  } | {
4934
5158
  type: "GENERIC_TRANSACTION";
4935
5159
  currency: string;
@@ -4984,9 +5208,105 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4984
5208
  retryAfter: Date;
4985
5209
  } | undefined;
4986
5210
  } | {
4987
- type: "UPDATE_QUORUM";
5211
+ type: "UPDATE_QUORUM";
5212
+ data: {
5213
+ quorum: number;
5214
+ };
5215
+ id: string;
5216
+ legacyId: number;
5217
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5218
+ reviewSteps: {
5219
+ stageName: string;
5220
+ quorum: number;
5221
+ }[];
5222
+ currentStepIndex: number;
5223
+ expiresAt: Date;
5224
+ targetId: string | null;
5225
+ note: {
5226
+ title: string;
5227
+ content: string;
5228
+ } | null;
5229
+ reviews: {
5230
+ stepIndex: number;
5231
+ userId: string;
5232
+ groupName: string | null;
5233
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5234
+ createdAt: Date;
5235
+ updatedAt: Date;
5236
+ }[];
5237
+ createdAt: Date;
5238
+ updatedAt: Date;
5239
+ createdById: string;
5240
+ inflight?: {
5241
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5242
+ retryAfter: Date;
5243
+ } | undefined;
5244
+ } | {
5245
+ type: "SIGN_MESSAGE";
5246
+ data: {
5247
+ message: {
5248
+ type: "EIP191";
5249
+ data: string;
5250
+ } | {
5251
+ type: "EIP712";
5252
+ data: {
5253
+ types: Record<string, {
5254
+ name: string;
5255
+ type: string;
5256
+ }[]>;
5257
+ primaryType: string;
5258
+ domain: Record<string, any>;
5259
+ message: Record<string, any>;
5260
+ };
5261
+ } | {
5262
+ type: "CIP8";
5263
+ data: string;
5264
+ signingKey: "PAYMENT" | "STAKE";
5265
+ } | {
5266
+ type: "BIP137";
5267
+ data: string;
5268
+ };
5269
+ accountId: string;
5270
+ address: string;
5271
+ derivationPath: string;
5272
+ };
5273
+ id: string;
5274
+ legacyId: number;
5275
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5276
+ reviewSteps: {
5277
+ stageName: string;
5278
+ quorum: number;
5279
+ }[];
5280
+ currentStepIndex: number;
5281
+ expiresAt: Date;
5282
+ targetId: string | null;
5283
+ note: {
5284
+ title: string;
5285
+ content: string;
5286
+ } | null;
5287
+ reviews: {
5288
+ stepIndex: number;
5289
+ userId: string;
5290
+ groupName: string | null;
5291
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5292
+ createdAt: Date;
5293
+ updatedAt: Date;
5294
+ }[];
5295
+ createdAt: Date;
5296
+ updatedAt: Date;
5297
+ createdById: string;
5298
+ inflight?: {
5299
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5300
+ retryAfter: Date;
5301
+ } | undefined;
5302
+ } | {
5303
+ type: "SIGN_DIGESTS";
4988
5304
  data: {
4989
- quorum: number;
5305
+ accountId: string;
5306
+ digests: {
5307
+ digest: string;
5308
+ derivationPath: string;
5309
+ }[];
4990
5310
  };
4991
5311
  id: string;
4992
5312
  legacyId: number;
@@ -5018,13 +5338,57 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5018
5338
  retryAfter: Date;
5019
5339
  } | undefined;
5020
5340
  } | {
5021
- type: "SIGN_DIGESTS";
5341
+ type: "CREATE_ACCOUNT";
5022
5342
  data: {
5023
- accountId: string;
5024
- digests: {
5025
- digest: string;
5026
- derivationPath: string;
5027
- }[];
5343
+ name: string;
5344
+ currency: string;
5345
+ contractAddress: string | null;
5346
+ tokenIdentifier: string | null;
5347
+ bitcoinAddressDerivationMode?: "NEW" | "STATIC" | undefined;
5348
+ governance: {
5349
+ type: "CLASSIC";
5350
+ policy: {
5351
+ policyId: string;
5352
+ } | {
5353
+ rules: {
5354
+ reviewSteps: ({
5355
+ quorum: number;
5356
+ userIds: string[];
5357
+ } | {
5358
+ quorum: number;
5359
+ groupId: string;
5360
+ })[];
5361
+ threshold?: {
5362
+ min: string | null;
5363
+ max: string | null;
5364
+ } | undefined;
5365
+ whitelistIds?: string[] | undefined;
5366
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5367
+ }[];
5368
+ };
5369
+ } | {
5370
+ type: "TRADELINK";
5371
+ assetManagerId: string;
5372
+ exchangeConfigs: {
5373
+ exchangeId: string;
5374
+ repledgeAuthorized: boolean;
5375
+ needsAssetManagerApprovalForSettlements: boolean;
5376
+ }[];
5377
+ } | {
5378
+ type: "RAW_SIGNING";
5379
+ policy: {
5380
+ rules: {
5381
+ operationType: "SIGN_DIGESTS";
5382
+ reviewSteps: {
5383
+ quorum: number;
5384
+ userIds: string[];
5385
+ }[];
5386
+ }[];
5387
+ };
5388
+ };
5389
+ index: number;
5390
+ derivationPath: string;
5391
+ 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";
5028
5392
  };
5029
5393
  id: string;
5030
5394
  legacyId: number;
@@ -5129,6 +5493,56 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5129
5493
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5130
5494
  retryAfter: Date;
5131
5495
  } | undefined;
5496
+ } | {
5497
+ type: "EDIT_TOKEN_RULE";
5498
+ data: {
5499
+ parentAccountId: string;
5500
+ contractAddress: string;
5501
+ rules: {
5502
+ reviewSteps: ({
5503
+ quorum: number;
5504
+ userIds: string[];
5505
+ } | {
5506
+ quorum: number;
5507
+ groupId: string;
5508
+ })[];
5509
+ threshold?: {
5510
+ min: string | null;
5511
+ max: string | null;
5512
+ } | undefined;
5513
+ whitelistIds?: string[] | undefined;
5514
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5515
+ }[];
5516
+ };
5517
+ id: string;
5518
+ legacyId: number;
5519
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5520
+ reviewSteps: {
5521
+ stageName: string;
5522
+ quorum: number;
5523
+ }[];
5524
+ currentStepIndex: number;
5525
+ expiresAt: Date;
5526
+ targetId: string | null;
5527
+ note: {
5528
+ title: string;
5529
+ content: string;
5530
+ } | null;
5531
+ reviews: {
5532
+ stepIndex: number;
5533
+ userId: string;
5534
+ groupName: string | null;
5535
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5536
+ createdAt: Date;
5537
+ updatedAt: Date;
5538
+ }[];
5539
+ createdAt: Date;
5540
+ updatedAt: Date;
5541
+ createdById: string;
5542
+ inflight?: {
5543
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5544
+ retryAfter: Date;
5545
+ } | undefined;
5132
5546
  } | {
5133
5547
  type: "CREATE_GROUP";
5134
5548
  data: {
@@ -5201,6 +5615,38 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5201
5615
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5202
5616
  retryAfter: Date;
5203
5617
  } | undefined;
5618
+ } | {
5619
+ type: "REVOKE_GROUP";
5620
+ data: Record<string, never>;
5621
+ id: string;
5622
+ legacyId: number;
5623
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
5624
+ reviewSteps: {
5625
+ stageName: string;
5626
+ quorum: number;
5627
+ }[];
5628
+ currentStepIndex: number;
5629
+ expiresAt: Date;
5630
+ targetId: string | null;
5631
+ note: {
5632
+ title: string;
5633
+ content: string;
5634
+ } | null;
5635
+ reviews: {
5636
+ stepIndex: number;
5637
+ userId: string;
5638
+ groupName: string | null;
5639
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
5640
+ createdAt: Date;
5641
+ updatedAt: Date;
5642
+ }[];
5643
+ createdAt: Date;
5644
+ updatedAt: Date;
5645
+ createdById: string;
5646
+ inflight?: {
5647
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
5648
+ retryAfter: Date;
5649
+ } | undefined;
5204
5650
  } | {
5205
5651
  type: "CREATE_WHITELIST";
5206
5652
  data: {
@@ -5459,8 +5905,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5459
5905
  retryAfter: Date;
5460
5906
  } | undefined;
5461
5907
  } | {
5462
- type: "REVOKE_USER";
5463
- data: Record<string, never>;
5908
+ type: "CREATE_API_USER_ACCESS";
5909
+ data: {
5910
+ name: string;
5911
+ };
5464
5912
  id: string;
5465
5913
  legacyId: number;
5466
5914
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5491,14 +5939,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5491
5939
  retryAfter: Date;
5492
5940
  } | undefined;
5493
5941
  } | {
5494
- type: "EDIT_WORKSPACE_RULE";
5495
- data: {
5496
- permission: "CREATE_ACCOUNT_WITH_POLICY";
5497
- reviewConfig: {
5498
- quorum: number;
5499
- userIds: string[];
5500
- }[];
5501
- };
5942
+ type: "REVOKE_USER";
5943
+ data: Record<string, never>;
5502
5944
  id: string;
5503
5945
  legacyId: number;
5504
5946
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5529,29 +5971,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5529
5971
  retryAfter: Date;
5530
5972
  } | undefined;
5531
5973
  } | {
5532
- type: "CREATE_POLICY";
5974
+ type: "EDIT_WORKSPACE_RULE";
5533
5975
  data: {
5534
- name: string;
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";
5976
+ permission: "CREATE_ACCOUNT_WITH_POLICY";
5977
+ reviewConfig: {
5978
+ quorum: number;
5979
+ userIds: string[];
5555
5980
  }[];
5556
5981
  };
5557
5982
  id: string;
@@ -5584,25 +6009,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5584
6009
  retryAfter: Date;
5585
6010
  } | undefined;
5586
6011
  } | {
5587
- type: "EDIT_POLICY";
6012
+ type: "CREATE_SCICONFIG";
5588
6013
  data: {
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
- }[];
6014
+ account: string;
6015
+ config: {
6016
+ dapps: string[] | null;
6017
+ customContractCallEnabled: boolean;
6018
+ };
5606
6019
  };
5607
6020
  id: string;
5608
6021
  legacyId: number;
@@ -5634,8 +6047,13 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5634
6047
  retryAfter: Date;
5635
6048
  } | undefined;
5636
6049
  } | {
5637
- type: "TRADELINK_ACTIVATE_ACCOUNT";
5638
- data: null;
6050
+ type: "EDIT_SCICONFIG";
6051
+ data: {
6052
+ config: {
6053
+ dapps: string[] | null;
6054
+ customContractCallEnabled: boolean;
6055
+ };
6056
+ };
5639
6057
  id: string;
5640
6058
  legacyId: number;
5641
6059
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5666,20 +6084,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5666
6084
  retryAfter: Date;
5667
6085
  } | undefined;
5668
6086
  } | {
5669
- type: "TRADELINK_CREATE_CUSTODIAN";
6087
+ type: "CREATE_API_KEY";
5670
6088
  data: {
5671
- settlement: {
5672
- quorum: number;
5673
- userIds: string[];
5674
- }[];
5675
- withdraw: {
5676
- quorum: number;
5677
- userIds: string[];
5678
- }[];
5679
- arbitration: {
5680
- quorum: number;
5681
- userIds: string[];
5682
- }[];
6089
+ name: string;
6090
+ entities: string[];
6091
+ scopes: Record<string, never>;
5683
6092
  };
5684
6093
  id: string;
5685
6094
  legacyId: number;
@@ -5711,20 +6120,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5711
6120
  retryAfter: Date;
5712
6121
  } | undefined;
5713
6122
  } | {
5714
- type: "TRADELINK_EDIT_CUSTODIAN";
6123
+ type: "EDIT_API_KEY";
5715
6124
  data: {
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
- }[];
6125
+ name: string;
6126
+ entities: string[];
6127
+ scopes: Record<string, never>;
5728
6128
  };
5729
6129
  id: string;
5730
6130
  legacyId: number;
@@ -5756,19 +6156,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5756
6156
  retryAfter: Date;
5757
6157
  } | undefined;
5758
6158
  } | {
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
- };
6159
+ type: "REVOKE_API_KEY";
6160
+ data: Record<string, never>;
5772
6161
  id: string;
5773
6162
  legacyId: number;
5774
6163
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5799,17 +6188,29 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5799
6188
  retryAfter: Date;
5800
6189
  } | undefined;
5801
6190
  } | {
5802
- type: "TRADELINK_EDIT_EXCHANGE";
6191
+ type: "CREATE_POLICY";
5803
6192
  data: {
5804
- tradelinkId: string;
5805
- groups: {
5806
- quorum: number;
5807
- userIds: string[];
5808
- }[];
5809
- whitelist: {
5810
- name: string;
5811
- currency: string;
5812
- address: string;
6193
+ name: string;
6194
+ description: string | null;
6195
+ asset: {
6196
+ network: string;
6197
+ contractAddress: string | null;
6198
+ tokenIdentifier: string | null;
6199
+ } | null;
6200
+ govRules: {
6201
+ reviewSteps: ({
6202
+ quorum: number;
6203
+ userIds: string[];
6204
+ } | {
6205
+ quorum: number;
6206
+ groupId: string;
6207
+ })[];
6208
+ threshold?: {
6209
+ min: string | null;
6210
+ max: string | null;
6211
+ } | undefined;
6212
+ whitelistIds?: string[] | undefined;
6213
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5813
6214
  }[];
5814
6215
  };
5815
6216
  id: string;
@@ -5842,17 +6243,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5842
6243
  retryAfter: Date;
5843
6244
  } | undefined;
5844
6245
  } | {
5845
- type: "TRADELINK_CREATE_ASSET_MANAGER";
6246
+ type: "EDIT_POLICY";
5846
6247
  data: {
5847
- tradelinkId: string;
5848
- groups: {
5849
- quorum: number;
5850
- userIds: string[];
5851
- }[];
5852
- whitelist: {
5853
- name: string;
5854
- currency: string;
5855
- address: string;
6248
+ name: string;
6249
+ description: string | null;
6250
+ govRules: {
6251
+ reviewSteps: ({
6252
+ quorum: number;
6253
+ userIds: string[];
6254
+ } | {
6255
+ quorum: number;
6256
+ groupId: string;
6257
+ })[];
6258
+ threshold?: {
6259
+ min: string | null;
6260
+ max: string | null;
6261
+ } | undefined;
6262
+ whitelistIds?: string[] | undefined;
6263
+ operationType: "ACTIVATE_TOKEN" | "DEPLOY_CONTRACT" | "EXECUTE_CONTRACT" | "RECEIVE" | "SEND" | "SIGN_MESSAGE" | "STAKE";
5856
6264
  }[];
5857
6265
  };
5858
6266
  id: string;
@@ -5885,19 +6293,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5885
6293
  retryAfter: Date;
5886
6294
  } | undefined;
5887
6295
  } | {
5888
- type: "TRADELINK_EDIT_ASSET_MANAGER";
5889
- data: {
5890
- tradelinkId: string;
5891
- groups: {
5892
- quorum: number;
5893
- userIds: string[];
5894
- }[];
5895
- whitelist: {
5896
- name: string;
5897
- currency: string;
5898
- address: string;
5899
- }[];
5900
- };
6296
+ type: "TRADELINK_ACTIVATE_ACCOUNT";
6297
+ data: null;
5901
6298
  id: string;
5902
6299
  legacyId: number;
5903
6300
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -5928,11 +6325,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5928
6325
  retryAfter: Date;
5929
6326
  } | undefined;
5930
6327
  } | {
5931
- type: "TRADELINK_ADJUST_PLEDGE";
6328
+ type: "TRADELINK_CREATE_CUSTODIAN";
5932
6329
  data: {
5933
- accountId: string;
5934
- exchangeId: string;
5935
- amount: string;
6330
+ settlement: {
6331
+ quorum: number;
6332
+ userIds: string[];
6333
+ }[];
6334
+ withdraw: {
6335
+ quorum: number;
6336
+ userIds: string[];
6337
+ }[];
6338
+ arbitration: {
6339
+ quorum: number;
6340
+ userIds: string[];
6341
+ }[];
5936
6342
  };
5937
6343
  id: string;
5938
6344
  legacyId: number;
@@ -5964,11 +6370,20 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5964
6370
  retryAfter: Date;
5965
6371
  } | undefined;
5966
6372
  } | {
5967
- type: "TRADELINK_REPLEDGE";
6373
+ type: "TRADELINK_EDIT_CUSTODIAN";
5968
6374
  data: {
5969
- accountId: string;
5970
- exchangeId: string;
5971
- amount: string;
6375
+ settlement: {
6376
+ quorum: number;
6377
+ userIds: string[];
6378
+ }[];
6379
+ withdraw: {
6380
+ quorum: number;
6381
+ userIds: string[];
6382
+ }[];
6383
+ arbitration: {
6384
+ quorum: number;
6385
+ userIds: string[];
6386
+ }[];
5972
6387
  };
5973
6388
  id: string;
5974
6389
  legacyId: number;
@@ -6000,128 +6415,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6000
6415
  retryAfter: Date;
6001
6416
  } | undefined;
6002
6417
  } | {
6003
- type: "TRADELINK_CREATE_SETTLEMENT";
6418
+ type: "TRADELINK_CREATE_EXCHANGE";
6004
6419
  data: {
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;
6053
- } | {
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;
6420
+ tradelinkId: string;
6421
+ groups: {
6422
+ quorum: number;
6423
+ userIds: string[];
6424
+ }[];
6425
+ whitelist: {
6426
+ name: string;
6117
6427
  currency: string;
6118
- maxFee: string | null;
6119
- recipient: string;
6120
- type: "SUI_LIKE_SEND";
6121
- feeStrategy: {
6122
- type: "FAST" | "NORMAL" | "SLOW";
6123
- };
6124
- };
6428
+ address: string;
6429
+ }[];
6125
6430
  };
6126
6431
  id: string;
6127
6432
  legacyId: number;
@@ -6153,10 +6458,18 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6153
6458
  retryAfter: Date;
6154
6459
  } | undefined;
6155
6460
  } | {
6156
- type: "TRADELINK_FORCE_UNPLEDGE";
6461
+ type: "TRADELINK_EDIT_EXCHANGE";
6157
6462
  data: {
6158
- accountId: string;
6159
- exchangeId: string;
6463
+ tradelinkId: string;
6464
+ groups: {
6465
+ quorum: number;
6466
+ userIds: string[];
6467
+ }[];
6468
+ whitelist: {
6469
+ name: string;
6470
+ currency: string;
6471
+ address: string;
6472
+ }[];
6160
6473
  };
6161
6474
  id: string;
6162
6475
  legacyId: number;
@@ -6188,127 +6501,133 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6188
6501
  retryAfter: Date;
6189
6502
  } | undefined;
6190
6503
  } | {
6191
- type: "TRADELINK_WITHDRAW";
6504
+ type: "TRADELINK_CREATE_ASSET_MANAGER";
6192
6505
  data: {
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;
6506
+ tradelinkId: string;
6507
+ groups: {
6508
+ quorum: number;
6509
+ userIds: string[];
6510
+ }[];
6511
+ whitelist: {
6512
+ name: string;
6282
6513
  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;
6514
+ address: string;
6515
+ }[];
6516
+ };
6517
+ id: string;
6518
+ legacyId: number;
6519
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6520
+ reviewSteps: {
6521
+ stageName: string;
6522
+ quorum: number;
6523
+ }[];
6524
+ currentStepIndex: number;
6525
+ expiresAt: Date;
6526
+ targetId: string | null;
6527
+ note: {
6528
+ title: string;
6529
+ content: string;
6530
+ } | null;
6531
+ reviews: {
6532
+ stepIndex: number;
6533
+ userId: string;
6534
+ groupName: string | null;
6535
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6536
+ createdAt: Date;
6537
+ updatedAt: Date;
6538
+ }[];
6539
+ createdAt: Date;
6540
+ updatedAt: Date;
6541
+ createdById: string;
6542
+ inflight?: {
6543
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6544
+ retryAfter: Date;
6545
+ } | undefined;
6546
+ } | {
6547
+ type: "TRADELINK_EDIT_ASSET_MANAGER";
6548
+ data: {
6549
+ tradelinkId: string;
6550
+ groups: {
6551
+ quorum: number;
6552
+ userIds: string[];
6553
+ }[];
6554
+ whitelist: {
6555
+ name: string;
6304
6556
  currency: string;
6305
- maxFee: string | null;
6306
- recipient: string;
6307
- type: "SUI_LIKE_SEND";
6308
- feeStrategy: {
6309
- type: "FAST" | "NORMAL" | "SLOW";
6310
- };
6311
- };
6557
+ address: string;
6558
+ }[];
6559
+ };
6560
+ id: string;
6561
+ legacyId: number;
6562
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6563
+ reviewSteps: {
6564
+ stageName: string;
6565
+ quorum: number;
6566
+ }[];
6567
+ currentStepIndex: number;
6568
+ expiresAt: Date;
6569
+ targetId: string | null;
6570
+ note: {
6571
+ title: string;
6572
+ content: string;
6573
+ } | null;
6574
+ reviews: {
6575
+ stepIndex: number;
6576
+ userId: string;
6577
+ groupName: string | null;
6578
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6579
+ createdAt: Date;
6580
+ updatedAt: Date;
6581
+ }[];
6582
+ createdAt: Date;
6583
+ updatedAt: Date;
6584
+ createdById: string;
6585
+ inflight?: {
6586
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6587
+ retryAfter: Date;
6588
+ } | undefined;
6589
+ } | {
6590
+ type: "TRADELINK_ADJUST_PLEDGE";
6591
+ data: {
6592
+ accountId: string;
6593
+ exchangeId: string;
6594
+ amount: string;
6595
+ };
6596
+ id: string;
6597
+ legacyId: number;
6598
+ state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6599
+ reviewSteps: {
6600
+ stageName: string;
6601
+ quorum: number;
6602
+ }[];
6603
+ currentStepIndex: number;
6604
+ expiresAt: Date;
6605
+ targetId: string | null;
6606
+ note: {
6607
+ title: string;
6608
+ content: string;
6609
+ } | null;
6610
+ reviews: {
6611
+ stepIndex: number;
6612
+ userId: string;
6613
+ groupName: string | null;
6614
+ status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6615
+ createdAt: Date;
6616
+ updatedAt: Date;
6617
+ }[];
6618
+ createdAt: Date;
6619
+ updatedAt: Date;
6620
+ createdById: string;
6621
+ inflight?: {
6622
+ completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6623
+ retryAfter: Date;
6624
+ } | undefined;
6625
+ } | {
6626
+ type: "TRADELINK_REPLEDGE";
6627
+ data: {
6628
+ accountId: string;
6629
+ exchangeId: string;
6630
+ amount: string;
6312
6631
  };
6313
6632
  id: string;
6314
6633
  legacyId: number;
@@ -6340,19 +6659,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6340
6659
  retryAfter: Date;
6341
6660
  } | undefined;
6342
6661
  } | {
6343
- type: "TRADELINK_ARBITRATE";
6662
+ type: "TRADELINK_CREATE_SETTLEMENT";
6344
6663
  data: {
6345
6664
  accountId: string;
6665
+ exchangeId: string;
6346
6666
  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
6667
  amount: string;
6357
6668
  currency: string;
6358
6669
  maxFee: string | null;
@@ -6453,237 +6764,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6453
6764
  };
6454
6765
  } | {
6455
6766
  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
- };
6464
- };
6465
- id: string;
6466
- legacyId: number;
6467
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6468
- reviewSteps: {
6469
- stageName: string;
6470
- quorum: number;
6471
- }[];
6472
- currentStepIndex: number;
6473
- expiresAt: Date;
6474
- targetId: string | null;
6475
- note: {
6476
- title: string;
6477
- content: string;
6478
- } | null;
6479
- reviews: {
6480
- stepIndex: number;
6481
- userId: string;
6482
- groupName: string | null;
6483
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6484
- createdAt: Date;
6485
- updatedAt: Date;
6486
- }[];
6487
- createdAt: Date;
6488
- updatedAt: Date;
6489
- createdById: string;
6490
- inflight?: {
6491
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6492
- retryAfter: Date;
6493
- } | undefined;
6494
- } | {
6495
- type: "SIGN_MESSAGE";
6496
- data: {
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;
6522
- };
6523
- id: string;
6524
- legacyId: number;
6525
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6526
- reviewSteps: {
6527
- stageName: string;
6528
- quorum: number;
6529
- }[];
6530
- currentStepIndex: number;
6531
- expiresAt: Date;
6532
- targetId: string | null;
6533
- note: {
6534
- title: string;
6535
- content: string;
6536
- } | null;
6537
- reviews: {
6538
- stepIndex: number;
6539
- userId: string;
6540
- groupName: string | null;
6541
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6542
- createdAt: Date;
6543
- updatedAt: Date;
6544
- }[];
6545
- createdAt: Date;
6546
- updatedAt: Date;
6547
- createdById: string;
6548
- inflight?: {
6549
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6550
- retryAfter: Date;
6551
- } | undefined;
6552
- } | {
6553
- type: "CREATE_ACCOUNT";
6554
- data: {
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";
6604
- };
6605
- id: string;
6606
- legacyId: number;
6607
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6608
- reviewSteps: {
6609
- stageName: string;
6610
- quorum: number;
6611
- }[];
6612
- currentStepIndex: number;
6613
- expiresAt: Date;
6614
- targetId: string | null;
6615
- note: {
6616
- title: string;
6617
- content: string;
6618
- } | null;
6619
- reviews: {
6620
- stepIndex: number;
6621
- userId: string;
6622
- groupName: string | null;
6623
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6624
- createdAt: Date;
6625
- updatedAt: Date;
6626
- }[];
6627
- createdAt: Date;
6628
- updatedAt: Date;
6629
- createdById: string;
6630
- inflight?: {
6631
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6632
- retryAfter: Date;
6633
- } | undefined;
6634
- } | {
6635
- type: "EDIT_TOKEN_RULE";
6636
- data: {
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";
6653
- }[];
6654
- };
6655
- id: string;
6656
- legacyId: number;
6657
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6658
- reviewSteps: {
6659
- stageName: string;
6660
- quorum: number;
6661
- }[];
6662
- currentStepIndex: number;
6663
- expiresAt: Date;
6664
- targetId: string | null;
6665
- note: {
6666
- title: string;
6667
- content: string;
6668
- } | null;
6669
- reviews: {
6670
- stepIndex: number;
6671
- userId: string;
6672
- groupName: string | null;
6673
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6674
- createdAt: Date;
6675
- updatedAt: Date;
6676
- }[];
6677
- createdAt: Date;
6678
- updatedAt: Date;
6679
- createdById: string;
6680
- inflight?: {
6681
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6682
- retryAfter: Date;
6683
- } | undefined;
6684
- } | {
6685
- type: "REVOKE_GROUP";
6686
- data: Record<string, never>;
6767
+ currency: string;
6768
+ maxFee: string | null;
6769
+ recipient: string;
6770
+ type: "SUI_LIKE_SEND";
6771
+ feeStrategy: {
6772
+ type: "FAST" | "NORMAL" | "SLOW";
6773
+ };
6774
+ } | {
6775
+ amount: string;
6776
+ currency: string;
6777
+ maxFee: string | null;
6778
+ recipient: string;
6779
+ type: "TEZOS_LIKE_SEND";
6780
+ feeStrategy: {
6781
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6782
+ };
6783
+ };
6784
+ };
6687
6785
  id: string;
6688
6786
  legacyId: number;
6689
6787
  state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
@@ -6714,9 +6812,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6714
6812
  retryAfter: Date;
6715
6813
  } | undefined;
6716
6814
  } | {
6717
- type: "CREATE_API_USER_ACCESS";
6815
+ type: "TRADELINK_FORCE_UNPLEDGE";
6718
6816
  data: {
6719
- name: string;
6817
+ accountId: string;
6818
+ exchangeId: string;
6720
6819
  };
6721
6820
  id: string;
6722
6821
  legacyId: number;
@@ -6748,12 +6847,126 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6748
6847
  retryAfter: Date;
6749
6848
  } | undefined;
6750
6849
  } | {
6751
- type: "CREATE_SCICONFIG";
6850
+ type: "TRADELINK_WITHDRAW";
6752
6851
  data: {
6753
- account: string;
6754
- config: {
6755
- dapps: string[] | null;
6756
- customContractCallEnabled: boolean;
6852
+ accountId: string;
6853
+ transaction: {
6854
+ amount: string;
6855
+ currency: string;
6856
+ maxFee: string | null;
6857
+ recipient: string;
6858
+ type: "BITCOIN_LIKE_SEND";
6859
+ feeStrategy: {
6860
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6861
+ feePerByte?: string | null | undefined;
6862
+ };
6863
+ } | {
6864
+ amount: string;
6865
+ currency: string;
6866
+ recipient: string;
6867
+ executeBeforeSeconds?: number | undefined;
6868
+ reason: string | null;
6869
+ type: "CANTON_LIKE_SEND";
6870
+ } | {
6871
+ amount: string;
6872
+ currency: string;
6873
+ maxFee: string | null;
6874
+ recipient: string;
6875
+ type: "CARDANO_LIKE_SEND";
6876
+ feeStrategy: {
6877
+ type: "FAST" | "NORMAL" | "SLOW";
6878
+ };
6879
+ } | {
6880
+ amount: string;
6881
+ currency: string;
6882
+ maxFee: string | null;
6883
+ recipient: string;
6884
+ replacingTxHash?: string | undefined;
6885
+ type: "ETHEREUM_LIKE_SEND";
6886
+ feeStrategy: {
6887
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6888
+ gasPrice: string;
6889
+ gasLimit: string;
6890
+ } | {
6891
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6892
+ maxPriorityFeePerGas: string;
6893
+ maxFeePerGas: string;
6894
+ gasLimit: string;
6895
+ };
6896
+ } | {
6897
+ amount: string;
6898
+ currency: string;
6899
+ maxFee: string | null;
6900
+ recipient: string;
6901
+ type: "HEDERA_LIKE_SEND";
6902
+ feeStrategy: {
6903
+ type: "FAST" | "NORMAL" | "SLOW";
6904
+ };
6905
+ } | {
6906
+ amount: string;
6907
+ currency: string;
6908
+ maxFee: string | null;
6909
+ recipient: string;
6910
+ type: "POLKADOT_LIKE_SEND";
6911
+ } | {
6912
+ amount: string;
6913
+ currency: string;
6914
+ maxFee: string | null;
6915
+ recipient: string;
6916
+ type: "RIPPLE_LIKE_SEND";
6917
+ destinationTag: string | null;
6918
+ feeStrategy: {
6919
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6920
+ };
6921
+ } | {
6922
+ amount: string;
6923
+ currency: string;
6924
+ maxFee: string | null;
6925
+ recipient: string;
6926
+ type: "SOLANA_LIKE_SEND";
6927
+ feeStrategy: {
6928
+ type: "FAST" | "NORMAL" | "SLOW";
6929
+ };
6930
+ } | {
6931
+ amount: string;
6932
+ currency: string;
6933
+ maxFee: string | null;
6934
+ recipient: string;
6935
+ type: "STELLAR_LIKE_SEND";
6936
+ memo: {
6937
+ type: "MEMO_TEXT";
6938
+ value: string;
6939
+ } | {
6940
+ type: "MEMO_ID";
6941
+ value: string;
6942
+ } | {
6943
+ type: "MEMO_HASH";
6944
+ value: string;
6945
+ } | {
6946
+ type: "MEMO_RETURN";
6947
+ value: string;
6948
+ } | null;
6949
+ feeStrategy: {
6950
+ type: "FAST" | "NORMAL" | "SLOW";
6951
+ };
6952
+ } | {
6953
+ amount: string;
6954
+ currency: string;
6955
+ maxFee: string | null;
6956
+ recipient: string;
6957
+ type: "SUI_LIKE_SEND";
6958
+ feeStrategy: {
6959
+ type: "FAST" | "NORMAL" | "SLOW";
6960
+ };
6961
+ } | {
6962
+ amount: string;
6963
+ currency: string;
6964
+ maxFee: string | null;
6965
+ recipient: string;
6966
+ type: "TEZOS_LIKE_SEND";
6967
+ feeStrategy: {
6968
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
6969
+ };
6757
6970
  };
6758
6971
  };
6759
6972
  id: string;
@@ -6786,11 +6999,126 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6786
6999
  retryAfter: Date;
6787
7000
  } | undefined;
6788
7001
  } | {
6789
- type: "EDIT_SCICONFIG";
7002
+ type: "TRADELINK_ARBITRATE";
6790
7003
  data: {
6791
- config: {
6792
- dapps: string[] | null;
6793
- customContractCallEnabled: boolean;
7004
+ accountId: string;
7005
+ transaction: {
7006
+ amount: string;
7007
+ currency: string;
7008
+ maxFee: string | null;
7009
+ recipient: string;
7010
+ type: "BITCOIN_LIKE_SEND";
7011
+ feeStrategy: {
7012
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7013
+ feePerByte?: string | null | undefined;
7014
+ };
7015
+ } | {
7016
+ amount: string;
7017
+ currency: string;
7018
+ recipient: string;
7019
+ executeBeforeSeconds?: number | undefined;
7020
+ reason: string | null;
7021
+ type: "CANTON_LIKE_SEND";
7022
+ } | {
7023
+ amount: string;
7024
+ currency: string;
7025
+ maxFee: string | null;
7026
+ recipient: string;
7027
+ type: "CARDANO_LIKE_SEND";
7028
+ feeStrategy: {
7029
+ type: "FAST" | "NORMAL" | "SLOW";
7030
+ };
7031
+ } | {
7032
+ amount: string;
7033
+ currency: string;
7034
+ maxFee: string | null;
7035
+ recipient: string;
7036
+ replacingTxHash?: string | undefined;
7037
+ type: "ETHEREUM_LIKE_SEND";
7038
+ feeStrategy: {
7039
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7040
+ gasPrice: string;
7041
+ gasLimit: string;
7042
+ } | {
7043
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7044
+ maxPriorityFeePerGas: string;
7045
+ maxFeePerGas: string;
7046
+ gasLimit: string;
7047
+ };
7048
+ } | {
7049
+ amount: string;
7050
+ currency: string;
7051
+ maxFee: string | null;
7052
+ recipient: string;
7053
+ type: "HEDERA_LIKE_SEND";
7054
+ feeStrategy: {
7055
+ type: "FAST" | "NORMAL" | "SLOW";
7056
+ };
7057
+ } | {
7058
+ amount: string;
7059
+ currency: string;
7060
+ maxFee: string | null;
7061
+ recipient: string;
7062
+ type: "POLKADOT_LIKE_SEND";
7063
+ } | {
7064
+ amount: string;
7065
+ currency: string;
7066
+ maxFee: string | null;
7067
+ recipient: string;
7068
+ type: "RIPPLE_LIKE_SEND";
7069
+ destinationTag: string | null;
7070
+ feeStrategy: {
7071
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7072
+ };
7073
+ } | {
7074
+ amount: string;
7075
+ currency: string;
7076
+ maxFee: string | null;
7077
+ recipient: string;
7078
+ type: "SOLANA_LIKE_SEND";
7079
+ feeStrategy: {
7080
+ type: "FAST" | "NORMAL" | "SLOW";
7081
+ };
7082
+ } | {
7083
+ amount: string;
7084
+ currency: string;
7085
+ maxFee: string | null;
7086
+ recipient: string;
7087
+ type: "STELLAR_LIKE_SEND";
7088
+ memo: {
7089
+ type: "MEMO_TEXT";
7090
+ value: string;
7091
+ } | {
7092
+ type: "MEMO_ID";
7093
+ value: string;
7094
+ } | {
7095
+ type: "MEMO_HASH";
7096
+ value: string;
7097
+ } | {
7098
+ type: "MEMO_RETURN";
7099
+ value: string;
7100
+ } | null;
7101
+ feeStrategy: {
7102
+ type: "FAST" | "NORMAL" | "SLOW";
7103
+ };
7104
+ } | {
7105
+ amount: string;
7106
+ currency: string;
7107
+ maxFee: string | null;
7108
+ recipient: string;
7109
+ type: "SUI_LIKE_SEND";
7110
+ feeStrategy: {
7111
+ type: "FAST" | "NORMAL" | "SLOW";
7112
+ };
7113
+ } | {
7114
+ amount: string;
7115
+ currency: string;
7116
+ maxFee: string | null;
7117
+ recipient: string;
7118
+ type: "TEZOS_LIKE_SEND";
7119
+ feeStrategy: {
7120
+ type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
7121
+ };
6794
7122
  };
6795
7123
  };
6796
7124
  id: string;
@@ -6822,110 +7150,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6822
7150
  completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6823
7151
  retryAfter: Date;
6824
7152
  } | undefined;
6825
- } | {
6826
- type: "CREATE_API_KEY";
6827
- data: {
6828
- name: string;
6829
- entities: string[];
6830
- scopes: Record<string, never>;
6831
- };
6832
- id: string;
6833
- legacyId: number;
6834
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6835
- reviewSteps: {
6836
- stageName: string;
6837
- quorum: number;
6838
- }[];
6839
- currentStepIndex: number;
6840
- expiresAt: Date;
6841
- targetId: string | null;
6842
- note: {
6843
- title: string;
6844
- content: string;
6845
- } | null;
6846
- reviews: {
6847
- stepIndex: number;
6848
- userId: string;
6849
- groupName: string | null;
6850
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6851
- createdAt: Date;
6852
- updatedAt: Date;
6853
- }[];
6854
- createdAt: Date;
6855
- updatedAt: Date;
6856
- createdById: string;
6857
- inflight?: {
6858
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6859
- retryAfter: Date;
6860
- } | undefined;
6861
- } | {
6862
- type: "EDIT_API_KEY";
6863
- data: {
6864
- name: string;
6865
- entities: string[];
6866
- scopes: Record<string, never>;
6867
- };
6868
- id: string;
6869
- legacyId: number;
6870
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6871
- reviewSteps: {
6872
- stageName: string;
6873
- quorum: number;
6874
- }[];
6875
- currentStepIndex: number;
6876
- expiresAt: Date;
6877
- targetId: string | null;
6878
- note: {
6879
- title: string;
6880
- content: string;
6881
- } | null;
6882
- reviews: {
6883
- stepIndex: number;
6884
- userId: string;
6885
- groupName: string | null;
6886
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6887
- createdAt: Date;
6888
- updatedAt: Date;
6889
- }[];
6890
- createdAt: Date;
6891
- updatedAt: Date;
6892
- createdById: string;
6893
- inflight?: {
6894
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6895
- retryAfter: Date;
6896
- } | undefined;
6897
- } | {
6898
- type: "REVOKE_API_KEY";
6899
- data: Record<string, never>;
6900
- id: string;
6901
- legacyId: number;
6902
- state: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK";
6903
- reviewSteps: {
6904
- stageName: string;
6905
- quorum: number;
6906
- }[];
6907
- currentStepIndex: number;
6908
- expiresAt: Date;
6909
- targetId: string | null;
6910
- note: {
6911
- title: string;
6912
- content: string;
6913
- } | null;
6914
- reviews: {
6915
- stepIndex: number;
6916
- userId: string;
6917
- groupName: string | null;
6918
- status: "APPROVED" | "OBSOLETE" | "PENDING" | "QUEUED" | "REJECTED";
6919
- createdAt: Date;
6920
- updatedAt: Date;
6921
- }[];
6922
- createdAt: Date;
6923
- updatedAt: Date;
6924
- createdById: string;
6925
- inflight?: {
6926
- completionState: "ABORTED" | "BLOCKED" | "EXECUTED" | "EXECUTING" | "EXPIRED" | "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "STUCK" | null;
6927
- retryAfter: Date;
6928
- } | undefined;
6929
7153
  }) & {
6930
7154
  workspaceName: import("zod").output<typeof zWorkspaceName>;
6931
7155
  })[];
@@ -7088,6 +7312,179 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7088
7312
  } & RateLimitMetricsMeta;
7089
7313
  }>;
7090
7314
  }>>;
7315
+ auditTrail: import("@trpc/server").TRPCBuiltRouter<{
7316
+ ctx: {
7317
+ 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;
7318
+ 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;
7319
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
7320
+ debugAuthToken?: string;
7321
+ rootAuthToken?: string;
7322
+ prisma: ExtendedPrismaClient;
7323
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
7324
+ user: {
7325
+ id: string;
7326
+ workspaceName: string;
7327
+ name: string;
7328
+ authUserId: string | null;
7329
+ pubKey: string;
7330
+ deviceType: UserDeviceType;
7331
+ deviceUserId: string | null;
7332
+ hsmId: string | null;
7333
+ u2fKeyHandle: string | null;
7334
+ u2fPubKey: string | null;
7335
+ legacyViewAll: boolean;
7336
+ role: UserRole;
7337
+ status: ActivationStatus;
7338
+ isSuspended: boolean;
7339
+ gateType: GateUserType | null;
7340
+ gateId: number;
7341
+ syncId: string;
7342
+ createdAt: Date;
7343
+ updatedAt: Date;
7344
+ } | null;
7345
+ authorization: string | null;
7346
+ readOnly: boolean;
7347
+ activityTracer: ActivityTracer;
7348
+ };
7349
+ meta: {
7350
+ [x: string]: unknown;
7351
+ } & {
7352
+ openapi?: {
7353
+ enabled?: boolean;
7354
+ method: import("trpc-to-openapi").OpenApiMethod;
7355
+ path: `/${string}`;
7356
+ operationId?: string;
7357
+ summary?: string;
7358
+ description?: string;
7359
+ protect?: boolean;
7360
+ tags?: string[];
7361
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7362
+ deprecated?: boolean;
7363
+ requestHeaders?: import("zod").ZodObject;
7364
+ responseHeaders?: import("zod").ZodObject;
7365
+ successDescription?: string;
7366
+ errorResponses?: number[] | Record<number, string>;
7367
+ };
7368
+ } & RateLimitMetricsMeta;
7369
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7370
+ transformer: true;
7371
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7372
+ list: import("@trpc/server").TRPCQueryProcedure<{
7373
+ input: {
7374
+ cursor?: number | undefined;
7375
+ limit?: number | undefined;
7376
+ requestId?: string | undefined;
7377
+ workspace?: string | undefined;
7378
+ operation?: string | undefined;
7379
+ domain?: string | undefined;
7380
+ eventType?: string | undefined;
7381
+ network?: string | undefined;
7382
+ days?: number | undefined;
7383
+ };
7384
+ output: {
7385
+ results: {
7386
+ seq: number;
7387
+ subject: string;
7388
+ headers: Record<string, string>;
7389
+ }[];
7390
+ nextCursor: number | null;
7391
+ hasMore: boolean;
7392
+ capped: boolean;
7393
+ };
7394
+ meta: {
7395
+ [x: string]: unknown;
7396
+ } & {
7397
+ openapi?: {
7398
+ enabled?: boolean;
7399
+ method: import("trpc-to-openapi").OpenApiMethod;
7400
+ path: `/${string}`;
7401
+ operationId?: string;
7402
+ summary?: string;
7403
+ description?: string;
7404
+ protect?: boolean;
7405
+ tags?: string[];
7406
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7407
+ deprecated?: boolean;
7408
+ requestHeaders?: import("zod").ZodObject;
7409
+ responseHeaders?: import("zod").ZodObject;
7410
+ successDescription?: string;
7411
+ errorResponses?: number[] | Record<number, string>;
7412
+ };
7413
+ } & RateLimitMetricsMeta;
7414
+ }>;
7415
+ requestFailures: import("@trpc/server").TRPCQueryProcedure<{
7416
+ input: {
7417
+ cursor?: number | undefined;
7418
+ limit?: number | undefined;
7419
+ days?: number | undefined;
7420
+ };
7421
+ output: {
7422
+ results: {
7423
+ seq: number;
7424
+ subject: string;
7425
+ headers: Record<string, string>;
7426
+ payload: unknown;
7427
+ decoded: boolean;
7428
+ }[];
7429
+ nextCursor: number | null;
7430
+ hasMore: boolean;
7431
+ capped: boolean;
7432
+ };
7433
+ meta: {
7434
+ [x: string]: unknown;
7435
+ } & {
7436
+ openapi?: {
7437
+ enabled?: boolean;
7438
+ method: import("trpc-to-openapi").OpenApiMethod;
7439
+ path: `/${string}`;
7440
+ operationId?: string;
7441
+ summary?: string;
7442
+ description?: string;
7443
+ protect?: boolean;
7444
+ tags?: string[];
7445
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7446
+ deprecated?: boolean;
7447
+ requestHeaders?: import("zod").ZodObject;
7448
+ responseHeaders?: import("zod").ZodObject;
7449
+ successDescription?: string;
7450
+ errorResponses?: number[] | Record<number, string>;
7451
+ };
7452
+ } & RateLimitMetricsMeta;
7453
+ }>;
7454
+ getEvent: import("@trpc/server").TRPCQueryProcedure<{
7455
+ input: {
7456
+ seq: number;
7457
+ };
7458
+ output: {
7459
+ subject: string;
7460
+ headers: Record<string, string>;
7461
+ time: Date;
7462
+ payload: unknown;
7463
+ contentType: string;
7464
+ decoded: boolean;
7465
+ };
7466
+ meta: {
7467
+ [x: string]: unknown;
7468
+ } & {
7469
+ openapi?: {
7470
+ enabled?: boolean;
7471
+ method: import("trpc-to-openapi").OpenApiMethod;
7472
+ path: `/${string}`;
7473
+ operationId?: string;
7474
+ summary?: string;
7475
+ description?: string;
7476
+ protect?: boolean;
7477
+ tags?: string[];
7478
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7479
+ deprecated?: boolean;
7480
+ requestHeaders?: import("zod").ZodObject;
7481
+ responseHeaders?: import("zod").ZodObject;
7482
+ successDescription?: string;
7483
+ errorResponses?: number[] | Record<number, string>;
7484
+ };
7485
+ } & RateLimitMetricsMeta;
7486
+ }>;
7487
+ }>>;
7091
7488
  }>>;
7092
7489
  }>>;
7093
7490
  type InternalAppRouter = typeof internalAppRouter;