@wowok/agent-mcp 3.2.1 → 3.2.2

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.
Files changed (97) hide show
  1. package/dist/communication/wts-attestation.d.ts +34 -0
  2. package/dist/communication/wts-attestation.js +1 -0
  3. package/dist/config/judgment.d.ts +25 -0
  4. package/dist/config/rule-engine.d.ts +10 -0
  5. package/dist/config/rule-engine.js +1 -1
  6. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  7. package/dist/evaluation/engine.js +1 -1
  8. package/dist/experience/realtime-feedback.js +1 -1
  9. package/dist/extensions/industry-pack.js +1 -1
  10. package/dist/graph/onchain/expand.js +1 -1
  11. package/dist/graph/onchain/exposure.js +1 -1
  12. package/dist/knowledge/allocation-risk.d.ts +2 -1
  13. package/dist/knowledge/allocation-risk.js +1 -1
  14. package/dist/knowledge/allocation-templates.js +1 -1
  15. package/dist/knowledge/audit-rules.js +1 -1
  16. package/dist/knowledge/baselines/rules/allocation.json +31 -1
  17. package/dist/knowledge/builtin-templates.d.ts +3 -1
  18. package/dist/knowledge/builtin-templates.js +1 -1
  19. package/dist/knowledge/entity-recipient-guard.d.ts +21 -0
  20. package/dist/knowledge/entity-recipient-guard.js +1 -0
  21. package/dist/knowledge/getting-started.js +1 -1
  22. package/dist/knowledge/guard-templates.js +1 -1
  23. package/dist/knowledge/index.js +1 -1
  24. package/dist/knowledge/industry-registry.js +1 -1
  25. package/dist/knowledge/jsonrpc-enum.js +1 -1
  26. package/dist/knowledge/machine-topology.d.ts +34 -0
  27. package/dist/knowledge/machine-topology.js +1 -1
  28. package/dist/knowledge/scenario-modes.d.ts +1 -0
  29. package/dist/knowledge/scenario-modes.js +1 -1
  30. package/dist/knowledge/strategy-manuals.js +1 -1
  31. package/dist/knowledge/template-loader.d.ts +21 -0
  32. package/dist/knowledge/template-loader.js +1 -1
  33. package/dist/knowledge/template-registry.js +1 -1
  34. package/dist/knowledge/template-scanner.js +1 -1
  35. package/dist/knowledge/tool-constraints.js +1 -1
  36. package/dist/knowledge/tools-reference.js +1 -1
  37. package/dist/knowledge/workflow-guidance.d.ts +4 -0
  38. package/dist/knowledge/workflow-guidance.js +1 -1
  39. package/dist/monitor/MonitorLoop.js +1 -1
  40. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  41. package/dist/playbooks/service-build/index.d.ts +1 -0
  42. package/dist/playbooks/service-build/intent-analyzer.d.ts +1 -0
  43. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  44. package/dist/playbooks/service-build/machine-nodes.d.ts +1 -1
  45. package/dist/playbooks/service-build/machine-nodes.js +1 -1
  46. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  47. package/dist/playbooks/service-build/object-panorama.d.ts +27 -1
  48. package/dist/playbooks/service-build/object-panorama.js +1 -1
  49. package/dist/playbooks/service-build/participation-radar.js +1 -1
  50. package/dist/playbooks/service-build/pipeline-actions.d.ts +4 -0
  51. package/dist/playbooks/service-build/pipeline-actions.js +1 -1
  52. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  53. package/dist/playbooks/service-build/semantic-graph.d.ts +1 -0
  54. package/dist/playbooks/service-build/semantic-graph.js +1 -1
  55. package/dist/playbooks/service-build/service-panorama.js +1 -1
  56. package/dist/playbooks/service-build/service-quote.js +1 -1
  57. package/dist/review/index.js +1 -1
  58. package/dist/safety/confirm-gate.js +1 -1
  59. package/dist/schema/call/machine.d.ts +1 -0
  60. package/dist/schema/call/machine.js +1 -1
  61. package/dist/schema/call/semantic.js +1 -1
  62. package/dist/schema/call/service.js +1 -1
  63. package/dist/schema/common/index.js +1 -1
  64. package/dist/schema/goal/planning.d.ts +7 -0
  65. package/dist/schema/goal/planning.js +1 -1
  66. package/dist/schema/industry-pack/index.d.ts +24 -0
  67. package/dist/schema/industry-pack/index.js +1 -1
  68. package/dist/schema/local/index.js +1 -1
  69. package/dist/schema/messenger/index.d.ts +20 -0
  70. package/dist/schema/messenger/index.js +1 -1
  71. package/dist/schema/operations.d.ts +2 -0
  72. package/dist/schema/persona/index.d.ts +110 -0
  73. package/dist/schema/query/bi.d.ts +2 -0
  74. package/dist/schema/query/bi.js +1 -1
  75. package/dist/schema/schema-version.js +1 -1
  76. package/dist/schema/utils/node-parser.js +1 -1
  77. package/dist/schema-query-impl/index.js +1 -1
  78. package/dist/schemas/index.json +1 -1
  79. package/dist/schemas/industry_pack_operation.output.json +109 -0
  80. package/dist/schemas/industry_pack_operation.schema.json +3 -1
  81. package/dist/schemas/messenger_operation.output.json +42 -4
  82. package/dist/schemas/onchain_operations.schema.json +5 -5
  83. package/dist/schemas/onchain_operations_machine.schema.json +2 -2
  84. package/dist/schemas/onchain_operations_service.schema.json +3 -3
  85. package/dist/schemas/onchain_table_data.output.json +5 -1
  86. package/dist/schemas/persona_operation.output.json +266 -0
  87. package/dist/schemas/persona_operation.schema.json +42 -0
  88. package/dist/schemas/query_toolkit.output.json +1 -1
  89. package/dist/schemas/query_toolkit.schema.json +5 -1
  90. package/dist/tools/handlers/benchmark-migration.d.ts +17 -0
  91. package/dist/tools/handlers/benchmark-migration.js +1 -1
  92. package/dist/tools/handlers/config.js +1 -1
  93. package/dist/tools/handlers/industry-pack.js +1 -1
  94. package/dist/tools/handlers/messenger.js +1 -1
  95. package/dist/tools/handlers/onchain.js +1 -1
  96. package/dist/tools/registry/business.js +1 -1
  97. package/package.json +4 -3
