@wowok/agent-mcp 3.4.4 → 3.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +3 -3
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/param-disclosure.js +1 -1
- package/dist/composition/plan-run-store.js +1 -0
- package/dist/composition/reflux.js +1 -1
- package/dist/composition/role-bindings.js +1 -0
- package/dist/composition/shape-expand.js +1 -1
- package/dist/composition/supply-chain-emit.js +1 -1
- package/dist/config/judgment.d.ts +13 -25
- package/dist/config/judgment.js +1 -1
- package/dist/config/match-policy-file.js +1 -1
- package/dist/config/rule-engine.d.ts +4 -10
- package/dist/config/rule-engine.js +1 -1
- package/dist/config/template-params.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/capability.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exposure.js +1 -1
- package/dist/harness/forward-roster-preflight.js +1 -0
- package/dist/keeper/detectors.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-operation-face.js +1 -1
- package/dist/knowledge/arbitration-rail-verifier.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +17 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/alloc_audit.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/allocation.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/arb.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/arbitration.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/bridge.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/contact.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/demand.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/graph.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/guard.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/machine.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/oracle.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/order.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/payment.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/permission.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/personal.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/plan.json +153 -33
- package/dist/knowledge/baselines/rules/plan.json.good +153 -33
- package/dist/knowledge/baselines/rules/plan.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/progress.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/proof.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/registrar.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/repository.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/resource.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/reward.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/service.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/treasury.json.good.sha256 +1 -0
- package/dist/knowledge/baselines/rules/util.json.good.sha256 +1 -0
- package/dist/knowledge/builtin-templates.d.ts +1 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/discount-threshold.js +1 -1
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +3 -2
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/knob-docs.js +1 -1
- package/dist/knowledge/machine-topology.js +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/products/alibaba-1688.js +1 -1
- package/dist/knowledge/path-oracle/products/amazon.js +1 -1
- package/dist/knowledge/path-oracle/products/booking-com.js +1 -1
- package/dist/knowledge/path-oracle/products/contra.js +1 -1
- package/dist/knowledge/path-oracle/products/costco.js +1 -1
- package/dist/knowledge/path-oracle/products/duoduo-maicai.js +1 -1
- package/dist/knowledge/path-oracle/products/etsy.js +1 -1
- package/dist/knowledge/path-oracle/products/gamefound.js +1 -1
- package/dist/knowledge/path-oracle/products/gofundme.js +1 -1
- package/dist/knowledge/path-oracle/products/klook.js +1 -1
- package/dist/knowledge/path-oracle/products/ninety-nine-designs.js +1 -1
- package/dist/knowledge/path-oracle/products/pinduoduo-kuaituantuan.js +1 -1
- package/dist/knowledge/path-oracle/products/shansong.js +1 -1
- package/dist/knowledge/path-oracle/products/taobao-presale.js +1 -1
- package/dist/knowledge/path-oracle/products/upwork-catalog.js +1 -1
- package/dist/knowledge/path-oracle/products/upwork.js +1 -1
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/protocol-facts.js +1 -1
- package/dist/knowledge/publish-gate.js +1 -1
- package/dist/knowledge/publish-surface-contract.js +1 -1
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/time-units.js +1 -0
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/migration-planner.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +110 -2
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/boundary-coercion.js +1 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +56 -8
- package/dist/schema/call/order.d.ts +37 -10
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/permission.d.ts +210 -30
- package/dist/schema/call/personal.d.ts +56 -8
- package/dist/schema/call/progress.d.ts +28 -4
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +84 -12
- package/dist/schema/common/index.d.ts +14 -2
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +1 -1
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +168 -24
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +655 -22
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +22 -110
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +4 -0
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/benchmark_migration_operation.schema.json +1 -1
- package/dist/schemas/evaluation_operation.schema.json +1 -1
- package/dist/schemas/goal_operation.schema.json +1 -1
- package/dist/schemas/guard_rebind_replacement.schema.json +1 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +1 -1
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
- package/dist/schemas/onchain_operations_contact.schema.json +1 -1
- package/dist/schemas/onchain_operations_demand.schema.json +1 -1
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +1 -1
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +1 -1
- package/dist/schemas/onchain_operations_personal.schema.json +1 -1
- package/dist/schemas/onchain_operations_progress.schema.json +1 -1
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +1 -1
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +1 -1
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1
- package/dist/schemas/persona_operation.schema.json +1 -1
- package/dist/schemas/time_convert.schema.json +1 -0
- package/dist/schemas/wip_file.schema.json +1 -1
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/fund-rail-recipe.js +1 -1
- package/dist/tools/handlers/guard-rebind-replacement.js +1 -0
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/mark-namespace.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/settle-sweep.js +1 -1
- package/dist/tools/handlers/time-convert.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/local.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/wip-verify-ledger.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +6 -5
|
@@ -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';const ANTISPAM_SOP='\x20⚠️\x20ANTI-SPAM\x20(by\x20design):\x20your\x20FIRST\x20message\x20to\x20a\x20stranger\x20IS\x20delivered,\x20but\x20follow-ups\x20are\x20rejected\x20until\x20the\x20recipient\x20replies\x20once\x20—\x20a\x20single\x20reply\x20re-opens\x20the\x20thread.\x20Adding\x20the\x20recipient\x20to\x20Contact/friends\x20does\x20NOT\x20exempt\x20this\x20(server-side\x20permission,\x20independent\x20of\x20contacts).\x20Merchant-push\x20SOP:\x20have\x20the\x20buyer\x20send\x20the\x20first\x20message,\x20then\x20reply\x20in\x20that\x20thread.';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 ReadReceiptSchema=z['object']({'account':z['string']()['describe']('Account\x20the\x20watermark\x20belongs\x20to'),'peer':z['string']()['describe']('Conversation\x20peer'),'read_through_seq':z['number']()['nullable']()['describe']('Highest\x20conversation\x20sequence\x20(leafIndex)\x20this\x20account\x20has\x20marked\x20read\x20locally.\x20null\x20=\x20nothing\x20marked\x20read\x20yet'),'read_at':z['number']()['nullable']()['describe']('Local\x20timestamp\x20(ms)\x20of\x20the\x20last\x20watermark\x20advance;\x20null\x20when\x20no\x20watermark\x20exists'),'peer_read_through_seq':z['null']()['describe']('ALWAYS\x20null:\x20the\x20network\x20exposes\x20no\x20peer\x20read-receipt\x20primitive.\x20Do\x20NOT\x20read\x20this\x20as\x20\x27not\x20read\x27\x20—\x20it\x20is\x20UNKNOWN,\x20never\x20reported\x20as\x20delivered\x20or\x20read'),'peer_receipt_available':z['literal'](![])['describe']('ALWAYS\x20false:\x20no\x20peer\x20read-receipt\x20primitive\x20exists\x20on\x20the\x20messenger\x20network'),'scope':z['literal']('local-session')['describe']('Scope\x20of\x20the\x20local\x20watermark:\x20this\x20MCP\x20server\x20session\x20only'),'disclosure':z['string']()['describe']('Honest\x20statement\x20of\x20why\x20the\x20peer\x20side\x20is\x20unknown\x20(server\x20confirmation\x20!=\x20read;\x20viewedAt\x20is\x20local-only)')})['describe']('Per-conversation\x20read\x20watermark.\x20Local\x20to\x20this\x20account/session;\x20the\x20peer\x27s\x20read\x20state\x20is\x20unavailable\x20by\x20design');export const MessageGapSchema=z['object']({'from_seq':z['number']()['describe']('First\x20missing\x20conversation\x20sequence\x20number'),'to_seq':z['number']()['describe']('Last\x20missing\x20conversation\x20sequence\x20number'),'missing_count':z['number']()['describe']('Total\x20missing\x20sequence\x20numbers\x20inside\x20the\x20scanned\x20window'),'reason':z['string']()['describe']('Why\x20continuity\x20cannot\x20be\x20assumed')})['describe']('Detected\x20message-sequence\x20gap.\x20A\x20result\x20carrying\x20a\x20gap\x20is\x20DEGRADED\x20—\x20do\x20not\x20treat\x20it\x20as\x20a\x20continuous\x20stream');export const IncrementalMessagesResultSchema=z['object']({'mode':z['literal']('incremental')['describe']('Incremental\x20(cursor)\x20read,\x20as\x20opposed\x20to\x20the\x20legacy\x20bare-array\x20pull'),'account':z['string']()['describe']('Account\x20read\x20from\x20(resolved\x20address)'),'peer':z['string']()['describe']('Conversation\x20peer\x20this\x20cursor\x20is\x20scoped\x20to'),'after':z['number']()['describe']('Cursor\x20supplied\x20by\x20the\x20caller;\x20returned\x20messages\x20all\x20have\x20seq\x20>\x20after'),'messages':z['array'](MessageSchema)['describe']('Messages\x20with\x20seq\x20>\x20after,\x20ascending,\x20at\x20most\x20`limit`\x20of\x20them'),'highest_seq':z['number']()['nullable']()['describe']('Highest\x20seq\x20returned\x20in\x20this\x20page\x20—\x20persist\x20it\x20and\x20pass\x20it\x20as\x20`after`\x20for\x20the\x20next\x20page.\x20null\x20=\x20no\x20new\x20messages'),'latest_seq':z['number']()['nullable']()['describe']('Highest\x20seq\x20retained\x20locally\x20for\x20this\x20conversation\x20(compare\x20with\x20after\x20to\x20see\x20what\x20is\x20pending)'),'has_more':z['boolean']()['describe']('True\x20when\x20further\x20messages\x20beyond\x20highest_seq\x20are\x20already\x20available\x20locally'),'gap':MessageGapSchema['nullable']()['describe']('First\x20detected\x20sequence\x20gap,\x20or\x20null\x20when\x20this\x20page\x20is\x20continuous'),'degraded':z['boolean']()['describe']('True\x20when\x20the\x20result\x20is\x20discontinuous\x20or\x20incomplete\x20in\x20any\x20way\x20—\x20never\x20present\x20a\x20degraded\x20page\x20as\x20complete'),'degraded_reasons':z['array'](z['string']())['describe']('Every\x20reason\x20the\x20result\x20is\x20marked\x20degraded\x20(empty\x20when\x20degraded=false)'),'read_receipt':ReadReceiptSchema['describe']('Local\x20read\x20watermark\x20for\x20this\x20conversation\x20(peer\x20watermark\x20unavailable\x20by\x20design)')})['describe']('Incremental\x20messenger\x20read\x20result\x20with\x20an\x20explicit\x20cursor,\x20gap\x20detection,\x20and\x20read\x20watermark');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'),'sealed_available':z['boolean']()['nullable']()['describe']('KB-03\x20evidence-tier\x20PRE-CHECK\x20(fail-open,\x20never\x20interrupts\x20generation):\x20whether\x20the\x20third-party-verifiable\x20evidence\x20tier\x20is\x20reachable\x20in\x20this\x20environment.\x20'+'Probed\x20by\x20running\x20the\x20guarded\x20verifier\x20against\x20the\x20freshly\x20generated\x20packet\x20and\x20reading\x20its\x20on-chain\x20key-book\x20anchor\x20verdict\x20(serverKeyAnchor.verified).\x20'+'true\x20=\x20after\x20sign_wts\x20the\x20packet\x20can\x20verify\x20as\x20third-party-verifiable\x20evidence.\x20'+'false\x20=\x20the\x20key\x20book\x20does\x20NOT\x20match\x20its\x20on-chain\x20anchor\x20—\x20a\x20WTS\x20is\x20a\x20private\x20conversation\x20record,\x20NOT\x20third-party-verifiable\x20evidence;\x20promise\x20it\x20only\x20as\x20a\x20private\x20record\x20and\x20use\x20proof_message\x20for\x20anything\x20that\x20must\x20hold\x20chain-side.\x20'+'null\x20=\x20the\x20probe\x20could\x20not\x20score\x20the\x20anchor\x20(probe\x20failed,\x20or\x20the\x20packet\x20carried\x20no\x20server-attested\x20messages)\x20—\x20the\x20tier\x20is\x20UNVERIFIED,\x20not\x20denied;\x20re-probe\x20with\x20verify_wts\x20after\x20sign_wts.'),'sealed_available_note':z['string']()['nullable']()['describe']('Human-readable\x20consequence\x20of\x20sealed_available:\x20the\x20tier-available\x20confirmation\x20when\x20true;\x20the\x20\x27WTS\x20is\x20a\x20private\x20conversation\x20record,\x20NOT\x20third-party-verifiable\x20evidence\x27\x20warning\x20when\x20false;\x20the\x20unverified-tier\x20caveat\x20when\x20null.')})['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.'),'serverKeysOfficialNetwork':z['string']()['optional']()['describe']('The\x20network\x20partition\x20(\x27mainnet\x27\x20|\x20\x27testnet\x27\x20|\x20\x27localnet\x27)\x20the\x20official-key\x20verdict\x20was\x20scored\x20in\x20—\x20present\x20only\x20when\x20serverKeysOfficial\x20is\x20true.\x20A\x20verdict\x20is\x20evidence\x20for\x20THIS\x20partition\x20only;\x20keys\x20registered\x20under\x20another\x20partition\x20fail\x20the\x20check\x20as\x20\x27key\x20unknown\x20in\x20this\x20network\x27.'),'network_caveat':z['string']()['optional']()['describe']('Advisory\x20block\x20on\x20official-key\x20verdicts:\x20the\x20partition\x20the\x20verdict\x20binds\x20vs\x20the\x20served\x20network,\x20and\x20the\x20mainnet\x20consumer\x20rule\x20—\x20for\x20a\x20MAINNET\x20case\x20the\x20ONLY\x20network-level\x20truth\x20is\x20an\x20on-chain\x20Proof\x20anchor\x20(proof_message\x20re-anchored\x20on\x20mainnet);\x20a\x20file-level\x20official\x20verdict\x20from\x20a\x20non-mainnet\x20partition\x20never\x20grounds\x20a\x20mainnet\x20ruling.')})['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.\x20Guard\x20entries\x20are\x20a\x20PROGRAMMABLE\x20INBOUND\x20VERIFICATION\x20surface,\x20not\x20merely\x20anti-spam:\x20a\x20sender\x20is\x20admitted\x20only\x20when\x20their\x20passport\x20evaluates\x20TRUE\x20against\x20that\x20on-chain\x20Guard\x27s\x20predicate\x20tree,\x20checked\x20on-chain\x20at\x20delivery\x20time\x20(MAINNET).\x20Any\x20chain-evaluable\x20business\x20condition\x20qualifies\x20—\x20counterparty\x20whitelist,\x20progress.node\x20stage,\x20proof.signer/proof.time\x20evidence,\x20balance/holding,\x20permission-index\x20membership,\x20time_until\x20windows,\x20two-level\x20AND/OR.\x20Entries\x20are\x20OR-ed\x20(any\x20passing\x20passport\x20admits)\x20and\x20capped\x20at\x2010\x20—\x20compose\x20ONE\x20guard\x20per\x20verification\x20dimension,\x20test\x20each\x20with\x20gen_passport,\x20then\x20add.\x20Two\x20semantics\x20to\x20state\x20to\x20the\x20user:\x20the\x20list\x20is\x20ACCOUNT-LEVEL\x20(not\x20per-thread),\x20and\x20Guard\x20objects\x20are\x20IMMUTABLE\x20(change\x20a\x20condition\x20by\x20creating\x20a\x20NEW\x20guard\x20and\x20swapping\x20the\x20entry).\x20Adding\x20ANY\x20guard\x20also\x20disables\x20the\x20stranger\x20channel\x20server-side\x20—\x20from\x20then\x20on\x20every\x20non-friend\x20needs\x20a\x20passport');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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20Messenger\x20registers\x20ACCOUNTS.\x20A\x20Contact\x20object\x20id\x20IS\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20the\x20messenger\x20address\x20stored\x20inside\x20it;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named'+ANTISPAM_SOP),'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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20Messenger\x20registers\x20ACCOUNTS.\x20A\x20Contact\x20object\x20id\x20IS\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20the\x20messenger\x20address\x20stored\x20inside\x20it;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named'+ANTISPAM_SOP),'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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20—\x20the\x20merchant\x20account\x20AS\x20RECORDED\x20IN\x20the\x20Contact\x20(its\x20stored\x20address\x20field).\x20A\x20Contact\x20object\x20id\x20is\x20ALSO\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20that\x20stored\x20address;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named.\x20Can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'+ANTISPAM_SOP),'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\x20—\x20the\x20envelope\x20then\x20discloses\x20the\x20dropped\x20names\x20under\x20result.fields_ignored\x20(content\x20wins;\x20only\x20ONE\x20of\x20content/fields\x20is\x20ever\x20delivered)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict']()['describe']('Send\x20the\x20buyer\x27s\x20required-info\x20confirmation\x20to\x20the\x20merchant\x20(E2EE,\x20assembles\x20from\x20the\x20SENDER\x27s\x20LOCAL\x20private\x20info\x20—\x20nothing\x20is\x20fetched\x20from\x20the\x20network).\x20'+'PREREQUISITE:\x20the\x20fields\x20named\x20in\x20`fields`\x20must\x20already\x20be\x20pre-stored\x20on\x20THIS\x20device\x20in\x20your\x20LocalInfo\x20(private\x20local\x20storage:\x20phone\x20numbers,\x20delivery/shipping\x20addresses,\x20contact\x20entries)\x20—\x20pre-store\x20them\x20first\x20(local\x20info\x20save\x20in\x20the\x20account\x20flow),\x20then\x20list\x20the\x20exact\x20names\x20here.\x20'+'Inventory\x20check:\x20run\x20query_toolkit\x20query_type=\x27local_info_list\x27\x20FIRST\x20to\x20see\x20which\x20fields\x20exist\x20locally\x20and\x20their\x20exact\x20names\x20—\x20a\x20field\x20name\x20that\x20is\x20not\x20in\x20that\x20list\x20is\x20not\x20sendable\x20and\x20fails\x20the\x20assembly.\x20'+'Omit\x20`fields`\x20to\x20send\x20ALL\x20stored\x20fields;\x20pass\x20`content`\x20to\x20send\x20explicit\x20plaintext\x20instead\x20(mutually\x20exclusive\x20with\x20fields).'),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict']()['describe']('LOCAL-ONLY\x20message\x20read:\x20returns\x20messages\x20from\x20the\x20local\x20cache/registry\x20and\x20NEVER\x20contacts\x20the\x20messenger\x20server,\x20and\x20never\x20advances\x20the\x20pull\x20cursor\x20(contract\x20R2-09).\x20Messages\x20fetched\x20by\x20others\x20appear\x20only\x20after\x20pull_messages\x20has\x20synced\x20them\x20—\x20an\x20empty\x20result\x20usually\x20means\x20a\x20cache\x20miss:\x20pull\x20first,\x20then\x20watch\x20again'),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'),'network':EntrypointSchema['optional']()['describe']('Network\x20partition\x20you\x20assert\x20this\x20evidence\x20belongs\x20to\x20(mainnet/testnet/localnet).\x20The\x20official-key\x20verdict\x20is\x20scored\x20in\x20the\x20keybook\x27s\x20own\x20anchor\x20partition\x20and\x20stays\x20evidence\x20for\x20THAT\x20partition\x20only\x20—\x20declaring\x20it\x20here\x20just\x20pins\x20the\x20comparison\x20and\x20the\x20receipt\x27s\x20wording.\x20Omit\x20to\x20compare\x20against\x20the\x20process-pinned\x20network.')})['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\x20that\x20PROOF\x20reads\x20from\x20—\x20must\x20be\x20the\x20SENDER\x20account\x20that\x20sent\x20the\x20message\x20(the\x20sent\x20message\x20lives\x20only\x20in\x20the\x20sender\x27s\x20local\x20storage;\x20querying\x20from\x20the\x20recipient\x27s\x20or\x20any\x20other\x20account\x20returns\x20\x27Message\x20not\x20found\x27).\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']('mark_conversation_read'),'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'),'through_seq':z['number']()['int']()['min'](0x0)['optional']()['describe']('Conversation\x20sequence\x20(leafIndex)\x20to\x20mark\x20read\x20THROUGH,\x20inclusive.\x20Ignored\x20if\x20lower\x20than\x20the\x20current\x20watermark\x20(monotonic).\x20Omit\x20to\x20use\x20the\x20highest\x20RECEIVED\x20seq\x20retained\x20locally.\x20Values\x20beyond\x20the\x20highest\x20received\x20seq\x20are\x20capped\x20and\x20reported\x20(capped=true)')})['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;\x20in\x20incremental\x20mode\x20(after\x20set)\x20this\x20is\x20the\x20PAGE\x20SIZE\x20of\x20returned\x20messages'),'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)'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Conversation\x20peer.\x20REQUIRED\x20in\x20incremental\x20mode\x20(when\x20`after`\x20is\x20set)\x20—\x20the\x20cursor\x20is\x20conversation-scoped\x20because\x20the\x20sequence\x20(leafIndex)\x20is\x20per\x20conversation'),'after':z['number']()['int']()['min'](0x0)['optional']()['describe']('Incremental\x20cursor:\x20return\x20only\x20messages\x20of\x20this\x20conversation\x20whose\x20sequence\x20(leafIndex)\x20is\x20strictly\x20GREATER\x20than\x20this\x20value,\x20ascending,\x20and\x20return\x20highest_seq/has_more\x20plus\x20gap\x20detection.\x20Omitting\x20`after`\x20keeps\x20the\x20legacy\x20bare-array\x20behavior.\x20Do\x20NOT\x20advance\x20this\x20cursor\x20on\x20watch_messages\x20—\x20watch\x20is\x20a\x20local\x20query,\x20not\x20a\x20consume')})['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'),'fields_ignored':z['array'](z['string']())['optional']()['describe']('When\x20explicit\x20content\x20was\x20supplied\x20alongside\x20`fields`:\x20the\x20requested\x20fields\x20that\x20were\x20NOT\x20sent\x20(content\x20takes\x20precedence).\x20Empty/absent\x20means\x20every\x20assembled\x20field\x20was\x20delivered'),'note':z['string']()['optional']()['describe']('Mechanism\x20disclosure\x20attached\x20when\x20fields\x20were\x20ignored\x20due\x20to\x20content\x20precedence')})['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']('mark_conversation_read'),'result':ReadReceiptSchema['extend']({'marked_count':z['number']()['describe']('Received\x20messages\x20locally\x20marked\x20as\x20viewed\x20by\x20this\x20call\x20(viewedAt\x20update)'),'capped':z['boolean']()['describe']('True\x20when\x20through_seq\x20exceeded\x20the\x20highest\x20received\x20seq\x20retained\x20locally\x20and\x20the\x20watermark\x20was\x20capped\x20to\x20it'),'requested_through_seq':z['number']()['nullable']()['describe']('through_seq\x20the\x20caller\x20asked\x20for;\x20null\x20when\x20it\x20was\x20omitted')})['describe']('Local\x20read\x20watermark\x20result\x20(peer\x20watermark\x20unavailable\x20by\x20design)')}),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'),IncrementalMessagesResultSchema['describe']('Incremental\x20mode\x20(`after`\x20set):\x20cursor\x20page\x20with\x20highest_seq/has_more/gap/read\x20watermark')])}),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';const ANTISPAM_SOP='\x20⚠️\x20ANTI-SPAM\x20(by\x20design):\x20your\x20FIRST\x20message\x20to\x20a\x20stranger\x20IS\x20delivered,\x20but\x20follow-ups\x20are\x20rejected\x20until\x20the\x20recipient\x20replies\x20once\x20—\x20a\x20single\x20reply\x20re-opens\x20the\x20thread.\x20Adding\x20the\x20recipient\x20to\x20Contact/friends\x20does\x20NOT\x20exempt\x20this\x20(server-side\x20permission,\x20independent\x20of\x20contacts).\x20Merchant-push\x20SOP:\x20have\x20the\x20buyer\x20send\x20the\x20first\x20message,\x20then\x20reply\x20in\x20that\x20thread.';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 ReadReceiptSchema=z['object']({'account':z['string']()['describe']('Account\x20the\x20watermark\x20belongs\x20to'),'peer':z['string']()['describe']('Conversation\x20peer'),'read_through_seq':z['number']()['nullable']()['describe']('Highest\x20conversation\x20sequence\x20(leafIndex)\x20this\x20account\x20has\x20marked\x20read\x20locally.\x20null\x20=\x20nothing\x20marked\x20read\x20yet'),'read_at':z['number']()['nullable']()['describe']('Local\x20timestamp\x20(ms)\x20of\x20the\x20last\x20watermark\x20advance;\x20null\x20when\x20no\x20watermark\x20exists'),'peer_read_through_seq':z['null']()['describe']('ALWAYS\x20null:\x20the\x20network\x20exposes\x20no\x20peer\x20read-receipt\x20primitive.\x20Do\x20NOT\x20read\x20this\x20as\x20\x27not\x20read\x27\x20—\x20it\x20is\x20UNKNOWN,\x20never\x20reported\x20as\x20delivered\x20or\x20read'),'peer_receipt_available':z['literal'](![])['describe']('ALWAYS\x20false:\x20no\x20peer\x20read-receipt\x20primitive\x20exists\x20on\x20the\x20messenger\x20network'),'scope':z['literal']('local-session')['describe']('Scope\x20of\x20the\x20local\x20watermark:\x20this\x20MCP\x20server\x20session\x20only'),'disclosure':z['string']()['describe']('Honest\x20statement\x20of\x20why\x20the\x20peer\x20side\x20is\x20unknown\x20(server\x20confirmation\x20!=\x20read;\x20viewedAt\x20is\x20local-only)')})['describe']('Per-conversation\x20read\x20watermark.\x20Local\x20to\x20this\x20account/session;\x20the\x20peer\x27s\x20read\x20state\x20is\x20unavailable\x20by\x20design');export const MessageGapSchema=z['object']({'from_seq':z['number']()['describe']('First\x20missing\x20conversation\x20sequence\x20number'),'to_seq':z['number']()['describe']('Last\x20missing\x20conversation\x20sequence\x20number'),'missing_count':z['number']()['describe']('Total\x20missing\x20sequence\x20numbers\x20inside\x20the\x20scanned\x20window'),'reason':z['string']()['describe']('Why\x20continuity\x20cannot\x20be\x20assumed')})['describe']('Detected\x20message-sequence\x20gap.\x20A\x20result\x20carrying\x20a\x20gap\x20is\x20DEGRADED\x20—\x20do\x20not\x20treat\x20it\x20as\x20a\x20continuous\x20stream');export const IncrementalMessagesResultSchema=z['object']({'mode':z['literal']('incremental')['describe']('Incremental\x20(cursor)\x20read,\x20as\x20opposed\x20to\x20the\x20legacy\x20bare-array\x20pull'),'account':z['string']()['describe']('Account\x20read\x20from\x20(resolved\x20address)'),'peer':z['string']()['describe']('Conversation\x20peer\x20this\x20cursor\x20is\x20scoped\x20to'),'after':z['number']()['describe']('Cursor\x20supplied\x20by\x20the\x20caller;\x20returned\x20messages\x20all\x20have\x20seq\x20>\x20after'),'messages':z['array'](MessageSchema)['describe']('Messages\x20with\x20seq\x20>\x20after,\x20ascending,\x20at\x20most\x20`limit`\x20of\x20them'),'highest_seq':z['number']()['nullable']()['describe']('Highest\x20seq\x20returned\x20in\x20this\x20page\x20—\x20persist\x20it\x20and\x20pass\x20it\x20as\x20`after`\x20for\x20the\x20next\x20page.\x20null\x20=\x20no\x20new\x20messages'),'latest_seq':z['number']()['nullable']()['describe']('Highest\x20seq\x20retained\x20locally\x20for\x20this\x20conversation\x20(compare\x20with\x20after\x20to\x20see\x20what\x20is\x20pending)'),'has_more':z['boolean']()['describe']('True\x20when\x20further\x20messages\x20beyond\x20highest_seq\x20are\x20already\x20available\x20locally'),'gap':MessageGapSchema['nullable']()['describe']('First\x20detected\x20sequence\x20gap,\x20or\x20null\x20when\x20this\x20page\x20is\x20continuous'),'degraded':z['boolean']()['describe']('True\x20when\x20the\x20result\x20is\x20discontinuous\x20or\x20incomplete\x20in\x20any\x20way\x20—\x20never\x20present\x20a\x20degraded\x20page\x20as\x20complete'),'degraded_reasons':z['array'](z['string']())['describe']('Every\x20reason\x20the\x20result\x20is\x20marked\x20degraded\x20(empty\x20when\x20degraded=false)'),'read_receipt':ReadReceiptSchema['describe']('Local\x20read\x20watermark\x20for\x20this\x20conversation\x20(peer\x20watermark\x20unavailable\x20by\x20design)')})['describe']('Incremental\x20messenger\x20read\x20result\x20with\x20an\x20explicit\x20cursor,\x20gap\x20detection,\x20and\x20read\x20watermark');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'),'sealed_available':z['boolean']()['nullable']()['describe']('KB-03\x20evidence-tier\x20PRE-CHECK\x20(fail-open,\x20never\x20interrupts\x20generation):\x20whether\x20the\x20third-party-verifiable\x20evidence\x20tier\x20is\x20reachable\x20in\x20this\x20environment.\x20'+'Probed\x20by\x20running\x20the\x20guarded\x20verifier\x20against\x20the\x20freshly\x20generated\x20packet\x20and\x20reading\x20its\x20on-chain\x20key-book\x20anchor\x20verdict\x20(serverKeyAnchor.verified).\x20'+'true\x20=\x20after\x20sign_wts\x20the\x20packet\x20can\x20verify\x20as\x20third-party-verifiable\x20evidence.\x20'+'false\x20=\x20the\x20key\x20book\x20does\x20NOT\x20match\x20its\x20on-chain\x20anchor\x20—\x20a\x20WTS\x20is\x20a\x20private\x20conversation\x20record,\x20NOT\x20third-party-verifiable\x20evidence;\x20promise\x20it\x20only\x20as\x20a\x20private\x20record\x20and\x20use\x20proof_message\x20for\x20anything\x20that\x20must\x20hold\x20chain-side.\x20'+'null\x20=\x20the\x20probe\x20could\x20not\x20score\x20the\x20anchor\x20(probe\x20failed,\x20or\x20the\x20packet\x20carried\x20no\x20server-attested\x20messages)\x20—\x20the\x20tier\x20is\x20UNVERIFIED,\x20not\x20denied;\x20re-probe\x20with\x20verify_wts\x20after\x20sign_wts.'),'sealed_available_note':z['string']()['nullable']()['describe']('Human-readable\x20consequence\x20of\x20sealed_available:\x20the\x20tier-available\x20confirmation\x20when\x20true;\x20the\x20\x27WTS\x20is\x20a\x20private\x20conversation\x20record,\x20NOT\x20third-party-verifiable\x20evidence\x27\x20warning\x20when\x20false;\x20the\x20unverified-tier\x20caveat\x20when\x20null.')})['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.'),'serverKeysOfficialNetwork':z['string']()['optional']()['describe']('The\x20network\x20partition\x20(\x27mainnet\x27\x20|\x20\x27testnet\x27\x20|\x20\x27localnet\x27)\x20the\x20official-key\x20verdict\x20was\x20scored\x20in\x20—\x20present\x20only\x20when\x20serverKeysOfficial\x20is\x20true.\x20A\x20verdict\x20is\x20evidence\x20for\x20THIS\x20partition\x20only;\x20keys\x20registered\x20under\x20another\x20partition\x20fail\x20the\x20check\x20as\x20\x27key\x20unknown\x20in\x20this\x20network\x27.'),'network_caveat':z['string']()['optional']()['describe']('Advisory\x20block\x20on\x20official-key\x20verdicts:\x20the\x20partition\x20the\x20verdict\x20binds\x20vs\x20the\x20served\x20network,\x20and\x20the\x20mainnet\x20consumer\x20rule\x20—\x20for\x20a\x20MAINNET\x20case\x20the\x20ONLY\x20network-level\x20truth\x20is\x20an\x20on-chain\x20Proof\x20anchor\x20(proof_message\x20re-anchored\x20on\x20mainnet);\x20a\x20file-level\x20official\x20verdict\x20from\x20a\x20non-mainnet\x20partition\x20never\x20grounds\x20a\x20mainnet\x20ruling.')})['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.\x20Guard\x20entries\x20are\x20a\x20PROGRAMMABLE\x20INBOUND\x20VERIFICATION\x20surface,\x20not\x20merely\x20anti-spam:\x20a\x20sender\x20is\x20admitted\x20only\x20when\x20their\x20passport\x20evaluates\x20TRUE\x20against\x20that\x20on-chain\x20Guard\x27s\x20predicate\x20tree,\x20checked\x20on-chain\x20at\x20delivery\x20time\x20(MAINNET).\x20Any\x20chain-evaluable\x20business\x20condition\x20qualifies\x20—\x20counterparty\x20whitelist,\x20progress.node\x20stage,\x20proof.signer/proof.time\x20evidence,\x20balance/holding,\x20permission-index\x20membership,\x20time_until\x20windows,\x20two-level\x20AND/OR.\x20ORDER-PARTY\x20ADMISSION\x20(D6,\x20triage\x20261109):\x20for\x20storefront\x20merchants\x20the\x20canonical\x20first\x20entry\x20is\x20tpl_messenger_guard_order_party\x20—\x20the\x20sender\x20presents\x20their\x20Order\x20as\x20the\x20passport\x20submission\x20and\x20is\x20admitted\x20when\x20Signer\x20==\x20order.owner\x20AND\x20order.service\x20==\x20the\x20storefront\x20Service\x20(buyer\x20leg),\x20or\x20presents\x20the\x20Service\x27s\x20Permission\x20(merchant\x20leg,\x20the\x20dynamic\x20permission.owner/admin\x20idiom\x20—\x20there\x20is\x20NO\x20service.owner\x20query),\x20with\x20an\x20optional\x20explicit\x20allowlist;\x20it\x20admits\x20the\x20order\x20counterparties\x20WITHOUT\x20re-opening\x20the\x20stranger\x20channel\x20(fail-closed\x20for\x20everyone\x20else).\x20Entries\x20are\x20OR-ed\x20(any\x20passing\x20passport\x20admits)\x20and\x20capped\x20at\x2010\x20—\x20compose\x20ONE\x20guard\x20per\x20verification\x20dimension,\x20test\x20each\x20with\x20gen_passport,\x20then\x20add.\x20Two\x20semantics\x20to\x20state\x20to\x20the\x20user:\x20the\x20list\x20is\x20ACCOUNT-LEVEL\x20(not\x20per-thread),\x20and\x20Guard\x20objects\x20are\x20IMMUTABLE\x20(change\x20a\x20condition\x20by\x20creating\x20a\x20NEW\x20guard\x20and\x20swapping\x20the\x20entry).\x20Adding\x20ANY\x20guard\x20also\x20disables\x20the\x20stranger\x20channel\x20server-side\x20—\x20from\x20then\x20on\x20every\x20non-friend\x20needs\x20a\x20passport');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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20Messenger\x20registers\x20ACCOUNTS.\x20A\x20Contact\x20object\x20id\x20IS\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20the\x20messenger\x20address\x20stored\x20inside\x20it;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named'+ANTISPAM_SOP),'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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20Messenger\x20registers\x20ACCOUNTS.\x20A\x20Contact\x20object\x20id\x20IS\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20the\x20messenger\x20address\x20stored\x20inside\x20it;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named'+ANTISPAM_SOP),'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\x20ACCOUNT\x20address\x20or\x20account/mark\x20name\x20—\x20the\x20merchant\x20account\x20AS\x20RECORDED\x20IN\x20the\x20Contact\x20(its\x20stored\x20address\x20field).\x20A\x20Contact\x20object\x20id\x20is\x20ALSO\x20accepted\x20and\x20auto-resolved\x20on-chain\x20to\x20that\x20stored\x20address;\x20any\x20OTHER\x20on-chain\x20object\x20address\x20is\x20rejected\x20locally\x20with\x20the\x20object\x20type\x20named.\x20Can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'+ANTISPAM_SOP),'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\x20—\x20the\x20envelope\x20then\x20discloses\x20the\x20dropped\x20names\x20under\x20result.fields_ignored\x20(content\x20wins;\x20only\x20ONE\x20of\x20content/fields\x20is\x20ever\x20delivered)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict']()['describe']('Send\x20the\x20buyer\x27s\x20required-info\x20confirmation\x20to\x20the\x20merchant\x20(E2EE,\x20assembles\x20from\x20the\x20SENDER\x27s\x20LOCAL\x20private\x20info\x20—\x20nothing\x20is\x20fetched\x20from\x20the\x20network).\x20'+'PREREQUISITE:\x20the\x20fields\x20named\x20in\x20`fields`\x20must\x20already\x20be\x20pre-stored\x20on\x20THIS\x20device\x20in\x20your\x20LocalInfo\x20(private\x20local\x20storage:\x20phone\x20numbers,\x20delivery/shipping\x20addresses,\x20contact\x20entries)\x20—\x20pre-store\x20them\x20first\x20(local\x20info\x20save\x20in\x20the\x20account\x20flow),\x20then\x20list\x20the\x20exact\x20names\x20here.\x20'+'Inventory\x20check:\x20run\x20query_toolkit\x20query_type=\x27local_info_list\x27\x20FIRST\x20to\x20see\x20which\x20fields\x20exist\x20locally\x20and\x20their\x20exact\x20names\x20—\x20a\x20field\x20name\x20that\x20is\x20not\x20in\x20that\x20list\x20is\x20not\x20sendable\x20and\x20fails\x20the\x20assembly.\x20'+'Omit\x20`fields`\x20to\x20send\x20ALL\x20stored\x20fields;\x20pass\x20`content`\x20to\x20send\x20explicit\x20plaintext\x20instead\x20(mutually\x20exclusive\x20with\x20fields).'),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict']()['describe']('LOCAL-ONLY\x20message\x20read:\x20returns\x20messages\x20from\x20the\x20local\x20cache/registry\x20and\x20NEVER\x20contacts\x20the\x20messenger\x20server,\x20and\x20never\x20advances\x20the\x20pull\x20cursor\x20(contract\x20R2-09).\x20Messages\x20fetched\x20by\x20others\x20appear\x20only\x20after\x20pull_messages\x20has\x20synced\x20them\x20—\x20an\x20empty\x20result\x20usually\x20means\x20a\x20cache\x20miss:\x20pull\x20first,\x20then\x20watch\x20again'),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'),'network':EntrypointSchema['optional']()['describe']('Network\x20partition\x20you\x20assert\x20this\x20evidence\x20belongs\x20to\x20(mainnet/testnet/localnet).\x20The\x20official-key\x20verdict\x20is\x20scored\x20in\x20the\x20keybook\x27s\x20own\x20anchor\x20partition\x20and\x20stays\x20evidence\x20for\x20THAT\x20partition\x20only\x20—\x20declaring\x20it\x20here\x20just\x20pins\x20the\x20comparison\x20and\x20the\x20receipt\x27s\x20wording.\x20Omit\x20to\x20compare\x20against\x20the\x20process-pinned\x20network.')})['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\x20that\x20PROOF\x20reads\x20from\x20—\x20must\x20be\x20the\x20SENDER\x20account\x20that\x20sent\x20the\x20message\x20(the\x20sent\x20message\x20lives\x20only\x20in\x20the\x20sender\x27s\x20local\x20storage;\x20querying\x20from\x20the\x20recipient\x27s\x20or\x20any\x20other\x20account\x20returns\x20\x27Message\x20not\x20found\x27).\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']('mark_conversation_read'),'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'),'through_seq':z['number']()['int']()['min'](0x0)['optional']()['describe']('Conversation\x20sequence\x20(leafIndex)\x20to\x20mark\x20read\x20THROUGH,\x20inclusive.\x20Ignored\x20if\x20lower\x20than\x20the\x20current\x20watermark\x20(monotonic).\x20Omit\x20to\x20use\x20the\x20highest\x20RECEIVED\x20seq\x20retained\x20locally.\x20Values\x20beyond\x20the\x20highest\x20received\x20seq\x20are\x20capped\x20and\x20reported\x20(capped=true)')})['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;\x20in\x20incremental\x20mode\x20(after\x20set)\x20this\x20is\x20the\x20PAGE\x20SIZE\x20of\x20returned\x20messages'),'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)'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Conversation\x20peer.\x20REQUIRED\x20in\x20incremental\x20mode\x20(when\x20`after`\x20is\x20set)\x20—\x20the\x20cursor\x20is\x20conversation-scoped\x20because\x20the\x20sequence\x20(leafIndex)\x20is\x20per\x20conversation'),'after':z['number']()['int']()['min'](0x0)['optional']()['describe']('Incremental\x20cursor:\x20return\x20only\x20messages\x20of\x20this\x20conversation\x20whose\x20sequence\x20(leafIndex)\x20is\x20strictly\x20GREATER\x20than\x20this\x20value,\x20ascending,\x20and\x20return\x20highest_seq/has_more\x20plus\x20gap\x20detection.\x20Omitting\x20`after`\x20keeps\x20the\x20legacy\x20bare-array\x20behavior.\x20Do\x20NOT\x20advance\x20this\x20cursor\x20on\x20watch_messages\x20—\x20watch\x20is\x20a\x20local\x20query,\x20not\x20a\x20consume')})['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'),'fields_ignored':z['array'](z['string']())['optional']()['describe']('When\x20explicit\x20content\x20was\x20supplied\x20alongside\x20`fields`:\x20the\x20requested\x20fields\x20that\x20were\x20NOT\x20sent\x20(content\x20takes\x20precedence).\x20Empty/absent\x20means\x20every\x20assembled\x20field\x20was\x20delivered'),'note':z['string']()['optional']()['describe']('Mechanism\x20disclosure\x20attached\x20when\x20fields\x20were\x20ignored\x20due\x20to\x20content\x20precedence')})['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']('mark_conversation_read'),'result':ReadReceiptSchema['extend']({'marked_count':z['number']()['describe']('Received\x20messages\x20locally\x20marked\x20as\x20viewed\x20by\x20this\x20call\x20(viewedAt\x20update)'),'capped':z['boolean']()['describe']('True\x20when\x20through_seq\x20exceeded\x20the\x20highest\x20received\x20seq\x20retained\x20locally\x20and\x20the\x20watermark\x20was\x20capped\x20to\x20it'),'requested_through_seq':z['number']()['nullable']()['describe']('through_seq\x20the\x20caller\x20asked\x20for;\x20null\x20when\x20it\x20was\x20omitted')})['describe']('Local\x20read\x20watermark\x20result\x20(peer\x20watermark\x20unavailable\x20by\x20design)')}),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'),IncrementalMessagesResultSchema['describe']('Incremental\x20mode\x20(`after`\x20set):\x20cursor\x20page\x20with\x20highest_seq/has_more/gap/read\x20watermark')])}),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');
|