@wowok/agent-mcp 3.0.5 → 3.1.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/README.md +25 -20
- package/dist/customer/account-events.js +1 -1
- package/dist/graph/onchain/dataplane.d.ts +2 -2
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/onchain.spec.js +1 -1
- package/dist/graph/onchain/sdk-batch.d.ts +7 -1
- package/dist/graph/onchain/sdk-batch.js +1 -1
- package/dist/graph/onchain/sdk-dataplane.d.ts +6 -3
- package/dist/graph/onchain/sdk-dataplane.js +1 -1
- package/dist/graph/onchain/types.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/knowledge/account-marks.js +1 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/goal-completion.d.ts +12 -0
- package/dist/knowledge/goal-completion.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/index.d.ts +4 -0
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/payment-tracker.d.ts +63 -0
- package/dist/knowledge/payment-tracker.js +1 -0
- package/dist/knowledge/recipient-constraint.d.ts +160 -0
- package/dist/knowledge/recipient-constraint.js +1 -0
- package/dist/knowledge/safety-rules.d.ts +1 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.d.ts +4 -0
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.d.ts +2 -0
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/collaborator-interest.d.ts +2 -0
- package/dist/participation/collaborator-interest.js +1 -1
- package/dist/participation/customer-interest.d.ts +2 -0
- package/dist/participation/customer-interest.js +1 -1
- package/dist/participation/merchant-interest.d.ts +2 -0
- package/dist/participation/merchant-interest.js +1 -1
- package/dist/participation/supplier-interest.d.ts +2 -0
- package/dist/participation/supplier-interest.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/context-assembly.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +7 -0
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/pipeline-actions.d.ts +2 -2
- package/dist/playbooks/service-build/pipeline-actions.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/topology-query.js +1 -1
- package/dist/relationship/derivation.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +6 -6
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +4 -4
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +21 -21
- package/dist/schema/goal/planning.d.ts +6 -6
- package/dist/schema/industry-pack/index.d.ts +6 -6
- package/dist/schema/industry-pack/modes.d.ts +6 -6
- package/dist/schema/intent-radar/index.d.ts +16 -16
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +110 -8
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +37 -29
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +155 -155
- package/dist/schema/query/bi.d.ts +26 -26
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +15 -12
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/strategy-review/index.d.ts +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/bridge_operation.schema.json +14 -14
- package/dist/schemas/evaluation_operation.schema.json +7 -7
- package/dist/schemas/guard2file.schema.json +3 -3
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_history_operation.schema.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +3 -3
- package/dist/schemas/messenger_operation.output.json +266 -38
- package/dist/schemas/messenger_operation.schema.json +27 -3
- package/dist/schemas/onchain_events.schema.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +75 -77
- package/dist/schemas/onchain_operations_allocation.schema.json +6 -6
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_contact.schema.json +3 -3
- package/dist/schemas/onchain_operations_demand.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +3 -3
- package/dist/schemas/onchain_operations_guard.schema.json +4 -4
- package/dist/schemas/onchain_operations_machine.schema.json +11 -11
- package/dist/schemas/onchain_operations_order.schema.json +3 -3
- package/dist/schemas/onchain_operations_payment.schema.json +4 -4
- package/dist/schemas/onchain_operations_permission.schema.json +3 -3
- package/dist/schemas/onchain_operations_personal.schema.json +3 -3
- package/dist/schemas/onchain_operations_progress.schema.json +3 -3
- package/dist/schemas/onchain_operations_proof.schema.json +3 -3
- package/dist/schemas/onchain_operations_repository.schema.json +3 -3
- package/dist/schemas/onchain_operations_reward.schema.json +3 -3
- package/dist/schemas/onchain_operations_service.schema.json +9 -11
- package/dist/schemas/onchain_operations_treasury.schema.json +5 -5
- package/dist/schemas/onchain_table_data.output.json +14 -14
- package/dist/schemas/query_toolkit.output.json +38 -13
- package/dist/schemas/query_toolkit.schema.json +39 -11
- package/dist/strategy/collectors.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/strategy-review.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/rules-hook.d.ts +2 -0
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
|
@@ -72,6 +72,11 @@ export declare const ZipMetadataSchema: z.ZodObject<{
|
|
|
72
72
|
export declare const ReplyToSchema: z.ZodObject<{
|
|
73
73
|
messageId: z.ZodString;
|
|
74
74
|
}, z.core.$strip>;
|
|
75
|
+
export declare const MessageProofRecordSchema: z.ZodObject<{
|
|
76
|
+
address: z.ZodString;
|
|
77
|
+
network: z.ZodOptional<z.ZodString>;
|
|
78
|
+
createdAt: z.ZodNumber;
|
|
79
|
+
}, z.core.$strip>;
|
|
75
80
|
export declare const MessageSchema: z.ZodObject<{
|
|
76
81
|
messageId: z.ZodString;
|
|
77
82
|
fromAddress: z.ZodString;
|
|
@@ -144,6 +149,11 @@ export declare const MessageSchema: z.ZodObject<{
|
|
|
144
149
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
145
150
|
}, z.core.$strip>>;
|
|
146
151
|
proof: z.ZodOptional<z.ZodString>;
|
|
152
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
153
|
+
address: z.ZodString;
|
|
154
|
+
network: z.ZodOptional<z.ZodString>;
|
|
155
|
+
createdAt: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>>>;
|
|
147
157
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
148
158
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
149
159
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -224,6 +234,11 @@ export declare const PullAccountResultSchema: z.ZodObject<{
|
|
|
224
234
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
225
235
|
}, z.core.$strip>>;
|
|
226
236
|
proof: z.ZodOptional<z.ZodString>;
|
|
237
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
238
|
+
address: z.ZodString;
|
|
239
|
+
network: z.ZodOptional<z.ZodString>;
|
|
240
|
+
createdAt: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>>>;
|
|
227
242
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
228
243
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
229
244
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -309,6 +324,11 @@ export declare const ConversationInfoSchema: z.ZodObject<{
|
|
|
309
324
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
310
325
|
}, z.core.$strip>>;
|
|
311
326
|
proof: z.ZodOptional<z.ZodString>;
|
|
327
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
328
|
+
address: z.ZodString;
|
|
329
|
+
network: z.ZodOptional<z.ZodString>;
|
|
330
|
+
createdAt: z.ZodNumber;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
312
332
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
313
333
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
314
334
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -389,6 +409,8 @@ export declare const MessageFilterSchema: z.ZodObject<{
|
|
|
389
409
|
arkTimestampStart: z.ZodOptional<z.ZodNumber>;
|
|
390
410
|
arkTimestampEnd: z.ZodOptional<z.ZodNumber>;
|
|
391
411
|
proofedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
412
|
+
beforeCreatedAt: z.ZodOptional<z.ZodNumber>;
|
|
413
|
+
beforeMessageId: z.ZodOptional<z.ZodString>;
|
|
392
414
|
hasLastReceivedIndexOnly: z.ZodOptional<z.ZodBoolean>;
|
|
393
415
|
lastReceivedIndexMin: z.ZodOptional<z.ZodNumber>;
|
|
394
416
|
lastReceivedIndexMax: z.ZodOptional<z.ZodNumber>;
|
|
@@ -424,6 +446,8 @@ export declare const SendMessageOptionsSchema: z.ZodObject<{
|
|
|
424
446
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
425
447
|
messageId: z.ZodString;
|
|
426
448
|
}, z.core.$strip>>;
|
|
449
|
+
smart: z.ZodOptional<z.ZodBoolean>;
|
|
450
|
+
authorize: z.ZodOptional<z.ZodBoolean>;
|
|
427
451
|
}, z.core.$strip>;
|
|
428
452
|
export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
429
453
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -458,7 +482,7 @@ export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
|
458
482
|
}, z.core.$strip>;
|
|
459
483
|
export declare const SendMessageResultSchema: z.ZodObject<{
|
|
460
484
|
messageId: z.ZodString;
|
|
461
|
-
status: z.ZodEnum<{
|
|
485
|
+
status: z.ZodUnion<[z.ZodEnum<{
|
|
462
486
|
failed: "failed";
|
|
463
487
|
confirmed: "confirmed";
|
|
464
488
|
read: "read";
|
|
@@ -466,7 +490,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
|
|
|
466
490
|
rejected: "rejected";
|
|
467
491
|
decrypted: "decrypted";
|
|
468
492
|
decrypt_failed: "decrypt_failed";
|
|
469
|
-
}>;
|
|
493
|
+
}>, z.ZodLiteral<"guard_authorization_required">]>;
|
|
470
494
|
merkleData: z.ZodOptional<z.ZodObject<{
|
|
471
495
|
leafIndex: z.ZodNumber;
|
|
472
496
|
prevRoot: z.ZodString;
|
|
@@ -477,6 +501,19 @@ export declare const SendMessageResultSchema: z.ZodObject<{
|
|
|
477
501
|
}, z.core.$strip>>;
|
|
478
502
|
guardList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
479
503
|
lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
|
|
504
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
506
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
507
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
508
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
509
|
+
}>>;
|
|
510
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
511
|
+
no_local_passport: "no_local_passport";
|
|
512
|
+
local_passport_stale: "local_passport_stale";
|
|
513
|
+
}>>;
|
|
514
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
515
|
+
serverError: z.ZodOptional<z.ZodString>;
|
|
516
|
+
submissions: z.ZodOptional<z.ZodUnknown>;
|
|
480
517
|
}, z.core.$strip>;
|
|
481
518
|
export declare const TimeRangeSchema: z.ZodObject<{
|
|
482
519
|
type: z.ZodLiteral<"time">;
|
|
@@ -765,6 +802,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
765
802
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
766
803
|
messageId: z.ZodString;
|
|
767
804
|
}, z.core.$strip>>;
|
|
805
|
+
smart: z.ZodOptional<z.ZodBoolean>;
|
|
806
|
+
authorize: z.ZodOptional<z.ZodBoolean>;
|
|
768
807
|
}, z.core.$strip>>;
|
|
769
808
|
}, z.core.$strict>, z.ZodObject<{
|
|
770
809
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
@@ -834,6 +873,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
834
873
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
835
874
|
messageId: z.ZodString;
|
|
836
875
|
}, z.core.$strip>>;
|
|
876
|
+
smart: z.ZodOptional<z.ZodBoolean>;
|
|
877
|
+
authorize: z.ZodOptional<z.ZodBoolean>;
|
|
837
878
|
}, z.core.$strip>>;
|
|
838
879
|
}, z.core.$strict>, z.ZodObject<{
|
|
839
880
|
operation: z.ZodLiteral<"watch_messages">;
|
|
@@ -893,6 +934,8 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
893
934
|
arkTimestampStart: z.ZodOptional<z.ZodNumber>;
|
|
894
935
|
arkTimestampEnd: z.ZodOptional<z.ZodNumber>;
|
|
895
936
|
proofedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
937
|
+
beforeCreatedAt: z.ZodOptional<z.ZodNumber>;
|
|
938
|
+
beforeMessageId: z.ZodOptional<z.ZodString>;
|
|
896
939
|
hasLastReceivedIndexOnly: z.ZodOptional<z.ZodBoolean>;
|
|
897
940
|
lastReceivedIndexMin: z.ZodOptional<z.ZodNumber>;
|
|
898
941
|
lastReceivedIndexMax: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1211,6 +1254,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1211
1254
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
1212
1255
|
}, z.core.$strip>>;
|
|
1213
1256
|
proof: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1258
|
+
address: z.ZodString;
|
|
1259
|
+
network: z.ZodOptional<z.ZodString>;
|
|
1260
|
+
createdAt: z.ZodNumber;
|
|
1261
|
+
}, z.core.$strip>>>;
|
|
1214
1262
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
1215
1263
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1216
1264
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1221,7 +1269,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1221
1269
|
operation: z.ZodLiteral<"send_message">;
|
|
1222
1270
|
result: z.ZodObject<{
|
|
1223
1271
|
messageId: z.ZodString;
|
|
1224
|
-
status: z.ZodEnum<{
|
|
1272
|
+
status: z.ZodUnion<[z.ZodEnum<{
|
|
1225
1273
|
failed: "failed";
|
|
1226
1274
|
confirmed: "confirmed";
|
|
1227
1275
|
read: "read";
|
|
@@ -1229,7 +1277,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1229
1277
|
rejected: "rejected";
|
|
1230
1278
|
decrypted: "decrypted";
|
|
1231
1279
|
decrypt_failed: "decrypt_failed";
|
|
1232
|
-
}>;
|
|
1280
|
+
}>, z.ZodLiteral<"guard_authorization_required">]>;
|
|
1233
1281
|
merkleData: z.ZodOptional<z.ZodObject<{
|
|
1234
1282
|
leafIndex: z.ZodNumber;
|
|
1235
1283
|
prevRoot: z.ZodString;
|
|
@@ -1240,12 +1288,25 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1240
1288
|
}, z.core.$strip>>;
|
|
1241
1289
|
guardList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1242
1290
|
lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
|
|
1291
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1292
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
1293
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
1294
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
1295
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
1296
|
+
}>>;
|
|
1297
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1298
|
+
no_local_passport: "no_local_passport";
|
|
1299
|
+
local_passport_stale: "local_passport_stale";
|
|
1300
|
+
}>>;
|
|
1301
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1302
|
+
serverError: z.ZodOptional<z.ZodString>;
|
|
1303
|
+
submissions: z.ZodOptional<z.ZodUnknown>;
|
|
1243
1304
|
}, z.core.$strip>;
|
|
1244
1305
|
}, z.core.$strip>, z.ZodObject<{
|
|
1245
1306
|
operation: z.ZodLiteral<"send_file">;
|
|
1246
1307
|
result: z.ZodObject<{
|
|
1247
1308
|
messageId: z.ZodString;
|
|
1248
|
-
status: z.ZodEnum<{
|
|
1309
|
+
status: z.ZodUnion<[z.ZodEnum<{
|
|
1249
1310
|
failed: "failed";
|
|
1250
1311
|
confirmed: "confirmed";
|
|
1251
1312
|
read: "read";
|
|
@@ -1253,7 +1314,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1253
1314
|
rejected: "rejected";
|
|
1254
1315
|
decrypted: "decrypted";
|
|
1255
1316
|
decrypt_failed: "decrypt_failed";
|
|
1256
|
-
}>;
|
|
1317
|
+
}>, z.ZodLiteral<"guard_authorization_required">]>;
|
|
1257
1318
|
merkleData: z.ZodOptional<z.ZodObject<{
|
|
1258
1319
|
leafIndex: z.ZodNumber;
|
|
1259
1320
|
prevRoot: z.ZodString;
|
|
@@ -1264,12 +1325,25 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1264
1325
|
}, z.core.$strip>>;
|
|
1265
1326
|
guardList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1266
1327
|
lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
|
|
1328
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
1330
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
1331
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
1332
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
1333
|
+
}>>;
|
|
1334
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1335
|
+
no_local_passport: "no_local_passport";
|
|
1336
|
+
local_passport_stale: "local_passport_stale";
|
|
1337
|
+
}>>;
|
|
1338
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1339
|
+
serverError: z.ZodOptional<z.ZodString>;
|
|
1340
|
+
submissions: z.ZodOptional<z.ZodUnknown>;
|
|
1267
1341
|
}, z.core.$strip>;
|
|
1268
1342
|
}, z.core.$strip>, z.ZodObject<{
|
|
1269
1343
|
operation: z.ZodLiteral<"send_required_info">;
|
|
1270
1344
|
result: z.ZodObject<{
|
|
1271
1345
|
messageId: z.ZodString;
|
|
1272
|
-
status: z.ZodEnum<{
|
|
1346
|
+
status: z.ZodUnion<[z.ZodEnum<{
|
|
1273
1347
|
failed: "failed";
|
|
1274
1348
|
confirmed: "confirmed";
|
|
1275
1349
|
read: "read";
|
|
@@ -1277,7 +1351,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1277
1351
|
rejected: "rejected";
|
|
1278
1352
|
decrypted: "decrypted";
|
|
1279
1353
|
decrypt_failed: "decrypt_failed";
|
|
1280
|
-
}>;
|
|
1354
|
+
}>, z.ZodLiteral<"guard_authorization_required">]>;
|
|
1281
1355
|
merkleData: z.ZodOptional<z.ZodObject<{
|
|
1282
1356
|
leafIndex: z.ZodNumber;
|
|
1283
1357
|
prevRoot: z.ZodString;
|
|
@@ -1288,6 +1362,19 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1288
1362
|
}, z.core.$strip>>;
|
|
1289
1363
|
guardList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1290
1364
|
lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
|
|
1365
|
+
authRequired: z.ZodOptional<z.ZodBoolean>;
|
|
1366
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
1367
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
1368
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
1369
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
1370
|
+
}>>;
|
|
1371
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
1372
|
+
no_local_passport: "no_local_passport";
|
|
1373
|
+
local_passport_stale: "local_passport_stale";
|
|
1374
|
+
}>>;
|
|
1375
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
1376
|
+
serverError: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
submissions: z.ZodOptional<z.ZodUnknown>;
|
|
1291
1378
|
sent_fields: z.ZodArray<z.ZodString>;
|
|
1292
1379
|
}, z.core.$strip>;
|
|
1293
1380
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1364,6 +1451,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1364
1451
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
1365
1452
|
}, z.core.$strip>>;
|
|
1366
1453
|
proof: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1455
|
+
address: z.ZodString;
|
|
1456
|
+
network: z.ZodOptional<z.ZodString>;
|
|
1457
|
+
createdAt: z.ZodNumber;
|
|
1458
|
+
}, z.core.$strip>>>;
|
|
1367
1459
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
1368
1460
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1369
1461
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1580,6 +1672,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1580
1672
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
1581
1673
|
}, z.core.$strip>>;
|
|
1582
1674
|
proof: z.ZodOptional<z.ZodString>;
|
|
1675
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1676
|
+
address: z.ZodString;
|
|
1677
|
+
network: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
createdAt: z.ZodNumber;
|
|
1679
|
+
}, z.core.$strip>>>;
|
|
1583
1680
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
1584
1681
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1585
1682
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1659,6 +1756,11 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
1659
1756
|
downloadedAt: z.ZodOptional<z.ZodNumber>;
|
|
1660
1757
|
}, z.core.$strip>>;
|
|
1661
1758
|
proof: z.ZodOptional<z.ZodString>;
|
|
1759
|
+
proofs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1760
|
+
address: z.ZodString;
|
|
1761
|
+
network: z.ZodOptional<z.ZodString>;
|
|
1762
|
+
createdAt: z.ZodNumber;
|
|
1763
|
+
}, z.core.$strip>>>;
|
|
1662
1764
|
decryptError: z.ZodOptional<z.ZodString>;
|
|
1663
1765
|
decryptAttempts: z.ZodOptional<z.ZodNumber>;
|
|
1664
1766
|
lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{NameOrAddressSchema,EntrypointSchema,AccountOrMark_AddressAISchema,ManyAccountOrMark_AddressAISchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/base.js';import{NORMAL_MESSAGE_BYTES_LIMIT}from'@wowok/wowok';export const MessageStatusSchema=z['enum'](['pending','confirmed','read','failed','rejected','decrypted','decrypt_failed']);export const MessageDirectionSchema=z['enum'](['sent','received']);export const MessageTypeSchema=z['union']([z['literal'](0x1),z['literal'](0x3)]);export const MessageContentTypeSchema=z['enum'](['text','zip','wts','wip']);export const MessageTimeFieldSchema=z['enum'](['createdAt','receivedAt','serverTimestamp']);export const RangeTypeSchema=z['enum'](['time','messageId','seqIndex']);export const AttachmentKindSchema=z['enum'](['image','video','audio','voice','file','wts','wip']);export const AttachmentDescriptorSchema=z['object']({'kind':AttachmentKindSchema['describe']('Attachment\x20business\x20type:\x20image/video/audio\x20are\x20inline-renderable\x20media;\x20\x27voice\x27\x20is\x20an\x20explicit\x20voice\x20message\x20(webm\x20cannot\x20be\x20auto-distinguished\x20from\x20video);\x20\x27file\x27\x20is\x20a\x20generic\x20document;\x20wts/wip\x20are\x20evidence\x20files'),'fileName':z['string']()['describe']('Original\x20file\x20name\x20(transport\x20.zip\x20suffix\x20stripped)'),'mimeType':z['string']()['describe']('MIME\x20type\x20inferred\x20from\x20extension\x20or\x20sender-provided'),'size':z['number']()['describe']('Payload\x20size\x20in\x20bytes\x20(uncompressed)'),'caption':z['string']()['optional']()['describe']('Sender-provided\x20caption\x20(E2EE,\x20inside\x20the\x20encrypted\x20envelope)'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels')})['describe']('Byte-free\x20attachment\x20descriptor.\x20The\x20base64\x20payload\x20is\x20deliberately\x20NOT\x20included\x20—\x20use\x20save_attachment\x20to\x20persist\x20the\x20file');export const ZipMetadataSchema=z['object']({'fileName':z['string']()['describe']('ZIP\x20filename'),'fileSize':z['number']()['describe']('File\x20size\x20in\x20bytes'),'fileHash':z['string']()['describe']('File\x20SHA256\x20hash'),'contentType':MessageContentTypeSchema['describe']('Content\x20type'),'localCachePath':z['string']()['optional']()['describe']('Local\x20cache\x20path'),'downloadedAt':z['number']()['optional']()['describe']('Download\x20timestamp')})['describe']('ZIP\x20file\x20metadata');export const ReplyToSchema=z['object']({'messageId':z['string']()['describe']('Replied-to\x20message\x20ID\x20(unique\x20within\x20the\x20conversation)')})['describe']('Reply\x20(quote)\x20relationship\x20—\x20references\x20a\x20previous\x20message\x20in\x20the\x20same\x20conversation.\x20The\x20referenced\x20message\x27s\x20sender/preview\x20are\x20resolved\x20locally\x20by\x20messageId');export const MessageSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID'),'fromAddress':z['string']()['describe']('Sender\x20address'),'toAddress':z['string']()['describe']('Recipient\x20address'),'plaintextHash':z['string']()['describe']('Plaintext\x20hash'),'plaintext':z['string']()['optional']()['describe']('Decrypted\x20plaintext\x20text.\x20UNDEFINED\x20for\x20attachment\x20messages\x20(zipMetadata\x20present)\x20—\x20their\x20base64\x20envelope\x20is\x20stripped\x20at\x20the\x20read\x20boundary;\x20read\x20msg.attachment\x20for\x20metadata\x20and\x20use\x20save_attachment\x20for\x20bytes'),'attachment':AttachmentDescriptorSchema['optional']()['describe']('Present\x20when\x20this\x20message\x20is\x20an\x20attachment\x20(zipMetadata\x20present).\x20Byte-free\x20descriptor;\x20payload\x20never\x20embedded'),'replyTo':ReplyToSchema['optional']()['describe']('Quoted\x20(replied-to)\x20message\x20reference,\x20if\x20this\x20message\x20replies\x20to\x20a\x20previous\x20one'),'guardAddress':z['string']()['optional']()['describe']('Guard\x20address'),'passportAddress':z['string']()['optional']()['describe']('Passport\x20address'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index'),'direction':MessageDirectionSchema['describe']('Message\x20direction'),'status':MessageStatusSchema['describe']('Message\x20status'),'msgType':MessageTypeSchema['describe']('Message\x20type'),'leafIndex':z['number']()['optional']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['optional']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['optional']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['optional']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['optional']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['optional']()['describe']('Server\x20public\x20key'),'arkConfirmed':z['object']({'recipient':z['string']()['describe']('Recipient\x20address'),'recipientPublicKey':z['string']()['describe']('Recipient\x20public\x20key'),'signature':z['string']()['describe']('Recipient\x20signature'),'timestamp':z['number']()['describe']('ARK\x20confirmation\x20time')})['optional']()['describe']('ARK\x20confirmation'),'createdAt':z['number']()['describe']('Message\x20creation\x20time\x20(client)'),'receivedAt':z['number']()['optional']()['describe']('Local\x20reception\x20time'),'zipMetadata':ZipMetadataSchema['optional']()['describe']('ZIP\x20file\x20metadata'),'proof':z['string']()['optional']()['describe']('On-chain\x20proof\x20object\x20address'),'decryptError':z['string']()['optional']()['describe']('Decryption\x20failure\x20reason'),'decryptAttempts':z['number']()['optional']()['describe']('Number\x20of\x20decryption\x20attempts'),'lastDecryptAttemptAt':z['number']()['optional']()['describe']('Last\x20decryption\x20attempt\x20timestamp'),'viewedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20the\x20current\x20user\x20viewed\x20this\x20message\x20(local\x20storage).\x20If\x20present,\x20indicates\x20the\x20message\x20has\x20been\x20viewed\x20by\x20the\x20user.\x20Only\x20applicable\x20to\x20received\x20messages\x20(direction\x20===\x20\x27received\x27)')})['describe']('Message\x20object');export const PullAccountResultSchema=z['object']({'account':z['string']()['describe']('Account\x20address'),'pulled':z['number']()['describe']('Number\x20of\x20messages\x20pulled\x20and\x20decrypted\x20in\x20this\x20round'),'messages':z['array'](MessageSchema)['describe']('Newly\x20pulled\x20messages\x20(read\x20boundary\x20applied:\x20attachment\x20payloads\x20stripped\x20into\x20descriptors)'),'error':z['string']()['optional']()['describe']('Per-account\x20pull\x20error;\x20absent\x20on\x20success.\x20Other\x20accounts\x20are\x20unaffected')})['describe']('Per-account\x20fan-out\x20pull\x20result');export const ConversationInfoSchema=z['object']({'peerAddress':z['string']()['describe']('Peer\x20address'),'lastMessageAt':z['number']()['describe']('Last\x20message\x20time'),'messageCount':z['number']()['describe']('Total\x20message\x20count'),'unreadCount':z['number']()['describe']('Unread\x20message\x20count\x20-\x20count\x20of\x20received\x20messages\x20that\x20have\x20not\x20been\x20viewed\x20(viewedAt\x20is\x20undefined)'),'lastMessagePreview':z['string']()['optional']()['describe']('Last\x20message\x20preview\x20text'),'previewMessages':z['array'](MessageSchema)['optional']()['describe']('Preview\x20messages\x20for\x20this\x20conversation\x20(default\x202\x20messages,\x20sorted\x20by\x20time\x20descending)')})['describe']('Conversation\x20info\x20with\x20unread\x20count\x20and\x20preview\x20messages');export const ConversationsFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query\x20conversations\x20for.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'unreadOnly':z['boolean']()['optional']()['describe']('If\x20true,\x20only\x20return\x20conversations\x20with\x20unread\x20messages\x20(unreadCount\x20>\x200).\x20Useful\x20for\x20quickly\x20finding\x20conversations\x20needing\x20attention'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20>=\x20this\x20value'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20<=\x20this\x20value'),'previewMessageCount':z['number']()['optional']()['describe']('Number\x20of\x20preview\x20messages\x20to\x20include\x20for\x20each\x20conversation\x20(default:\x202).\x20Set\x20to\x200\x20to\x20disable\x20preview\x20messages.\x20If\x20>\x200,\x20preview\x20messages\x20are\x20automatically\x20included'),'sortBy':z['enum'](['lastMessageAt','unreadCount','messageCount'])['optional']()['describe']('Sort\x20conversations\x20by:\x20\x27lastMessageAt\x27\x20=\x20most\x20recent\x20activity\x20first,\x20\x27unreadCount\x27\x20=\x20most\x20unread\x20messages\x20first,\x20\x27messageCount\x27\x20=\x20most\x20total\x20messages\x20first'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20\x27asc\x27\x20=\x20ascending\x20(oldest/smallest\x20first),\x20\x27desc\x27\x20=\x20descending\x20(newest/largest\x20first).\x20Default\x20is\x20\x27desc\x27\x20for\x20time-based\x20sorting'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20preview\x20messages\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed\x20when\x20retrieved.\x20Default\x20is\x20false,\x20meaning\x20preview\x20messages\x20are\x20auto-marked\x20as\x20viewed'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20per\x20account\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable')})['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20quickly\x20find\x20active\x20conversations,\x20and\x20previewMessageCount\x20to\x20control\x20how\x20many\x20recent\x20messages\x20are\x20included');export const MessageFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for'),'direction':MessageDirectionSchema['optional']()['describe']('Filter\x20by\x20message\x20direction'),'status':MessageStatusSchema['optional']()['describe']('Filter\x20by\x20message\x20status'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Filter\x20by\x20peer\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'msgType':MessageTypeSchema['optional']()['describe']('Filter\x20by\x20message\x20type'),'contentType':MessageContentTypeSchema['optional']()['describe']('Filter\x20by\x20content\x20type'),'decryptedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20decrypted\x20messages'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable'),'confirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20confirmed\x20messages'),'keyword':z['string']()['optional']()['describe']('Search\x20keyword\x20in\x20plaintext'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20asc\x20or\x20desc'),'limit':z['number']()['optional']()['describe']('Return\x20limit'),'offset':z['number']()['optional']()['describe']('Pagination\x20offset'),'timeField':MessageTimeFieldSchema['optional']()['describe']('Time\x20field\x20for\x20time\x20filtering'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)'),'createdAtStart':z['number']()['optional']()['describe']('Created\x20at\x20start\x20time'),'createdAtEnd':z['number']()['optional']()['describe']('Created\x20at\x20end\x20time'),'receivedAtStart':z['number']()['optional']()['describe']('Received\x20at\x20start\x20time'),'receivedAtEnd':z['number']()['optional']()['describe']('Received\x20at\x20end\x20time'),'serverTimestampStart':z['number']()['optional']()['describe']('Server\x20timestamp\x20start\x20time'),'serverTimestampEnd':z['number']()['optional']()['describe']('Server\x20timestamp\x20end\x20time'),'arkConfirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20ARK\x20confirmed\x20messages'),'arkTimestampStart':z['number']()['optional']()['describe']('ARK\x20timestamp\x20start'),'arkTimestampEnd':z['number']()['optional']()['describe']('ARK\x20timestamp\x20end'),'proofedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20proof'),'hasLastReceivedIndexOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20lastReceivedLeafIndex'),'lastReceivedIndexMin':z['number']()['optional']()['describe']('Min\x20lastReceivedLeafIndex'),'lastReceivedIndexMax':z['number']()['optional']()['describe']('Max\x20lastReceivedLeafIndex'),'listFilterMode':z['enum'](['friends','guard','stranger','any'])['optional']()['describe']('List\x20filter\x20mode:\x20\x27friends\x27\x20=\x20only\x20messages\x20from\x20friends\x20list,\x20\x27guard\x27\x20=\x20only\x20messages\x20from\x20Guard\x20list,\x20\x27stranger\x27\x20=\x20only\x20messages\x20from\x20strangers\x20(not\x20in\x20friends/guard\x20lists),\x20\x27any\x27\x20=\x20no\x20filtering\x20(default)'),'customListFilter':z['object']({'includeAddresses':z['array'](z['string']())['optional']()['describe']('Include\x20addresses\x20-\x20only\x20return\x20messages\x20from\x20these\x20addresses\x20(highest\x20priority)'),'excludeAddresses':z['array'](z['string']())['optional']()['describe']('Exclude\x20addresses\x20-\x20exclude\x20messages\x20from\x20these\x20addresses'),'relation':z['enum'](['union','intersection'])['optional']()['describe']('Address\x20list\x20relation:\x20\x27union\x27\x20=\x20combine\x20lists\x20as\x20union,\x20\x27intersection\x27\x20=\x20combine\x20lists\x20as\x20intersection')})['optional']()['describe']('Custom\x20list\x20filter\x20for\x20advanced\x20address-based\x20filtering,\x20works\x20in\x20combination\x20with\x20listFilterMode'),'viewed':z['boolean']()['optional']()['describe']('Filter\x20by\x20viewed\x20status:\x20true\x20=\x20only\x20viewed\x20messages,\x20false\x20=\x20only\x20unviewed\x20messages.\x20A\x20message\x20is\x20considered\x20\x27viewed\x27\x20if\x20viewedAt\x20field\x20exists.\x20Only\x20applicable\x20to\x20received\x20messages'),'viewedAtStart':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20start\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20>=\x20this\x20value.\x20Useful\x20for\x20finding\x20recently\x20viewed\x20messages'),'viewedAtEnd':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20end\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20<=\x20this\x20value.\x20Useful\x20for\x20finding\x20messages\x20viewed\x20before\x20a\x20certain\x20time'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20messages\x20returned\x20by\x20this\x20query\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed.\x20Default\x20is\x20false,\x20meaning\x20messages\x20are\x20auto-marked\x20as\x20viewed\x20when\x20retrieved\x20through\x20watch_messages')})['describe']('Message\x20filter\x20options\x20-\x20all\x20conditions\x20are\x20optional\x20and\x20combined\x20with\x20AND\x20logic.\x20Use\x20viewed\x20field\x20to\x20filter\x20by\x20read/unread\x20status,\x20and\x20viewedAtStart/viewedAtEnd\x20to\x20filter\x20by\x20when\x20messages\x20were\x20viewed');export const SendMessageOptionsSchema=z['object']({'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network\x20for\x20Guard\x20verification\x20(e.g.,\x20testnet,\x20mainnet).\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks'),'replyTo':ReplyToSchema['optional']()['describe']('Quote/reply\x20to\x20a\x20previous\x20message\x20in\x20the\x20SAME\x20conversation.\x20The\x20messageId\x20MUST\x20exist\x20in\x20local\x20storage\x20for\x20the\x20current\x20conversation,\x20otherwise\x20sending\x20fails')})['describe']('Send\x20message\x20options.\x20When\x20guardAddress\x20+\x20passportAddress\x20are\x20provided,\x20the\x20message\x20enters\x20Guard\x20verification\x20flow\x20and\x20network\x20MUST\x20be\x20specified');export const SendFileOptionsSchema=z['object']({'fileName':z['string']()['optional']()['describe']('Custom\x20file\x20name'),'contentType':z['enum'](['wts','wip','zip'])['optional']()['describe']('Legacy\x20server-visible\x20classification\x20hint\x20(auto-inferred\x20from\x20extension:\x20.wts/.wip,\x20otherwise\x20zip).\x20Evidence\x20types\x20wts/wip\x20always\x20win\x20over\x20extension'),'kind':AttachmentKindSchema['optional']()['describe']('Attachment\x20business\x20type\x20for\x20the\x20recipient\x27s\x20UI.\x20Media\x20kinds\x20(image/video/audio/file)\x20are\x20auto-inferred\x20from\x20extension;\x20set\x20\x27voice\x27\x20explicitly\x20for\x20voice\x20messages\x20(webm\x20cannot\x20be\x20distinguished\x20from\x20video\x20automatically)'),'mimeType':z['string']()['optional']()['describe']('Explicit\x20MIME\x20type\x20override\x20(otherwise\x20inferred\x20from\x20extension)'),'caption':z['string']()['optional']()['describe']('Caption\x20text\x20attached\x20to\x20the\x20file.\x20Stored\x20inside\x20the\x20E2EE\x20envelope\x20manifest\x20—\x20the\x20server\x20cannot\x20see\x20it;\x20the\x20recipient\x20sees\x20it\x20with\x20the\x20attachment'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels'),'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network\x20for\x20Guard\x20verification\x20(e.g.,\x20testnet,\x20mainnet).\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks')})['describe']('Send\x20file\x20options.\x20The\x20file\x20travels\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20transport\x20container\x20with\x20an\x20encrypted\x20manifest);\x20media\x20(jpg/mp4/webm/...)\x20is\x20stored\x20uncompressed,\x20documents/evidence\x20deflated.\x20When\x20guardAddress\x20+\x20passportAddress\x20are\x20provided,\x20the\x20file\x20enters\x20Guard\x20verification\x20flow\x20and\x20network\x20MUST\x20be\x20specified');export const SendMessageResultSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID'),'status':MessageStatusSchema['describe']('Message\x20status'),'merkleData':z['object']({'leafIndex':z['number']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['describe']('Server\x20public\x20key')})['optional']()['describe']('Merkle\x20Tree\x20proof\x20data'),'guardList':z['array'](z['string']())['optional']()['describe']('Guard\x20list\x20(only\x20returned\x20on\x20error)'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index\x20(for\x20message\x20confirmation)')})['describe']('Send\x20message\x20result');const BaseRangeSchema=z['object']({'type':RangeTypeSchema['describe']('Range\x20type'),'start':z['union']([z['number'](),z['string']()])['describe']('Start\x20value'),'end':z['union']([z['number'](),z['string']()])['describe']('End\x20value')});export const TimeRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('time'),'start':z['number'](),'end':z['number']()});export const MessageIdRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('messageId'),'start':z['string'](),'end':z['string']()});export const SeqIndexRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('seqIndex'),'start':z['number'](),'end':z['number']()});export const WtsRangeSchema=z['discriminatedUnion']('type',[TimeRangeSchema,MessageIdRangeSchema,SeqIndexRangeSchema])['describe']('WTS\x20range\x20filter\x20parameters');export const WtsGenerationParamsSchema=z['object']({'myAccount':NameOrAddressSchema['describe']('My\x20account\x20name\x20or\x20address\x20(string)'),'peerAccount':AccountOrMark_AddressAISchema['describe']('Peer\x20account\x20name\x20or\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'range':WtsRangeSchema['optional']()['describe']('Range\x20filter\x20parameters'),'excludePlaintext':z['boolean']()['optional']()['describe']('Whether\x20to\x20exclude\x20plaintext'),'outputDir':z['string']()['optional']()['describe']('Output\x20directory\x20path.\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace/wts\x20directory')})['describe']('WTS\x20generation\x20parameters');export const WtsFileResultSchema=z['object']({'files':z['array'](z['string']())['describe']('Generated\x20WTS\x20file\x20paths'),'htmlFiles':z['array'](z['string']())['describe']('Generated\x20HTML\x20report\x20paths\x20—\x20one\x20human-readable\x20companion\x20per\x20WTS\x20file,\x20written\x20next\x20to\x20it\x20(same\x20base\x20name)'),'totalMessageCount':z['number']()['describe']('Total\x20message\x20count'),'timeRange':z['object']({'start':z['number']()['describe']('Start\x20time'),'end':z['number']()['describe']('End\x20time')})['describe']('Time\x20range')})['describe']('WTS\x20file\x20result');export const WtsSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signer\x20public\x20key'),'address':z['string']()['optional']()['describe']('Signer\x20address'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('WTS\x20signature\x20verification\x20details');export const WtsVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20succeeded'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20verification\x20failed'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20validation\x20passed'),'hasSignature':z['boolean']()['describe']('Whether\x20WTS\x20has\x20signatures'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20validation\x20passed'),'signatures':z['array'](WtsSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details')})['describe']('WTS\x20verification\x20result');export const WtsToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20document\x20title'),'theme':z['enum'](['light','dark'])['optional']()['describe']('HTML\x20theme'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path')})['describe']('WTS\x20to\x20HTML\x20conversion\x20options');export const AddressExistenceSchema=z['object']({'address':z['string']()['describe']('Address'),'exists':z['boolean']()['describe']('Whether\x20address\x20exists\x20in\x20list')})['describe']('Address\x20existence\x20check\x20result');export const GuardListItemSchema=z['object']({'guardAddress':z['string']()['describe']('Guard\x20address'),'passportValiditySeconds':z['number']()['describe']('Passport\x20validity\x20in\x20seconds')})['describe']('Guard\x20list\x20item');export const ListOperationResponseSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20operation\x20succeeded'),'operation':z['string']()['describe']('Operation\x20performed'),'modifiedCount':z['number']()['describe']('Number\x20of\x20items\x20modified'),'currentCount':z['number']()['describe']('Current\x20list\x20size'),'maxCount':z['number']()['describe']('Maximum\x20list\x20size'),'invalidAddresses':z['array'](z['string']())['optional']()['nullable']()['describe']('Invalid\x20addresses'),'existResults':z['array'](AddressExistenceSchema)['optional']()['nullable']()['describe']('Existence\x20check\x20results'),'message':z['string']()['optional']()['nullable']()['describe']('Operation\x20message'),'currentList':z['array'](z['string']())['optional']()['nullable']()['describe']('Current\x20list\x20content'),'currentGuardList':z['array'](GuardListItemSchema)['optional']()['nullable']()['describe']('Current\x20guard\x20list\x20content')})['describe']('List\x20operation\x20response');export const BlacklistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Blacklist\x20management\x20operation');export const FriendslistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Friends\x20list\x20management\x20operation');export const GuardParamSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20address\x20or\x20name'),'passportValiditySeconds':z['number']()['min'](0xa)['max'](0x12cc0300)['describe']('Passport\x20validity\x20in\x20seconds\x20(10s\x20to\x2010\x20years)')})['describe']('Guard\x20parameter');export const GuardlistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](GuardParamSchema)['min'](0x1)['max'](0xa)['describe']('Guards\x20to\x20add\x20to\x20guard\x20list')}),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['min'](0x1)['max'](0xa)['describe']('Guard\x20addresses\x20to\x20remove\x20from\x20guard\x20list')}),z['object']({'op':z['literal']('get')})])['describe']('Guard\x20list\x20management\x20operation');export const SettingsOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('set'),'allowStrangerMessages':z['boolean']()['optional']()['describe']('Allow\x20messages\x20from\x20strangers'),'maxInboxSize':z['number']()['min'](0x1)['optional']()['describe']('Maximum\x20inbox\x20size')})])['describe']('Settings\x20management\x20operation');export const GetSettingsResponseSchema=z['object']({'allowStrangerMessages':z['boolean']()['optional']()['describe']('Whether\x20messages\x20from\x20strangers\x20are\x20allowed'),'maxInboxSize':z['number']()['optional']()['describe']('Current\x20maximum\x20inbox\x20size'),'minUserInboxSize':z['number']()['describe']('Server\x20minimum\x20allowed\x20inbox\x20size\x20limit'),'maxUserInboxSize':z['number']()['describe']('Server\x20maximum\x20allowed\x20inbox\x20size\x20limit'),'defaultAllowStrangerMessages':z['boolean']()['describe']('Server\x20default\x20setting\x20for\x20allowing\x20stranger\x20messages')})['describe']('Get\x20settings\x20response');const GoalEvidenceRef={'goal_id':z['string']()['optional']()['describe']('Optional\x20goal\x20id\x20(from\x20goal_operation).\x20When\x20set,\x20this\x20act\x20is\x20recorded\x20as\x20communication\x20'+'evidence\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(K3\x2027\x20G5)\x20—\x20use\x20it\x20only\x20when\x20the\x20act\x20belongs\x20to\x20an\x20active\x20'+'goal\x27s\x20execution\x20(order\x20negotiation,\x20required-info\x20confirmation,\x20WTS\x20evidence,\x20on-chain\x20proof).')};export const MessengerOperationInputSchema=z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'filter':ConversationsFilterSchema['optional']()['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20find\x20conversations\x20with\x20unread\x20messages,\x20previewMessageCount\x20to\x20control\x20message\x20previews\x20(default\x202),\x20and\x20sortBy/sortOrder\x20to\x20customize\x20sorting')})['strict'](),z['object']({'operation':z['literal']('send_message'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'content':z['string']()['max'](NORMAL_MESSAGE_BYTES_LIMIT)['describe']('Message\x20content\x20text\x20(max\x2010240\x20bytes)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings')})['strict'](),z['object']({'operation':z['literal']('send_file'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'filePath':z['string']()['describe']('Local\x20file\x20path\x20to\x20send.\x20Transported\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20container);\x20the\x20recipient\x20restores\x20the\x20original\x20file\x20name/type\x20via\x20the\x20encrypted\x20manifest'),'options':SendFileOptionsSchema['optional']()['describe']('Optional\x20file\x20sending\x20settings'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('send_required_info'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20(the\x20merchant\x27s\x20Contact\x20IM\x20address).\x20Can\x20be\x20a\x20string\x20or\x20full\x20object'),'fields':z['array'](z['string']())['optional']()['describe']('LocalInfo\x20field\x20names\x20to\x20send\x20(e.g.\x20[\x27phone\x27,\x27shipping_address\x27]).\x20If\x20omitted,\x20ALL\x20LocalInfo\x20fields\x20are\x20included'),'content':z['string']()['optional']()['describe']('Explicit\x20plaintext\x20content\x20to\x20send.\x20If\x20provided,\x20fields\x20are\x20ignored\x20and\x20LocalInfo\x20is\x20NOT\x20auto-assembled'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict'](),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict'](),z['object']({'operation':z['literal']('save_attachment'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20owning\x20the\x20message.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Attachment\x20message\x20ID\x20(a\x20message\x20with\x20attachment/zipMetadata,\x20e.g.\x20found\x20via\x20watch_messages)'),'outputDir':z['string']()['optional']()['describe']('Target\x20directory.\x20If\x20not\x20specified,\x20saves\x20to\x20the\x20workspace/attachments\x20directory'),'saveAs':z['string']()['optional']()['describe']('Override\x20file\x20name\x20(basename\x20only;\x20directories\x20are\x20stripped).\x20Defaults\x20to\x20the\x20original\x20attachment\x20file\x20name.\x20Collisions\x20get\x20a\x20\x27\x20(1)\x27\x20suffix')})['strict'](),z['object']({'operation':z['literal']('generate_wts'),'params':WtsGenerationParamsSchema['describe']('WTS\x20generation\x20parameters')})['strict'](),z['object']({'operation':z['literal']('verify_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20verify')})['strict'](),z['object']({'operation':z['literal']('sign_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20sign'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20sign\x20with.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20saves\x20to\x20signed_*.wts')})['strict'](),z['object']({'operation':z['literal']('wts2html'),'wtsPath':z['string']()['describe']('WTS\x20file\x20path\x20or\x20directory\x20to\x20convert'),'options':WtsToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict'](),z['object']({'operation':z['literal']('proof_message'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Message\x20ID\x20to\x20proof\x20on-chain'),'network':EntrypointSchema['describe']('Network\x20to\x20use\x20for\x20on-chain\x20proof\x20(required)'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('blacklist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageIds':z['array'](z['string']())['min'](0x1)['max'](0x3e8)['describe']('Array\x20of\x20message\x20IDs\x20to\x20mark\x20as\x20viewed\x20(1-1000\x20messages).\x20Only\x20messages\x20belonging\x20to\x20this\x20account\x20will\x20be\x20marked')})['strict'](),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'peerAddress':AccountOrMark_AddressAISchema['describe']('Peer\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20All\x20unviewed\x20received\x20messages\x20from\x20this\x20peer\x20will\x20be\x20marked\x20as\x20viewed')})['strict'](),z['object']({'operation':z['literal']('pull_messages'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account\x20(ignored\x20when\x20allAccounts/accounts\x20is\x20set)'),'limit':z['number']()['optional']()['describe']('Maximum\x20number\x20of\x20messages\x20to\x20pull\x20from\x20server\x20per\x20account'),'allAccounts':z['boolean']()['optional']()['describe']('Pull\x20every\x20messenger-enabled\x20account\x20in\x20ONE\x20bounded-concurrency\x20fan-out\x20(default\x20concurrency\x205).\x20Only\x20the\x20process\x20holding\x20each\x20account\x27s\x20polling\x20lock\x20pulls;\x20per-account\x20failures\x20are\x20isolated\x20in\x20the\x20result\x20entries.\x20Returns\x20one\x20result\x20entry\x20per\x20account'),'accounts':z['array'](NameOrAddressSchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Cold\x20accounts\x20are\x20initialized\x20on\x20demand'),'concurrency':z['number']()['min'](0x1)['max'](0x14)['optional']()['describe']('Max\x20concurrent\x20account\x20pulls\x20in\x20fan-out\x20mode\x20(default\x205)')})['strict']()])['describe']('Messenger\x20operation\x20input\x20schema.\x20PREREQUISITE:\x20an\x20account\x20must\x20ENABLE\x20messenger\x20before\x20sending/receiving.\x20'+'There\x20is\x20NO\x20\x27enable\x27\x20operation\x20in\x20this\x20tool\x20—\x20enable\x20via\x20account_operation\x20{messenger:\x20{enabled:\x20true,\x20name_or_account:\x20\x27<account>\x27}},\x20'+'or\x20implicitly\x20via\x20send_message/send_file\x20with\x20options.enable_messenger:\x20true.\x20'+'Use\x20proof_message\x20to\x20anchor\x20a\x20message\x27s\x20WTS\x20proof\x20on-chain\x20(creates\x20a\x20Proof\x20object\x20consumable\x20by\x20Guards\x20via\x20proof.signer/proof.time\x20queries).');export const MessengerOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'result':z['array'](ConversationInfoSchema)['describe']('List\x20of\x20conversations')}),z['object']({'operation':z['literal']('send_message'),'result':SendMessageResultSchema['describe']('Send\x20message\x20result')}),z['object']({'operation':z['literal']('send_file'),'result':SendMessageResultSchema['describe']('Send\x20file\x20result')}),z['object']({'operation':z['literal']('send_required_info'),'result':SendMessageResultSchema['extend']({'sent_fields':z['array'](z['string']())['describe']('LocalInfo\x20field\x20names\x20that\x20were\x20assembled\x20and\x20sent')})['describe']('Send\x20required-info\x20result\x20(with\x20the\x20assembled\x20field\x20names)')}),z['object']({'operation':z['literal']('watch_messages'),'result':z['array'](MessageSchema)['describe']('List\x20of\x20messages')}),z['object']({'operation':z['literal']('save_attachment'),'result':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20saved\x20attachment\x20file')}),z['object']({'operation':z['literal']('generate_wts'),'result':WtsFileResultSchema['describe']('Generate\x20WTS\x20result')}),z['object']({'operation':z['literal']('verify_wts'),'result':WtsVerificationResultSchema['describe']('WTS\x20verification\x20result')}),z['object']({'operation':z['literal']('sign_wts'),'result':z['string']()['describe']('Signed\x20WTS\x20file\x20path')}),z['object']({'operation':z['literal']('wts2html'),'result':z['union']([z['string'](),z['array'](z['string']())])['describe']('Output\x20file\x20path(s)\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)')}),z['object']({'operation':z['literal']('proof_message'),'result':z['object']({'proofAddress':z['string']()['describe']('Proof\x20object\x20address\x20on\x20blockchain')})['describe']('Proof\x20message\x20result')}),z['object']({'operation':z['literal']('blacklist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Blacklist\x20operation\x20result')}),z['object']({'operation':z['literal']('friendslist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Friends\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('guardlist'),'op':z['enum'](['add','remove','get'])['describe']('Operation\x20type'),'result':ListOperationResponseSchema['describe']('Guard\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('settings'),'op':z['enum'](['get','set'])['describe']('Operation\x20type'),'result':z['union']([GetSettingsResponseSchema,z['boolean']()])['describe']('Settings\x20operation\x20result\x20-\x20GetSettingsResponse\x20for\x20\x27get\x27\x20operation,\x20boolean\x20for\x20\x27set\x27\x20operation')}),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed.\x20Only\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed\x20in\x20the\x20conversation.\x20Only\x20received\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('pull_messages'),'result':z['union']([z['array'](MessageSchema)['describe']('Single-account\x20mode:\x20messages\x20pulled\x20from\x20server'),z['array'](PullAccountResultSchema)['describe']('Fan-out\x20mode\x20(allAccounts/accounts\x20set):\x20one\x20entry\x20per\x20account\x20with\x20isolated\x20errors')])}),z['object']({'operation':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),'error_code':z['string']()['optional']()['describe']('Error\x20code'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20is\x20retryable'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20hint')})['describe']('Error\x20response')])['describe']('Messenger\x20operation\x20result\x20discriminated\x20union'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20messenger\x20operation')})['describe']('Messenger\x20operation\x20output\x20schema');
|
|
1
|
+
import{z}from'zod';import{NameOrAddressSchema,EntrypointSchema,AccountOrMark_AddressAISchema,ManyAccountOrMark_AddressAISchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/base.js';import{NORMAL_MESSAGE_BYTES_LIMIT}from'@wowok/wowok';export const MessageStatusSchema=z['enum'](['pending','confirmed','read','failed','rejected','decrypted','decrypt_failed']);export const MessageDirectionSchema=z['enum'](['sent','received']);export const MessageTypeSchema=z['union']([z['literal'](0x1),z['literal'](0x3)]);export const MessageContentTypeSchema=z['enum'](['text','zip','wts','wip']);export const MessageTimeFieldSchema=z['enum'](['createdAt','receivedAt','serverTimestamp']);export const RangeTypeSchema=z['enum'](['time','messageId','seqIndex']);export const AttachmentKindSchema=z['enum'](['image','video','audio','voice','file','wts','wip']);export const AttachmentDescriptorSchema=z['object']({'kind':AttachmentKindSchema['describe']('Attachment\x20business\x20type:\x20image/video/audio\x20are\x20inline-renderable\x20media;\x20\x27voice\x27\x20is\x20an\x20explicit\x20voice\x20message\x20(webm\x20cannot\x20be\x20auto-distinguished\x20from\x20video);\x20\x27file\x27\x20is\x20a\x20generic\x20document;\x20wts/wip\x20are\x20evidence\x20files'),'fileName':z['string']()['describe']('Original\x20file\x20name\x20(transport\x20.zip\x20suffix\x20stripped)'),'mimeType':z['string']()['describe']('MIME\x20type\x20inferred\x20from\x20extension\x20or\x20sender-provided'),'size':z['number']()['describe']('Payload\x20size\x20in\x20bytes\x20(uncompressed)'),'caption':z['string']()['optional']()['describe']('Sender-provided\x20caption\x20(E2EE,\x20inside\x20the\x20encrypted\x20envelope)'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels')})['describe']('Byte-free\x20attachment\x20descriptor.\x20The\x20base64\x20payload\x20is\x20deliberately\x20NOT\x20included\x20—\x20use\x20save_attachment\x20to\x20persist\x20the\x20file');export const ZipMetadataSchema=z['object']({'fileName':z['string']()['describe']('ZIP\x20filename'),'fileSize':z['number']()['describe']('File\x20size\x20in\x20bytes'),'fileHash':z['string']()['describe']('File\x20SHA256\x20hash'),'contentType':MessageContentTypeSchema['describe']('Content\x20type'),'localCachePath':z['string']()['optional']()['describe']('Local\x20cache\x20path'),'downloadedAt':z['number']()['optional']()['describe']('Download\x20timestamp')})['describe']('ZIP\x20file\x20metadata');export const ReplyToSchema=z['object']({'messageId':z['string']()['describe']('Replied-to\x20message\x20ID\x20(unique\x20within\x20the\x20conversation)')})['describe']('Reply\x20(quote)\x20relationship\x20—\x20references\x20a\x20previous\x20message\x20in\x20the\x20same\x20conversation.\x20The\x20referenced\x20message\x27s\x20sender/preview\x20are\x20resolved\x20locally\x20by\x20messageId');export const MessageProofRecordSchema=z['object']({'address':z['string']()['describe']('On-chain\x20Proof\x20object\x20address'),'network':z['string']()['optional']()['describe']('Network\x20the\x20proof\x20was\x20published\x20on\x20(testnet/mainnet/localnet);\x20absent\x20in\x20legacy\x20local\x20records'),'createdAt':z['number']()['describe']('Local\x20record\x20time\x20(ms)')})['describe']('One\x20on-chain\x20proof\x20anchored\x20for\x20this\x20message');export const MessageSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID'),'fromAddress':z['string']()['describe']('Sender\x20address'),'toAddress':z['string']()['describe']('Recipient\x20address'),'plaintextHash':z['string']()['describe']('Plaintext\x20hash'),'plaintext':z['string']()['optional']()['describe']('Decrypted\x20plaintext\x20text.\x20UNDEFINED\x20for\x20attachment\x20messages\x20(zipMetadata\x20present)\x20—\x20their\x20base64\x20envelope\x20is\x20stripped\x20at\x20the\x20read\x20boundary;\x20read\x20msg.attachment\x20for\x20metadata\x20and\x20use\x20save_attachment\x20for\x20bytes'),'attachment':AttachmentDescriptorSchema['optional']()['describe']('Present\x20when\x20this\x20message\x20is\x20an\x20attachment\x20(zipMetadata\x20present).\x20Byte-free\x20descriptor;\x20payload\x20never\x20embedded'),'replyTo':ReplyToSchema['optional']()['describe']('Quoted\x20(replied-to)\x20message\x20reference,\x20if\x20this\x20message\x20replies\x20to\x20a\x20previous\x20one'),'guardAddress':z['string']()['optional']()['describe']('Guard\x20address'),'passportAddress':z['string']()['optional']()['describe']('Passport\x20address'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index'),'direction':MessageDirectionSchema['describe']('Message\x20direction'),'status':MessageStatusSchema['describe']('Message\x20status'),'msgType':MessageTypeSchema['describe']('Message\x20type'),'leafIndex':z['number']()['optional']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['optional']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['optional']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['optional']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['optional']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['optional']()['describe']('Server\x20public\x20key'),'arkConfirmed':z['object']({'recipient':z['string']()['describe']('Recipient\x20address'),'recipientPublicKey':z['string']()['describe']('Recipient\x20public\x20key'),'signature':z['string']()['describe']('Recipient\x20signature'),'timestamp':z['number']()['describe']('ARK\x20confirmation\x20time')})['optional']()['describe']('ARK\x20confirmation'),'createdAt':z['number']()['describe']('Message\x20creation\x20time\x20(client)'),'receivedAt':z['number']()['optional']()['describe']('Local\x20reception\x20time'),'zipMetadata':ZipMetadataSchema['optional']()['describe']('ZIP\x20file\x20metadata'),'proof':z['string']()['optional']()['describe']('Latest\x20on-chain\x20proof\x20object\x20address\x20(projection\x20of\x20the\x20last\x20entry\x20in\x20proofs;\x20derived\x20at\x20the\x20read\x20boundary\x20for\x20single-value\x20consumers)'),'proofs':z['array'](MessageProofRecordSchema)['optional']()['describe']('All\x20on-chain\x20proofs\x20anchored\x20for\x20this\x20message,\x20ascending\x20by\x20publish\x20time\x20(one-to-many;\x20a\x20message\x20may\x20be\x20proofed\x20multiple\x20times)'),'decryptError':z['string']()['optional']()['describe']('Decryption\x20failure\x20reason'),'decryptAttempts':z['number']()['optional']()['describe']('Number\x20of\x20decryption\x20attempts'),'lastDecryptAttemptAt':z['number']()['optional']()['describe']('Last\x20decryption\x20attempt\x20timestamp'),'viewedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20the\x20current\x20user\x20viewed\x20this\x20message\x20(local\x20storage).\x20If\x20present,\x20indicates\x20the\x20message\x20has\x20been\x20viewed\x20by\x20the\x20user.\x20Only\x20applicable\x20to\x20received\x20messages\x20(direction\x20===\x20\x27received\x27)')})['describe']('Message\x20object');export const PullAccountResultSchema=z['object']({'account':z['string']()['describe']('Account\x20address'),'pulled':z['number']()['describe']('Number\x20of\x20messages\x20pulled\x20and\x20decrypted\x20in\x20this\x20round'),'messages':z['array'](MessageSchema)['describe']('Newly\x20pulled\x20messages\x20(read\x20boundary\x20applied:\x20attachment\x20payloads\x20stripped\x20into\x20descriptors)'),'error':z['string']()['optional']()['describe']('Per-account\x20pull\x20error;\x20absent\x20on\x20success.\x20Other\x20accounts\x20are\x20unaffected')})['describe']('Per-account\x20fan-out\x20pull\x20result');export const ConversationInfoSchema=z['object']({'peerAddress':z['string']()['describe']('Peer\x20address'),'lastMessageAt':z['number']()['describe']('Last\x20message\x20time'),'messageCount':z['number']()['describe']('Total\x20message\x20count'),'unreadCount':z['number']()['describe']('Unread\x20message\x20count\x20-\x20count\x20of\x20received\x20messages\x20that\x20have\x20not\x20been\x20viewed\x20(viewedAt\x20is\x20undefined)'),'lastMessagePreview':z['string']()['optional']()['describe']('Last\x20message\x20preview\x20text'),'previewMessages':z['array'](MessageSchema)['optional']()['describe']('Preview\x20messages\x20for\x20this\x20conversation\x20(default\x202\x20messages,\x20sorted\x20by\x20time\x20descending)')})['describe']('Conversation\x20info\x20with\x20unread\x20count\x20and\x20preview\x20messages');export const ConversationsFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query\x20conversations\x20for.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'unreadOnly':z['boolean']()['optional']()['describe']('If\x20true,\x20only\x20return\x20conversations\x20with\x20unread\x20messages\x20(unreadCount\x20>\x200).\x20Useful\x20for\x20quickly\x20finding\x20conversations\x20needing\x20attention'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20>=\x20this\x20value'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20<=\x20this\x20value'),'previewMessageCount':z['number']()['optional']()['describe']('Number\x20of\x20preview\x20messages\x20to\x20include\x20for\x20each\x20conversation\x20(default:\x202).\x20Set\x20to\x200\x20to\x20disable\x20preview\x20messages.\x20If\x20>\x200,\x20preview\x20messages\x20are\x20automatically\x20included'),'sortBy':z['enum'](['lastMessageAt','unreadCount','messageCount'])['optional']()['describe']('Sort\x20conversations\x20by:\x20\x27lastMessageAt\x27\x20=\x20most\x20recent\x20activity\x20first,\x20\x27unreadCount\x27\x20=\x20most\x20unread\x20messages\x20first,\x20\x27messageCount\x27\x20=\x20most\x20total\x20messages\x20first'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20\x27asc\x27\x20=\x20ascending\x20(oldest/smallest\x20first),\x20\x27desc\x27\x20=\x20descending\x20(newest/largest\x20first).\x20Default\x20is\x20\x27desc\x27\x20for\x20time-based\x20sorting'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20preview\x20messages\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed\x20when\x20retrieved.\x20Default\x20is\x20false,\x20meaning\x20preview\x20messages\x20are\x20auto-marked\x20as\x20viewed'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20per\x20account\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable')})['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20quickly\x20find\x20active\x20conversations,\x20and\x20previewMessageCount\x20to\x20control\x20how\x20many\x20recent\x20messages\x20are\x20included');export const MessageFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for'),'direction':MessageDirectionSchema['optional']()['describe']('Filter\x20by\x20message\x20direction'),'status':MessageStatusSchema['optional']()['describe']('Filter\x20by\x20message\x20status'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Filter\x20by\x20peer\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'msgType':MessageTypeSchema['optional']()['describe']('Filter\x20by\x20message\x20type'),'contentType':MessageContentTypeSchema['optional']()['describe']('Filter\x20by\x20content\x20type'),'decryptedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20decrypted\x20messages'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable'),'confirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20confirmed\x20messages'),'keyword':z['string']()['optional']()['describe']('Search\x20keyword\x20in\x20plaintext'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20asc\x20or\x20desc'),'limit':z['number']()['optional']()['describe']('Return\x20limit'),'offset':z['number']()['optional']()['describe']('Pagination\x20offset'),'timeField':MessageTimeFieldSchema['optional']()['describe']('Time\x20field\x20for\x20time\x20filtering'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)'),'createdAtStart':z['number']()['optional']()['describe']('Created\x20at\x20start\x20time'),'createdAtEnd':z['number']()['optional']()['describe']('Created\x20at\x20end\x20time'),'receivedAtStart':z['number']()['optional']()['describe']('Received\x20at\x20start\x20time'),'receivedAtEnd':z['number']()['optional']()['describe']('Received\x20at\x20end\x20time'),'serverTimestampStart':z['number']()['optional']()['describe']('Server\x20timestamp\x20start\x20time'),'serverTimestampEnd':z['number']()['optional']()['describe']('Server\x20timestamp\x20end\x20time'),'arkConfirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20ARK\x20confirmed\x20messages'),'arkTimestampStart':z['number']()['optional']()['describe']('ARK\x20timestamp\x20start'),'arkTimestampEnd':z['number']()['optional']()['describe']('ARK\x20timestamp\x20end'),'proofedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20proof'),'beforeCreatedAt':z['number']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20only\x20return\x20messages\x20created\x20strictly\x20BEFORE\x20this\x20timestamp\x20(ms).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeMessageId;\x20when\x20both\x20are\x20absent\x20the\x20newest\x20page\x20is\x20returned.\x20Use\x20for\x20\x27open\x20conversation\x20showing\x20latest\x20N,\x20scroll\x20up\x20to\x20load\x20older\x20pages\x27'),'beforeMessageId':z['string']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20message\x20ID\x20anchor\x20paired\x20with\x20beforeCreatedAt\x20(tie-breaker\x20for\x20messages\x20with\x20identical\x20createdAt).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeCreatedAt'),'hasLastReceivedIndexOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20lastReceivedLeafIndex'),'lastReceivedIndexMin':z['number']()['optional']()['describe']('Min\x20lastReceivedLeafIndex'),'lastReceivedIndexMax':z['number']()['optional']()['describe']('Max\x20lastReceivedLeafIndex'),'listFilterMode':z['enum'](['friends','guard','stranger','any'])['optional']()['describe']('List\x20filter\x20mode:\x20\x27friends\x27\x20=\x20only\x20messages\x20from\x20friends\x20list,\x20\x27guard\x27\x20=\x20only\x20messages\x20from\x20Guard\x20list,\x20\x27stranger\x27\x20=\x20only\x20messages\x20from\x20strangers\x20(not\x20in\x20friends/guard\x20lists),\x20\x27any\x27\x20=\x20no\x20filtering\x20(default)'),'customListFilter':z['object']({'includeAddresses':z['array'](z['string']())['optional']()['describe']('Include\x20addresses\x20-\x20only\x20return\x20messages\x20from\x20these\x20addresses\x20(highest\x20priority)'),'excludeAddresses':z['array'](z['string']())['optional']()['describe']('Exclude\x20addresses\x20-\x20exclude\x20messages\x20from\x20these\x20addresses'),'relation':z['enum'](['union','intersection'])['optional']()['describe']('Address\x20list\x20relation:\x20\x27union\x27\x20=\x20combine\x20lists\x20as\x20union,\x20\x27intersection\x27\x20=\x20combine\x20lists\x20as\x20intersection')})['optional']()['describe']('Custom\x20list\x20filter\x20for\x20advanced\x20address-based\x20filtering,\x20works\x20in\x20combination\x20with\x20listFilterMode'),'viewed':z['boolean']()['optional']()['describe']('Filter\x20by\x20viewed\x20status:\x20true\x20=\x20only\x20viewed\x20messages,\x20false\x20=\x20only\x20unviewed\x20messages.\x20A\x20message\x20is\x20considered\x20\x27viewed\x27\x20if\x20viewedAt\x20field\x20exists.\x20Only\x20applicable\x20to\x20received\x20messages'),'viewedAtStart':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20start\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20>=\x20this\x20value.\x20Useful\x20for\x20finding\x20recently\x20viewed\x20messages'),'viewedAtEnd':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20end\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20<=\x20this\x20value.\x20Useful\x20for\x20finding\x20messages\x20viewed\x20before\x20a\x20certain\x20time'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20messages\x20returned\x20by\x20this\x20query\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed.\x20Default\x20is\x20false,\x20meaning\x20messages\x20are\x20auto-marked\x20as\x20viewed\x20when\x20retrieved\x20through\x20watch_messages')})['describe']('Message\x20filter\x20options\x20-\x20all\x20conditions\x20are\x20optional\x20and\x20combined\x20with\x20AND\x20logic.\x20Use\x20viewed\x20field\x20to\x20filter\x20by\x20read/unread\x20status,\x20and\x20viewedAtStart/viewedAtEnd\x20to\x20filter\x20by\x20when\x20messages\x20were\x20viewed');export const SendMessageOptionsSchema=z['object']({'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network.\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks.\x20Guard\x20verification\x20is\x20MAINNET-ONLY\x20(no\x20testnet)'),'replyTo':ReplyToSchema['optional']()['describe']('Quote/reply\x20to\x20a\x20previous\x20message\x20in\x20the\x20SAME\x20conversation.\x20The\x20messageId\x20MUST\x20exist\x20in\x20local\x20storage\x20for\x20the\x20current\x20conversation,\x20otherwise\x20sending\x20fails'),'smart':z['boolean']()['optional']()['describe']('Smart\x20send\x20(default\x20true):\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20a\x20plain\x20send,\x20silently\x20resend\x20using\x20a\x20local\x20Passport\x20issued\x20via\x20one\x20of\x20their\x20guards;\x20when\x20no\x20usable\x20Passport\x20exists,\x20returns\x20a\x20structured\x20guard_authorization_required\x20result\x20(authRequired=true)\x20instead\x20of\x20an\x20error.\x20Set\x20false\x20for\x20strict\x20legacy\x20behavior.\x20Guard\x20verification\x20runs\x20on\x20MAINNET\x20only'),'authorize':z['boolean']()['optional']()['describe']('One-click\x20guard\x20authorization:\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20the\x20send,\x20create\x20a\x20fresh\x20Passport\x20via\x20ALL\x20of\x20their\x20guards\x20in\x20one\x20gas-consuming\x20transaction\x20and\x20resend\x20automatically.\x20Use\x20after\x20showing\x20the\x20user\x20the\x20guard_authorization_required\x20card\x20and\x20getting\x20consent.\x20If\x20a\x20guard\x20demands\x20submission\x20answers,\x20the\x20result\x20returns\x20authRequired\x20with\x20submissions\x20for\x20follow-up.\x20The\x20Passport\x20tx\x20is\x20always\x20on\x20MAINNET\x20(guard\x20verification\x20is\x20mainnet-only)')})['describe']('Send\x20message\x20options.\x20SMART\x20SEND\x20IS\x20ON\x20BY\x20DEFAULT:\x20just\x20send\x20—\x20the\x20SDK\x20silently\x20handles\x20guard\x20verification\x20(local\x20passport\x20reuse\x20→\x20structured\x20authRequired\x20card\x20→\x20authorize:true\x20to\x20spend\x20gas\x20and\x20resend).\x20Explicit\x20guardAddress\x20+\x20passportAddress\x20bypass\x20smart\x20mode\x20and\x20enter\x20the\x20direct\x20Guard\x20verification\x20flow\x20(network\x20MUST\x20be\x20mainnet;\x20the\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20—\x20the\x20server\x20rejects\x20unknown\x20guards)');export const SendFileOptionsSchema=z['object']({'fileName':z['string']()['optional']()['describe']('Custom\x20file\x20name'),'contentType':z['enum'](['wts','wip','zip'])['optional']()['describe']('Legacy\x20server-visible\x20classification\x20hint\x20(auto-inferred\x20from\x20extension:\x20.wts/.wip,\x20otherwise\x20zip).\x20Evidence\x20types\x20wts/wip\x20always\x20win\x20over\x20extension'),'kind':AttachmentKindSchema['optional']()['describe']('Attachment\x20business\x20type\x20for\x20the\x20recipient\x27s\x20UI.\x20Media\x20kinds\x20(image/video/audio/file)\x20are\x20auto-inferred\x20from\x20extension;\x20set\x20\x27voice\x27\x20explicitly\x20for\x20voice\x20messages\x20(webm\x20cannot\x20be\x20distinguished\x20from\x20video\x20automatically)'),'mimeType':z['string']()['optional']()['describe']('Explicit\x20MIME\x20type\x20override\x20(otherwise\x20inferred\x20from\x20extension)'),'caption':z['string']()['optional']()['describe']('Caption\x20text\x20attached\x20to\x20the\x20file.\x20Stored\x20inside\x20the\x20E2EE\x20envelope\x20manifest\x20—\x20the\x20server\x20cannot\x20see\x20it;\x20the\x20recipient\x20sees\x20it\x20with\x20the\x20attachment'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels'),'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network\x20for\x20Guard\x20verification\x20(e.g.,\x20testnet,\x20mainnet).\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks')})['describe']('Send\x20file\x20options.\x20The\x20file\x20travels\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20transport\x20container\x20with\x20an\x20encrypted\x20manifest);\x20media\x20(jpg/mp4/webm/...)\x20is\x20stored\x20uncompressed,\x20documents/evidence\x20deflated.\x20When\x20guardAddress\x20+\x20passportAddress\x20are\x20provided,\x20the\x20file\x20enters\x20Guard\x20verification\x20flow\x20and\x20network\x20MUST\x20be\x20specified.\x20The\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20(the\x20server\x20rejects\x20unknown\x20guards)');export const SendMessageResultSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID\x20(empty\x20on\x20guard_authorization_required)'),'status':MessageStatusSchema['or'](z['literal']('guard_authorization_required'))['describe']('Message\x20status;\x20\x27guard_authorization_required\x27\x20means\x20smart\x20send\x20needs\x20one-click\x20authorization\x20before\x20delivery'),'merkleData':z['object']({'leafIndex':z['number']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['describe']('Server\x20public\x20key')})['optional']()['describe']('Merkle\x20Tree\x20proof\x20data'),'guardList':z['array'](z['string']())['optional']()['describe']('Guard\x20list\x20(only\x20returned\x20on\x20error)'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index\x20(for\x20message\x20confirmation)'),'authRequired':z['boolean']()['optional']()['describe']('True\x20on\x20the\x20guard_authorization_required\x20result\x20shape\x20—\x20show\x20the\x20user\x20ONE\x20confirmation\x20card,\x20then\x20resend\x20via\x20send_message\x20with\x20options.authorize=true'),'network':EntrypointSchema['optional']()['describe']('Network\x20the\x20Passport\x20must\x20be\x20created\x20on\x20(present\x20on\x20guard_authorization_required)'),'reason':z['enum'](['no_local_passport','local_passport_stale'])['optional']()['describe']('Why\x20silent\x20passport\x20reuse\x20failed\x20(present\x20on\x20guard_authorization_required)'),'hint':z['string']()['optional']()['describe']('Guidance\x20text\x20incl.\x20the\x20auto-friend\x20hint\x20—\x20once\x20the\x20recipient\x20replies,\x20the\x20sender\x20is\x20auto-friended\x20and\x20future\x20messages\x20need\x20no\x20verification'),'serverError':z['string']()['optional']()['describe']('Original\x20server\x20rejection\x20message'),'submissions':z['unknown']()['optional']()['describe']('Guard\x20submission\x20requirements,\x20when\x20a\x20guard\x20demands\x20answers\x20before\x20issuing\x20a\x20Passport\x20(route\x20through\x20onchain_operations\x20gen_passport\x20with\x20info)')})['describe']('Send\x20message\x20result.\x20Union:\x20normal\x20delivery\x20(messageId\x20+\x20status)\x20OR\x20guard_authorization_required\x20(authRequired=true\x20+\x20guardList\x20+\x20reason\x20+\x20hint)\x20—\x20the\x20latter\x20is\x20NOT\x20an\x20error;\x20obtain\x20user\x20consent\x20and\x20resend\x20with\x20authorize:true');const BaseRangeSchema=z['object']({'type':RangeTypeSchema['describe']('Range\x20type'),'start':z['union']([z['number'](),z['string']()])['describe']('Start\x20value'),'end':z['union']([z['number'](),z['string']()])['describe']('End\x20value')});export const TimeRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('time'),'start':z['number'](),'end':z['number']()});export const MessageIdRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('messageId'),'start':z['string'](),'end':z['string']()});export const SeqIndexRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('seqIndex'),'start':z['number'](),'end':z['number']()});export const WtsRangeSchema=z['discriminatedUnion']('type',[TimeRangeSchema,MessageIdRangeSchema,SeqIndexRangeSchema])['describe']('WTS\x20range\x20filter\x20parameters');export const WtsGenerationParamsSchema=z['object']({'myAccount':NameOrAddressSchema['describe']('My\x20account\x20name\x20or\x20address\x20(string)'),'peerAccount':AccountOrMark_AddressAISchema['describe']('Peer\x20account\x20name\x20or\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'range':WtsRangeSchema['optional']()['describe']('Range\x20filter\x20parameters'),'excludePlaintext':z['boolean']()['optional']()['describe']('Whether\x20to\x20exclude\x20plaintext'),'outputDir':z['string']()['optional']()['describe']('Output\x20directory\x20path.\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace/wts\x20directory')})['describe']('WTS\x20generation\x20parameters');export const WtsFileResultSchema=z['object']({'files':z['array'](z['string']())['describe']('Generated\x20WTS\x20file\x20paths'),'htmlFiles':z['array'](z['string']())['describe']('Generated\x20HTML\x20report\x20paths\x20—\x20one\x20human-readable\x20companion\x20per\x20WTS\x20file,\x20written\x20next\x20to\x20it\x20(same\x20base\x20name)'),'totalMessageCount':z['number']()['describe']('Total\x20message\x20count'),'timeRange':z['object']({'start':z['number']()['describe']('Start\x20time'),'end':z['number']()['describe']('End\x20time')})['describe']('Time\x20range')})['describe']('WTS\x20file\x20result');export const WtsSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signer\x20public\x20key'),'address':z['string']()['optional']()['describe']('Signer\x20address'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('WTS\x20signature\x20verification\x20details');export const WtsVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20succeeded'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20verification\x20failed'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20validation\x20passed'),'hasSignature':z['boolean']()['describe']('Whether\x20WTS\x20has\x20signatures'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20validation\x20passed'),'signatures':z['array'](WtsSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details')})['describe']('WTS\x20verification\x20result');export const WtsToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20document\x20title'),'theme':z['enum'](['light','dark'])['optional']()['describe']('HTML\x20theme'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path')})['describe']('WTS\x20to\x20HTML\x20conversion\x20options');export const AddressExistenceSchema=z['object']({'address':z['string']()['describe']('Address'),'exists':z['boolean']()['describe']('Whether\x20address\x20exists\x20in\x20list')})['describe']('Address\x20existence\x20check\x20result');export const GuardListItemSchema=z['object']({'guardAddress':z['string']()['describe']('Guard\x20address'),'passportValiditySeconds':z['number']()['describe']('Passport\x20validity\x20in\x20seconds')})['describe']('Guard\x20list\x20item');export const ListOperationResponseSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20operation\x20succeeded'),'operation':z['string']()['describe']('Operation\x20performed'),'modifiedCount':z['number']()['describe']('Number\x20of\x20items\x20modified'),'currentCount':z['number']()['describe']('Current\x20list\x20size'),'maxCount':z['number']()['describe']('Maximum\x20list\x20size'),'invalidAddresses':z['array'](z['string']())['optional']()['nullable']()['describe']('Invalid\x20addresses'),'existResults':z['array'](AddressExistenceSchema)['optional']()['nullable']()['describe']('Existence\x20check\x20results'),'message':z['string']()['optional']()['nullable']()['describe']('Operation\x20message'),'currentList':z['array'](z['string']())['optional']()['nullable']()['describe']('Current\x20list\x20content'),'currentGuardList':z['array'](GuardListItemSchema)['optional']()['nullable']()['describe']('Current\x20guard\x20list\x20content')})['describe']('List\x20operation\x20response');export const BlacklistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Blacklist\x20management\x20operation');export const FriendslistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Friends\x20list\x20management\x20operation');export const GuardParamSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20address\x20or\x20name'),'passportValiditySeconds':z['number']()['min'](0xa)['max'](0x12cc0300)['describe']('Passport\x20validity\x20in\x20seconds\x20(10s\x20to\x2010\x20years)')})['describe']('Guard\x20parameter');export const GuardlistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](GuardParamSchema)['min'](0x1)['max'](0xa)['describe']('Guards\x20to\x20add\x20to\x20guard\x20list')}),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['min'](0x1)['max'](0xa)['describe']('Guard\x20addresses\x20to\x20remove\x20from\x20guard\x20list')}),z['object']({'op':z['literal']('get')})])['describe']('Guard\x20list\x20management\x20operation');export const SettingsOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('set'),'allowStrangerMessages':z['boolean']()['optional']()['describe']('Allow\x20messages\x20from\x20strangers.\x20NOTE:\x20only\x20effective\x20while\x20the\x20guard\x20list\x20is\x20EMPTY\x20—\x20with\x20any\x20guard\x20configured\x20the\x20stranger\x20channel\x20is\x20disabled\x20server-side\x20and\x20non-friends\x20must\x20hold\x20a\x20passport\x20issued\x20via\x20one\x20of\x20the\x20configured\x20guards'),'maxInboxSize':z['number']()['min'](0x1)['optional']()['describe']('Maximum\x20inbox\x20size')})])['describe']('Settings\x20management\x20operation');export const GetSettingsResponseSchema=z['object']({'allowStrangerMessages':z['boolean']()['optional']()['describe']('Whether\x20messages\x20from\x20strangers\x20are\x20allowed\x20(ineffective\x20while\x20the\x20guard\x20list\x20is\x20non-empty)'),'maxInboxSize':z['number']()['optional']()['describe']('Current\x20maximum\x20inbox\x20size'),'minUserInboxSize':z['number']()['describe']('Server\x20minimum\x20allowed\x20inbox\x20size\x20limit'),'maxUserInboxSize':z['number']()['describe']('Server\x20maximum\x20allowed\x20inbox\x20size\x20limit'),'defaultAllowStrangerMessages':z['boolean']()['describe']('Server\x20default\x20setting\x20for\x20allowing\x20stranger\x20messages')})['describe']('Get\x20settings\x20response');const GoalEvidenceRef={'goal_id':z['string']()['optional']()['describe']('Optional\x20goal\x20id\x20(from\x20goal_operation).\x20When\x20set,\x20this\x20act\x20is\x20recorded\x20as\x20communication\x20'+'evidence\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(K3\x2027\x20G5)\x20—\x20use\x20it\x20only\x20when\x20the\x20act\x20belongs\x20to\x20an\x20active\x20'+'goal\x27s\x20execution\x20(order\x20negotiation,\x20required-info\x20confirmation,\x20WTS\x20evidence,\x20on-chain\x20proof).')};export const MessengerOperationInputSchema=z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'filter':ConversationsFilterSchema['optional']()['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20find\x20conversations\x20with\x20unread\x20messages,\x20previewMessageCount\x20to\x20control\x20message\x20previews\x20(default\x202),\x20and\x20sortBy/sortOrder\x20to\x20customize\x20sorting')})['strict'](),z['object']({'operation':z['literal']('send_message'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'content':z['string']()['max'](NORMAL_MESSAGE_BYTES_LIMIT)['describe']('Message\x20content\x20text\x20(max\x2010240\x20bytes)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings')})['strict'](),z['object']({'operation':z['literal']('send_file'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'filePath':z['string']()['describe']('Local\x20file\x20path\x20to\x20send.\x20Transported\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20container);\x20the\x20recipient\x20restores\x20the\x20original\x20file\x20name/type\x20via\x20the\x20encrypted\x20manifest'),'options':SendFileOptionsSchema['optional']()['describe']('Optional\x20file\x20sending\x20settings'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('send_required_info'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20(the\x20merchant\x27s\x20Contact\x20IM\x20address).\x20Can\x20be\x20a\x20string\x20or\x20full\x20object'),'fields':z['array'](z['string']())['optional']()['describe']('LocalInfo\x20field\x20names\x20to\x20send\x20(e.g.\x20[\x27phone\x27,\x27shipping_address\x27]).\x20If\x20omitted,\x20ALL\x20LocalInfo\x20fields\x20are\x20included'),'content':z['string']()['optional']()['describe']('Explicit\x20plaintext\x20content\x20to\x20send.\x20If\x20provided,\x20fields\x20are\x20ignored\x20and\x20LocalInfo\x20is\x20NOT\x20auto-assembled'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict'](),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict'](),z['object']({'operation':z['literal']('save_attachment'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20owning\x20the\x20message.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Attachment\x20message\x20ID\x20(a\x20message\x20with\x20attachment/zipMetadata,\x20e.g.\x20found\x20via\x20watch_messages)'),'outputDir':z['string']()['optional']()['describe']('Target\x20directory.\x20If\x20not\x20specified,\x20saves\x20to\x20the\x20workspace/attachments\x20directory'),'saveAs':z['string']()['optional']()['describe']('Override\x20file\x20name\x20(basename\x20only;\x20directories\x20are\x20stripped).\x20Defaults\x20to\x20the\x20original\x20attachment\x20file\x20name.\x20Collisions\x20get\x20a\x20\x27\x20(1)\x27\x20suffix')})['strict'](),z['object']({'operation':z['literal']('generate_wts'),'params':WtsGenerationParamsSchema['describe']('WTS\x20generation\x20parameters')})['strict'](),z['object']({'operation':z['literal']('verify_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20verify')})['strict'](),z['object']({'operation':z['literal']('sign_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20sign'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20sign\x20with.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20saves\x20to\x20signed_*.wts')})['strict'](),z['object']({'operation':z['literal']('wts2html'),'wtsPath':z['string']()['describe']('WTS\x20file\x20path\x20or\x20directory\x20to\x20convert'),'options':WtsToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict'](),z['object']({'operation':z['literal']('proof_message'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Message\x20ID\x20to\x20proof\x20on-chain'),'network':EntrypointSchema['describe']('Network\x20to\x20use\x20for\x20on-chain\x20proof\x20(required)'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('blacklist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageIds':z['array'](z['string']())['min'](0x1)['max'](0x3e8)['describe']('Array\x20of\x20message\x20IDs\x20to\x20mark\x20as\x20viewed\x20(1-1000\x20messages).\x20Only\x20messages\x20belonging\x20to\x20this\x20account\x20will\x20be\x20marked')})['strict'](),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'peerAddress':AccountOrMark_AddressAISchema['describe']('Peer\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20All\x20unviewed\x20received\x20messages\x20from\x20this\x20peer\x20will\x20be\x20marked\x20as\x20viewed')})['strict'](),z['object']({'operation':z['literal']('pull_messages'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account\x20(ignored\x20when\x20allAccounts/accounts\x20is\x20set)'),'limit':z['number']()['optional']()['describe']('Maximum\x20number\x20of\x20messages\x20to\x20pull\x20from\x20server\x20per\x20account'),'allAccounts':z['boolean']()['optional']()['describe']('Pull\x20every\x20messenger-enabled\x20account\x20in\x20ONE\x20bounded-concurrency\x20fan-out\x20(default\x20concurrency\x205).\x20Only\x20the\x20process\x20holding\x20each\x20account\x27s\x20polling\x20lock\x20pulls;\x20per-account\x20failures\x20are\x20isolated\x20in\x20the\x20result\x20entries.\x20Returns\x20one\x20result\x20entry\x20per\x20account'),'accounts':z['array'](NameOrAddressSchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Cold\x20accounts\x20are\x20initialized\x20on\x20demand'),'concurrency':z['number']()['min'](0x1)['max'](0x14)['optional']()['describe']('Max\x20concurrent\x20account\x20pulls\x20in\x20fan-out\x20mode\x20(default\x205)')})['strict']()])['describe']('Messenger\x20operation\x20input\x20schema.\x20PREREQUISITE:\x20an\x20account\x20must\x20ENABLE\x20messenger\x20before\x20sending/receiving.\x20'+'There\x20is\x20NO\x20\x27enable\x27\x20operation\x20in\x20this\x20tool\x20—\x20enable\x20via\x20account_operation\x20{messenger:\x20{enabled:\x20true,\x20name_or_account:\x20\x27<account>\x27}},\x20'+'or\x20implicitly\x20via\x20send_message/send_file\x20with\x20options.enable_messenger:\x20true.\x20'+'Use\x20proof_message\x20to\x20anchor\x20a\x20message\x27s\x20WTS\x20proof\x20on-chain\x20(creates\x20a\x20Proof\x20object\x20consumable\x20by\x20Guards\x20via\x20proof.signer/proof.time\x20queries).');export const MessengerOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'result':z['array'](ConversationInfoSchema)['describe']('List\x20of\x20conversations')}),z['object']({'operation':z['literal']('send_message'),'result':SendMessageResultSchema['describe']('Send\x20message\x20result')}),z['object']({'operation':z['literal']('send_file'),'result':SendMessageResultSchema['describe']('Send\x20file\x20result')}),z['object']({'operation':z['literal']('send_required_info'),'result':SendMessageResultSchema['extend']({'sent_fields':z['array'](z['string']())['describe']('LocalInfo\x20field\x20names\x20that\x20were\x20assembled\x20and\x20sent')})['describe']('Send\x20required-info\x20result\x20(with\x20the\x20assembled\x20field\x20names)')}),z['object']({'operation':z['literal']('watch_messages'),'result':z['array'](MessageSchema)['describe']('List\x20of\x20messages')}),z['object']({'operation':z['literal']('save_attachment'),'result':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20saved\x20attachment\x20file')}),z['object']({'operation':z['literal']('generate_wts'),'result':WtsFileResultSchema['describe']('Generate\x20WTS\x20result')}),z['object']({'operation':z['literal']('verify_wts'),'result':WtsVerificationResultSchema['describe']('WTS\x20verification\x20result')}),z['object']({'operation':z['literal']('sign_wts'),'result':z['string']()['describe']('Signed\x20WTS\x20file\x20path')}),z['object']({'operation':z['literal']('wts2html'),'result':z['union']([z['string'](),z['array'](z['string']())])['describe']('Output\x20file\x20path(s)\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)')}),z['object']({'operation':z['literal']('proof_message'),'result':z['object']({'proofAddress':z['string']()['describe']('Proof\x20object\x20address\x20on\x20blockchain')})['describe']('Proof\x20message\x20result')}),z['object']({'operation':z['literal']('blacklist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Blacklist\x20operation\x20result')}),z['object']({'operation':z['literal']('friendslist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Friends\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('guardlist'),'op':z['enum'](['add','remove','get'])['describe']('Operation\x20type'),'result':ListOperationResponseSchema['describe']('Guard\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('settings'),'op':z['enum'](['get','set'])['describe']('Operation\x20type'),'result':z['union']([GetSettingsResponseSchema,z['boolean']()])['describe']('Settings\x20operation\x20result\x20-\x20GetSettingsResponse\x20for\x20\x27get\x27\x20operation,\x20boolean\x20for\x20\x27set\x27\x20operation')}),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed.\x20Only\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed\x20in\x20the\x20conversation.\x20Only\x20received\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('pull_messages'),'result':z['union']([z['array'](MessageSchema)['describe']('Single-account\x20mode:\x20messages\x20pulled\x20from\x20server'),z['array'](PullAccountResultSchema)['describe']('Fan-out\x20mode\x20(allAccounts/accounts\x20set):\x20one\x20entry\x20per\x20account\x20with\x20isolated\x20errors')])}),z['object']({'operation':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),'error_code':z['string']()['optional']()['describe']('Error\x20code'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20is\x20retryable'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20hint')})['describe']('Error\x20response')])['describe']('Messenger\x20operation\x20result\x20discriminated\x20union'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20messenger\x20operation')})['describe']('Messenger\x20operation\x20output\x20schema');
|