@@ -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 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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20query\x20conversations\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'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':AccountOrMark_AddressAISchema['describe']('My\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'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.\x20⚠️\x20MAINNET-ONLY:\x20Messenger\x20guards\x20must\x20be\x20Guard\x20objects\x20on\x20MAINNET\x20—\x20a\x20testnet\x20Guard\x20is\x20rejected\x20at\x20add\x20time\x20(\x27Guard\x20not\x20found\x20on\x20mainnet\x27).\x20Create\x20the\x20Guard\x20on\x20mainnet\x20before\x20adding\x20it\x20here.'),'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.\x20⚠️\x20MAINNET-ONLY:\x20only\x20mainnet\x20Guard\x20objects\x20are\x20supported\x20—\x20testnet\x20Guards\x20are\x20rejected.')}),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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20owning\x20the\x20message\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20sign\x20with\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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'](AccountOrMark_AddressAISchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Each\x20entry\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20query\x20conversations\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'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':AccountOrMark_AddressAISchema['describe']('My\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'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.\x20TRUE\x20only\x20when\x20ALL\x20hold\x20(no\x20opt-out\x20exists):\x20the\x20packet\x20is\x20self-consistent\x20(Merkle\x20chain\x20+\x20digest),\x20EVERY\x20message\x20carries\x20a\x20verifying\x20per-message\x20Falcon512\x20serverSignature,\x20meta.signature\x20seals\x20the\x20packet\x20(binding\x20the\x20declared\x20serverPublicKeys),\x20AND\x20every\x20message\x27s\x20server\x20key\x20exists\x20in\x20the\x20messenger\x20server\x27s\x20official\x20key\x20history\x20with\x20a\x20validity\x20window\x20covering\x20the\x20message\x27s\x20server\x20timestamp\x20(serverKeysOfficial).\x20A\x20freshly\x20generated\x20packet\x20is\x20valid:false\x20until\x20sign_wts\x20seals\x20it.'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20verification\x20failed'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20validation\x20passed'),'hasSignature':z['boolean']()['describe']('Whether\x20the\x20packet\x20carries\x20a\x20meta.signature\x20seal'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20the\x20packet\x20seal\x20(meta.signature)\x20verified'),'signatures':z['array'](WtsSignatureVerificationSchema)['optional']()['describe']('Packet\x20seal\x20verification\x20details\x20(per\x20signer\x20address)'),'attestedCount':z['number']()['optional']()['describe']('Messages\x20whose\x20serverSignature\x20verified\x20under\x20a\x20key\x20the\x20packet\x20supplies'),'unattestedCount':z['number']()['optional']()['describe']('Messages\x20with\x20no\x20verifying\x20server\x20signature\x20(absent,\x20or\x20key\x20unresolvable)'),'serverKeysOfficial':z['boolean']()['optional']()['describe']('True\x20when\x20every\x20message\x27s\x20server\x20key\x20is\x20in\x20the\x20server\x27s\x20OFFICIAL\x20key\x20history\x20(rotation-aware)\x20AND\x20the\x20key\x20book\x20itself\x20matches\x20its\x20ON-CHAIN\x20anchor\x20(a\x20well-known\x20Repository\x20record\x20writable\x20only\x20by\x20the\x20pinned\x20wowok\x20signer).\x20False\x20—\x20or\x20absent\x20because\x20the\x20key\x20book\x20or\x20chain\x20was\x20unreachable\x20—\x20means\x20the\x20packet\x20must\x20NOT\x20be\x20treated\x20as\x20third-party\x20evidence:\x20a\x20forger\x20can\x20mint\x20a\x20server\x20key\x20and\x20self-sign\x20a\x20fully\x20\x27verifying\x27\x20packet,\x20and\x20a\x20fake\x20server\x20can\x20serve\x20a\x20book\x20full\x20of\x20forger\x20keys.'),'serverKeyAnchor':z['object']({'verified':z['boolean'](),'network':z['string'](),'anchoredHash':z['string']()['optional'](),'computedHash':z['string']()['optional'](),'reason':z['string']()['optional']()})['optional']()['describe']('On-chain\x20anchor\x20verdict\x20for\x20the\x20key\x20book:\x20the\x20locally\x20recomputed\x20canonical\x20hash\x20must\x20equal\x20the\x20hash\x20in\x20the\x20keybook\x20Repository\x20record.\x20verified:false\x20(signer\x20not\x20pinned,\x20anchor\x20not\x20deployed,\x20hash\x20mismatch,\x20chain\x20unreachable)\x20forces\x20valid:false\x20and\x20serverKeysOfficial:false.')})['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.\x20⚠️\x20MAINNET-ONLY:\x20Messenger\x20guards\x20must\x20be\x20Guard\x20objects\x20on\x20MAINNET\x20—\x20a\x20testnet\x20Guard\x20is\x20rejected\x20at\x20add\x20time\x20(\x27Guard\x20not\x20found\x20on\x20mainnet\x27).\x20Create\x20the\x20Guard\x20on\x20mainnet\x20before\x20adding\x20it\x20here.'),'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.\x20⚠️\x20MAINNET-ONLY:\x20only\x20mainnet\x20Guard\x20objects\x20are\x20supported\x20—\x20testnet\x20Guards\x20are\x20rejected.')}),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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20owning\x20the\x20message\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20sign\x20with\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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'](AccountOrMark_AddressAISchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Each\x20entry\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\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');
@@ -3454,6 +3454,7 @@ export declare const WatchQueryOperationsSchema: z.ZodPreprocess<z.ZodDiscrimina
3454
3454
  query_type: z.ZodLiteral<"object_panorama">;
