@hsuite/smart-engines-sdk 3.3.0 → 3.4.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.
package/dist/index.d.ts CHANGED
@@ -298,6 +298,23 @@ declare const AccountBalanceSchema: z.ZodObject<{
298
298
  }[] | undefined;
299
299
  }>;
300
300
  export type AccountBalance = z.infer<typeof AccountBalanceSchema>;
301
+ export type HederaKeyShape = {
302
+ type: "ed25519";
303
+ key: string;
304
+ } | {
305
+ type: "keyList";
306
+ threshold: number;
307
+ keys: HederaKeyShape[];
308
+ };
309
+ export type PolkadotSignatoryShape = {
310
+ type: "account";
311
+ address: string;
312
+ } | {
313
+ type: "multisig";
314
+ address: string;
315
+ threshold: number;
316
+ signatories: PolkadotSignatoryShape[];
317
+ };
301
318
  declare const TransactionSchema: z.ZodObject<{
302
319
  id: z.ZodString;
303
320
  chain: z.ZodEnum<[
@@ -883,6 +900,837 @@ declare const ActionResultSchema: z.ZodObject<{
883
900
  notes?: string[] | undefined;
884
901
  }>;
885
902
  export type ActionResult = z.infer<typeof ActionResultSchema>;
903
+ declare const PreparedTransactionResponseSchema: z.ZodObject<{
904
+ chain: z.ZodEnum<[
905
+ "hedera",
906
+ "xrpl",
907
+ "polkadot",
908
+ "solana",
909
+ "stellar",
910
+ "ethereum",
911
+ "polygon",
912
+ "bitcoin",
913
+ "cardano"
914
+ ]>;
915
+ transactionType: z.ZodString;
916
+ transactionId: z.ZodString;
917
+ transactionBytes: z.ZodString;
918
+ expiresAt: z.ZodDate;
919
+ validatorSignatures: z.ZodArray<z.ZodObject<{
920
+ validatorId: z.ZodString;
921
+ publicKey: z.ZodString;
922
+ signature: z.ZodString;
923
+ signedAt: z.ZodDate;
924
+ algorithm: z.ZodOptional<z.ZodEnum<[
925
+ "ed25519",
926
+ "ecdsa-secp256k1",
927
+ "bls12-381"
928
+ ]>>;
929
+ }, "strip", z.ZodTypeAny, {
930
+ publicKey: string;
931
+ validatorId: string;
932
+ signature: string;
933
+ signedAt: Date;
934
+ algorithm?: "ed25519" | "ecdsa-secp256k1" | "bls12-381" | undefined;
935
+ }, {
936
+ publicKey: string;
937
+ validatorId: string;
938
+ signature: string;
939
+ signedAt: Date;
940
+ algorithm?: "ed25519" | "ecdsa-secp256k1" | "bls12-381" | undefined;
941
+ }>, "many">;
942
+ payerAccountId: z.ZodOptional<z.ZodString>;
943
+ estimatedFee: z.ZodOptional<z.ZodString>;
944
+ requiredSignatures: z.ZodOptional<z.ZodNumber>;
945
+ readyToSubmit: z.ZodDefault<z.ZodBoolean>;
946
+ metadata: z.ZodOptional<z.ZodUnion<[
947
+ z.ZodObject<{
948
+ nodeAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
949
+ maxTransactionFee: z.ZodOptional<z.ZodString>;
950
+ memo: z.ZodOptional<z.ZodString>;
951
+ scheduleInfo: z.ZodOptional<z.ZodObject<{
952
+ scheduleId: z.ZodString;
953
+ adminKey: z.ZodOptional<z.ZodString>;
954
+ }, "strip", z.ZodTypeAny, {
955
+ scheduleId: string;
956
+ adminKey?: string | undefined;
957
+ }, {
958
+ scheduleId: string;
959
+ adminKey?: string | undefined;
960
+ }>>;
961
+ }, "strip", z.ZodTypeAny, {
962
+ memo?: string | undefined;
963
+ nodeAccountIds?: string[] | undefined;
964
+ maxTransactionFee?: string | undefined;
965
+ scheduleInfo?: {
966
+ scheduleId: string;
967
+ adminKey?: string | undefined;
968
+ } | undefined;
969
+ }, {
970
+ memo?: string | undefined;
971
+ nodeAccountIds?: string[] | undefined;
972
+ maxTransactionFee?: string | undefined;
973
+ scheduleInfo?: {
974
+ scheduleId: string;
975
+ adminKey?: string | undefined;
976
+ } | undefined;
977
+ }>,
978
+ z.ZodObject<{
979
+ sequence: z.ZodOptional<z.ZodNumber>;
980
+ lastLedgerSequence: z.ZodOptional<z.ZodNumber>;
981
+ signerList: z.ZodOptional<z.ZodArray<z.ZodObject<{
982
+ account: z.ZodString;
983
+ signerWeight: z.ZodNumber;
984
+ }, "strip", z.ZodTypeAny, {
985
+ account: string;
986
+ signerWeight: number;
987
+ }, {
988
+ account: string;
989
+ signerWeight: number;
990
+ }>, "many">>;
991
+ signerQuorum: z.ZodOptional<z.ZodNumber>;
992
+ }, "strip", z.ZodTypeAny, {
993
+ signerQuorum?: number | undefined;
994
+ sequence?: number | undefined;
995
+ lastLedgerSequence?: number | undefined;
996
+ signerList?: {
997
+ account: string;
998
+ signerWeight: number;
999
+ }[] | undefined;
1000
+ }, {
1001
+ signerQuorum?: number | undefined;
1002
+ sequence?: number | undefined;
1003
+ lastLedgerSequence?: number | undefined;
1004
+ signerList?: {
1005
+ account: string;
1006
+ signerWeight: number;
1007
+ }[] | undefined;
1008
+ }>,
1009
+ z.ZodObject<{
1010
+ recentBlockhash: z.ZodOptional<z.ZodString>;
1011
+ feePayer: z.ZodOptional<z.ZodString>;
1012
+ programIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1013
+ squadsMultisigPda: z.ZodOptional<z.ZodString>;
1014
+ squadsVaultPda: z.ZodOptional<z.ZodString>;
1015
+ squadsTransactionIndex: z.ZodOptional<z.ZodNumber>;
1016
+ squadsProposalAddress: z.ZodOptional<z.ZodString>;
1017
+ multisigCreated: z.ZodOptional<z.ZodBoolean>;
1018
+ securityMode: z.ZodOptional<z.ZodEnum<[
1019
+ "partial",
1020
+ "full"
1021
+ ]>>;
1022
+ splMint: z.ZodOptional<z.ZodString>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ securityMode?: "partial" | "full" | undefined;
1025
+ recentBlockhash?: string | undefined;
1026
+ feePayer?: string | undefined;
1027
+ programIds?: string[] | undefined;
1028
+ squadsMultisigPda?: string | undefined;
1029
+ squadsVaultPda?: string | undefined;
1030
+ squadsTransactionIndex?: number | undefined;
1031
+ squadsProposalAddress?: string | undefined;
1032
+ multisigCreated?: boolean | undefined;
1033
+ splMint?: string | undefined;
1034
+ }, {
1035
+ securityMode?: "partial" | "full" | undefined;
1036
+ recentBlockhash?: string | undefined;
1037
+ feePayer?: string | undefined;
1038
+ programIds?: string[] | undefined;
1039
+ squadsMultisigPda?: string | undefined;
1040
+ squadsVaultPda?: string | undefined;
1041
+ squadsTransactionIndex?: number | undefined;
1042
+ squadsProposalAddress?: string | undefined;
1043
+ multisigCreated?: boolean | undefined;
1044
+ splMint?: string | undefined;
1045
+ }>,
1046
+ z.ZodObject<{
1047
+ era: z.ZodOptional<z.ZodString>;
1048
+ nonce: z.ZodOptional<z.ZodNumber>;
1049
+ tip: z.ZodOptional<z.ZodString>;
1050
+ specVersion: z.ZodOptional<z.ZodNumber>;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ era?: string | undefined;
1053
+ nonce?: number | undefined;
1054
+ tip?: string | undefined;
1055
+ specVersion?: number | undefined;
1056
+ }, {
1057
+ era?: string | undefined;
1058
+ nonce?: number | undefined;
1059
+ tip?: string | undefined;
1060
+ specVersion?: number | undefined;
1061
+ }>,
1062
+ z.ZodRecord<z.ZodString, z.ZodAny>
1063
+ ]>>;
1064
+ sovereignty: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [
1065
+ z.ZodObject<{
1066
+ mode: z.ZodLiteral<"partial">;
1067
+ entityId: z.ZodString;
1068
+ validatorPublicKeys: z.ZodArray<z.ZodString, "many">;
1069
+ authorizationSet: z.ZodOptional<z.ZodDiscriminatedUnion<"chain", [
1070
+ z.ZodObject<{
1071
+ chain: z.ZodLiteral<"hedera">;
1072
+ adminKey: z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>;
1073
+ supplyKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1074
+ freezeKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1075
+ wipeKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1076
+ pauseKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1077
+ kycKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ chain: "hedera";
1080
+ adminKey: HederaKeyShape;
1081
+ supplyKey?: HederaKeyShape | undefined;
1082
+ freezeKey?: HederaKeyShape | undefined;
1083
+ wipeKey?: HederaKeyShape | undefined;
1084
+ pauseKey?: HederaKeyShape | undefined;
1085
+ kycKey?: HederaKeyShape | undefined;
1086
+ }, {
1087
+ chain: "hedera";
1088
+ adminKey: HederaKeyShape;
1089
+ supplyKey?: HederaKeyShape | undefined;
1090
+ freezeKey?: HederaKeyShape | undefined;
1091
+ wipeKey?: HederaKeyShape | undefined;
1092
+ pauseKey?: HederaKeyShape | undefined;
1093
+ kycKey?: HederaKeyShape | undefined;
1094
+ }>,
1095
+ z.ZodObject<{
1096
+ chain: z.ZodLiteral<"xrpl">;
1097
+ signerEntries: z.ZodArray<z.ZodObject<{
1098
+ account: z.ZodString;
1099
+ weight: z.ZodNumber;
1100
+ }, "strip", z.ZodTypeAny, {
1101
+ account: string;
1102
+ weight: number;
1103
+ }, {
1104
+ account: string;
1105
+ weight: number;
1106
+ }>, "many">;
1107
+ signerQuorum: z.ZodNumber;
1108
+ masterDisabled: z.ZodBoolean;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ chain: "xrpl";
1111
+ signerEntries: {
1112
+ account: string;
1113
+ weight: number;
1114
+ }[];
1115
+ signerQuorum: number;
1116
+ masterDisabled: boolean;
1117
+ }, {
1118
+ chain: "xrpl";
1119
+ signerEntries: {
1120
+ account: string;
1121
+ weight: number;
1122
+ }[];
1123
+ signerQuorum: number;
1124
+ masterDisabled: boolean;
1125
+ }>,
1126
+ z.ZodObject<{
1127
+ chain: z.ZodLiteral<"stellar">;
1128
+ signers: z.ZodArray<z.ZodObject<{
1129
+ key: z.ZodString;
1130
+ weight: z.ZodNumber;
1131
+ }, "strip", z.ZodTypeAny, {
1132
+ key: string;
1133
+ weight: number;
1134
+ }, {
1135
+ key: string;
1136
+ weight: number;
1137
+ }>, "many">;
1138
+ thresholds: z.ZodObject<{
1139
+ low: z.ZodNumber;
1140
+ med: z.ZodNumber;
1141
+ high: z.ZodNumber;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ low: number;
1144
+ med: number;
1145
+ high: number;
1146
+ }, {
1147
+ low: number;
1148
+ med: number;
1149
+ high: number;
1150
+ }>;
1151
+ masterWeight: z.ZodNumber;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ chain: "stellar";
1154
+ signers: {
1155
+ key: string;
1156
+ weight: number;
1157
+ }[];
1158
+ thresholds: {
1159
+ low: number;
1160
+ med: number;
1161
+ high: number;
1162
+ };
1163
+ masterWeight: number;
1164
+ }, {
1165
+ chain: "stellar";
1166
+ signers: {
1167
+ key: string;
1168
+ weight: number;
1169
+ }[];
1170
+ thresholds: {
1171
+ low: number;
1172
+ med: number;
1173
+ high: number;
1174
+ };
1175
+ masterWeight: number;
1176
+ }>,
1177
+ z.ZodObject<{
1178
+ chain: z.ZodLiteral<"polkadot">;
1179
+ address: z.ZodString;
1180
+ signatory: z.ZodType<PolkadotSignatoryShape, z.ZodTypeDef, PolkadotSignatoryShape>;
1181
+ ss58Format: z.ZodNumber;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ chain: "polkadot";
1184
+ address: string;
1185
+ signatory: PolkadotSignatoryShape;
1186
+ ss58Format: number;
1187
+ }, {
1188
+ chain: "polkadot";
1189
+ address: string;
1190
+ signatory: PolkadotSignatoryShape;
1191
+ ss58Format: number;
1192
+ }>
1193
+ ]>>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ entityId: string;
1196
+ mode: "partial";
1197
+ validatorPublicKeys: string[];
1198
+ authorizationSet?: {
1199
+ chain: "hedera";
1200
+ adminKey: HederaKeyShape;
1201
+ supplyKey?: HederaKeyShape | undefined;
1202
+ freezeKey?: HederaKeyShape | undefined;
1203
+ wipeKey?: HederaKeyShape | undefined;
1204
+ pauseKey?: HederaKeyShape | undefined;
1205
+ kycKey?: HederaKeyShape | undefined;
1206
+ } | {
1207
+ chain: "xrpl";
1208
+ signerEntries: {
1209
+ account: string;
1210
+ weight: number;
1211
+ }[];
1212
+ signerQuorum: number;
1213
+ masterDisabled: boolean;
1214
+ } | {
1215
+ chain: "stellar";
1216
+ signers: {
1217
+ key: string;
1218
+ weight: number;
1219
+ }[];
1220
+ thresholds: {
1221
+ low: number;
1222
+ med: number;
1223
+ high: number;
1224
+ };
1225
+ masterWeight: number;
1226
+ } | {
1227
+ chain: "polkadot";
1228
+ address: string;
1229
+ signatory: PolkadotSignatoryShape;
1230
+ ss58Format: number;
1231
+ } | undefined;
1232
+ }, {
1233
+ entityId: string;
1234
+ mode: "partial";
1235
+ validatorPublicKeys: string[];
1236
+ authorizationSet?: {
1237
+ chain: "hedera";
1238
+ adminKey: HederaKeyShape;
1239
+ supplyKey?: HederaKeyShape | undefined;
1240
+ freezeKey?: HederaKeyShape | undefined;
1241
+ wipeKey?: HederaKeyShape | undefined;
1242
+ pauseKey?: HederaKeyShape | undefined;
1243
+ kycKey?: HederaKeyShape | undefined;
1244
+ } | {
1245
+ chain: "xrpl";
1246
+ signerEntries: {
1247
+ account: string;
1248
+ weight: number;
1249
+ }[];
1250
+ signerQuorum: number;
1251
+ masterDisabled: boolean;
1252
+ } | {
1253
+ chain: "stellar";
1254
+ signers: {
1255
+ key: string;
1256
+ weight: number;
1257
+ }[];
1258
+ thresholds: {
1259
+ low: number;
1260
+ med: number;
1261
+ high: number;
1262
+ };
1263
+ masterWeight: number;
1264
+ } | {
1265
+ chain: "polkadot";
1266
+ address: string;
1267
+ signatory: PolkadotSignatoryShape;
1268
+ ss58Format: number;
1269
+ } | undefined;
1270
+ }>,
1271
+ z.ZodObject<{
1272
+ mode: z.ZodLiteral<"full">;
1273
+ entityId: z.ZodString;
1274
+ validatorPublicKeys: z.ZodArray<z.ZodString, "many">;
1275
+ authorizationSet: z.ZodOptional<z.ZodDiscriminatedUnion<"chain", [
1276
+ z.ZodObject<{
1277
+ chain: z.ZodLiteral<"hedera">;
1278
+ adminKey: z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>;
1279
+ supplyKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1280
+ freezeKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1281
+ wipeKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1282
+ pauseKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1283
+ kycKey: z.ZodOptional<z.ZodType<HederaKeyShape, z.ZodTypeDef, HederaKeyShape>>;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ chain: "hedera";
1286
+ adminKey: HederaKeyShape;
1287
+ supplyKey?: HederaKeyShape | undefined;
1288
+ freezeKey?: HederaKeyShape | undefined;
1289
+ wipeKey?: HederaKeyShape | undefined;
1290
+ pauseKey?: HederaKeyShape | undefined;
1291
+ kycKey?: HederaKeyShape | undefined;
1292
+ }, {
1293
+ chain: "hedera";
1294
+ adminKey: HederaKeyShape;
1295
+ supplyKey?: HederaKeyShape | undefined;
1296
+ freezeKey?: HederaKeyShape | undefined;
1297
+ wipeKey?: HederaKeyShape | undefined;
1298
+ pauseKey?: HederaKeyShape | undefined;
1299
+ kycKey?: HederaKeyShape | undefined;
1300
+ }>,
1301
+ z.ZodObject<{
1302
+ chain: z.ZodLiteral<"xrpl">;
1303
+ signerEntries: z.ZodArray<z.ZodObject<{
1304
+ account: z.ZodString;
1305
+ weight: z.ZodNumber;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ account: string;
1308
+ weight: number;
1309
+ }, {
1310
+ account: string;
1311
+ weight: number;
1312
+ }>, "many">;
1313
+ signerQuorum: z.ZodNumber;
1314
+ masterDisabled: z.ZodBoolean;
1315
+ }, "strip", z.ZodTypeAny, {
1316
+ chain: "xrpl";
1317
+ signerEntries: {
1318
+ account: string;
1319
+ weight: number;
1320
+ }[];
1321
+ signerQuorum: number;
1322
+ masterDisabled: boolean;
1323
+ }, {
1324
+ chain: "xrpl";
1325
+ signerEntries: {
1326
+ account: string;
1327
+ weight: number;
1328
+ }[];
1329
+ signerQuorum: number;
1330
+ masterDisabled: boolean;
1331
+ }>,
1332
+ z.ZodObject<{
1333
+ chain: z.ZodLiteral<"stellar">;
1334
+ signers: z.ZodArray<z.ZodObject<{
1335
+ key: z.ZodString;
1336
+ weight: z.ZodNumber;
1337
+ }, "strip", z.ZodTypeAny, {
1338
+ key: string;
1339
+ weight: number;
1340
+ }, {
1341
+ key: string;
1342
+ weight: number;
1343
+ }>, "many">;
1344
+ thresholds: z.ZodObject<{
1345
+ low: z.ZodNumber;
1346
+ med: z.ZodNumber;
1347
+ high: z.ZodNumber;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ low: number;
1350
+ med: number;
1351
+ high: number;
1352
+ }, {
1353
+ low: number;
1354
+ med: number;
1355
+ high: number;
1356
+ }>;
1357
+ masterWeight: z.ZodNumber;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ chain: "stellar";
1360
+ signers: {
1361
+ key: string;
1362
+ weight: number;
1363
+ }[];
1364
+ thresholds: {
1365
+ low: number;
1366
+ med: number;
1367
+ high: number;
1368
+ };
1369
+ masterWeight: number;
1370
+ }, {
1371
+ chain: "stellar";
1372
+ signers: {
1373
+ key: string;
1374
+ weight: number;
1375
+ }[];
1376
+ thresholds: {
1377
+ low: number;
1378
+ med: number;
1379
+ high: number;
1380
+ };
1381
+ masterWeight: number;
1382
+ }>,
1383
+ z.ZodObject<{
1384
+ chain: z.ZodLiteral<"polkadot">;
1385
+ address: z.ZodString;
1386
+ signatory: z.ZodType<PolkadotSignatoryShape, z.ZodTypeDef, PolkadotSignatoryShape>;
1387
+ ss58Format: z.ZodNumber;
1388
+ }, "strip", z.ZodTypeAny, {
1389
+ chain: "polkadot";
1390
+ address: string;
1391
+ signatory: PolkadotSignatoryShape;
1392
+ ss58Format: number;
1393
+ }, {
1394
+ chain: "polkadot";
1395
+ address: string;
1396
+ signatory: PolkadotSignatoryShape;
1397
+ ss58Format: number;
1398
+ }>
1399
+ ]>>;
1400
+ }, "strip", z.ZodTypeAny, {
1401
+ entityId: string;
1402
+ mode: "full";
1403
+ validatorPublicKeys: string[];
1404
+ authorizationSet?: {
1405
+ chain: "hedera";
1406
+ adminKey: HederaKeyShape;
1407
+ supplyKey?: HederaKeyShape | undefined;
1408
+ freezeKey?: HederaKeyShape | undefined;
1409
+ wipeKey?: HederaKeyShape | undefined;
1410
+ pauseKey?: HederaKeyShape | undefined;
1411
+ kycKey?: HederaKeyShape | undefined;
1412
+ } | {
1413
+ chain: "xrpl";
1414
+ signerEntries: {
1415
+ account: string;
1416
+ weight: number;
1417
+ }[];
1418
+ signerQuorum: number;
1419
+ masterDisabled: boolean;
1420
+ } | {
1421
+ chain: "stellar";
1422
+ signers: {
1423
+ key: string;
1424
+ weight: number;
1425
+ }[];
1426
+ thresholds: {
1427
+ low: number;
1428
+ med: number;
1429
+ high: number;
1430
+ };
1431
+ masterWeight: number;
1432
+ } | {
1433
+ chain: "polkadot";
1434
+ address: string;
1435
+ signatory: PolkadotSignatoryShape;
1436
+ ss58Format: number;
1437
+ } | undefined;
1438
+ }, {
1439
+ entityId: string;
1440
+ mode: "full";
1441
+ validatorPublicKeys: string[];
1442
+ authorizationSet?: {
1443
+ chain: "hedera";
1444
+ adminKey: HederaKeyShape;
1445
+ supplyKey?: HederaKeyShape | undefined;
1446
+ freezeKey?: HederaKeyShape | undefined;
1447
+ wipeKey?: HederaKeyShape | undefined;
1448
+ pauseKey?: HederaKeyShape | undefined;
1449
+ kycKey?: HederaKeyShape | undefined;
1450
+ } | {
1451
+ chain: "xrpl";
1452
+ signerEntries: {
1453
+ account: string;
1454
+ weight: number;
1455
+ }[];
1456
+ signerQuorum: number;
1457
+ masterDisabled: boolean;
1458
+ } | {
1459
+ chain: "stellar";
1460
+ signers: {
1461
+ key: string;
1462
+ weight: number;
1463
+ }[];
1464
+ thresholds: {
1465
+ low: number;
1466
+ med: number;
1467
+ high: number;
1468
+ };
1469
+ masterWeight: number;
1470
+ } | {
1471
+ chain: "polkadot";
1472
+ address: string;
1473
+ signatory: PolkadotSignatoryShape;
1474
+ ss58Format: number;
1475
+ } | undefined;
1476
+ }>
1477
+ ]>>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
1480
+ transactionId: string;
1481
+ transactionType: string;
1482
+ transactionBytes: string;
1483
+ expiresAt: Date;
1484
+ validatorSignatures: {
1485
+ publicKey: string;
1486
+ validatorId: string;
1487
+ signature: string;
1488
+ signedAt: Date;
1489
+ algorithm?: "ed25519" | "ecdsa-secp256k1" | "bls12-381" | undefined;
1490
+ }[];
1491
+ readyToSubmit: boolean;
1492
+ metadata?: Record<string, any> | {
1493
+ memo?: string | undefined;
1494
+ nodeAccountIds?: string[] | undefined;
1495
+ maxTransactionFee?: string | undefined;
1496
+ scheduleInfo?: {
1497
+ scheduleId: string;
1498
+ adminKey?: string | undefined;
1499
+ } | undefined;
1500
+ } | {
1501
+ signerQuorum?: number | undefined;
1502
+ sequence?: number | undefined;
1503
+ lastLedgerSequence?: number | undefined;
1504
+ signerList?: {
1505
+ account: string;
1506
+ signerWeight: number;
1507
+ }[] | undefined;
1508
+ } | {
1509
+ securityMode?: "partial" | "full" | undefined;
1510
+ recentBlockhash?: string | undefined;
1511
+ feePayer?: string | undefined;
1512
+ programIds?: string[] | undefined;
1513
+ squadsMultisigPda?: string | undefined;
1514
+ squadsVaultPda?: string | undefined;
1515
+ squadsTransactionIndex?: number | undefined;
1516
+ squadsProposalAddress?: string | undefined;
1517
+ multisigCreated?: boolean | undefined;
1518
+ splMint?: string | undefined;
1519
+ } | {
1520
+ era?: string | undefined;
1521
+ nonce?: number | undefined;
1522
+ tip?: string | undefined;
1523
+ specVersion?: number | undefined;
1524
+ } | undefined;
1525
+ payerAccountId?: string | undefined;
1526
+ estimatedFee?: string | undefined;
1527
+ requiredSignatures?: number | undefined;
1528
+ sovereignty?: {
1529
+ entityId: string;
1530
+ mode: "partial";
1531
+ validatorPublicKeys: string[];
1532
+ authorizationSet?: {
1533
+ chain: "hedera";
1534
+ adminKey: HederaKeyShape;
1535
+ supplyKey?: HederaKeyShape | undefined;
1536
+ freezeKey?: HederaKeyShape | undefined;
1537
+ wipeKey?: HederaKeyShape | undefined;
1538
+ pauseKey?: HederaKeyShape | undefined;
1539
+ kycKey?: HederaKeyShape | undefined;
1540
+ } | {
1541
+ chain: "xrpl";
1542
+ signerEntries: {
1543
+ account: string;
1544
+ weight: number;
1545
+ }[];
1546
+ signerQuorum: number;
1547
+ masterDisabled: boolean;
1548
+ } | {
1549
+ chain: "stellar";
1550
+ signers: {
1551
+ key: string;
1552
+ weight: number;
1553
+ }[];
1554
+ thresholds: {
1555
+ low: number;
1556
+ med: number;
1557
+ high: number;
1558
+ };
1559
+ masterWeight: number;
1560
+ } | {
1561
+ chain: "polkadot";
1562
+ address: string;
1563
+ signatory: PolkadotSignatoryShape;
1564
+ ss58Format: number;
1565
+ } | undefined;
1566
+ } | {
1567
+ entityId: string;
1568
+ mode: "full";
1569
+ validatorPublicKeys: string[];
1570
+ authorizationSet?: {
1571
+ chain: "hedera";
1572
+ adminKey: HederaKeyShape;
1573
+ supplyKey?: HederaKeyShape | undefined;
1574
+ freezeKey?: HederaKeyShape | undefined;
1575
+ wipeKey?: HederaKeyShape | undefined;
1576
+ pauseKey?: HederaKeyShape | undefined;
1577
+ kycKey?: HederaKeyShape | undefined;
1578
+ } | {
1579
+ chain: "xrpl";
1580
+ signerEntries: {
1581
+ account: string;
1582
+ weight: number;
1583
+ }[];
1584
+ signerQuorum: number;
1585
+ masterDisabled: boolean;
1586
+ } | {
1587
+ chain: "stellar";
1588
+ signers: {
1589
+ key: string;
1590
+ weight: number;
1591
+ }[];
1592
+ thresholds: {
1593
+ low: number;
1594
+ med: number;
1595
+ high: number;
1596
+ };
1597
+ masterWeight: number;
1598
+ } | {
1599
+ chain: "polkadot";
1600
+ address: string;
1601
+ signatory: PolkadotSignatoryShape;
1602
+ ss58Format: number;
1603
+ } | undefined;
1604
+ } | undefined;
1605
+ }, {
1606
+ chain: "hedera" | "xrpl" | "polkadot" | "solana" | "stellar" | "ethereum" | "polygon" | "bitcoin" | "cardano";
1607
+ transactionId: string;
1608
+ transactionType: string;
1609
+ transactionBytes: string;
1610
+ expiresAt: Date;
1611
+ validatorSignatures: {
1612
+ publicKey: string;
1613
+ validatorId: string;
1614
+ signature: string;
1615
+ signedAt: Date;
1616
+ algorithm?: "ed25519" | "ecdsa-secp256k1" | "bls12-381" | undefined;
1617
+ }[];
1618
+ metadata?: Record<string, any> | {
1619
+ memo?: string | undefined;
1620
+ nodeAccountIds?: string[] | undefined;
1621
+ maxTransactionFee?: string | undefined;
1622
+ scheduleInfo?: {
1623
+ scheduleId: string;
1624
+ adminKey?: string | undefined;
1625
+ } | undefined;
1626
+ } | {
1627
+ signerQuorum?: number | undefined;
1628
+ sequence?: number | undefined;
1629
+ lastLedgerSequence?: number | undefined;
1630
+ signerList?: {
1631
+ account: string;
1632
+ signerWeight: number;
1633
+ }[] | undefined;
1634
+ } | {
1635
+ securityMode?: "partial" | "full" | undefined;
1636
+ recentBlockhash?: string | undefined;
1637
+ feePayer?: string | undefined;
1638
+ programIds?: string[] | undefined;
1639
+ squadsMultisigPda?: string | undefined;
1640
+ squadsVaultPda?: string | undefined;
1641
+ squadsTransactionIndex?: number | undefined;
1642
+ squadsProposalAddress?: string | undefined;
1643
+ multisigCreated?: boolean | undefined;
1644
+ splMint?: string | undefined;
1645
+ } | {
1646
+ era?: string | undefined;
1647
+ nonce?: number | undefined;
1648
+ tip?: string | undefined;
1649
+ specVersion?: number | undefined;
1650
+ } | undefined;
1651
+ payerAccountId?: string | undefined;
1652
+ estimatedFee?: string | undefined;
1653
+ requiredSignatures?: number | undefined;
1654
+ readyToSubmit?: boolean | undefined;
1655
+ sovereignty?: {
1656
+ entityId: string;
1657
+ mode: "partial";
1658
+ validatorPublicKeys: string[];
1659
+ authorizationSet?: {
1660
+ chain: "hedera";
1661
+ adminKey: HederaKeyShape;
1662
+ supplyKey?: HederaKeyShape | undefined;
1663
+ freezeKey?: HederaKeyShape | undefined;
1664
+ wipeKey?: HederaKeyShape | undefined;
1665
+ pauseKey?: HederaKeyShape | undefined;
1666
+ kycKey?: HederaKeyShape | undefined;
1667
+ } | {
1668
+ chain: "xrpl";
1669
+ signerEntries: {
1670
+ account: string;
1671
+ weight: number;
1672
+ }[];
1673
+ signerQuorum: number;
1674
+ masterDisabled: boolean;
1675
+ } | {
1676
+ chain: "stellar";
1677
+ signers: {
1678
+ key: string;
1679
+ weight: number;
1680
+ }[];
1681
+ thresholds: {
1682
+ low: number;
1683
+ med: number;
1684
+ high: number;
1685
+ };
1686
+ masterWeight: number;
1687
+ } | {
1688
+ chain: "polkadot";
1689
+ address: string;
1690
+ signatory: PolkadotSignatoryShape;
1691
+ ss58Format: number;
1692
+ } | undefined;
1693
+ } | {
1694
+ entityId: string;
1695
+ mode: "full";
1696
+ validatorPublicKeys: string[];
1697
+ authorizationSet?: {
1698
+ chain: "hedera";
1699
+ adminKey: HederaKeyShape;
1700
+ supplyKey?: HederaKeyShape | undefined;
1701
+ freezeKey?: HederaKeyShape | undefined;
1702
+ wipeKey?: HederaKeyShape | undefined;
1703
+ pauseKey?: HederaKeyShape | undefined;
1704
+ kycKey?: HederaKeyShape | undefined;
1705
+ } | {
1706
+ chain: "xrpl";
1707
+ signerEntries: {
1708
+ account: string;
1709
+ weight: number;
1710
+ }[];
1711
+ signerQuorum: number;
1712
+ masterDisabled: boolean;
1713
+ } | {
1714
+ chain: "stellar";
1715
+ signers: {
1716
+ key: string;
1717
+ weight: number;
1718
+ }[];
1719
+ thresholds: {
1720
+ low: number;
1721
+ med: number;
1722
+ high: number;
1723
+ };
1724
+ masterWeight: number;
1725
+ } | {
1726
+ chain: "polkadot";
1727
+ address: string;
1728
+ signatory: PolkadotSignatoryShape;
1729
+ ss58Format: number;
1730
+ } | undefined;
1731
+ } | undefined;
1732
+ }>;
1733
+ export type PreparedTransactionResponse = z.infer<typeof PreparedTransactionResponseSchema>;
886
1734
  export interface ValidatorNetworkEndpoints {
887
1735
  apiEndpoint: string;
888
1736
  natsEndpoint?: string;
@@ -1010,6 +1858,106 @@ export declare class ClusterDiscoveryClient {
1010
1858
  private verifyAgainstTrustAnchor;
1011
1859
  private pickRandomIndex;
1012
1860
  }
1861
+ export type HttpClient = {
1862
+ post<T = any>(path: string, body: unknown): Promise<T>;
1863
+ get<T = any>(path: string): Promise<T>;
1864
+ put<T = any>(path: string, body: unknown): Promise<T>;
1865
+ patch<T = any>(path: string, body: unknown): Promise<T>;
1866
+ delete<T = any>(path: string): Promise<T>;
1867
+ getText(path: string): Promise<string>;
1868
+ upload<T = any>(path: string, file: Blob | Buffer, filename: string, metadata?: Record<string, string>, fieldName?: string): Promise<T>;
1869
+ };
1870
+ export type HttpClientConfig = {
1871
+ baseUrl: string;
1872
+ authToken?: string;
1873
+ apiKey?: string;
1874
+ timeout?: number;
1875
+ };
1876
+ export declare class SdkHttpError extends Error {
1877
+ readonly statusCode: number;
1878
+ readonly details?: any | undefined;
1879
+ constructor(message: string, statusCode: number, details?: any | undefined);
1880
+ }
1881
+ export declare function createHttpClient(config: HttpClientConfig): HttpClient;
1882
+ export declare function encodePathParam(param: string): string;
1883
+ export interface RuleRejectedDetails {
1884
+ error: "rule_rejected";
1885
+ reason: string;
1886
+ ruleAtoms: string[];
1887
+ }
1888
+ export declare function isRuleRejected(err: unknown): err is SdkHttpError & {
1889
+ details: RuleRejectedDetails;
1890
+ };
1891
+ export type DiscoveryClusterEndpoints = {
1892
+ clusterId: string;
1893
+ gatewayUrl: string;
1894
+ harborUrl?: string;
1895
+ natsUrl?: string;
1896
+ publicIp?: string;
1897
+ region?: string;
1898
+ };
1899
+ export type DiscoveryClusterRecord = {
1900
+ clusterId: string;
1901
+ endpoints: DiscoveryClusterEndpoints;
1902
+ nodeIds: string[];
1903
+ };
1904
+ export type DiscoveryNodeRecord = {
1905
+ nodeId: string;
1906
+ publicKey?: string;
1907
+ status?: string;
1908
+ endpoints: DiscoveryClusterEndpoints;
1909
+ endpointsCid: string;
1910
+ lastEventTs: string;
1911
+ };
1912
+ export type DiscoveryPlatformImageManifest = {
1913
+ imageName: string;
1914
+ version: string;
1915
+ sha256digest: string;
1916
+ publishedAt: string;
1917
+ publisherNodeId?: string;
1918
+ metadata?: Record<string, unknown>;
1919
+ };
1920
+ export type DiscoveryPlatformImageEnvelope = {
1921
+ manifest: DiscoveryPlatformImageManifest;
1922
+ signature: string;
1923
+ publicKey: string;
1924
+ };
1925
+ export type DiscoveryVerifyResult = {
1926
+ verified: boolean;
1927
+ reason?: string;
1928
+ };
1929
+ export declare class DiscoveryClient {
1930
+ private readonly http;
1931
+ readonly platformImages: PlatformImagesClient;
1932
+ constructor(http: HttpClient);
1933
+ listClusters(): Promise<{
1934
+ clusters: DiscoveryClusterRecord[];
1935
+ }>;
1936
+ listAllClusters(): Promise<{
1937
+ records: DiscoveryNodeRecord[];
1938
+ }>;
1939
+ getClusterByNode(nodeId: string): Promise<{
1940
+ record: DiscoveryNodeRecord | null;
1941
+ }>;
1942
+ }
1943
+ export declare class PlatformImagesClient {
1944
+ private readonly http;
1945
+ constructor(http: HttpClient);
1946
+ list(): Promise<{
1947
+ manifests: DiscoveryPlatformImageManifest[];
1948
+ }>;
1949
+ listEnvelopes(): Promise<{
1950
+ envelopes: DiscoveryPlatformImageEnvelope[];
1951
+ }>;
1952
+ get(imageName: string): Promise<{
1953
+ imageName: string;
1954
+ manifests: DiscoveryPlatformImageManifest[];
1955
+ }>;
1956
+ getVersion(imageName: string, version: string): Promise<{
1957
+ manifest: DiscoveryPlatformImageManifest | null;
1958
+ }>;
1959
+ verify(imageName: string, version: string, digest: string): Promise<DiscoveryVerifyResult>;
1960
+ }
1013
1961
  export type AuthChain = "hedera" | "xrpl" | "polkadot" | "stellar" | "solana";
1014
1962
  export interface SecurityConfig {
1015
1963
  allowInsecure?: boolean;
@@ -1105,34 +2053,6 @@ export interface NetworkPreset {
1105
2053
  export declare const KNOWN_NETWORKS: Readonly<Record<NetworkName, NetworkPreset>>;
1106
2054
  export declare function resolveNetwork(name: NetworkName): NetworkPreset;
1107
2055
  export declare function isKnownNetwork(name: string): name is NetworkName;
1108
- export type HttpClient = {
1109
- post<T = any>(path: string, body: unknown): Promise<T>;
1110
- get<T = any>(path: string): Promise<T>;
1111
- put<T = any>(path: string, body: unknown): Promise<T>;
1112
- delete<T = any>(path: string): Promise<T>;
1113
- upload<T = any>(path: string, file: Blob | Buffer, filename: string, metadata?: Record<string, string>, fieldName?: string): Promise<T>;
1114
- };
1115
- export type HttpClientConfig = {
1116
- baseUrl: string;
1117
- authToken?: string;
1118
- apiKey?: string;
1119
- timeout?: number;
1120
- };
1121
- export declare class SdkHttpError extends Error {
1122
- readonly statusCode: number;
1123
- readonly details?: any | undefined;
1124
- constructor(message: string, statusCode: number, details?: any | undefined);
1125
- }
1126
- export declare function createHttpClient(config: HttpClientConfig): HttpClient;
1127
- export declare function encodePathParam(param: string): string;
1128
- export interface RuleRejectedDetails {
1129
- error: "rule_rejected";
1130
- reason: string;
1131
- ruleAtoms: string[];
1132
- }
1133
- export declare function isRuleRejected(err: unknown): err is SdkHttpError & {
1134
- details: RuleRejectedDetails;
1135
- };
1136
2056
  export type SubscriptionTierName = "free_testnet" | "starter" | "professional" | "enterprise";
1137
2057
  export type SubscriptionStatus = "pending_deposit" | "deposit_confirmed" | "active" | "expired" | "cancelled";
1138
2058
  export type DepositWalletStatus = "pending" | "locked" | "expired" | "slashed" | "released";
@@ -1228,6 +2148,120 @@ export type SubscriptionListResponse = {
1228
2148
  createdAt: string;
1229
2149
  }>;
1230
2150
  };
2151
+ export type PendingTierChange = {
2152
+ fromTier?: SubscriptionTierName;
2153
+ toTier?: SubscriptionTierName;
2154
+ direction?: "upgrade" | "downgrade";
2155
+ effectiveAt?: string;
2156
+ depositInstructions?: {
2157
+ walletAddress: string;
2158
+ tokenId: string;
2159
+ amount: string;
2160
+ chain: string;
2161
+ };
2162
+ };
2163
+ export type DowngradeSubscriptionRequest = {
2164
+ appId: string;
2165
+ toTier: SubscriptionTierName;
2166
+ };
2167
+ export type DowngradeSubscriptionResponse = {
2168
+ success: boolean;
2169
+ appId: string;
2170
+ pendingTierChange?: PendingTierChange;
2171
+ message: string;
2172
+ };
2173
+ export type UpgradeSubscriptionRequest = {
2174
+ appId: string;
2175
+ toTier: SubscriptionTierName;
2176
+ };
2177
+ export type UpgradeSubscriptionResponse = {
2178
+ success: boolean;
2179
+ appId: string;
2180
+ pendingTierChange?: PendingTierChange;
2181
+ depositInstructions?: {
2182
+ walletAddress: string;
2183
+ tokenId: string;
2184
+ amount: string;
2185
+ chain: string;
2186
+ };
2187
+ message: string;
2188
+ };
2189
+ export type CancelTierChangeRequest = {
2190
+ appId: string;
2191
+ };
2192
+ export type CancelTierChangeResponse = {
2193
+ success: boolean;
2194
+ appId: string;
2195
+ message: string;
2196
+ };
2197
+ export type ActiveSubscriptionForWalletResponse = {
2198
+ active: boolean;
2199
+ };
2200
+ export type SubscriptionUsageSummaryResponse = {
2201
+ appId: string;
2202
+ total: number;
2203
+ byCategory: {
2204
+ database: number;
2205
+ functions: number;
2206
+ messaging: number;
2207
+ storage: number;
2208
+ ipfs: number;
2209
+ snapshots: number;
2210
+ other: number;
2211
+ };
2212
+ recordCount: number;
2213
+ lastUpdated: string;
2214
+ };
2215
+ export type SubscriptionUsageStatusResponse = {
2216
+ appId: string;
2217
+ usagePercent: number;
2218
+ currentUsage: number;
2219
+ dailyLimit: number;
2220
+ overagePercent: number;
2221
+ inGracePeriod: boolean;
2222
+ graceExpiresAt: string | null;
2223
+ blocked: boolean;
2224
+ suggestUpgrade: boolean;
2225
+ nextTier: {
2226
+ tier: SubscriptionTierName;
2227
+ name: string;
2228
+ apiCallsPerDay: number;
2229
+ monthlyPriceHsuite: number;
2230
+ } | null;
2231
+ projectedDaysUntilLimit: number | null;
2232
+ };
2233
+ export type SubscriptionBillingLedgerEntry = {
2234
+ id: string;
2235
+ subscriptionId: string;
2236
+ operation: string;
2237
+ amount: string;
2238
+ balanceAfter: string;
2239
+ timestamp: string;
2240
+ metadata?: Record<string, unknown>;
2241
+ };
2242
+ export type SubscriptionBillingResponse = {
2243
+ appId: string;
2244
+ entries: SubscriptionBillingLedgerEntry[];
2245
+ total: number;
2246
+ hasMore: boolean;
2247
+ };
2248
+ export type GetBillingOptions = {
2249
+ limit?: number;
2250
+ offset?: number;
2251
+ from?: string;
2252
+ to?: string;
2253
+ };
2254
+ export type MintCustomerSubscriptionRequest = {
2255
+ appId: string;
2256
+ customerAddress: string;
2257
+ customerChain: "xrpl";
2258
+ metadataCid: string;
2259
+ };
2260
+ export type MintCustomerSubscriptionResponse = {
2261
+ success: true;
2262
+ nftSerial: number;
2263
+ txHash: string;
2264
+ };
1231
2265
  export type BalanceResponse = {
1232
2266
  appId: string;
1233
2267
  subscriptionId: string;
@@ -1247,6 +2281,14 @@ export declare class SubscriptionClient {
1247
2281
  list(): Promise<SubscriptionListResponse>;
1248
2282
  listByStatus(status: SubscriptionStatus): Promise<SubscriptionListResponse>;
1249
2283
  getBalance(appId: string): Promise<BalanceResponse>;
2284
+ downgrade(request: DowngradeSubscriptionRequest): Promise<DowngradeSubscriptionResponse>;
2285
+ upgrade(request: UpgradeSubscriptionRequest): Promise<UpgradeSubscriptionResponse>;
2286
+ cancelTierChange(request: CancelTierChangeRequest): Promise<CancelTierChangeResponse>;
2287
+ getActiveFor(walletAddress: string): Promise<ActiveSubscriptionForWalletResponse>;
2288
+ getUsage(appId: string): Promise<SubscriptionUsageSummaryResponse>;
2289
+ getUsageStatus(appId: string): Promise<SubscriptionUsageStatusResponse>;
2290
+ getBilling(appId: string, options?: GetBillingOptions): Promise<SubscriptionBillingResponse>;
2291
+ mintCustomer(request: MintCustomerSubscriptionRequest): Promise<MintCustomerSubscriptionResponse>;
1250
2292
  }
1251
2293
  export type EntityType = "account" | "token" | "topic";
1252
2294
  export type EntityCreationOptions = {
@@ -1337,13 +2379,44 @@ export type MultiSigStatusResponse = {
1337
2379
  threshold?: number;
1338
2380
  participants?: string[];
1339
2381
  };
2382
+ export type TssJobType = "entity-create";
2383
+ export type TssJobStatus = "pending" | "in-progress" | "success" | "failed";
2384
+ export type TssJobAccepted = {
2385
+ jobId: string;
2386
+ statusUrl: string;
2387
+ status: "pending";
2388
+ };
2389
+ export type TssJobResponse = {
2390
+ jobId: string;
2391
+ type: TssJobType;
2392
+ status: TssJobStatus;
2393
+ request?: unknown;
2394
+ result?: unknown;
2395
+ error?: {
2396
+ code: string;
2397
+ message: string;
2398
+ };
2399
+ createdAt: string;
2400
+ updatedAt: string;
2401
+ };
2402
+ export type SignForAppRequest = {
2403
+ payloadHex: string;
2404
+ };
2405
+ export type SignForAppResponse = {
2406
+ appId: string;
2407
+ signatureHex: string;
2408
+ blsPubKeyHex: string;
2409
+ signedAt: string;
2410
+ };
1340
2411
  export declare class TSSClient {
1341
2412
  private readonly http;
1342
2413
  constructor(http: HttpClient);
1343
2414
  createEntity(options: EntityCreationOptions): Promise<EntityCreationResponse>;
1344
2415
  reshareCluster(request: ReshareRequest): Promise<ReshareResponse>;
1345
2416
  getEntity(entityId: string): Promise<EntityDetails>;
1346
- signMPC(request: MPCSigningRequest): Promise<MPCSigningResponse>;
2417
+ signMPC(request: MPCSigningRequest & {
2418
+ chain?: "hedera";
2419
+ }): Promise<MPCSigningResponse>;
1347
2420
  getValidators(): Promise<ValidatorListResponse>;
1348
2421
  announceKey(): Promise<{
1349
2422
  success: boolean;
@@ -1354,6 +2427,10 @@ export declare class TSSClient {
1354
2427
  getHealth(): Promise<TSSHealthResponse>;
1355
2428
  listCeremonies(): Promise<CeremonyListResponse>;
1356
2429
  getMultiSigStatus(txId: string): Promise<MultiSigStatusResponse>;
2430
+ createEntityAsync(options: EntityCreationOptions): Promise<TssJobAccepted>;
2431
+ reshareClusterAsync(request: ReshareRequest): Promise<TssJobAccepted>;
2432
+ getJob(jobId: string): Promise<TssJobResponse>;
2433
+ signForApp(appId: string, request: SignForAppRequest): Promise<SignForAppResponse>;
1357
2434
  }
1358
2435
  export type PinStatus = "pinned" | "unpinned" | "pinning" | "failed";
1359
2436
  export type IpfsFileMetadata = {
@@ -1605,6 +2682,180 @@ export type TransactionInfoResponse = {
1605
2682
  supportedChains: string[];
1606
2683
  responseFormat?: Record<string, string>;
1607
2684
  };
2685
+ export type MetaplexCreator = {
2686
+ address: string;
2687
+ verified: boolean;
2688
+ share: number;
2689
+ };
2690
+ export type PrepareNftCollectionCreateRequest = {
2691
+ chain: "polkadot" | "solana";
2692
+ payerAccountId?: string;
2693
+ entityId?: string;
2694
+ securityMode?: SecurityMode;
2695
+ appOwnerPublicKey?: string;
2696
+ ss58Format?: number;
2697
+ admin?: string;
2698
+ config?: {
2699
+ settings?: number;
2700
+ maxSupply?: number | null;
2701
+ mintSettings?: unknown;
2702
+ };
2703
+ name?: string;
2704
+ symbol?: string;
2705
+ uri?: string;
2706
+ sellerFeeBasisPoints?: number;
2707
+ creators?: MetaplexCreator[];
2708
+ recipient?: string;
2709
+ mintAuthority?: string;
2710
+ memo?: string;
2711
+ };
2712
+ export type PrepareNftSetMetadataRequest = {
2713
+ chain: "polkadot";
2714
+ payerAccountId?: string;
2715
+ collection: number;
2716
+ item: number;
2717
+ data: string;
2718
+ entityId?: string;
2719
+ securityMode?: SecurityMode;
2720
+ appOwnerPublicKey?: string;
2721
+ ss58Format?: number;
2722
+ };
2723
+ export type PrepareNftCollectionSetMetadataRequest = {
2724
+ chain: "polkadot";
2725
+ payerAccountId?: string;
2726
+ collection: number;
2727
+ data: string;
2728
+ entityId?: string;
2729
+ securityMode?: SecurityMode;
2730
+ appOwnerPublicKey?: string;
2731
+ ss58Format?: number;
2732
+ };
2733
+ export type PrepareNftCollectionLockRequest = {
2734
+ chain: "polkadot";
2735
+ payerAccountId?: string;
2736
+ collection: number;
2737
+ lockSettings: number;
2738
+ entityId?: string;
2739
+ securityMode?: SecurityMode;
2740
+ appOwnerPublicKey?: string;
2741
+ ss58Format?: number;
2742
+ };
2743
+ export type HederaTssSecurityMode = "full" | "partial";
2744
+ export type ValidatorBoundRequest = {
2745
+ entityId: string;
2746
+ validatorTimestamp: string;
2747
+ validatorTopicId: string;
2748
+ payerAccountId?: string;
2749
+ };
2750
+ export type CreateHederaAccountRequest = ValidatorBoundRequest & {
2751
+ initialBalance?: number;
2752
+ securityMode?: HederaTssSecurityMode;
2753
+ appOwnerPublicKey?: string;
2754
+ };
2755
+ export type CreateHederaAccountResponse = {
2756
+ success: boolean;
2757
+ accountId: string;
2758
+ transactionId: string;
2759
+ hashscanUrl: string;
2760
+ securityMode: HederaTssSecurityMode;
2761
+ validatorBinding: {
2762
+ timestamp: string;
2763
+ topicId: string;
2764
+ memo: string;
2765
+ rulesUrl: string;
2766
+ };
2767
+ };
2768
+ export type UpdateHederaMemoRequest = {
2769
+ entityId: string;
2770
+ accountId: string;
2771
+ newMemo: string;
2772
+ payerAccountId?: string;
2773
+ };
2774
+ export type UpdateHederaMemoResponse = {
2775
+ success: boolean;
2776
+ transactionId: string;
2777
+ hashscanUrl: string;
2778
+ status: string;
2779
+ };
2780
+ export type CreateHederaTopicRequest = ValidatorBoundRequest;
2781
+ export type CreateHederaTopicResponse = {
2782
+ success: boolean;
2783
+ topicId: string;
2784
+ transactionId: string;
2785
+ hashscanUrl: string;
2786
+ validatorBinding: {
2787
+ timestamp: string;
2788
+ topicId: string;
2789
+ memo: string;
2790
+ rulesUrl: string;
2791
+ };
2792
+ };
2793
+ export type SubmitHederaMessageRequest = {
2794
+ entityId: string;
2795
+ topicId: string;
2796
+ message: string;
2797
+ payerAccountId?: string;
2798
+ };
2799
+ export type SubmitHederaMessageResponse = {
2800
+ success: boolean;
2801
+ sequenceNumber: string | number;
2802
+ transactionId: string;
2803
+ hashscanUrl: string;
2804
+ };
2805
+ export type CreateHederaTokenRequest = ValidatorBoundRequest & {
2806
+ name: string;
2807
+ symbol: string;
2808
+ decimals: number;
2809
+ initialSupply: number;
2810
+ maxSupply?: number;
2811
+ treasuryAccountId: string;
2812
+ enableAdminKey?: boolean;
2813
+ enableSupplyKey?: boolean;
2814
+ enableFreezeKey?: boolean;
2815
+ enablePauseKey?: boolean;
2816
+ enableWipeKey?: boolean;
2817
+ };
2818
+ export type CreateHederaTokenResponse = {
2819
+ success: boolean;
2820
+ tokenId: string;
2821
+ transactionId: string;
2822
+ hashscanUrl: string;
2823
+ tokenUrl: string;
2824
+ keys: Record<string, string>;
2825
+ validatorBinding: {
2826
+ timestamp: string;
2827
+ topicId: string;
2828
+ memo: string;
2829
+ rulesUrl: string;
2830
+ };
2831
+ };
2832
+ export type MintHederaTokenRequest = {
2833
+ entityId: string;
2834
+ tokenId: string;
2835
+ amount: number;
2836
+ decimals?: number;
2837
+ validatorTopicId?: string;
2838
+ payerAccountId?: string;
2839
+ };
2840
+ export type MintHederaTokenResponse = {
2841
+ success: boolean;
2842
+ transactionId: string;
2843
+ hashscanUrl: string;
2844
+ newTotalSupply: string;
2845
+ mintedAmount: string | number;
2846
+ tokenId: string;
2847
+ decimals: number;
2848
+ };
2849
+ export declare class HederaTssClient {
2850
+ private readonly http;
2851
+ constructor(http: HttpClient);
2852
+ createAccount(request: CreateHederaAccountRequest): Promise<CreateHederaAccountResponse>;
2853
+ updateMemo(request: UpdateHederaMemoRequest): Promise<UpdateHederaMemoResponse>;
2854
+ createTopic(request: CreateHederaTopicRequest): Promise<CreateHederaTopicResponse>;
2855
+ submitMessage(request: SubmitHederaMessageRequest): Promise<SubmitHederaMessageResponse>;
2856
+ createToken(request: CreateHederaTokenRequest): Promise<CreateHederaTokenResponse>;
2857
+ mintToken(request: MintHederaTokenRequest): Promise<MintHederaTokenResponse>;
2858
+ }
1608
2859
  export type PrepareTopicCreateRequest = {
1609
2860
  payerAccountId?: string;
1610
2861
  memo?: string;
@@ -1638,7 +2889,8 @@ export type PrepareTokenWipeRequest = {
1638
2889
  };
1639
2890
  export declare class HederaTransactionsClient {
1640
2891
  private readonly http;
1641
- constructor(http: HttpClient);
2892
+ readonly tss: HederaTssClient;
2893
+ constructor(http: HttpClient, tssHttp?: HttpClient);
1642
2894
  prepareTopicCreate(request: PrepareTopicCreateRequest): Promise<PreparedTransaction>;
1643
2895
  prepareTopicMessage(request: PrepareTopicMessageRequest): Promise<PreparedTransaction>;
1644
2896
  prepareTokenComplianceEnable(request: PrepareTokenComplianceEnableRequest): Promise<PreparedTransaction>;
@@ -1653,10 +2905,39 @@ export type PrepareTrustLineRequest = {
1653
2905
  limit?: string;
1654
2906
  entityId: string;
1655
2907
  };
2908
+ export type PrepareXrplAccountSetupRequest = {
2909
+ payerAccountId?: string;
2910
+ accountAddress: string;
2911
+ validatorTimestamp: string;
2912
+ validatorTopicId: string;
2913
+ securityMode?: SecurityMode;
2914
+ appOwnerPublicKey?: string;
2915
+ entityId?: string;
2916
+ };
2917
+ export type PreparedTransactionSovereignty = {
2918
+ mode: SecurityMode | "none";
2919
+ appOwnerPublicKey?: string;
2920
+ signerListEntries?: Array<{
2921
+ account: string;
2922
+ weight: number;
2923
+ }>;
2924
+ signerQuorum?: number;
2925
+ };
2926
+ export type XrplAccountSetupSteps = {
2927
+ steps: Array<{
2928
+ step: number;
2929
+ description?: string;
2930
+ transactionBytes: string;
2931
+ transactionId?: string;
2932
+ [k: string]: unknown;
2933
+ }>;
2934
+ sovereignty: PreparedTransactionSovereignty;
2935
+ };
1656
2936
  export declare class XrplTransactionsClient {
1657
2937
  private readonly http;
1658
2938
  constructor(http: HttpClient);
1659
2939
  prepareTrustLine(request: PrepareTrustLineRequest): Promise<PreparedTransaction>;
2940
+ prepareAccountSetup(request: PrepareXrplAccountSetupRequest): Promise<XrplAccountSetupSteps>;
1660
2941
  }
1661
2942
  export type PrepareTokenCloseAccountRequest = {
1662
2943
  payerAccountId?: string;
@@ -1709,6 +2990,10 @@ export declare class TransactionsClient {
1709
2990
  prepareNftMint(request: PrepareNftMintRequest): Promise<PreparedTransaction>;
1710
2991
  prepareNftBurn(request: PrepareNftBurnRequest): Promise<PreparedTransaction>;
1711
2992
  prepareNftTransfer(request: PrepareNftTransferRequest): Promise<PreparedTransaction>;
2993
+ prepareNftCollectionCreate(request: PrepareNftCollectionCreateRequest): Promise<PreparedTransaction>;
2994
+ prepareNftSetMetadata(request: PrepareNftSetMetadataRequest): Promise<PreparedTransaction>;
2995
+ prepareNftCollectionSetMetadata(request: PrepareNftCollectionSetMetadataRequest): Promise<PreparedTransaction>;
2996
+ prepareNftCollectionLock(request: PrepareNftCollectionLockRequest): Promise<PreparedTransaction>;
1712
2997
  prepareTokenCreate(request: PrepareTokenCreateRequest): Promise<PreparedTransaction>;
1713
2998
  prepareTokenMint(request: PrepareTokenMintRequest): Promise<PreparedTransaction>;
1714
2999
  prepareTokenBurn(request: PrepareTokenBurnRequest): Promise<PreparedTransaction>;
@@ -1930,53 +3215,447 @@ export declare class GovernanceClient {
1930
3215
  constructor(http: HttpClient);
1931
3216
  simulate(params: GovernanceSimulateRequest): Promise<GovernanceValidationResult>;
1932
3217
  }
1933
- export type PersonhoodAttestationMethod = "web-of-trust" | "biometric" | "pop-protocol";
1934
- export interface PersonhoodProof {
1935
- attestationMethod: PersonhoodAttestationMethod;
1936
- payload: unknown;
1937
- }
1938
- export interface PersonhoodCert {
1939
- address: string;
1940
- issuerId: string;
1941
- attestationMethod: PersonhoodAttestationMethod;
1942
- issuedAt: number;
1943
- expiresAt: number;
1944
- signature: string;
1945
- }
1946
- export interface PersonhoodVerifyParams {
1947
- candidate: string;
1948
- proof: PersonhoodProof;
1949
- }
1950
- export declare const PERSONHOOD_VERIFIER_NOT_CONFIGURED: "personhood_verifier_not_configured";
1951
- export declare class PersonhoodClient {
1952
- private readonly http;
1953
- constructor(http: HttpClient);
1954
- verify(params: PersonhoodVerifyParams): Promise<PersonhoodCert | null>;
1955
- }
1956
- export declare function isPersonhoodVerifierNotConfigured(err: unknown): err is SdkHttpError & {
1957
- details: {
1958
- error: typeof PERSONHOOD_VERIFIER_NOT_CONFIGURED;
3218
+ export type DaoSupportedChain = "hedera" | "xrpl" | "polkadot" | "solana" | "ethereum" | "polygon" | "bitcoin" | "stellar" | "cardano";
3219
+ export type DaoStatus = "pending" | "active" | "paused" | "dissolved";
3220
+ export type DaoMembershipModel = "token-only" | "nft-only" | "token-and-nft";
3221
+ export type DaoMemberStatus = "active" | "removed";
3222
+ export type DaoVotingPowerModel = "token-balance" | "quadratic" | "one-person-one-vote" | "nft-based" | "delegated";
3223
+ export type DaoProposalType = "dao_parameter_change" | "dao_treasury_transfer" | "dao_treasury_allocation" | "dao_update_details" | "dao_set_status" | "dao_add_member" | "dao_remove_member" | "dao_token_mint" | "dao_token_burn" | "dao_token_pause" | "dao_token_unpause" | "dao_token_freeze" | "dao_token_unfreeze" | "dao_token_kyc" | "dao_token_wipe" | "dao_token_transfer" | "dao_hbar_transfer" | "dao_custom";
3224
+ export type DaoProposalStatus = "pending" | "awaiting_signature" | "active" | "passed" | "failed" | "executed" | "cancelled" | "expired" | "vetoed";
3225
+ export type DaoChainTokenEntry = {
3226
+ chain: DaoSupportedChain;
3227
+ tokenId: string;
3228
+ issuerAddress?: string;
3229
+ decimals: number;
3230
+ };
3231
+ export type DaoMultiChainTokenConfig = {
3232
+ symbol: string;
3233
+ chains: DaoChainTokenEntry[];
3234
+ };
3235
+ export type DaoVotingRules = {
3236
+ approvalThresholdPercent: number;
3237
+ quorumPercent: number;
3238
+ votingPeriodMs: number;
3239
+ votingPowerModel: DaoVotingPowerModel;
3240
+ allowVoteChange: boolean;
3241
+ executionDelayMs: number;
3242
+ proposalCooldownMs: number;
3243
+ maxActiveProposals: number;
3244
+ proposalThreshold: string;
3245
+ };
3246
+ export type DaoTreasuryWallet = {
3247
+ chain: DaoSupportedChain;
3248
+ walletAddress: string;
3249
+ tssEntityId: string;
3250
+ };
3251
+ export type DaoTreasuryConfig = {
3252
+ wallets: DaoTreasuryWallet[];
3253
+ spendingLimits?: {
3254
+ perProposalLimit?: string;
3255
+ dailyLimit?: string;
1959
3256
  };
1960
3257
  };
1961
- export type AgentStatus = "active" | "paused" | "revoked" | "pending";
1962
- export type AgentRegisterRequest = {
3258
+ export type DaoConfig = {
3259
+ daoId: string;
1963
3260
  name: string;
1964
- description?: string;
1965
- capabilities: string[];
1966
- rules: AgentRules;
1967
- fundingConfig?: {
1968
- chain: string;
1969
- maxAmount: string;
1970
- autoFund: boolean;
3261
+ description: string;
3262
+ status: DaoStatus;
3263
+ membershipModel: DaoMembershipModel;
3264
+ governanceToken: DaoMultiChainTokenConfig;
3265
+ nftToken?: DaoMultiChainTokenConfig;
3266
+ votingRules: DaoVotingRules;
3267
+ treasury: DaoTreasuryConfig;
3268
+ vetoCouncil?: string[];
3269
+ createdBy: string;
3270
+ createdAt: string | Date;
3271
+ hcsTopicId?: string;
3272
+ metadataCid?: string;
3273
+ image?: string;
3274
+ banner?: string;
3275
+ socials?: {
3276
+ discord?: string;
3277
+ twitter?: string;
3278
+ website?: string;
1971
3279
  };
3280
+ tokenControlledByValidators?: boolean;
1972
3281
  };
1973
- export type AgentRules = {
1974
- maxTradeAmount?: string;
1975
- allowedPairs?: string[];
1976
- allowedChains?: string[];
1977
- dailyLimit?: string;
1978
- requireApprovalAbove?: string;
1979
- customRules?: Record<string, unknown>;
3282
+ export type DaoProposalAction = {
3283
+ type: string;
3284
+ chain?: DaoSupportedChain;
3285
+ targetEntityId?: string;
3286
+ params: Record<string, unknown>;
3287
+ };
3288
+ export type DaoVotingOption = {
3289
+ id: string;
3290
+ label: string;
3291
+ description?: string;
3292
+ type?: "approve" | "reject";
3293
+ actionPayload?: DaoProposalAction;
3294
+ };
3295
+ export type DaoProposalConfig = {
3296
+ proposalId: string;
3297
+ daoId: string;
3298
+ type: DaoProposalType;
3299
+ title: string;
3300
+ description: string;
3301
+ content?: string;
3302
+ images?: string[];
3303
+ externalLinks?: Array<{
3304
+ label: string;
3305
+ url: string;
3306
+ }>;
3307
+ proposer: string;
3308
+ status: DaoProposalStatus;
3309
+ votingOptions: DaoVotingOption[];
3310
+ votingPeriodMs: number;
3311
+ votingStartsAt: string | Date;
3312
+ votingEndsAt: string | Date;
3313
+ executionDeadline?: string | Date;
3314
+ snapshotId: string;
3315
+ snapshotPinTimestamp?: number;
3316
+ actions: DaoProposalAction[];
3317
+ tally: Record<string, string>;
3318
+ quorumReached: boolean;
3319
+ totalVotingPower: string;
3320
+ hcsTopicId?: string;
3321
+ executionResult?: {
3322
+ success: boolean;
3323
+ transactionIds?: string[];
3324
+ error?: string;
3325
+ };
3326
+ winningOptionId?: string;
3327
+ preparedMessage?: {
3328
+ message: Record<string, unknown>;
3329
+ voteTopicId?: string;
3330
+ snapshot?: string;
3331
+ createdAt: string | Date;
3332
+ };
3333
+ passedAt?: string | Date;
3334
+ createdAt: string | Date;
3335
+ executedAt?: string | Date;
3336
+ };
3337
+ export type DaoVote = {
3338
+ proposalId: string;
3339
+ daoId: string;
3340
+ voter: string;
3341
+ choice: string;
3342
+ weight: string;
3343
+ comment?: string;
3344
+ chain: DaoSupportedChain;
3345
+ delegatedFrom?: string;
3346
+ timestamp: string | Date;
3347
+ };
3348
+ export type DaoMember = {
3349
+ daoId: string;
3350
+ address: string;
3351
+ chain: DaoSupportedChain;
3352
+ nftSerials?: number[];
3353
+ joinedAt: string | Date;
3354
+ status: DaoMemberStatus;
3355
+ };
3356
+ export type DaoDashboardStats = {
3357
+ totalDaosJoined: number;
3358
+ totalVotesCast: number;
3359
+ totalProposalsCreated: number;
3360
+ activeProposalsCount: number;
3361
+ pendingActionsCount: number;
3362
+ };
3363
+ export type DaoGovernanceImpact = {
3364
+ totalVotingPower: string;
3365
+ proposalSuccessRate: number;
3366
+ averageVoteWeight: string;
3367
+ mostActiveDao?: {
3368
+ daoId: string;
3369
+ name: string;
3370
+ };
3371
+ participationStreak: number;
3372
+ proposalOutcomes: {
3373
+ created: number;
3374
+ passed: number;
3375
+ rejected: number;
3376
+ expired: number;
3377
+ };
3378
+ };
3379
+ export type DaoActiveProposalForUser = {
3380
+ proposal: DaoProposalConfig;
3381
+ dao: DaoConfig;
3382
+ hasVoted: boolean;
3383
+ timeRemaining: number;
3384
+ };
3385
+ export type DaoActivityEntry = {
3386
+ type: string;
3387
+ daoId: string;
3388
+ entityId: string;
3389
+ timestamp: string | Date;
3390
+ description: string;
3391
+ };
3392
+ export type DaoPendingAction = {
3393
+ type: string;
3394
+ daoId: string;
3395
+ entityId: string;
3396
+ description: string;
3397
+ };
3398
+ export type DaoVotingSnapshot = {
3399
+ snapshotId: string;
3400
+ daoId: string;
3401
+ proposalId: string;
3402
+ chain: DaoSupportedChain;
3403
+ daoTokenId: string;
3404
+ pinnedTimestamp: number;
3405
+ totalVotingPower: string;
3406
+ };
3407
+ export type CreateDaoRequest = {
3408
+ name: string;
3409
+ description: string;
3410
+ membershipModel: DaoMembershipModel;
3411
+ governanceToken: DaoMultiChainTokenConfig;
3412
+ nftToken?: DaoMultiChainTokenConfig;
3413
+ votingRules: DaoVotingRules;
3414
+ vetoCouncil?: string[];
3415
+ treasuryChains: DaoSupportedChain[];
3416
+ metadataCid?: string;
3417
+ daoId?: string;
3418
+ createdBy: string;
3419
+ };
3420
+ export type CreateDaoProposalRequest = {
3421
+ type: DaoProposalType;
3422
+ title: string;
3423
+ description: string;
3424
+ content?: string;
3425
+ proposer: string;
3426
+ votingOptions?: DaoVotingOption[];
3427
+ actions: DaoProposalAction[];
3428
+ };
3429
+ export type CastVoteRequest = {
3430
+ voter: string;
3431
+ choice: string;
3432
+ chain: DaoSupportedChain;
3433
+ comment?: string;
3434
+ delegatedFrom?: string;
3435
+ };
3436
+ export type PrepareDaoProposalRequest = CreateDaoProposalRequest;
3437
+ export type PrepareVoteRequest = CastVoteRequest;
3438
+ export type SubmitSignedProposalRequest = {
3439
+ signature: string;
3440
+ };
3441
+ export type SubmitSignedVoteRequest = PrepareVoteRequest & {
3442
+ signature: string;
3443
+ };
3444
+ export type AddDaoMemberRequest = {
3445
+ address: string;
3446
+ chain: DaoSupportedChain;
3447
+ nftSerials?: number[];
3448
+ };
3449
+ export type ClaimDaoMemberNftRequest = {
3450
+ nftSerial: number;
3451
+ };
3452
+ export type ListDaosOptions = {
3453
+ status?: string;
3454
+ createdBy?: string;
3455
+ };
3456
+ export type ListProposalsOptions = {
3457
+ status?: string;
3458
+ proposer?: string;
3459
+ };
3460
+ export type ListMembersOptions = {
3461
+ status?: string;
3462
+ };
3463
+ export type VoteListOptions = {
3464
+ limit?: number;
3465
+ offset?: number;
3466
+ };
3467
+ export type TreasuryHistoryOptions = {
3468
+ chain?: string;
3469
+ limit?: number;
3470
+ offset?: number;
3471
+ };
3472
+ export type DashboardListOptions = {
3473
+ limit?: number;
3474
+ offset?: number;
3475
+ };
3476
+ export type DashboardActivityOptions = {
3477
+ limit?: number;
3478
+ daoId?: string;
3479
+ };
3480
+ export type CreateDaoResponse = {
3481
+ success: boolean;
3482
+ dao: DaoConfig;
3483
+ };
3484
+ export type ListDaosResponse = {
3485
+ count: number;
3486
+ daos: DaoConfig[];
3487
+ };
3488
+ export type DaoWithProposalsResponse = {
3489
+ dao: DaoConfig;
3490
+ proposals: DaoProposalConfig[];
3491
+ };
3492
+ export type ListProposalsResponse = {
3493
+ count: number;
3494
+ proposals: DaoProposalConfig[];
3495
+ };
3496
+ export type CreateProposalResponse = {
3497
+ success: boolean;
3498
+ proposal: DaoProposalConfig;
3499
+ };
3500
+ export type PrepareProposalResponse = {
3501
+ success: boolean;
3502
+ proposal: DaoProposalConfig;
3503
+ };
3504
+ export type SubmitSignedProposalResponse = {
3505
+ success: boolean;
3506
+ proposal: DaoProposalConfig;
3507
+ };
3508
+ export type PrepareVoteResponse = {
3509
+ success: boolean;
3510
+ proposalId: string;
3511
+ message: Record<string, unknown>;
3512
+ weight: string;
3513
+ };
3514
+ export type CastVoteResponse = {
3515
+ success: boolean;
3516
+ vote: DaoVote;
3517
+ };
3518
+ export type VotesListResponse = {
3519
+ count: number;
3520
+ votes: DaoVote[];
3521
+ };
3522
+ export type ProposalResultsResponse = {
3523
+ tally: Record<string, string>;
3524
+ quorumReached: boolean;
3525
+ passed: boolean;
3526
+ };
3527
+ export type ExecuteProposalResponse = {
3528
+ success: boolean;
3529
+ transactionIds?: string[];
3530
+ error?: string;
3531
+ };
3532
+ export type TreasuryHistoryEntry = {
3533
+ chain: string;
3534
+ type: string;
3535
+ amount: string;
3536
+ tokenId: string;
3537
+ txId: string;
3538
+ timestamp: string | Date;
3539
+ };
3540
+ export type TreasuryHistoryResponse = {
3541
+ count: number;
3542
+ transactions: TreasuryHistoryEntry[];
3543
+ };
3544
+ export type TreasuryBalancesResponse = {
3545
+ balances: Array<{
3546
+ chain: string;
3547
+ walletAddress: string;
3548
+ tokenBalances: Record<string, string>;
3549
+ }>;
3550
+ };
3551
+ export type ListMembersResponse = {
3552
+ count: number;
3553
+ members: DaoMember[];
3554
+ };
3555
+ export type AddMemberResponse = {
3556
+ success: boolean;
3557
+ member: DaoMember;
3558
+ };
3559
+ export type RemoveMemberResponse = {
3560
+ success: boolean;
3561
+ };
3562
+ export type ClaimNftResponse = {
3563
+ success: boolean;
3564
+ member: DaoMember;
3565
+ };
3566
+ export type MemberNftResponse = {
3567
+ nftSerials: number[];
3568
+ status: string;
3569
+ };
3570
+ export declare class DaoDashboardClient {
3571
+ private readonly http;
3572
+ constructor(http: HttpClient);
3573
+ getStats(userAddress: string): Promise<DaoDashboardStats>;
3574
+ getActiveProposals(userAddress: string): Promise<DaoActiveProposalForUser[]>;
3575
+ getVoteHistory(userAddress: string, opts?: DashboardListOptions): Promise<{
3576
+ count: number;
3577
+ votes: DaoVote[];
3578
+ }>;
3579
+ getActivity(userAddress: string, opts?: DashboardActivityOptions): Promise<DaoActivityEntry[]>;
3580
+ getPendingActions(userAddress: string): Promise<DaoPendingAction[]>;
3581
+ getImpact(userAddress: string): Promise<DaoGovernanceImpact>;
3582
+ }
3583
+ export declare class DaoClient {
3584
+ private readonly http;
3585
+ readonly dashboard: DaoDashboardClient;
3586
+ constructor(http: HttpClient);
3587
+ create(request: CreateDaoRequest): Promise<CreateDaoResponse>;
3588
+ list(opts?: ListDaosOptions): Promise<ListDaosResponse>;
3589
+ get(daoId: string): Promise<DaoConfig>;
3590
+ getWithProposals(daoId: string): Promise<DaoWithProposalsResponse>;
3591
+ listProposals(daoId: string, opts?: ListProposalsOptions): Promise<ListProposalsResponse>;
3592
+ createProposal(daoId: string, request: CreateDaoProposalRequest): Promise<CreateProposalResponse>;
3593
+ prepareProposal(daoId: string, request: PrepareDaoProposalRequest): Promise<PrepareProposalResponse>;
3594
+ signProposal(daoId: string, proposalId: string, request: SubmitSignedProposalRequest): Promise<SubmitSignedProposalResponse>;
3595
+ prepareVote(daoId: string, proposalId: string, request: PrepareVoteRequest): Promise<PrepareVoteResponse>;
3596
+ submitVote(daoId: string, proposalId: string, request: SubmitSignedVoteRequest): Promise<CastVoteResponse>;
3597
+ vote(daoId: string, proposalId: string, request: CastVoteRequest): Promise<CastVoteResponse>;
3598
+ execute(daoId: string, proposalId: string): Promise<ExecuteProposalResponse>;
3599
+ getVotes(daoId: string, proposalId: string, opts?: VoteListOptions): Promise<VotesListResponse>;
3600
+ getResults(daoId: string, proposalId: string): Promise<ProposalResultsResponse>;
3601
+ getVoteCounts(daoId: string, proposalId: string): Promise<Record<string, number>>;
3602
+ getVoterRecord(daoId: string, proposalId: string, voterAddress: string): Promise<DaoVote>;
3603
+ getProposal(daoId: string, proposalId: string): Promise<DaoProposalConfig>;
3604
+ getTreasury(daoId: string, chain?: string): Promise<TreasuryBalancesResponse>;
3605
+ getTreasuryHistory(daoId: string, opts?: TreasuryHistoryOptions): Promise<TreasuryHistoryResponse>;
3606
+ listMembers(daoId: string, opts?: ListMembersOptions): Promise<ListMembersResponse>;
3607
+ addMember(daoId: string, request: AddDaoMemberRequest): Promise<AddMemberResponse>;
3608
+ removeMember(daoId: string, address: string): Promise<RemoveMemberResponse>;
3609
+ claimMemberNft(daoId: string, address: string, request: ClaimDaoMemberNftRequest): Promise<ClaimNftResponse>;
3610
+ getMemberNft(daoId: string, address: string): Promise<MemberNftResponse>;
3611
+ }
3612
+ export type PersonhoodAttestationMethod = "web-of-trust" | "biometric" | "pop-protocol";
3613
+ export interface PersonhoodProof {
3614
+ attestationMethod: PersonhoodAttestationMethod;
3615
+ payload: unknown;
3616
+ }
3617
+ export interface PersonhoodCert {
3618
+ address: string;
3619
+ issuerId: string;
3620
+ attestationMethod: PersonhoodAttestationMethod;
3621
+ issuedAt: number;
3622
+ expiresAt: number;
3623
+ signature: string;
3624
+ }
3625
+ export interface PersonhoodVerifyParams {
3626
+ candidate: string;
3627
+ proof: PersonhoodProof;
3628
+ }
3629
+ export declare const PERSONHOOD_VERIFIER_NOT_CONFIGURED: "personhood_verifier_not_configured";
3630
+ export declare class PersonhoodClient {
3631
+ private readonly http;
3632
+ constructor(http: HttpClient);
3633
+ verify(params: PersonhoodVerifyParams): Promise<PersonhoodCert | null>;
3634
+ }
3635
+ export declare function isPersonhoodVerifierNotConfigured(err: unknown): err is SdkHttpError & {
3636
+ details: {
3637
+ error: typeof PERSONHOOD_VERIFIER_NOT_CONFIGURED;
3638
+ };
3639
+ };
3640
+ export type AgentStatus = "active" | "paused" | "revoked" | "pending";
3641
+ export type AgentRegisterRequest = {
3642
+ name: string;
3643
+ description?: string;
3644
+ capabilities: string[];
3645
+ rules: AgentRules;
3646
+ fundingConfig?: {
3647
+ chain: string;
3648
+ maxAmount: string;
3649
+ autoFund: boolean;
3650
+ };
3651
+ };
3652
+ export type AgentRules = {
3653
+ maxTradeAmount?: string;
3654
+ allowedPairs?: string[];
3655
+ allowedChains?: string[];
3656
+ dailyLimit?: string;
3657
+ requireApprovalAbove?: string;
3658
+ customRules?: Record<string, unknown>;
1980
3659
  };
1981
3660
  export type AgentRulesValidationResult = {
1982
3661
  valid: boolean;
@@ -2033,6 +3712,9 @@ export type AgentWithdrawRequest = {
2033
3712
  amount: string;
2034
3713
  destination: string;
2035
3714
  };
3715
+ export type AgentPreparedTransactionResponse = PreparedTransactionResponse & {
3716
+ success: true;
3717
+ };
2036
3718
  export declare class AgentsClient {
2037
3719
  private readonly http;
2038
3720
  constructor(http: HttpClient);
@@ -2042,18 +3724,9 @@ export declare class AgentsClient {
2042
3724
  agents: AgentInfo[];
2043
3725
  total: number;
2044
3726
  }>;
2045
- fund(agentId: string, request: AgentFundRequest): Promise<{
2046
- success: boolean;
2047
- txId?: string;
2048
- }>;
2049
- trade(agentId: string, request: AgentTradeRequest): Promise<{
2050
- success: boolean;
2051
- txId?: string;
2052
- }>;
2053
- withdraw(agentId: string, request: AgentWithdrawRequest): Promise<{
2054
- success: boolean;
2055
- txId?: string;
2056
- }>;
3727
+ fund(agentId: string, request: AgentFundRequest): Promise<AgentPreparedTransactionResponse>;
3728
+ trade(agentId: string, request: AgentTradeRequest): Promise<AgentPreparedTransactionResponse>;
3729
+ withdraw(agentId: string, request: AgentWithdrawRequest): Promise<AgentPreparedTransactionResponse>;
2057
3730
  pause(agentId: string): Promise<{
2058
3731
  success: boolean;
2059
3732
  status: string;
@@ -2436,6 +4109,19 @@ export type BaasRuntimeStatus = {
2436
4109
  export type BaasAppListResponse = {
2437
4110
  apps: DeployedAppInfo[];
2438
4111
  };
4112
+ export type BaasSetWebhookResponse = {
4113
+ appId: string;
4114
+ webhookUrl: string;
4115
+ webhookSecret: string;
4116
+ };
4117
+ export type BaasRotateKekResponse = {
4118
+ success: boolean;
4119
+ newKekVersion: number;
4120
+ };
4121
+ export type BaasRevokeKekResponse = {
4122
+ success: boolean;
4123
+ revokedKekVersions: number[];
4124
+ };
2439
4125
  export type BaasErrorResponse = {
2440
4126
  code: string;
2441
4127
  message: string;
@@ -2474,6 +4160,318 @@ export declare class DeploymentClient {
2474
4160
  activeApps: number;
2475
4161
  totalOwners: number;
2476
4162
  }>;
4163
+ setWebhook(appId: string, webhookUrl: string): Promise<BaasSetWebhookResponse>;
4164
+ getMetrics(appId: string): Promise<string>;
4165
+ rotateKek(appId: string): Promise<BaasRotateKekResponse>;
4166
+ revokeKek(appId: string, version: number): Promise<BaasRevokeKekResponse>;
4167
+ }
4168
+ export type BridgeChain = "hedera" | "xrpl" | "polkadot" | "solana" | "stellar";
4169
+ export type BridgeMode = "rekey" | "lock-wallet";
4170
+ export type BridgeDirection = "one-way" | "two-way";
4171
+ export type BridgeTrustLevel = "owner-rekeyed" | "owner-verified" | "community";
4172
+ export type BridgeStatus = "initializing" | "active" | "paused" | "closed";
4173
+ export type BridgeClaimStatus = "pending" | "completed" | "failed";
4174
+ export type BridgeOperationConfig = {
4175
+ enabled: boolean;
4176
+ controller?: "owner" | "dao";
4177
+ requiresEvidence: boolean;
4178
+ evidenceType?: string;
4179
+ limits?: {
4180
+ totalLimit?: string;
4181
+ perTxLimit?: string;
4182
+ dailyLimit?: string;
4183
+ };
4184
+ };
4185
+ export type BridgeRulesConfig = {
4186
+ mint: BridgeOperationConfig;
4187
+ burn: BridgeOperationConfig;
4188
+ timeRange?: {
4189
+ start: number;
4190
+ end?: number;
4191
+ };
4192
+ };
4193
+ export type BridgeSourceConfig = {
4194
+ chain: BridgeChain;
4195
+ tokenId: string;
4196
+ keyModel: BridgeMode;
4197
+ lockWalletAddress?: string;
4198
+ tssEntityId?: string;
4199
+ };
4200
+ export type BridgeDestinationConfig = {
4201
+ chain: BridgeChain;
4202
+ tokenId: string;
4203
+ issuerAddress?: string;
4204
+ createIfMissing: boolean;
4205
+ };
4206
+ export type BridgeGenesisBinding = {
4207
+ sourceTokenId: string;
4208
+ destinationTokenId: string;
4209
+ initializedAt: string;
4210
+ };
4211
+ export type BridgeConfig = {
4212
+ bridgeId: string;
4213
+ source: BridgeSourceConfig;
4214
+ destination: BridgeDestinationConfig;
4215
+ direction: BridgeDirection;
4216
+ allowedDirections: string[];
4217
+ rules: BridgeRulesConfig;
4218
+ trustLevel: BridgeTrustLevel;
4219
+ status: BridgeStatus;
4220
+ tssEntityId: string;
4221
+ genesisBinding?: BridgeGenesisBinding;
4222
+ createdAt: string | Date;
4223
+ createdBy?: string;
4224
+ };
4225
+ export type CreateBridgeRequest = {
4226
+ sourceChain: BridgeChain;
4227
+ sourceTokenId: string;
4228
+ destinationChain: BridgeChain;
4229
+ keyModel: BridgeMode;
4230
+ direction: BridgeDirection;
4231
+ createDestinationToken: boolean;
4232
+ destinationTokenId?: string;
4233
+ rules: BridgeRulesConfig;
4234
+ name?: string;
4235
+ };
4236
+ export type CreateBridgeResponse = {
4237
+ success: boolean;
4238
+ bridge: BridgeConfig;
4239
+ };
4240
+ export type ListBridgesOptions = {
4241
+ status?: BridgeStatus;
4242
+ sourceChain?: BridgeChain;
4243
+ };
4244
+ export type ListBridgesResponse = {
4245
+ count: number;
4246
+ bridges: BridgeConfig[];
4247
+ };
4248
+ export type PortRequest = {
4249
+ amount: string;
4250
+ sourceAccountId: string;
4251
+ destinationAddress: string;
4252
+ sourceTxId?: string;
4253
+ metadata?: Record<string, unknown>;
4254
+ };
4255
+ export type ReturnRequest = {
4256
+ amount: string;
4257
+ destinationAccountId: string;
4258
+ sourceAddress: string;
4259
+ destinationBurnTxId?: string;
4260
+ metadata?: Record<string, unknown>;
4261
+ };
4262
+ export type PortResult = {
4263
+ success: boolean;
4264
+ claimId: string;
4265
+ sourceTxId?: string;
4266
+ destinationTxId?: string;
4267
+ amount: string;
4268
+ error?: string;
4269
+ };
4270
+ export type BridgeClaimRecord = {
4271
+ claimId: string;
4272
+ bridgeId: string;
4273
+ sourceTxId: string;
4274
+ destinationTxId?: string;
4275
+ amount: string;
4276
+ sourceAccountId: string;
4277
+ destinationAddress: string;
4278
+ direction: string;
4279
+ status: BridgeClaimStatus;
4280
+ createdAt: string | Date;
4281
+ completedAt?: string | Date;
4282
+ error?: string;
4283
+ };
4284
+ export type BridgeSupply = {
4285
+ sourceSupply: string;
4286
+ destinationMinted: string;
4287
+ totalPorted: string;
4288
+ remainingMintable: string;
4289
+ totalClaims: number;
4290
+ };
4291
+ export type ListClaimsOptions = {
4292
+ limit?: number;
4293
+ offset?: number;
4294
+ };
4295
+ export type ListClaimsResponse = {
4296
+ count: number;
4297
+ claims: BridgeClaimRecord[];
4298
+ };
4299
+ export declare class BridgeClient {
4300
+ private readonly http;
4301
+ constructor(http: HttpClient);
4302
+ create(request: CreateBridgeRequest): Promise<CreateBridgeResponse>;
4303
+ list(options?: ListBridgesOptions): Promise<ListBridgesResponse>;
4304
+ get(bridgeId: string): Promise<BridgeConfig>;
4305
+ port(bridgeId: string, request: PortRequest): Promise<PortResult>;
4306
+ return(bridgeId: string, request: ReturnRequest): Promise<PortResult>;
4307
+ getStatus(bridgeId: string, claimId: string): Promise<BridgeClaimRecord>;
4308
+ getSupply(bridgeId: string): Promise<BridgeSupply>;
4309
+ listClaims(bridgeId: string, options?: ListClaimsOptions): Promise<ListClaimsResponse>;
4310
+ }
4311
+ export type ResourcesEnvelope<T = unknown> = {
4312
+ success: boolean;
4313
+ data: T;
4314
+ timestamp: string;
4315
+ };
4316
+ export type ResourceSummaryResponse = ResourcesEnvelope;
4317
+ export type ResourceConsumptionResponse = ResourcesEnvelope;
4318
+ export type ResourceHistoryResponse = ResourcesEnvelope;
4319
+ export type ResourceLedgerResponse = ResourcesEnvelope;
4320
+ export type ResourceBreakdownResponse = ResourcesEnvelope;
4321
+ export type ResourceNodesResponse = ResourcesEnvelope;
4322
+ export type ResourceNodeResponse = ResourcesEnvelope;
4323
+ export type ResourceStatusResponse = ResourcesEnvelope<{
4324
+ appId: string;
4325
+ currentUsage: number;
4326
+ dailyLimit: number;
4327
+ usagePercent: number;
4328
+ blocked: boolean;
4329
+ warnings: unknown;
4330
+ suggestUpgrade: boolean;
4331
+ breakdown: unknown;
4332
+ }>;
4333
+ export type ResourceLedgerOptions = {
4334
+ limit?: number;
4335
+ offset?: number;
4336
+ since?: string;
4337
+ until?: string;
4338
+ category?: string;
4339
+ };
4340
+ export type ResourceBreakdownOptions = {
4341
+ since?: string;
4342
+ until?: string;
4343
+ };
4344
+ export declare class ResourcesClient {
4345
+ private readonly http;
4346
+ constructor(http: HttpClient);
4347
+ getSummary(): Promise<ResourceSummaryResponse>;
4348
+ getConsumption(appId: string): Promise<ResourceConsumptionResponse>;
4349
+ getHistory(appId: string, days?: number): Promise<ResourceHistoryResponse>;
4350
+ getLedger(appId: string, options?: ResourceLedgerOptions): Promise<ResourceLedgerResponse>;
4351
+ getStatus(appId: string, dailyLimit?: number): Promise<ResourceStatusResponse>;
4352
+ getBreakdown(appId: string, options?: ResourceBreakdownOptions): Promise<ResourceBreakdownResponse>;
4353
+ listNodes(): Promise<ResourceNodesResponse>;
4354
+ getNode(nodeId: string): Promise<ResourceNodeResponse>;
4355
+ }
4356
+ export type EncryptedEnvelope = {
4357
+ v: 1;
4358
+ alg: "aes-256-gcm";
4359
+ kek: number;
4360
+ mg: number;
4361
+ ct: string;
4362
+ n: string;
4363
+ ts: string;
4364
+ };
4365
+ export type EncryptRequest = {
4366
+ appId: string;
4367
+ kekVersion: number;
4368
+ plaintext: string;
4369
+ masterGeneration?: number;
4370
+ };
4371
+ export type EncryptResponse = {
4372
+ envelope: EncryptedEnvelope;
4373
+ };
4374
+ export type DecryptRequest = {
4375
+ appId: string;
4376
+ envelope: EncryptedEnvelope;
4377
+ };
4378
+ export type DecryptResponse = {
4379
+ plaintext: string;
4380
+ };
4381
+ export declare class EnvelopeClient {
4382
+ private readonly http;
4383
+ constructor(http: HttpClient);
4384
+ encrypt(request: EncryptRequest): Promise<EncryptResponse>;
4385
+ decrypt(request: DecryptRequest): Promise<DecryptResponse>;
4386
+ }
4387
+ export type TokenMigrationChain = "hedera" | "xrpl" | "stellar";
4388
+ export type TokenMigrationStatusValue = "pending" | "in_progress" | "completed" | "failed";
4389
+ export type TokenMigrationRequest = {
4390
+ chain: TokenMigrationChain;
4391
+ tokenId: string;
4392
+ currentAdminKey: string;
4393
+ currentSupplyKey?: string;
4394
+ payerAccountId?: string;
4395
+ };
4396
+ export type TokenMigrationResponse = {
4397
+ migrationId: string;
4398
+ success: boolean;
4399
+ newAdminKey?: string;
4400
+ newSupplyKey?: string;
4401
+ entityId?: string;
4402
+ txId?: string;
4403
+ error?: string;
4404
+ };
4405
+ export type TokenMigrationStatus = {
4406
+ migrationId: string;
4407
+ chain: TokenMigrationChain;
4408
+ tokenId: string;
4409
+ status: TokenMigrationStatusValue;
4410
+ progress: number;
4411
+ currentStep: string;
4412
+ error?: string;
4413
+ startedAt: string | Date;
4414
+ completedAt?: string | Date;
4415
+ result?: TokenMigrationResponse;
4416
+ };
4417
+ export type ListMigrationsResponse = {
4418
+ migrations: TokenMigrationStatus[];
4419
+ count: number;
4420
+ };
4421
+ export type TokenMigrationsForTokenResponse = {
4422
+ tokenId: string;
4423
+ migrations: TokenMigrationStatus[];
4424
+ count: number;
4425
+ };
4426
+ export type TokenDetailsResponse = {
4427
+ chain: string;
4428
+ tokenId: string;
4429
+ name?: string;
4430
+ symbol?: string;
4431
+ totalSupply?: string;
4432
+ adminKey?: string | null;
4433
+ supplyKey?: string | null;
4434
+ tssControlled?: boolean;
4435
+ entityId?: string;
4436
+ message?: string;
4437
+ };
4438
+ export declare class TokensClient {
4439
+ private readonly http;
4440
+ constructor(http: HttpClient);
4441
+ migrate(request: TokenMigrationRequest): Promise<TokenMigrationResponse>;
4442
+ listMigrations(): Promise<ListMigrationsResponse>;
4443
+ getMigration(migrationId: string): Promise<TokenMigrationStatus | {
4444
+ error: string;
4445
+ }>;
4446
+ getMigrationsForToken(tokenId: string): Promise<TokenMigrationsForTokenResponse>;
4447
+ getDetails(chain: string, tokenId: string): Promise<TokenDetailsResponse>;
4448
+ }
4449
+ export type OperatorChain = "hedera";
4450
+ export type OperatorTokenBalance = {
4451
+ tokenId: string;
4452
+ balance: string;
4453
+ decimals?: number;
4454
+ };
4455
+ export type OperatorBalanceResponse = {
4456
+ accountId: string;
4457
+ chain: OperatorChain;
4458
+ hbarBalance: string;
4459
+ tokenBalances: OperatorTokenBalance[];
4460
+ };
4461
+ export type OperatorTopUpResponse = {
4462
+ accountId: string;
4463
+ chain: OperatorChain;
4464
+ minimumRecommended: string;
4465
+ currentBalance: string;
4466
+ needsTopUp: boolean;
4467
+ instructions: string;
4468
+ explorerUrl: string;
4469
+ };
4470
+ export declare class OperatorClient {
4471
+ private readonly http;
4472
+ constructor(http: HttpClient);
4473
+ getBalance(chain: OperatorChain, accountId: string): Promise<OperatorBalanceResponse>;
4474
+ getTopup(chain: OperatorChain, accountId: string): Promise<OperatorTopUpResponse>;
2477
4475
  }
2478
4476
  export interface SmartEngineClientConfig {
2479
4477
  baseUrl: string;
@@ -2549,9 +4547,16 @@ export declare class SmartEngineClient {
2549
4547
  readonly historicalBalance: HistoricalBalanceClient;
2550
4548
  readonly settlement: SettlementClient;
2551
4549
  readonly governance: GovernanceClient;
4550
+ readonly dao: DaoClient;
2552
4551
  readonly personhood: PersonhoodClient;
2553
4552
  readonly agents: AgentsClient;
2554
4553
  readonly deployments: DeploymentClient;
4554
+ readonly bridge: BridgeClient;
4555
+ readonly resources: ResourcesClient;
4556
+ readonly envelope: EnvelopeClient;
4557
+ readonly tokens: TokensClient;
4558
+ readonly operator: OperatorClient;
4559
+ readonly discovery: DiscoveryClient;
2555
4560
  constructor(config: SmartEngineClientConfig);
2556
4561
  static fromEnv(env: Record<string, string | undefined>): SmartEngineClient;
2557
4562
  static connectToNetwork(config: NetworkConnectionConfig): Promise<NetworkConnectionResult>;
@@ -2643,106 +4648,253 @@ export declare class SmartEngineClient {
2643
4648
  }>;
2644
4649
  }
2645
4650
  export type GatewayHealthResponse = {
2646
- status: "healthy" | "degraded" | "unhealthy";
4651
+ status: "ok";
2647
4652
  timestamp: string;
2648
4653
  uptime: number;
2649
4654
  version: string;
4655
+ gatewayId: string;
2650
4656
  };
2651
4657
  export type GatewayStatusResponse = {
2652
4658
  status: string;
2653
- hosts: {
2654
- total: number;
2655
- verified: number;
2656
- active: number;
4659
+ timestamp: string;
4660
+ uptime: number;
4661
+ gatewayId: string;
4662
+ version: string;
4663
+ mode: {
4664
+ strictVerification: boolean;
4665
+ dnssecEnabled: boolean;
4666
+ routingStrategy: string;
2657
4667
  };
2658
- domains: {
2659
- total: number;
2660
- verified: number;
4668
+ subsystems: {
4669
+ dns: {
4670
+ status: string;
4671
+ cacheEnabled: boolean;
4672
+ cacheSize: number;
4673
+ maxCacheSize: number;
4674
+ cacheUtilization: number;
4675
+ };
4676
+ routing: {
4677
+ status: string;
4678
+ strategy: string;
4679
+ totalHosts: number;
4680
+ verifiedHosts: number;
4681
+ healthyHosts: number;
4682
+ };
4683
+ verification: {
4684
+ status: string;
4685
+ [key: string]: unknown;
4686
+ };
2661
4687
  };
2662
- uptime: number;
2663
4688
  };
2664
4689
  export type GatewayReadinessResponse = {
2665
- ready: boolean;
2666
- checks: Record<string, boolean>;
4690
+ status: "ready";
4691
+ timestamp: string;
4692
+ verifiedHostsCount: number;
4693
+ } | {
4694
+ status: "not_ready";
4695
+ timestamp: string;
4696
+ reason: string;
2667
4697
  };
2668
4698
  export type GatewayLivenessResponse = {
2669
- alive: boolean;
4699
+ status: "alive";
2670
4700
  timestamp: string;
4701
+ uptime: number;
2671
4702
  };
2672
4703
  export type GatewayMetricsResponse = {
2673
- requests: {
2674
- total: number;
2675
- successful: number;
2676
- failed: number;
2677
- avgLatencyMs: number;
4704
+ timestamp: string;
4705
+ network: {
4706
+ status: "operational" | "degraded" | "down";
4707
+ totalClusters: number;
4708
+ healthyClusters: number;
4709
+ totalValidators: number;
4710
+ activeValidators: number;
2678
4711
  };
2679
- hosts: {
2680
- total: number;
2681
- healthy: number;
2682
- unhealthy: number;
4712
+ gateway: {
4713
+ version: string;
4714
+ uptimeSeconds: number;
4715
+ totalHosts: number;
4716
+ verifiedHosts: number;
4717
+ healthyHosts: number;
4718
+ };
4719
+ chains: {
4720
+ hedera: {
4721
+ connectedNodes: number;
4722
+ totalNodes: number;
4723
+ network: string | null;
4724
+ };
4725
+ xrpl: {
4726
+ connectedNodes: number;
4727
+ totalNodes: number;
4728
+ network: string | null;
4729
+ };
2683
4730
  };
2684
- bandwidth: {
2685
- inbound: number;
2686
- outbound: number;
4731
+ genesis: {
4732
+ status: "pending" | "in_progress" | "completed" | "unknown";
4733
+ completedClusters: number;
4734
+ totalClusters: number;
2687
4735
  };
2688
- timestamp: string;
4736
+ clusters: ClusterHealth[];
4737
+ cacheTtlSeconds: number;
4738
+ gossipDiscovery?: {
4739
+ enabled: boolean;
4740
+ [key: string]: unknown;
4741
+ };
4742
+ };
4743
+ export type ClusterHealth = {
4744
+ clusterId: string;
4745
+ clusterName: string;
4746
+ status: "healthy" | "degraded" | "unhealthy" | "unreachable";
4747
+ gateway: {
4748
+ status: "up" | "down";
4749
+ uptimeSeconds: number;
4750
+ };
4751
+ validator: {
4752
+ status: "up" | "down" | "unknown";
4753
+ responseTimeMs: number | null;
4754
+ version: string | null;
4755
+ };
4756
+ host: {
4757
+ status: "up" | "down" | "unknown";
4758
+ responseTimeMs: number | null;
4759
+ };
4760
+ chains: {
4761
+ hedera: {
4762
+ connected: boolean;
4763
+ network: string | null;
4764
+ };
4765
+ xrpl: {
4766
+ connected: boolean;
4767
+ network: string | null;
4768
+ };
4769
+ };
4770
+ genesis: {
4771
+ status: "pending" | "in_progress" | "completed" | "failed" | "unknown";
4772
+ completedChains: string[];
4773
+ };
4774
+ lastChecked: string;
2689
4775
  };
2690
4776
  export type GatewayMetricsSummaryResponse = {
2691
- summary: Record<string, unknown>;
2692
- period: string;
2693
- generatedAt: string;
4777
+ timestamp: string;
4778
+ status: "operational" | "degraded" | "down";
4779
+ clusters: string;
4780
+ validators: string;
4781
+ hedera: "connected" | "disconnected";
4782
+ xrpl: "connected" | "disconnected";
4783
+ genesis: "pending" | "in_progress" | "completed" | "unknown";
4784
+ version: string;
4785
+ };
4786
+ export type ClusterHealthAggregate = {
4787
+ clusterId: string;
4788
+ gateway: {
4789
+ status: "up";
4790
+ uptimeSeconds: number;
4791
+ version: string;
4792
+ gatewayId: string;
4793
+ };
4794
+ validator: {
4795
+ status: "up" | "down";
4796
+ version: string | null;
4797
+ chains: Array<{
4798
+ chain: string;
4799
+ connected: boolean;
4800
+ network?: string;
4801
+ latency?: number;
4802
+ }>;
4803
+ };
4804
+ host: {
4805
+ status: "up" | "down";
4806
+ };
4807
+ genesis: {
4808
+ bootstrap?: {
4809
+ state?: string;
4810
+ };
4811
+ multiChain?: {
4812
+ overall?: string;
4813
+ implementedChains?: {
4814
+ completed?: number;
4815
+ };
4816
+ queueSummary?: unknown;
4817
+ };
4818
+ };
4819
+ lastChecked: string;
2694
4820
  };
2695
4821
  export type RegisterHostRequest = {
2696
- name: string;
2697
- endpoint: string;
2698
- capabilities?: string[];
2699
- metadata?: Record<string, unknown>;
4822
+ appId: string;
4823
+ address: string;
4824
+ port: number;
4825
+ weight?: number;
4826
+ region?: string;
4827
+ metadata?: Record<string, string>;
2700
4828
  };
2701
4829
  export type HostInfo = {
2702
- hostId: string;
2703
- name: string;
2704
- endpoint: string;
2705
- status: "active" | "inactive" | "suspended";
4830
+ id: string;
4831
+ address: string;
4832
+ port: number;
4833
+ weight?: number;
4834
+ region?: string;
2706
4835
  verified: boolean;
2707
- capabilities: string[];
2708
- lastSeen: string;
4836
+ verifiedAt?: string;
4837
+ verificationExpires?: string;
4838
+ attestationScore?: number;
4839
+ healthStatus?: "healthy" | "unhealthy" | "unknown";
4840
+ lastHealthCheck?: string;
4841
+ responseTime?: number;
4842
+ activeConnections?: number;
4843
+ successfulChecks?: number;
4844
+ failedChecks?: number;
2709
4845
  registeredAt: string;
2710
- metadata?: Record<string, unknown>;
4846
+ };
4847
+ export type RegisterHostResponse = {
4848
+ success: boolean;
4849
+ host: {
4850
+ id: string;
4851
+ address: string;
4852
+ port: number;
4853
+ verified: boolean;
4854
+ healthStatus?: string;
4855
+ registeredAt: string;
4856
+ };
4857
+ message: string;
2711
4858
  };
2712
4859
  export type HostListResponse = {
4860
+ count: number;
2713
4861
  hosts: HostInfo[];
2714
- total: number;
2715
4862
  };
2716
4863
  export type RoutingConfig = {
2717
- strategy: "round-robin" | "least-connections" | "random" | "weighted";
4864
+ hosts?: string[];
4865
+ loadBalancing?: "round-robin" | "weighted" | "least-connections" | "random" | "ip-hash";
4866
+ redundantExecution?: boolean;
4867
+ minHosts?: number;
2718
4868
  healthCheckInterval?: number;
2719
- timeout?: number;
2720
- retries?: number;
2721
- weights?: Record<string, number>;
4869
+ healthCheckPath?: string;
2722
4870
  };
2723
4871
  export type ProxyRequest = {
2724
- targetHostId?: string;
2725
- method: string;
4872
+ host: string;
2726
4873
  path: string;
4874
+ method: string;
2727
4875
  headers?: Record<string, string>;
2728
4876
  body?: unknown;
2729
4877
  };
2730
4878
  export type ProxyResponse = {
2731
- statusCode: number;
2732
- headers: Record<string, string>;
2733
- body: unknown;
2734
- hostId: string;
2735
- latencyMs: number;
4879
+ success: boolean;
4880
+ data: unknown;
4881
+ meta: {
4882
+ hostId: string;
4883
+ responseTime: number;
4884
+ routingStrategy: string;
4885
+ };
2736
4886
  };
2737
4887
  export type RoutingStatsResponse = {
2738
- totalRequests: number;
2739
- successRate: number;
2740
- avgLatencyMs: number;
2741
- hostStats: Record<string, {
2742
- requests: number;
2743
- errors: number;
2744
- avgLatencyMs: number;
2745
- }>;
4888
+ timestamp: string;
4889
+ strictMode: boolean;
4890
+ defaultStrategy: string;
4891
+ hosts: Record<string, unknown>;
4892
+ verification: Record<string, unknown>;
4893
+ };
4894
+ export type MapDomainToAppResponse = {
4895
+ domain: string;
4896
+ appId: string;
4897
+ message: string;
2746
4898
  };
2747
4899
  export type DomainRegistrationRequest = {
2748
4900
  domain: string;
@@ -2772,21 +4924,21 @@ export type DomainAvailabilityResponse = {
2772
4924
  price?: string;
2773
4925
  suggestions?: string[];
2774
4926
  };
4927
+ export type VerificationMethod = "dns-txt" | "dns-cname" | "http-file" | "email";
2775
4928
  export type VerificationTokenResponse = {
4929
+ domain: string;
4930
+ method: VerificationMethod;
2776
4931
  token: string;
2777
- method: "dns" | "http" | "email";
2778
4932
  instructions: string;
2779
- expiresAt: string;
2780
4933
  };
2781
4934
  export type VerificationResult = {
2782
- verified: boolean;
2783
4935
  domain: string;
2784
- method: string;
2785
- verifiedAt?: string;
2786
- error?: string;
4936
+ verified: boolean;
4937
+ message: string;
2787
4938
  };
4939
+ export type DnsRecordType = "A" | "AAAA" | "CNAME" | "TXT" | "MX" | "NS" | "SOA" | "SRV" | "CAA" | "DNSKEY" | "DS" | "RRSIG" | "NSEC" | "NSEC3";
2788
4940
  export type DnsRecord = {
2789
- type: "A" | "AAAA" | "CNAME" | "MX" | "TXT" | "NS" | "SRV" | "CAA";
4941
+ type: DnsRecordType;
2790
4942
  name: string;
2791
4943
  value: string;
2792
4944
  ttl?: number;
@@ -2856,26 +5008,30 @@ export type DnssecDsRecord = {
2856
5008
  export declare class RoutingClient {
2857
5009
  private readonly http;
2858
5010
  constructor(http: HttpClient);
2859
- registerHost(request: RegisterHostRequest): Promise<HostInfo>;
5011
+ registerHost(request: RegisterHostRequest): Promise<RegisterHostResponse>;
2860
5012
  unregisterHost(hostId: string): Promise<{
2861
5013
  success: boolean;
5014
+ message: string;
2862
5015
  }>;
2863
5016
  getAllHosts(): Promise<HostListResponse>;
2864
5017
  getVerifiedHosts(): Promise<HostListResponse>;
2865
5018
  getHost(hostId: string): Promise<HostInfo>;
2866
5019
  verifyHost(hostId: string): Promise<{
5020
+ success: boolean;
5021
+ hostId: string;
2867
5022
  verified: boolean;
5023
+ attestationScore?: number;
2868
5024
  message: string;
2869
5025
  }>;
2870
- setRoutingConfig(appId: string, config: RoutingConfig): Promise<RoutingConfig>;
2871
- getRoutingConfig(appId: string): Promise<RoutingConfig>;
2872
- proxyRequest(request: ProxyRequest): Promise<ProxyResponse>;
2873
- getStats(): Promise<RoutingStatsResponse>;
2874
- mapDomainToApp(domain: string, appId: string): Promise<{
5026
+ setRoutingConfig(appId: string, config: RoutingConfig): Promise<{
2875
5027
  success: boolean;
2876
- domain: string;
2877
5028
  appId: string;
5029
+ message: string;
2878
5030
  }>;
5031
+ getRoutingConfig(appId: string): Promise<RoutingConfig>;
5032
+ proxyRequest(request: ProxyRequest): Promise<ProxyResponse>;
5033
+ getStats(): Promise<RoutingStatsResponse>;
5034
+ mapDomainToApp(domain: string, appId: string): Promise<MapDomainToAppResponse>;
2879
5035
  }
2880
5036
  export declare class DomainsClient {
2881
5037
  private readonly http;
@@ -2884,7 +5040,7 @@ export declare class DomainsClient {
2884
5040
  checkAvailability(domain: string): Promise<DomainAvailabilityResponse>;
2885
5041
  getInfo(domain: string): Promise<DomainInfo>;
2886
5042
  list(owner?: string): Promise<DomainListResponse>;
2887
- generateVerificationToken(domain: string, method: "dns" | "http" | "email"): Promise<VerificationTokenResponse>;
5043
+ generateVerificationToken(domain: string, method: VerificationMethod): Promise<VerificationTokenResponse>;
2888
5044
  verifyOwnership(domain: string, token: string): Promise<VerificationResult>;
2889
5045
  configureDns(domain: string, records: DnsRecord[]): Promise<{
2890
5046
  success: boolean;
@@ -2949,6 +5105,11 @@ export declare class DnsClient {
2949
5105
  entriesCleared: number;
2950
5106
  }>;
2951
5107
  }
5108
+ export declare class HealthClient {
5109
+ private readonly http;
5110
+ constructor(http: HttpClient);
5111
+ getCluster(): Promise<ClusterHealthAggregate>;
5112
+ }
2952
5113
  export type SmartGatewayClientConfig = {
2953
5114
  baseUrl: string;
2954
5115
  apiKey?: string;
@@ -2961,6 +5122,7 @@ export declare class SmartGatewayClient {
2961
5122
  readonly routing: RoutingClient;
2962
5123
  readonly domains: DomainsClient;
2963
5124
  readonly dns: DnsClient;
5125
+ readonly health: HealthClient;
2964
5126
  constructor(config: SmartGatewayClientConfig);
2965
5127
  getHealth(): Promise<GatewayHealthResponse>;
2966
5128
  getStatus(): Promise<GatewayStatusResponse>;
@@ -3036,6 +5198,13 @@ export declare class DatabaseClient {
3036
5198
  listCollections(): Promise<{
3037
5199
  collections: string[];
3038
5200
  }>;
5201
+ createCollection(name: string): Promise<{
5202
+ success: boolean;
5203
+ collection: string;
5204
+ }>;
5205
+ dropCollection(name: string): Promise<{
5206
+ success: boolean;
5207
+ }>;
3039
5208
  getStateRoot(): Promise<StateRootResponse>;
3040
5209
  getDocumentProof(documentId: string): Promise<DocumentProofResponse>;
3041
5210
  getStateTransitions(options?: {
@@ -3058,7 +5227,7 @@ export declare class StorageClient {
3058
5227
  getFile(cid: string): Promise<BaasFileInfo>;
3059
5228
  listFiles(pagination?: {
3060
5229
  limit?: number;
3061
- skip?: number;
5230
+ offset?: number;
3062
5231
  }): Promise<{
3063
5232
  files: BaasFileInfo[];
3064
5233
  total: number;
@@ -3116,10 +5285,10 @@ export declare class MessagingClient {
3116
5285
  total: number;
3117
5286
  hasMore: boolean;
3118
5287
  }>;
3119
- setPresence(member: BaasPresenceMember): Promise<{
5288
+ setPresence(channel: string, member: BaasPresenceMember): Promise<{
3120
5289
  success: boolean;
3121
5290
  }>;
3122
- removePresence(memberId: string): Promise<{
5291
+ removePresence(channel: string, clientId: string): Promise<{
3123
5292
  success: boolean;
3124
5293
  }>;
3125
5294
  getPresence(channel: string): Promise<BaasPresenceInfo>;
@@ -21729,218 +23898,94 @@ export declare const ValidatorRulesSchema: z.ZodUnion<[
21729
23898
  allowWildcards?: boolean | undefined;
21730
23899
  } | undefined;
21731
23900
  tradeLimits?: {
21732
- dailyLimit: string;
21733
- maxPerTrade: string;
21734
- decimals?: number | undefined;
21735
- periodMs?: number | undefined;
21736
- } | undefined;
21737
- approvedPairs?: {
21738
- pairs: {
21739
- chain: string;
21740
- baseToken: string;
21741
- quoteToken: string;
21742
- }[];
21743
- strictMode?: boolean | undefined;
21744
- } | undefined;
21745
- cooldown?: {
21746
- cooldownMs: number;
21747
- perAction?: Record<string, number> | undefined;
21748
- } | undefined;
21749
- approvalThreshold?: {
21750
- threshold: string;
21751
- decimals?: number | undefined;
21752
- controller?: "owner" | "dao" | undefined;
21753
- currency?: string | undefined;
21754
- } | undefined;
21755
- operationalWindow?: {
21756
- from: string | number;
21757
- to: string | number;
21758
- inclusive?: boolean | undefined;
21759
- timezone?: string | undefined;
21760
- } | undefined;
21761
- allocationLimits?: {
21762
- tokenId?: string | undefined;
21763
- inclusive?: boolean | undefined;
21764
- decimals?: number | undefined;
21765
- min?: string | number | undefined;
21766
- max?: string | number | undefined;
21767
- } | undefined;
21768
- }>
21769
- ]>;
21770
- export type SmartNodeSecurity = z.infer<typeof SmartNodeSecuritySchema>;
21771
- export type OperationController = z.infer<typeof OperationControllerSchema>;
21772
- export type OperationLimits = z.infer<typeof OperationLimitsSchema>;
21773
- export type BaseOperationConfig = z.infer<typeof BaseOperationConfigSchema>;
21774
- export type UpdateOperationConfig = z.infer<typeof UpdateOperationConfigSchema>;
21775
- export type PayloadSchemaRef = z.infer<typeof PayloadSchemaRefSchema>;
21776
- export type SubmitOperationConfig = z.infer<typeof SubmitOperationConfigSchema>;
21777
- export type BurnOperationConfig = z.infer<typeof BurnOperationConfigSchema>;
21778
- export type TransferOperationConfig = z.infer<typeof TransferOperationConfigSchema>;
21779
- export type FreezeOperationConfig = z.infer<typeof FreezeOperationConfigSchema>;
21780
- export type PauseOperationConfig = z.infer<typeof PauseOperationConfigSchema>;
21781
- export type MintOperationConfig = z.infer<typeof MintOperationConfigSchema>;
21782
- export type TokenOperationsConfig = z.infer<typeof TokenOperationsConfigSchema>;
21783
- export type AccountOperationsConfig = z.infer<typeof AccountOperationsConfigSchema>;
21784
- export type TopicOperationsConfig = z.infer<typeof TopicOperationsConfigSchema>;
21785
- export type KeyCondition = z.infer<typeof KeyConditionSchema>;
21786
- export type TokenKeyConditions = z.infer<typeof TokenKeyConditionsSchema>;
21787
- export type AccountKeyConditions = z.infer<typeof AccountKeyConditionsSchema>;
21788
- export type TopicKeyConditions = z.infer<typeof TopicKeyConditionsSchema>;
21789
- export type FixedFeeCondition = z.infer<typeof FixedFeeConditionSchema>;
21790
- export type FractionalFeeCondition = z.infer<typeof FractionalFeeConditionSchema>;
21791
- export type RoyaltyFeeCondition = z.infer<typeof RoyaltyFeeConditionSchema>;
21792
- export type FeeConditions = z.infer<typeof FeeConditionsSchema>;
21793
- export type TimeRange = z.infer<typeof TimeRangeSchema>;
21794
- export type FungibleTokenGate = z.infer<typeof FungibleTokenGateSchema>;
21795
- export type NonFungibleTokenGate = z.infer<typeof NonFungibleTokenGateSchema>;
21796
- export type TokenGateConditions = z.infer<typeof TokenGateConditionsSchema>;
21797
- type GovernanceConfig$1 = z.infer<typeof GovernanceConfigSchema>;
21798
- type ValidatorMetadata$1 = z.infer<typeof ValidatorMetadataSchema>;
21799
- export type RuleInvariants = z.infer<typeof RuleInvariantsSchema>;
21800
- export type SoulboundAllowedAction = z.infer<typeof SoulboundAllowedActionSchema>;
21801
- export type SoulboundNftConfig = z.infer<typeof SoulboundNftConfigSchema>;
21802
- export type TokenValidatorRules = z.infer<typeof TokenValidatorRulesSchema>;
21803
- export type AccountValidatorRules = z.infer<typeof AccountValidatorRulesSchema>;
21804
- export type TopicValidatorRules = z.infer<typeof TopicValidatorRulesSchema>;
21805
- export type AgentType = z.infer<typeof AgentTypeSchema>;
21806
- export type AgentPermissionScope = z.infer<typeof AgentPermissionScopeSchema>;
21807
- export type AgentControllerType = z.infer<typeof AgentControllerTypeSchema>;
21808
- export type AgentAccessControlMode = z.infer<typeof AgentAccessControlModeSchema>;
21809
- export type AgentPermissionEntry = z.infer<typeof AgentPermissionEntrySchema>;
21810
- export type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
21811
- export type AgentTradeLimits = z.infer<typeof AgentTradeLimitsSchema>;
21812
- export type AgentTokenPair = z.infer<typeof AgentTokenPairSchema>;
21813
- export type AgentApprovedPairs = z.infer<typeof AgentApprovedPairsSchema>;
21814
- export type AgentCooldown = z.infer<typeof AgentCooldownSchema>;
21815
- export type AgentApprovalThreshold = z.infer<typeof AgentApprovalThresholdSchema>;
21816
- export type AgentOperationalWindow = z.infer<typeof AgentOperationalWindowSchema>;
21817
- export type AgentAllocationLimits = z.infer<typeof AgentAllocationLimitsSchema>;
21818
- export type AgentValidatorRules = z.infer<typeof AgentValidatorRulesSchema>;
21819
- export type ValidatorRules = z.infer<typeof ValidatorRulesSchema>;
21820
- export interface BaseRulePartial {
21821
- version?: "3.0";
21822
- type?: "token" | "account" | "topic" | "agent";
21823
- created?: string;
21824
- smartNodeSecurity?: SmartNodeSecurity;
21825
- defaultSecurity?: SmartNodeSecurity;
21826
- defaultController?: OperationController;
21827
- governance?: GovernanceConfig$1;
21828
- tokenGates?: TokenGateConditions;
21829
- timeRange?: TimeRange | null;
21830
- metadata?: ValidatorMetadata$1;
21831
- modules?: ModuleEntry[];
21832
- invariants?: RuleInvariants;
21833
- }
21834
- export declare class RuleBuildError extends Error {
21835
- readonly errors: string[];
21836
- constructor(message: string, errors: string[]);
21837
- }
21838
- export declare abstract class BaseRuleBuilder<TRules, TPartial extends BaseRulePartial = BaseRulePartial> {
21839
- protected state: TPartial;
21840
- protected constructor(type: BaseRulePartial["type"], initial?: TPartial);
21841
- protected abstract schema(): z.ZodSchema<TRules>;
21842
- withSecurity(mode: SmartNodeSecurity): this;
21843
- withController(controller: OperationController): this;
21844
- withGovernance(governance: GovernanceConfig$1): this;
21845
- withTokenGates(tokenGates: TokenGateConditions): this;
21846
- withTimeRange(timeRange: TimeRange | null): this;
21847
- withMetadata(metadata: ValidatorMetadata$1): this;
21848
- withModules(modules: ModuleEntry[]): this;
21849
- addModule(module: ModuleEntry): this;
21850
- withInvariants(invariants: RuleInvariants): this;
21851
- build(): TRules;
21852
- partial(): TPartial;
21853
- }
21854
- export interface TokenRulePartial extends BaseRulePartial {
21855
- type?: "token";
21856
- operations?: TokenOperationsConfig;
21857
- keys?: TokenKeyConditions;
21858
- fees?: FeeConditions;
21859
- soulbound?: SoulboundNftConfig;
21860
- }
21861
- export declare class TokenRulesBuilder extends BaseRuleBuilder<TokenValidatorRules, TokenRulePartial> {
21862
- constructor();
21863
- protected schema(): z.ZodSchema<TokenValidatorRules>;
21864
- withOperations(operations: TokenOperationsConfig): this;
21865
- patchOperations(partial: Partial<TokenOperationsConfig>): this;
21866
- withKeys(keys: TokenKeyConditions): this;
21867
- withFees(fees: FeeConditions): this;
21868
- withSoulbound(soulbound: SoulboundNftConfig): this;
21869
- }
21870
- export declare function forToken(): TokenRulesBuilder;
21871
- export interface AccountRulePartial extends BaseRulePartial {
21872
- type?: "account";
21873
- operations?: AccountOperationsConfig;
21874
- keys?: AccountKeyConditions;
21875
- }
21876
- export declare class AccountRulesBuilder extends BaseRuleBuilder<AccountValidatorRules, AccountRulePartial> {
21877
- constructor();
21878
- protected schema(): z.ZodSchema<AccountValidatorRules>;
21879
- withOperations(operations: AccountOperationsConfig): this;
21880
- patchOperations(partial: Partial<AccountOperationsConfig>): this;
21881
- withKeys(keys: AccountKeyConditions): this;
21882
- }
21883
- export declare function forAccount(): AccountRulesBuilder;
21884
- export interface TopicRulePartial extends BaseRulePartial {
21885
- type?: "topic";
21886
- operations?: TopicOperationsConfig;
21887
- keys?: TopicKeyConditions;
21888
- }
21889
- export declare class TopicRulesBuilder extends BaseRuleBuilder<TopicValidatorRules, TopicRulePartial> {
21890
- constructor();
21891
- protected schema(): z.ZodSchema<TopicValidatorRules>;
21892
- withOperations(operations: TopicOperationsConfig): this;
21893
- patchOperations(partial: Partial<TopicOperationsConfig>): this;
21894
- withKeys(keys: TopicKeyConditions): this;
21895
- withSubmit(submit: SubmitOperationConfig): this;
21896
- withPayloadSchema(payloadSchema: PayloadSchemaRef): this;
21897
- }
21898
- export declare function forTopic(): TopicRulesBuilder;
21899
- export interface AgentRulePartial extends BaseRulePartial {
21900
- type?: "agent";
21901
- name?: string;
21902
- agentType?: AgentType;
21903
- permissions?: AgentPermissions;
21904
- tradeLimits?: AgentTradeLimits;
21905
- approvedPairs?: AgentApprovedPairs;
21906
- cooldown?: AgentCooldown;
21907
- approvalThreshold?: AgentApprovalThreshold;
21908
- operationalWindow?: AgentOperationalWindow;
21909
- allocationLimits?: AgentAllocationLimits;
21910
- }
21911
- export declare class AgentRulesBuilder extends BaseRuleBuilder<AgentValidatorRules, AgentRulePartial> {
21912
- constructor();
21913
- protected schema(): z.ZodSchema<AgentValidatorRules>;
21914
- withName(name: string): this;
21915
- withAgentType(agentType: AgentType): this;
21916
- withPermissions(permissions: AgentPermissions): this;
21917
- withTradeLimits(tradeLimits: AgentTradeLimits): this;
21918
- withApprovedPairs(approvedPairs: AgentApprovedPairs): this;
21919
- withCooldown(cooldown: AgentCooldown): this;
21920
- withApprovalThreshold(approvalThreshold: AgentApprovalThreshold): this;
21921
- withOperationalWindow(window: AgentOperationalWindow): this;
21922
- withAllocationLimits(allocationLimits: AgentAllocationLimits): this;
21923
- }
21924
- export declare function forAgent(): AgentRulesBuilder;
21925
- export type RuleType = "token" | "account" | "topic" | "agent";
21926
- export type RuleRef = {
21927
- chain: ChainType;
21928
- topicId: string;
21929
- consensusTimestamp: string;
21930
- };
21931
- export type PublishedRule = {
21932
- ruleRef: RuleRef;
21933
- name?: string;
21934
- ruleType: RuleType;
21935
- createdAt: string;
21936
- rule: unknown;
21937
- deprecated?: boolean;
21938
- };
21939
- export type PreflightResult = {
21940
- valid: boolean;
21941
- errors: string[];
21942
- };
21943
- export declare function validate(rule: unknown): PreflightResult;
23901
+ dailyLimit: string;
23902
+ maxPerTrade: string;
23903
+ decimals?: number | undefined;
23904
+ periodMs?: number | undefined;
23905
+ } | undefined;
23906
+ approvedPairs?: {
23907
+ pairs: {
23908
+ chain: string;
23909
+ baseToken: string;
23910
+ quoteToken: string;
23911
+ }[];
23912
+ strictMode?: boolean | undefined;
23913
+ } | undefined;
23914
+ cooldown?: {
23915
+ cooldownMs: number;
23916
+ perAction?: Record<string, number> | undefined;
23917
+ } | undefined;
23918
+ approvalThreshold?: {
23919
+ threshold: string;
23920
+ decimals?: number | undefined;
23921
+ controller?: "owner" | "dao" | undefined;
23922
+ currency?: string | undefined;
23923
+ } | undefined;
23924
+ operationalWindow?: {
23925
+ from: string | number;
23926
+ to: string | number;
23927
+ inclusive?: boolean | undefined;
23928
+ timezone?: string | undefined;
23929
+ } | undefined;
23930
+ allocationLimits?: {
23931
+ tokenId?: string | undefined;
23932
+ inclusive?: boolean | undefined;
23933
+ decimals?: number | undefined;
23934
+ min?: string | number | undefined;
23935
+ max?: string | number | undefined;
23936
+ } | undefined;
23937
+ }>
23938
+ ]>;
23939
+ export type SmartNodeSecurity = z.infer<typeof SmartNodeSecuritySchema>;
23940
+ export type OperationController = z.infer<typeof OperationControllerSchema>;
23941
+ export type OperationLimits = z.infer<typeof OperationLimitsSchema>;
23942
+ export type BaseOperationConfig = z.infer<typeof BaseOperationConfigSchema>;
23943
+ export type UpdateOperationConfig = z.infer<typeof UpdateOperationConfigSchema>;
23944
+ export type PayloadSchemaRef = z.infer<typeof PayloadSchemaRefSchema>;
23945
+ export type SubmitOperationConfig = z.infer<typeof SubmitOperationConfigSchema>;
23946
+ export type BurnOperationConfig = z.infer<typeof BurnOperationConfigSchema>;
23947
+ export type TransferOperationConfig = z.infer<typeof TransferOperationConfigSchema>;
23948
+ export type FreezeOperationConfig = z.infer<typeof FreezeOperationConfigSchema>;
23949
+ export type PauseOperationConfig = z.infer<typeof PauseOperationConfigSchema>;
23950
+ export type MintOperationConfig = z.infer<typeof MintOperationConfigSchema>;
23951
+ export type TokenOperationsConfig = z.infer<typeof TokenOperationsConfigSchema>;
23952
+ export type AccountOperationsConfig = z.infer<typeof AccountOperationsConfigSchema>;
23953
+ export type TopicOperationsConfig = z.infer<typeof TopicOperationsConfigSchema>;
23954
+ export type KeyCondition = z.infer<typeof KeyConditionSchema>;
23955
+ export type TokenKeyConditions = z.infer<typeof TokenKeyConditionsSchema>;
23956
+ export type AccountKeyConditions = z.infer<typeof AccountKeyConditionsSchema>;
23957
+ export type TopicKeyConditions = z.infer<typeof TopicKeyConditionsSchema>;
23958
+ export type FixedFeeCondition = z.infer<typeof FixedFeeConditionSchema>;
23959
+ export type FractionalFeeCondition = z.infer<typeof FractionalFeeConditionSchema>;
23960
+ export type RoyaltyFeeCondition = z.infer<typeof RoyaltyFeeConditionSchema>;
23961
+ export type FeeConditions = z.infer<typeof FeeConditionsSchema>;
23962
+ export type TimeRange = z.infer<typeof TimeRangeSchema>;
23963
+ export type FungibleTokenGate = z.infer<typeof FungibleTokenGateSchema>;
23964
+ export type NonFungibleTokenGate = z.infer<typeof NonFungibleTokenGateSchema>;
23965
+ export type TokenGateConditions = z.infer<typeof TokenGateConditionsSchema>;
23966
+ type GovernanceConfig$1 = z.infer<typeof GovernanceConfigSchema>;
23967
+ type ValidatorMetadata$1 = z.infer<typeof ValidatorMetadataSchema>;
23968
+ export type RuleInvariants = z.infer<typeof RuleInvariantsSchema>;
23969
+ export type SoulboundAllowedAction = z.infer<typeof SoulboundAllowedActionSchema>;
23970
+ export type SoulboundNftConfig = z.infer<typeof SoulboundNftConfigSchema>;
23971
+ export type TokenValidatorRules = z.infer<typeof TokenValidatorRulesSchema>;
23972
+ export type AccountValidatorRules = z.infer<typeof AccountValidatorRulesSchema>;
23973
+ export type TopicValidatorRules = z.infer<typeof TopicValidatorRulesSchema>;
23974
+ export type AgentType = z.infer<typeof AgentTypeSchema>;
23975
+ export type AgentPermissionScope = z.infer<typeof AgentPermissionScopeSchema>;
23976
+ export type AgentControllerType = z.infer<typeof AgentControllerTypeSchema>;
23977
+ export type AgentAccessControlMode = z.infer<typeof AgentAccessControlModeSchema>;
23978
+ export type AgentPermissionEntry = z.infer<typeof AgentPermissionEntrySchema>;
23979
+ export type AgentPermissions = z.infer<typeof AgentPermissionsSchema>;
23980
+ export type AgentTradeLimits = z.infer<typeof AgentTradeLimitsSchema>;
23981
+ export type AgentTokenPair = z.infer<typeof AgentTokenPairSchema>;
23982
+ export type AgentApprovedPairs = z.infer<typeof AgentApprovedPairsSchema>;
23983
+ export type AgentCooldown = z.infer<typeof AgentCooldownSchema>;
23984
+ export type AgentApprovalThreshold = z.infer<typeof AgentApprovalThresholdSchema>;
23985
+ export type AgentOperationalWindow = z.infer<typeof AgentOperationalWindowSchema>;
23986
+ export type AgentAllocationLimits = z.infer<typeof AgentAllocationLimitsSchema>;
23987
+ export type AgentValidatorRules = z.infer<typeof AgentValidatorRulesSchema>;
23988
+ export type ValidatorRules = z.infer<typeof ValidatorRulesSchema>;
21944
23989
  export type RecurringPattern = {
21945
23990
  type: "daily" | "weekly" | "monthly";
21946
23991
  startHour: number;
@@ -22336,6 +24381,147 @@ export declare const molecule: {
22336
24381
  readonly streaming: (cfg: StreamingMoleculeConfig) => StreamingMoleculeConfig;
22337
24382
  readonly swap: (cfg?: SwapMoleculeConfig) => SwapMoleculeConfig;
22338
24383
  };
24384
+ export interface BaseRulePartial {
24385
+ version?: "3.0";
24386
+ type?: "token" | "account" | "topic" | "agent";
24387
+ created?: string;
24388
+ smartNodeSecurity?: SmartNodeSecurity;
24389
+ defaultSecurity?: SmartNodeSecurity;
24390
+ defaultController?: OperationController;
24391
+ governance?: GovernanceConfig$1;
24392
+ tokenGates?: TokenGateConditions;
24393
+ timeRange?: TimeRange | null;
24394
+ metadata?: ValidatorMetadata$1;
24395
+ modules?: ModuleEntry[];
24396
+ invariants?: RuleInvariants;
24397
+ }
24398
+ export declare class RuleBuildError extends Error {
24399
+ readonly errors: string[];
24400
+ constructor(message: string, errors: string[]);
24401
+ }
24402
+ export declare abstract class BaseRuleBuilder<TRules, TPartial extends BaseRulePartial = BaseRulePartial> {
24403
+ protected state: TPartial;
24404
+ protected constructor(type: BaseRulePartial["type"], initial?: TPartial);
24405
+ protected abstract schema(): z.ZodSchema<TRules>;
24406
+ withSecurity(mode: SmartNodeSecurity): this;
24407
+ withController(controller: OperationController): this;
24408
+ withGovernance(governance: GovernanceConfig$1): this;
24409
+ withTokenGates(tokenGates: TokenGateConditions): this;
24410
+ withTimeRange(timeRange: TimeRange | null): this;
24411
+ withMetadata(metadata: ValidatorMetadata$1): this;
24412
+ withModules(modules: ModuleEntry[]): this;
24413
+ addModule(module: ModuleEntry): this;
24414
+ withInvariants(invariants: RuleInvariants): this;
24415
+ withLimits(limits: LimitsAtomConfig): this;
24416
+ withRateLimiter(rateLimiter: RateLimiterAtomConfig): this;
24417
+ withSnapshot(snapshot: SnapshotAtomConfig): this;
24418
+ withSwap(swap?: SwapMoleculeConfig): this;
24419
+ withAirdrop(airdrop: AirdropMoleculeConfig): this;
24420
+ withVesting(vesting: VestingMoleculeConfig): this;
24421
+ withStreaming(streaming: StreamingMoleculeConfig): this;
24422
+ withGovernanceModule(governance: GovernanceMoleculeConfig): this;
24423
+ withCooldown(cooldown: CooldownAtomConfig): this;
24424
+ withApprovalThreshold(threshold: ApprovalThresholdAtomConfig): this;
24425
+ build(): TRules;
24426
+ partial(): TPartial;
24427
+ }
24428
+ export interface TokenRulePartial extends BaseRulePartial {
24429
+ type?: "token";
24430
+ operations?: TokenOperationsConfig;
24431
+ keys?: TokenKeyConditions;
24432
+ fees?: FeeConditions;
24433
+ soulbound?: SoulboundNftConfig;
24434
+ }
24435
+ export declare class TokenRulesBuilder extends BaseRuleBuilder<TokenValidatorRules, TokenRulePartial> {
24436
+ constructor();
24437
+ protected schema(): z.ZodSchema<TokenValidatorRules>;
24438
+ withOperations(operations: TokenOperationsConfig): this;
24439
+ patchOperations(partial: Partial<TokenOperationsConfig>): this;
24440
+ withKeys(keys: TokenKeyConditions): this;
24441
+ withFees(fees: FeeConditions): this;
24442
+ withSoulbound(soulbound: SoulboundNftConfig): this;
24443
+ }
24444
+ export declare function forToken(): TokenRulesBuilder;
24445
+ export interface AccountRulePartial extends BaseRulePartial {
24446
+ type?: "account";
24447
+ operations?: AccountOperationsConfig;
24448
+ keys?: AccountKeyConditions;
24449
+ }
24450
+ export declare class AccountRulesBuilder extends BaseRuleBuilder<AccountValidatorRules, AccountRulePartial> {
24451
+ constructor();
24452
+ protected schema(): z.ZodSchema<AccountValidatorRules>;
24453
+ withOperations(operations: AccountOperationsConfig): this;
24454
+ patchOperations(partial: Partial<AccountOperationsConfig>): this;
24455
+ withKeys(keys: AccountKeyConditions): this;
24456
+ }
24457
+ export declare function forAccount(): AccountRulesBuilder;
24458
+ export interface TopicRulePartial extends BaseRulePartial {
24459
+ type?: "topic";
24460
+ operations?: TopicOperationsConfig;
24461
+ keys?: TopicKeyConditions;
24462
+ }
24463
+ export declare class TopicRulesBuilder extends BaseRuleBuilder<TopicValidatorRules, TopicRulePartial> {
24464
+ constructor();
24465
+ protected schema(): z.ZodSchema<TopicValidatorRules>;
24466
+ withOperations(operations: TopicOperationsConfig): this;
24467
+ patchOperations(partial: Partial<TopicOperationsConfig>): this;
24468
+ withKeys(keys: TopicKeyConditions): this;
24469
+ withSubmit(submit: SubmitOperationConfig): this;
24470
+ withPayloadSchema(payloadSchema: PayloadSchemaRef): this;
24471
+ }
24472
+ export declare function forTopic(): TopicRulesBuilder;
24473
+ export interface AgentRulePartial extends BaseRulePartial {
24474
+ type?: "agent";
24475
+ name?: string;
24476
+ agentType?: AgentType;
24477
+ permissions?: AgentPermissions;
24478
+ tradeLimits?: AgentTradeLimits;
24479
+ approvedPairs?: AgentApprovedPairs;
24480
+ cooldown?: AgentCooldown;
24481
+ approvalThreshold?: AgentApprovalThreshold;
24482
+ operationalWindow?: AgentOperationalWindow;
24483
+ allocationLimits?: AgentAllocationLimits;
24484
+ }
24485
+ export declare class AgentRulesBuilder extends BaseRuleBuilder<AgentValidatorRules, AgentRulePartial> {
24486
+ constructor();
24487
+ protected schema(): z.ZodSchema<AgentValidatorRules>;
24488
+ withName(name: string): this;
24489
+ withAgentType(agentType: AgentType): this;
24490
+ withPermissions(permissions: AgentPermissions): this;
24491
+ withTradeLimits(tradeLimits: AgentTradeLimits): this;
24492
+ withApprovedPairs(approvedPairs: AgentApprovedPairs): this;
24493
+ withCooldown(cooldown: AgentCooldown): this;
24494
+ withApprovalThreshold(approvalThreshold: AgentApprovalThreshold): this;
24495
+ withOperationalWindow(window: AgentOperationalWindow): this;
24496
+ withAllocationLimits(allocationLimits: AgentAllocationLimits): this;
24497
+ withMaxTradesPerWindow(config: {
24498
+ maxTradesPerWindow: number;
24499
+ windowMs: number;
24500
+ }): this;
24501
+ withRequireStructuredOutput(config?: {
24502
+ outputName?: string;
24503
+ }): this;
24504
+ }
24505
+ export declare function forAgent(): AgentRulesBuilder;
24506
+ export type RuleType = "token" | "account" | "topic" | "agent";
24507
+ export type RuleRef = {
24508
+ chain: ChainType;
24509
+ topicId: string;
24510
+ consensusTimestamp: string;
24511
+ };
24512
+ export type PublishedRule = {
24513
+ ruleRef: RuleRef;
24514
+ name?: string;
24515
+ ruleType: RuleType;
24516
+ createdAt: string;
24517
+ rule: unknown;
24518
+ deprecated?: boolean;
24519
+ };
24520
+ export type PreflightResult = {
24521
+ valid: boolean;
24522
+ errors: string[];
24523
+ };
24524
+ export declare function validate(rule: unknown): PreflightResult;
22339
24525
  export type AllocationTier = {
22340
24526
  name: string;
22341
24527
  requiredBalance: string;
@@ -22491,42 +24677,11 @@ export type DexModuleConfig = {
22491
24677
  adminAccount?: string;
22492
24678
  description?: string;
22493
24679
  };
22494
- export type AgentModuleConfig = {
22495
- name: string;
22496
- agentType?: "trading" | "monitoring" | "analytics" | "custom";
22497
- permissions?: PermissionListAtomConfig;
22498
- tradeLimits?: {
22499
- maxPerTrade: string;
22500
- dailyLimit: string;
22501
- periodMs?: number;
22502
- decimals?: number;
22503
- };
22504
- approvedPairs?: {
22505
- pairs: {
22506
- baseToken: string;
22507
- quoteToken: string;
22508
- chain: string;
22509
- }[];
22510
- strictMode?: boolean;
22511
- };
22512
- cooldown?: {
22513
- cooldownMs: number;
22514
- perAction?: Record<string, number>;
22515
- };
22516
- approvalThreshold?: {
22517
- threshold: string;
22518
- currency?: string;
22519
- decimals?: number;
22520
- };
22521
- operationalWindow?: TimeRangeAtomConfig;
22522
- description?: string;
22523
- };
22524
24680
  export declare const module_: {
22525
24681
  readonly launchpad: (config: LaunchpadModuleConfig) => ModuleEntry;
22526
24682
  readonly stakingPool: (config: StakingPoolModuleConfig) => ModuleEntry;
22527
24683
  readonly dao: (config: DaoModuleConfig) => ModuleEntry;
22528
24684
  readonly dex: (config: DexModuleConfig) => ModuleEntry;
22529
- readonly agent: (config: AgentModuleConfig) => ModuleEntry;
22530
24685
  };
22531
24686
  export type FairLaunchParams = {
22532
24687
  name: string;
@@ -22651,6 +24806,39 @@ export type TradingAgentParams = {
22651
24806
  description?: string;
22652
24807
  };
22653
24808
  export declare function tradingAgent(p: TradingAgentParams): AgentValidatorRules;
24809
+ export type UtilityTokenParams = {
24810
+ description?: string;
24811
+ };
24812
+ export declare function utilityToken(p?: UtilityTokenParams): TokenValidatorRules;
24813
+ export type DaoGovernedTokenParams = {
24814
+ daoTokenId: string;
24815
+ description?: string;
24816
+ };
24817
+ export declare function daoGovernedToken(p: DaoGovernedTokenParams): TokenValidatorRules;
24818
+ export type SoulboundNftParams = {
24819
+ description?: string;
24820
+ };
24821
+ export declare function soulboundNft(p?: SoulboundNftParams): TokenValidatorRules;
24822
+ export type SubscriptionNftParams = {
24823
+ description?: string;
24824
+ };
24825
+ export declare function subscriptionNft(p?: SubscriptionNftParams): TokenValidatorRules;
24826
+ export type MembershipNftParams = {
24827
+ description?: string;
24828
+ };
24829
+ export declare function membershipNft(p?: MembershipNftParams): TokenValidatorRules;
24830
+ export type ManagedAccountParams = {
24831
+ description?: string;
24832
+ };
24833
+ export declare function managedAccount(p?: ManagedAccountParams): AccountValidatorRules;
24834
+ export type SystemTopicParams = {
24835
+ description?: string;
24836
+ };
24837
+ export declare function systemTopic(p?: SystemTopicParams): TopicValidatorRules;
24838
+ export type AppTopicParams = {
24839
+ description?: string;
24840
+ };
24841
+ export declare function appTopic(p?: AppTopicParams): TopicValidatorRules;
22654
24842
  export declare const template: {
22655
24843
  readonly fairLaunch: typeof fairLaunch;
22656
24844
  readonly tieredIDO: typeof tieredIDO;
@@ -22660,6 +24848,14 @@ export declare const template: {
22660
24848
  readonly simpleAMM: typeof simpleAMM;
22661
24849
  readonly vestingSchedule: typeof vestingSchedule;
22662
24850
  readonly tradingAgent: typeof tradingAgent;
24851
+ readonly utilityToken: typeof utilityToken;
24852
+ readonly daoGovernedToken: typeof daoGovernedToken;
24853
+ readonly soulboundNft: typeof soulboundNft;
24854
+ readonly subscriptionNft: typeof subscriptionNft;
24855
+ readonly membershipNft: typeof membershipNft;
24856
+ readonly managedAccount: typeof managedAccount;
24857
+ readonly systemTopic: typeof systemTopic;
24858
+ readonly appTopic: typeof appTopic;
22663
24859
  };
22664
24860
  export declare const Rules: {
22665
24861
  readonly forToken: typeof forToken;
@@ -22699,7 +24895,6 @@ export declare const Rules: {
22699
24895
  readonly stakingPool: (config: StakingPoolModuleConfig) => ModuleEntry;
22700
24896
  readonly dao: (config: DaoModuleConfig) => ModuleEntry;
22701
24897
  readonly dex: (config: DexModuleConfig) => ModuleEntry;
22702
- readonly agent: (config: AgentModuleConfig) => ModuleEntry;
22703
24898
  };
22704
24899
  readonly template: {
22705
24900
  readonly fairLaunch: typeof fairLaunch;
@@ -22710,6 +24905,14 @@ export declare const Rules: {
22710
24905
  readonly simpleAMM: typeof simpleAMM;
22711
24906
  readonly vestingSchedule: typeof vestingSchedule;
22712
24907
  readonly tradingAgent: typeof tradingAgent;
24908
+ readonly utilityToken: typeof utilityToken;
24909
+ readonly daoGovernedToken: typeof daoGovernedToken;
24910
+ readonly soulboundNft: typeof soulboundNft;
24911
+ readonly subscriptionNft: typeof subscriptionNft;
24912
+ readonly membershipNft: typeof membershipNft;
24913
+ readonly managedAccount: typeof managedAccount;
24914
+ readonly systemTopic: typeof systemTopic;
24915
+ readonly appTopic: typeof appTopic;
22713
24916
  };
22714
24917
  };
22715
24918
  export type PublishRuleResponse = {
@@ -23022,7 +25225,7 @@ declare namespace pqcVerify {
23022
25225
  export { FetchRegistryOptions, PqcCertV1, PqcCertV1Schema, PqcCertV1Signer, ValidatorRegistrySnapshot, VerifyResult, fetchRegistrySnapshot, parsePqcCert, verifyPqcAttestation };
23023
25226
  }
23024
25227
  declare namespace discovery {
23025
- export { ClusterDiscoveryClient, ClusterDiscoveryConfig, ClusterEndpointsView, ClusterInfo, MIRROR_NODE_URLS, MirrorNodeClient, MirrorNodeConfig, MirrorNodeError, TopicMessage, TopicMessagesResponse, ValidatorDiscoveryClient, ValidatorDiscoveryConfig, ValidatorInfo, ValidatorMetadata, ValidatorNetworkEndpoints };
25228
+ export { ClusterDiscoveryClient, ClusterDiscoveryConfig, ClusterEndpointsView, ClusterInfo, DiscoveryClient, DiscoveryClusterEndpoints, DiscoveryClusterRecord, DiscoveryNodeRecord, DiscoveryPlatformImageEnvelope, DiscoveryPlatformImageManifest, DiscoveryVerifyResult, MIRROR_NODE_URLS, MirrorNodeClient, MirrorNodeConfig, MirrorNodeError, PlatformImagesClient, TopicMessage, TopicMessagesResponse, ValidatorDiscoveryClient, ValidatorDiscoveryConfig, ValidatorInfo, ValidatorMetadata, ValidatorNetworkEndpoints };
23026
25229
  }
23027
25230
  declare namespace auth {
23028
25231
  export { AuthChain, AuthenticateRequest, AuthenticateResponse, ChallengeResponse, SecurityConfig, SessionInfo, ValidatorAuthClient, ValidatorAuthConfig, ValidatorAuthError, Web3Signer, createXrplWeb3Signer };
@@ -23031,7 +25234,22 @@ declare namespace chains {
23031
25234
  export { bitcoin, hedera, polkadot, solana, stellar, xrpl };
23032
25235
  }
23033
25236
  declare namespace subscription {
23034
- export { BalanceResponse, DepositWalletStatus, MintNftResponse, SubscriptionClient, SubscriptionConfig, SubscriptionListResponse, SubscriptionRenewalRequest, SubscriptionRenewalResponse, SubscriptionRequest, SubscriptionResponse, SubscriptionStatus, SubscriptionStatusResponse, SubscriptionTierInfo, SubscriptionTierName };
25237
+ export { ActiveSubscriptionForWalletResponse, BalanceResponse, CancelTierChangeRequest, CancelTierChangeResponse, DepositWalletStatus, DowngradeSubscriptionRequest, DowngradeSubscriptionResponse, GetBillingOptions, MintCustomerSubscriptionRequest, MintCustomerSubscriptionResponse, MintNftResponse, PendingTierChange, SubscriptionBillingLedgerEntry, SubscriptionBillingResponse, SubscriptionClient, SubscriptionConfig, SubscriptionListResponse, SubscriptionRenewalRequest, SubscriptionRenewalResponse, SubscriptionRequest, SubscriptionResponse, SubscriptionStatus, SubscriptionStatusResponse, SubscriptionTierInfo, SubscriptionTierName, SubscriptionUsageStatusResponse, SubscriptionUsageSummaryResponse, UpgradeSubscriptionRequest, UpgradeSubscriptionResponse };
25238
+ }
25239
+ declare namespace bridge {
25240
+ export { BridgeChain, BridgeClaimRecord, BridgeClaimStatus, BridgeClient, BridgeConfig, BridgeDestinationConfig, BridgeDirection, BridgeGenesisBinding, BridgeMode, BridgeOperationConfig, BridgeRulesConfig, BridgeSourceConfig, BridgeStatus, BridgeSupply, BridgeTrustLevel, CreateBridgeRequest, CreateBridgeResponse, ListBridgesOptions, ListBridgesResponse, ListClaimsOptions, ListClaimsResponse, PortRequest, PortResult, ReturnRequest };
25241
+ }
25242
+ declare namespace resources {
25243
+ export { ResourceBreakdownOptions, ResourceBreakdownResponse, ResourceConsumptionResponse, ResourceHistoryResponse, ResourceLedgerOptions, ResourceLedgerResponse, ResourceNodeResponse, ResourceNodesResponse, ResourceStatusResponse, ResourceSummaryResponse, ResourcesClient, ResourcesEnvelope };
25244
+ }
25245
+ declare namespace envelope {
25246
+ export { DecryptRequest, DecryptResponse, EncryptRequest, EncryptResponse, EncryptedEnvelope, EnvelopeClient };
25247
+ }
25248
+ declare namespace tokens {
25249
+ export { ListMigrationsResponse, TokenDetailsResponse, TokenMigrationChain, TokenMigrationRequest, TokenMigrationResponse, TokenMigrationStatus, TokenMigrationStatusValue, TokenMigrationsForTokenResponse, TokensClient };
25250
+ }
25251
+ declare namespace operator {
25252
+ export { OperatorBalanceResponse, OperatorChain, OperatorClient, OperatorTokenBalance, OperatorTopUpResponse };
23035
25253
  }
23036
25254
  declare namespace settlement {
23037
25255
  export { SettlementAsset, SettlementClient, SettlementHistoryEntry, SettlementInitiateRequest, SettlementPurpose, SettlementStatusResponse };
@@ -23039,11 +25257,14 @@ declare namespace settlement {
23039
25257
  declare namespace governance {
23040
25258
  export { GovernanceClient, GovernanceConfig, GovernanceProposalData, GovernanceProposalStatus, GovernanceSimulateRequest, GovernanceValidationContext, GovernanceValidationResult, GovernanceVoteType, GovernanceVotingPowerMethod };
23041
25259
  }
25260
+ declare namespace dao {
25261
+ export { AddDaoMemberRequest, AddMemberResponse, CastVoteRequest, CastVoteResponse, ClaimDaoMemberNftRequest, ClaimNftResponse, CreateDaoProposalRequest, CreateDaoRequest, CreateDaoResponse, CreateProposalResponse, DaoActiveProposalForUser, DaoActivityEntry, DaoChainTokenEntry, DaoClient, DaoConfig, DaoDashboardClient, DaoDashboardStats, DaoGovernanceImpact, DaoMember, DaoMemberStatus, DaoMembershipModel, DaoMultiChainTokenConfig, DaoPendingAction, DaoProposalAction, DaoProposalConfig, DaoProposalStatus, DaoProposalType, DaoStatus, DaoSupportedChain, DaoTreasuryConfig, DaoTreasuryWallet, DaoVote, DaoVotingOption, DaoVotingPowerModel, DaoVotingRules, DaoVotingSnapshot, DaoWithProposalsResponse, DashboardActivityOptions, DashboardListOptions, ExecuteProposalResponse, ListDaosOptions, ListDaosResponse, ListMembersOptions, ListMembersResponse, ListProposalsOptions, ListProposalsResponse, MemberNftResponse, PrepareDaoProposalRequest, PrepareProposalResponse, PrepareVoteRequest, PrepareVoteResponse, ProposalResultsResponse, RemoveMemberResponse, SubmitSignedProposalRequest, SubmitSignedProposalResponse, SubmitSignedVoteRequest, TreasuryBalancesResponse, TreasuryHistoryEntry, TreasuryHistoryOptions, TreasuryHistoryResponse, VoteListOptions, VotesListResponse };
25262
+ }
23042
25263
  declare namespace personhood {
23043
25264
  export { PERSONHOOD_VERIFIER_NOT_CONFIGURED, PersonhoodAttestationMethod, PersonhoodCert, PersonhoodClient, PersonhoodProof, PersonhoodVerifyParams, isPersonhoodVerifierNotConfigured };
23044
25265
  }
23045
25266
  declare namespace baas {
23046
- export { AgentBalance, AgentEvent, AgentFundRequest, AgentInfo, AgentOperation, AgentRegisterRequest, AgentRules, AgentRulesValidationResult, AgentStatus, AgentTradeRequest, AgentWithdrawRequest, AgentsClient, AuthenticateOptions, BaasAppListResponse, BaasAuthConfig, BaasAuthResult, BaasChallengeRequest, BaasChallengeResponse, BaasChannelConfig, BaasClient, BaasClientConfig, BaasConnectToClusterConfig, BaasDeleteResult, BaasDeployRequest, BaasDeployResponse, BaasDocument, BaasEndpoints, BaasError, BaasErrorDetails, BaasErrorResponse, BaasFileInfo, BaasFileMetadata, BaasFindResult, BaasFunctionDeployRequest, BaasFunctionDeployResult, BaasFunctionInfo, BaasFunctionLog, BaasFunctionLogOptions, BaasFunctionResources, BaasFunctionResult, BaasFunctionRuntime, BaasHistoryOptions, BaasInitRequest, BaasInitResponse, BaasInsertResult, BaasMerkleProof, BaasMessage, BaasPresenceInfo, BaasPresenceMember, BaasPublishResult, BaasQueryOptions, BaasRollbackRequest, BaasRuntimeStatus, BaasService, BaasSessionInfo, BaasStateTransition, BaasStorageUsage, BaasSupportedChain, BaasTriggerType, BaasUpdateResult, BaasUploadFrontendResponse, BaasUploadResult, BaasVerifyRequest, ChannelSubscription, CreateAccountRequest$1 as BaasCreateAccountRequest, CreateAgentRequest, CreateTokenRequest$1 as CreateTokenRequest, CreateTopicRequest, DatabaseClient, DatabaseStatsResponse, DbComparisonOperator, DbDocument, DbQuery, DeployedApp, DeployedAppInfo, DeployedAppLimits, DeployedAppStatus, DeployedAppUsage, DeploymentClient, DeprecateRuleResponse, DocumentProofResponse, EntitiesClient, EntityCreationResult, EntityInfo, EntityType$1 as BaasEntityType, FunctionsClient, LaunchpadEntityRequest, LaunchpadEntityResult, ListEntitiesFilter, ListEntitiesResponse, ListRulesFilter, ListRulesResponse, MessageHandler, MessagingClient, PublishRuleResponse, RulesClient, SimulateRuleRequest, StateRootResponse, StateTransitionsResponse, StorageClient, ValidationResult, VersionHistoryResponse, validateAgentRules };
25267
+ export { AgentBalance, AgentEvent, AgentFundRequest, AgentInfo, AgentOperation, AgentRegisterRequest, AgentRules, AgentRulesValidationResult, AgentStatus, AgentTradeRequest, AgentWithdrawRequest, AgentsClient, AuthenticateOptions, BaasAppListResponse, BaasAuthConfig, BaasAuthResult, BaasChallengeRequest, BaasChallengeResponse, BaasChannelConfig, BaasClient, BaasClientConfig, BaasConnectToClusterConfig, BaasDeleteResult, BaasDeployRequest, BaasDeployResponse, BaasDocument, BaasEndpoints, BaasError, BaasErrorDetails, BaasErrorResponse, BaasFileInfo, BaasFileMetadata, BaasFindResult, BaasFunctionDeployRequest, BaasFunctionDeployResult, BaasFunctionInfo, BaasFunctionLog, BaasFunctionLogOptions, BaasFunctionResources, BaasFunctionResult, BaasFunctionRuntime, BaasHistoryOptions, BaasInitRequest, BaasInitResponse, BaasInsertResult, BaasMerkleProof, BaasMessage, BaasPresenceInfo, BaasPresenceMember, BaasPublishResult, BaasQueryOptions, BaasRevokeKekResponse, BaasRollbackRequest, BaasRotateKekResponse, BaasRuntimeStatus, BaasService, BaasSessionInfo, BaasSetWebhookResponse, BaasStateTransition, BaasStorageUsage, BaasSupportedChain, BaasTriggerType, BaasUpdateResult, BaasUploadFrontendResponse, BaasUploadResult, BaasVerifyRequest, ChannelSubscription, CreateAccountRequest$1 as BaasCreateAccountRequest, CreateAgentRequest, CreateTokenRequest$1 as CreateTokenRequest, CreateTopicRequest, DatabaseClient, DatabaseStatsResponse, DbComparisonOperator, DbDocument, DbQuery, DeployedApp, DeployedAppInfo, DeployedAppLimits, DeployedAppStatus, DeployedAppUsage, DeploymentClient, DeprecateRuleResponse, DocumentProofResponse, EntitiesClient, EntityCreationResult, EntityInfo, EntityType$1 as BaasEntityType, FunctionsClient, LaunchpadEntityRequest, LaunchpadEntityResult, ListEntitiesFilter, ListEntitiesResponse, ListRulesFilter, ListRulesResponse, MessageHandler, MessagingClient, PublishRuleResponse, RulesClient, SimulateRuleRequest, StateRootResponse, StateTransitionsResponse, StorageClient, ValidationResult, VersionHistoryResponse, validateAgentRules };
23047
25268
  }
23048
25269
 
23049
25270
  export {
@@ -23051,13 +25272,19 @@ export {
23051
25272
  RetryConfig$1 as RetryConfig,
23052
25273
  auth,
23053
25274
  baas,
25275
+ bridge,
23054
25276
  chains,
25277
+ dao,
23055
25278
  discovery,
25279
+ envelope,
23056
25280
  governance,
25281
+ operator,
23057
25282
  personhood,
23058
25283
  pqcVerify,
25284
+ resources,
23059
25285
  settlement,
23060
25286
  subscription,
25287
+ tokens,
23061
25288
  };
23062
25289
 
23063
25290
  export {};