3455
3455
  object_address: z.ZodOptional<z.ZodString>;
3456
3456
  filter: z.ZodOptional<z.ZodString>;
3457
+ wts_file_path: z.ZodOptional<z.ZodString>;
3457
3458
  context_network: z.ZodOptional<z.ZodEnum<{
3458
3459
  testnet: "testnet";
3459
3460
  mainnet: "mainnet";
@@ -5402,6 +5403,7 @@ export declare const OnchainTableDataResultSchema: z.ZodObject<{
5402
5403
  query_type: z.ZodLiteral<"object_panorama">;
5403
5404
  object_address: z.ZodOptional<z.ZodString>;
5404
5405
  filter: z.ZodOptional<z.ZodString>;
5406
+ wts_file_path: z.ZodOptional<z.ZodString>;
5405
5407
  context_network: z.ZodOptional<z.ZodEnum<{
5406
5408
  testnet: "testnet";
5407
5409
  mainnet: "mainnet";
@@ -832,6 +832,11 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<[z.Zod
832
832
  }, z.core.$strict>>>;
833
833
  enabled: z.ZodOptional<z.ZodBoolean>;
834
834
  }, z.core.$strict>>>;
835
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
836
+ error: "error";
837
+ info: "info";
838
+ warning: "warning";
839
+ }>>>;
835
840
  }, z.core.$strict>>>;
836
841
  }, z.core.$strict>>;
837
842
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -1765,6 +1770,11 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<[z.Zod
1765
1770
  }, z.core.$strict>>>;
1766
1771
  enabled: z.ZodOptional<z.ZodBoolean>;
1767
1772
  }, z.core.$strict>>>;
1773
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
1774
+ error: "error";
1775
+ info: "info";
1776
+ warning: "warning";
1777
+ }>>>;
1768
1778
  }, z.core.$strict>>>;
1769
1779
  }, z.core.$strict>>;
1770
1780
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -2743,6 +2753,11 @@ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<[z.Zod
2743
2753
  }, z.core.$strict>>>;
2744
2754
  enabled: z.ZodOptional<z.ZodBoolean>;
2745
2755
  }, z.core.$strict>>>;
2756
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
2757
+ error: "error";
2758
+ info: "info";
2759
+ warning: "warning";
2760
+ }>>>;
2746
2761
  }, z.core.$strict>>>;
2747
2762
  }, z.core.$strict>>;
2748
2763
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -3726,6 +3741,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
3726
3741
  }, z.core.$strict>>>;
3727
3742
  enabled: z.ZodOptional<z.ZodBoolean>;
3728
3743
  }, z.core.$strict>>>;
3744
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
3745
+ error: "error";
3746
+ info: "info";
3747
+ warning: "warning";
3748
+ }>>>;
3729
3749
  }, z.core.$strict>>>;
3730
3750
  }, z.core.$strict>>;
3731
3751
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -4720,6 +4740,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
4720
4740
  }, z.core.$strict>>>;
4721
4741
  enabled: z.ZodOptional<z.ZodBoolean>;
4722
4742
  }, z.core.$strict>>>;
4743
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
4744
+ error: "error";
4745
+ info: "info";
4746
+ warning: "warning";
4747
+ }>>>;
4723
4748
  }, z.core.$strict>>>;
4724
4749
  }, z.core.$strict>>;
4725
4750
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -5653,6 +5678,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
5653
5678
  }, z.core.$strict>>>;
5654
5679
  enabled: z.ZodOptional<z.ZodBoolean>;
5655
5680
  }, z.core.$strict>>>;
5681
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
5682
+ error: "error";
5683
+ info: "info";
5684
+ warning: "warning";
5685
+ }>>>;
5656
5686
  }, z.core.$strict>>>;
5657
5687
  }, z.core.$strict>>;
5658
5688
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -6605,6 +6635,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
6605
6635
  }, z.core.$strict>>>;
6606
6636
  enabled: z.ZodOptional<z.ZodBoolean>;
6607
6637
  }, z.core.$strict>>>;
6638
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
6639
+ error: "error";
6640
+ info: "info";
6641
+ warning: "warning";
6642
+ }>>>;
6608
6643
  }, z.core.$strict>>>;
6609
6644
  }, z.core.$strict>>;
6610
6645
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -7538,6 +7573,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
7538
7573
  }, z.core.$strict>>>;
7539
7574
  enabled: z.ZodOptional<z.ZodBoolean>;
7540
7575
  }, z.core.$strict>>>;
7576
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
7577
+ error: "error";
7578
+ info: "info";
7579
+ warning: "warning";
7580
+ }>>>;
7541
7581
  }, z.core.$strict>>>;
7542
7582
  }, z.core.$strict>>;
7543
7583
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -8492,6 +8532,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
8492
8532
  }, z.core.$strict>>>;
8493
8533
  enabled: z.ZodOptional<z.ZodBoolean>;
8494
8534
  }, z.core.$strict>>>;
8535
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
8536
+ error: "error";
8537
+ info: "info";
8538
+ warning: "warning";
8539
+ }>>>;
8495
8540
  }, z.core.$strict>>>;
8496
8541
  }, z.core.$strict>>;
8497
8542
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -9425,6 +9470,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
9425
9470
  }, z.core.$strict>>>;
9426
9471
  enabled: z.ZodOptional<z.ZodBoolean>;
9427
9472
  }, z.core.$strict>>>;
9473
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
9474
+ error: "error";
9475
+ info: "info";
9476
+ warning: "warning";
9477
+ }>>>;
9428
9478
  }, z.core.$strict>>>;
9429
9479
  }, z.core.$strict>>;
9430
9480
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -10403,6 +10453,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
10403
10453
  }, z.core.$strict>>>;
10404
10454
  enabled: z.ZodOptional<z.ZodBoolean>;
10405
10455
  }, z.core.$strict>>>;
10456
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
10457
+ error: "error";
10458
+ info: "info";
10459
+ warning: "warning";
10460
+ }>>>;
10406
10461
  }, z.core.$strict>>>;
10407
10462
  }, z.core.$strict>>;
10408
10463
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -11336,6 +11391,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
11336
11391
  }, z.core.$strict>>>;
11337
11392
  enabled: z.ZodOptional<z.ZodBoolean>;
11338
11393
  }, z.core.$strict>>>;
11394
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
11395
+ error: "error";
11396
+ info: "info";
11397
+ warning: "warning";
11398
+ }>>>;
11339
11399
  }, z.core.$strict>>>;
11340
11400
  }, z.core.$strict>>;
11341
11401
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -12287,6 +12347,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
12287
12347
  }, z.core.$strict>>>;
12288
12348
  enabled: z.ZodOptional<z.ZodBoolean>;
12289
12349
  }, z.core.$strict>>>;
12350
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
12351
+ error: "error";
12352
+ info: "info";
12353
+ warning: "warning";
12354
+ }>>>;
12290
12355
  }, z.core.$strict>>>;
12291
12356
  }, z.core.$strict>>;
12292
12357
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -13256,6 +13321,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
13256
13321
  }, z.core.$strict>>>;
13257
13322
  enabled: z.ZodOptional<z.ZodBoolean>;
13258
13323
  }, z.core.$strict>>>;
13324
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
13325
+ error: "error";
13326
+ info: "info";
13327
+ warning: "warning";
13328
+ }>>>;
13259
13329
  }, z.core.$strict>>>;
13260
13330
  }, z.core.$strict>>;
13261
13331
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -14189,6 +14259,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
14189
14259
  }, z.core.$strict>>>;
14190
14260
  enabled: z.ZodOptional<z.ZodBoolean>;
14191
14261
  }, z.core.$strict>>>;
14262
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
14263
+ error: "error";
14264
+ info: "info";
14265
+ warning: "warning";
14266
+ }>>>;
14192
14267
  }, z.core.$strict>>>;
14193
14268
  }, z.core.$strict>>;
14194
14269
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -15124,6 +15199,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
15124
15199
  }, z.core.$strict>>>;
15125
15200
  enabled: z.ZodOptional<z.ZodBoolean>;
15126
15201
  }, z.core.$strict>>>;
15202
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
15203
+ error: "error";
15204
+ info: "info";
15205
+ warning: "warning";
15206
+ }>>>;
15127
15207
  }, z.core.$strict>>>;
15128
15208
  }, z.core.$strict>>;
15129
15209
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -16073,6 +16153,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
16073
16153
  }, z.core.$strict>>>;
16074
16154
  enabled: z.ZodOptional<z.ZodBoolean>;
16075
16155
  }, z.core.$strict>>>;
16156
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
16157
+ error: "error";
16158
+ info: "info";
16159
+ warning: "warning";
16160
+ }>>>;
16076
16161
  }, z.core.$strict>>>;
16077
16162
  }, z.core.$strict>>;
16078
16163
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -17037,6 +17122,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
17037
17122
  }, z.core.$strict>>>;
17038
17123
  enabled: z.ZodOptional<z.ZodBoolean>;
17039
17124
  }, z.core.$strict>>>;
17125
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
17126
+ error: "error";
17127
+ info: "info";
17128
+ warning: "warning";
17129
+ }>>>;
17040
17130
  }, z.core.$strict>>>;
17041
17131
  }, z.core.$strict>>;
17042
17132
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -17970,6 +18060,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
17970
18060
  }, z.core.$strict>>>;
17971
18061
  enabled: z.ZodOptional<z.ZodBoolean>;
17972
18062
  }, z.core.$strict>>>;
18063
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
18064
+ error: "error";
18065
+ info: "info";
18066
+ warning: "warning";
18067
+ }>>>;
17973
18068
  }, z.core.$strict>>>;
17974
18069
  }, z.core.$strict>>;
17975
18070
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -18921,6 +19016,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
18921
19016
  }, z.core.$strict>>>;
18922
19017
  enabled: z.ZodOptional<z.ZodBoolean>;
18923
19018
  }, z.core.$strict>>>;
19019
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
19020
+ error: "error";
19021
+ info: "info";
19022
+ warning: "warning";
19023
+ }>>>;
18924
19024
  }, z.core.$strict>>>;
18925
19025
  }, z.core.$strict>>;
18926
19026
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -19866,6 +19966,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
19866
19966
  }, z.core.$strict>>>;
19867
19967
  enabled: z.ZodOptional<z.ZodBoolean>;
19868
19968
  }, z.core.$strict>>>;
19969
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
19970
+ error: "error";
19971
+ info: "info";
19972
+ warning: "warning";
19973
+ }>>>;
19869
19974
  }, z.core.$strict>>>;
19870
19975
  }, z.core.$strict>>;
19871
19976
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -20868,6 +20973,11 @@ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
20868
20973
  }, z.core.$strict>>>;
20869
20974
  enabled: z.ZodOptional<z.ZodBoolean>;
20870
20975
  }, z.core.$strict>>>;
20976
+ severity_overrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
20977
+ error: "error";
20978
+ info: "info";
20979
+ warning: "warning";
20980
+ }>>>;
20871
20981
  }, z.core.$strict>>>;
20872
20982
  }, z.core.$strict>>;
20873
20983
  evaluation: z.ZodOptional<z.ZodObject<{
@@ -35,6 +35,7 @@ export declare const ObjectPanoramaQuerySchema: z.ZodObject<{
35
35
  query_type: z.ZodLiteral<"object_panorama">;
36
36
  object_address: z.ZodOptional<z.ZodString>;
37
37
  filter: z.ZodOptional<z.ZodString>;
38
+ wts_file_path: z.ZodOptional<z.ZodString>;
38
39
  context_network: z.ZodOptional<z.ZodEnum<{
39
40
  testnet: "testnet";
40
41
  mainnet: "mainnet";
@@ -264,6 +265,7 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
264
265
  query_type: z.ZodLiteral<"object_panorama">;
265
266
  object_address: z.ZodOptional<z.ZodString>;
266
267
  filter: z.ZodOptional<z.ZodString>;
268
+ wts_file_path: z.ZodOptional<z.ZodString>;
267
269
  context_network: z.ZodOptional<z.ZodEnum<{
268
270
  testnet: "testnet";
269
271
  mainnet: "mainnet";