@wowok/agent-mcp 3.1.7 → 3.2.1
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/config/exposure.d.ts +2 -2
- package/dist/config/judgment.d.ts +5 -5
- package/dist/config/rule-engine.d.ts +5 -5
- package/dist/customer/user-preferences.d.ts +2 -2
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/capability.d.ts +1 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/extensions/industry-pack.d.ts +3 -2
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/types.d.ts +1 -0
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/extract.js +1 -1
- package/dist/graph/onchain/facts.js +1 -1
- package/dist/graph/onchain/field-manifest.js +1 -1
- package/dist/graph/onchain/project-relationship.js +1 -1
- package/dist/graph/onchain/sdk-batch.d.ts +1 -0
- package/dist/graph/onchain/sdk-batch.js +1 -1
- package/dist/graph/onchain/sdk-dataplane.d.ts +1 -0
- package/dist/graph/onchain/sdk-dataplane.js +1 -1
- package/dist/graph/onchain/types.d.ts +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/keeper/KeeperScan.d.ts +2 -1
- package/dist/keeper/KeeperScan.js +1 -1
- package/dist/keeper/detectors.d.ts +9 -0
- package/dist/keeper/detectors.js +1 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/keeper/types.d.ts +1 -1
- package/dist/keeper/types.js +1 -1
- package/dist/knowledge/allocation-ledger.d.ts +4 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +2 -0
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +1 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.d.ts +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +3 -1
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.d.ts +1 -0
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +13 -2
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/allocation.json +50 -1
- package/dist/knowledge/baselines/rules/arb.json +20 -1
- package/dist/knowledge/baselines/rules/arbitration.json +27 -0
- package/dist/knowledge/baselines/rules/guard.json +75 -2
- package/dist/knowledge/baselines/rules/machine.json +38 -13
- package/dist/knowledge/baselines/rules/order.json +2 -2
- package/dist/knowledge/builtin-templates.d.ts +3 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/discount-threshold.d.ts +15 -0
- package/dist/knowledge/discount-threshold.js +1 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-anchor-reach.d.ts +19 -0
- package/dist/knowledge/guard-anchor-reach.js +1 -0
- package/dist/knowledge/guard-bindings.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-render.d.ts +6 -0
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-submission-prompt.d.ts +6 -0
- package/dist/knowledge/guard-submission-prompt.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +6 -6
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-generalizer.d.ts +38 -1
- package/dist/knowledge/industry-generalizer.js +1 -1
- package/dist/knowledge/industry-registry.d.ts +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/release-sentinel.d.ts +12 -0
- package/dist/knowledge/release-sentinel.js +1 -0
- package/dist/knowledge/repository-write-semantics.d.ts +27 -0
- package/dist/knowledge/repository-write-semantics.js +1 -0
- package/dist/knowledge/rule-node-analyzers.d.ts +6 -0
- package/dist/knowledge/rule-node-analyzers.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +5 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +20 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/service-allocation-semantics.d.ts +36 -0
- package/dist/knowledge/service-allocation-semantics.js +1 -0
- package/dist/knowledge/strategy-manuals.d.ts +4 -6
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +48 -12
- 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/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +26 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/allocation-advice.d.ts +38 -0
- package/dist/participation/allocation-advice.js +1 -0
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/customer-interest.js +1 -1
- package/dist/participation/merchant-interest.js +1 -1
- package/dist/participation/radar-core.d.ts +2 -0
- package/dist/persona/types.d.ts +3 -2
- package/dist/persona/types.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/intent-analyzer.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +70 -63
- 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/mode-actions.d.ts +17 -1
- package/dist/playbooks/service-build/mode-actions.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/reverse-mapping-refund-p0-5.spec.js +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.d.ts +1 -0
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.d.ts +2 -0
- package/dist/playbooks/service-build/service-quote.js +1 -0
- package/dist/relationship/derivation.d.ts +1 -1
- package/dist/review/index.js +1 -1
- package/dist/role/profiles.js +1 -1
- package/dist/role/types.d.ts +2 -0
- package/dist/role/types.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +30 -8
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +10 -7
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +5 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +5 -9
- package/dist/schema/call/bridge.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +15 -15
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +58 -2
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +1 -1
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +1 -1
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission.d.ts +1 -1
- package/dist/schema/call/personal.d.ts +1 -1
- package/dist/schema/call/progress.d.ts +1 -1
- package/dist/schema/call/proof.d.ts +2 -2
- package/dist/schema/call/repository.d.ts +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +87 -25
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/common/tokentype-short-probe.spec.js +1 -0
- package/dist/schema/evaluation/index.d.ts +14 -82
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +8 -41
- package/dist/schema/goal/planning.d.ts +22 -57
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +15 -0
- package/dist/schema/industry-pack/modes.d.ts +15 -0
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +5 -20
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/keeper/index.d.ts +3 -0
- package/dist/schema/keeper/index.js +1 -1
- package/dist/schema/local/index.d.ts +577 -18
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +140 -20
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +97 -35
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +811 -916
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +161 -8
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +49 -30
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +2 -2
- package/dist/schema/workflow/index.d.ts +2 -2
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +8 -4
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/benchmark_migration_operation.output.json +116 -2
- package/dist/schemas/benchmark_migration_operation.schema.json +2 -10
- package/dist/schemas/bridge_operation.output.json +2 -2
- package/dist/schemas/bridge_operation.schema.json +2 -10
- package/dist/schemas/evaluation_operation.output.json +2 -0
- package/dist/schemas/evaluation_operation.schema.json +9 -70
- package/dist/schemas/goal_operation.schema.json +6 -39
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +87 -4
- package/dist/schemas/intent_radar.output.json +6 -20
- package/dist/schemas/intent_radar.schema.json +1 -0
- package/dist/schemas/keeper_operation.output.json +2 -2
- package/dist/schemas/keeper_operation.schema.json +9 -4
- package/dist/schemas/local_cache_operation.output.json +1536 -0
- package/dist/schemas/local_cache_operation.schema.json +101 -0
- package/dist/schemas/local_history_operation.output.json +2 -2
- package/dist/schemas/local_info_operation.output.json +2 -2
- package/dist/schemas/local_mark_operation.output.json +53 -38
- package/dist/schemas/local_mark_operation.schema.json +1 -0
- package/dist/schemas/messenger_operation.output.json +2 -2
- package/dist/schemas/messenger_operation.schema.json +358 -35
- package/dist/schemas/monitor_events.output.json +2 -2
- package/dist/schemas/monitor_subscription.output.json +2 -2
- package/dist/schemas/onchain_events.output.json +2 -2
- package/dist/schemas/onchain_operations.output.json +6 -6
- package/dist/schemas/onchain_operations.schema.json +237 -64
- package/dist/schemas/onchain_operations_allocation.schema.json +12 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +16 -16
- package/dist/schemas/onchain_operations_machine.schema.json +27 -5
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_reward.schema.json +2 -2
- package/dist/schemas/onchain_operations_service.schema.json +174 -24
- package/dist/schemas/onchain_operations_treasury.schema.json +2 -2
- package/dist/schemas/onchain_table_data.output.json +68 -4
- package/dist/schemas/persona_operation.output.json +11 -88
- package/dist/schemas/persona_operation.schema.json +4 -32
- package/dist/schemas/query_toolkit.output.json +331 -26
- package/dist/schemas/query_toolkit.schema.json +66 -2
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/dispatch-expectations.spec.js +1 -1
- package/dist/tools/handlers/keeper.d.ts +1 -1
- package/dist/tools/handlers/local.d.ts +1 -0
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/messenger.d.ts +9 -2
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/name-resolution.d.ts +4 -0
- package/dist/tools/handlers/name-resolution.js +1 -0
- package/dist/tools/handlers/name-resolution.spec.js +1 -0
- package/dist/tools/handlers/onchain-name-registration.d.ts +37 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -0
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -0
- package/dist/tools/handlers/onchain.d.ts +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.d.ts +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/local.js +1 -1
- package/dist/tools/sanitize-description-roundtrip.spec.js +1 -0
- package/dist/tools/sanitize-output.d.ts +1 -0
- package/dist/tools/sanitize-output.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/knowledge/alloc-audit-policy.spec.js +0 -1
- package/dist/knowledge/event-semantics.spec.js +0 -1
- package/dist/knowledge/facts-sync.spec.js +0 -1
- package/dist/knowledge/guard-design-patterns.spec.js +0 -1
- package/dist/knowledge/guard-eval.spec.js +0 -1
- package/dist/knowledge/rule-node-analyzers.spec.d.ts +0 -1
- package/dist/knowledge/rule-node-analyzers.spec.js +0 -1
- package/dist/knowledge/safety-rules.extract-amount.spec.d.ts +0 -1
- package/dist/knowledge/safety-rules.extract-amount.spec.js +0 -1
- package/dist/knowledge/template-loader.spec.d.ts +0 -1
- package/dist/knowledge/template-loader.spec.js +0 -1
- package/dist/knowledge/template-scanner.spec.d.ts +0 -1
- package/dist/knowledge/template-scanner.spec.js +0 -1
- /package/dist/{knowledge/alloc-audit-policy.spec.d.ts → playbooks/service-build/reverse-mapping-refund-p0-5.spec.d.ts} +0 -0
- /package/dist/{knowledge/event-semantics.spec.d.ts → schema/common/tokentype-short-probe.spec.d.ts} +0 -0
- /package/dist/{knowledge/facts-sync.spec.d.ts → tools/handlers/name-resolution.spec.d.ts} +0 -0
- /package/dist/{knowledge/guard-design-patterns.spec.d.ts → tools/handlers/onchain-name-registration.spec.d.ts} +0 -0
- /package/dist/{knowledge/guard-eval.spec.d.ts → tools/sanitize-description-roundtrip.spec.d.ts} +0 -0
|
@@ -336,7 +336,13 @@ export declare const ConversationInfoSchema: z.ZodObject<{
|
|
|
336
336
|
}, z.core.$strip>>>;
|
|
337
337
|
}, z.core.$strip>;
|
|
338
338
|
export declare const ConversationsFilterSchema: z.ZodObject<{
|
|
339
|
-
account: z.ZodOptional<z.ZodString
|
|
339
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
340
|
+
name_or_address: string;
|
|
341
|
+
local_mark_first: boolean;
|
|
342
|
+
}, string>>, z.ZodObject<{
|
|
343
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
344
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
+
}, z.core.$strict>]>>;
|
|
340
346
|
unreadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
341
347
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
342
348
|
endTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -354,7 +360,13 @@ export declare const ConversationsFilterSchema: z.ZodObject<{
|
|
|
354
360
|
sync: z.ZodOptional<z.ZodBoolean>;
|
|
355
361
|
}, z.core.$strip>;
|
|
356
362
|
export declare const MessageFilterSchema: z.ZodObject<{
|
|
357
|
-
account: z.ZodOptional<z.ZodString
|
|
363
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
364
|
+
name_or_address: string;
|
|
365
|
+
local_mark_first: boolean;
|
|
366
|
+
}, string>>, z.ZodObject<{
|
|
367
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
368
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
369
|
+
}, z.core.$strict>]>>;
|
|
358
370
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
359
371
|
received: "received";
|
|
360
372
|
sent: "sent";
|
|
@@ -544,7 +556,13 @@ export declare const WtsRangeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
544
556
|
end: z.ZodNumber;
|
|
545
557
|
}, z.core.$strip>], "type">;
|
|
546
558
|
export declare const WtsGenerationParamsSchema: z.ZodObject<{
|
|
547
|
-
myAccount: z.ZodString
|
|
559
|
+
myAccount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
560
|
+
name_or_address: string;
|
|
561
|
+
local_mark_first: boolean;
|
|
562
|
+
}, string>>, z.ZodObject<{
|
|
563
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
564
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
565
|
+
}, z.core.$strict>]>;
|
|
548
566
|
peerAccount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
549
567
|
name_or_address: string;
|
|
550
568
|
local_mark_first: boolean;
|
|
@@ -761,7 +779,13 @@ export declare const GetSettingsResponseSchema: z.ZodObject<{
|
|
|
761
779
|
export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
762
780
|
operation: z.ZodLiteral<"watch_conversations">;
|
|
763
781
|
filter: z.ZodOptional<z.ZodObject<{
|
|
764
|
-
account: z.ZodOptional<z.ZodString
|
|
782
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
783
|
+
name_or_address: string;
|
|
784
|
+
local_mark_first: boolean;
|
|
785
|
+
}, string>>, z.ZodObject<{
|
|
786
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
787
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
+
}, z.core.$strict>]>>;
|
|
765
789
|
unreadOnly: z.ZodOptional<z.ZodBoolean>;
|
|
766
790
|
startTime: z.ZodOptional<z.ZodNumber>;
|
|
767
791
|
endTime: z.ZodOptional<z.ZodNumber>;
|
|
@@ -780,7 +804,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
780
804
|
}, z.core.$strip>>;
|
|
781
805
|
}, z.core.$strict>, z.ZodObject<{
|
|
782
806
|
operation: z.ZodLiteral<"send_message">;
|
|
783
|
-
from: z.ZodOptional<z.ZodString
|
|
807
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
808
|
+
name_or_address: string;
|
|
809
|
+
local_mark_first: boolean;
|
|
810
|
+
}, string>>, z.ZodObject<{
|
|
811
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
812
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
813
|
+
}, z.core.$strict>]>>;
|
|
784
814
|
to: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
785
815
|
name_or_address: string;
|
|
786
816
|
local_mark_first: boolean;
|
|
@@ -808,7 +838,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
808
838
|
}, z.core.$strict>, z.ZodObject<{
|
|
809
839
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
810
840
|
operation: z.ZodLiteral<"send_file">;
|
|
811
|
-
from: z.ZodOptional<z.ZodString
|
|
841
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
842
|
+
name_or_address: string;
|
|
843
|
+
local_mark_first: boolean;
|
|
844
|
+
}, string>>, z.ZodObject<{
|
|
845
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
846
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
847
|
+
}, z.core.$strict>]>>;
|
|
812
848
|
to: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
813
849
|
name_or_address: string;
|
|
814
850
|
local_mark_first: boolean;
|
|
@@ -850,7 +886,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
850
886
|
}, z.core.$strip>>;
|
|
851
887
|
}, z.core.$strict>, z.ZodObject<{
|
|
852
888
|
operation: z.ZodLiteral<"send_required_info">;
|
|
853
|
-
from: z.ZodOptional<z.ZodString
|
|
889
|
+
from: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
890
|
+
name_or_address: string;
|
|
891
|
+
local_mark_first: boolean;
|
|
892
|
+
}, string>>, z.ZodObject<{
|
|
893
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
894
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
895
|
+
}, z.core.$strict>]>>;
|
|
854
896
|
to: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
855
897
|
name_or_address: string;
|
|
856
898
|
local_mark_first: boolean;
|
|
@@ -879,7 +921,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
879
921
|
}, z.core.$strict>, z.ZodObject<{
|
|
880
922
|
operation: z.ZodLiteral<"watch_messages">;
|
|
881
923
|
filter: z.ZodOptional<z.ZodObject<{
|
|
882
|
-
account: z.ZodOptional<z.ZodString
|
|
924
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
925
|
+
name_or_address: string;
|
|
926
|
+
local_mark_first: boolean;
|
|
927
|
+
}, string>>, z.ZodObject<{
|
|
928
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
929
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
930
|
+
}, z.core.$strict>]>>;
|
|
883
931
|
direction: z.ZodOptional<z.ZodEnum<{
|
|
884
932
|
received: "received";
|
|
885
933
|
sent: "sent";
|
|
@@ -960,14 +1008,26 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
960
1008
|
}, z.core.$strip>>;
|
|
961
1009
|
}, z.core.$strict>, z.ZodObject<{
|
|
962
1010
|
operation: z.ZodLiteral<"save_attachment">;
|
|
963
|
-
account: z.ZodOptional<z.ZodString
|
|
1011
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1012
|
+
name_or_address: string;
|
|
1013
|
+
local_mark_first: boolean;
|
|
1014
|
+
}, string>>, z.ZodObject<{
|
|
1015
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1017
|
+
}, z.core.$strict>]>>;
|
|
964
1018
|
messageId: z.ZodString;
|
|
965
1019
|
outputDir: z.ZodOptional<z.ZodString>;
|
|
966
1020
|
saveAs: z.ZodOptional<z.ZodString>;
|
|
967
1021
|
}, z.core.$strict>, z.ZodObject<{
|
|
968
1022
|
operation: z.ZodLiteral<"generate_wts">;
|
|
969
1023
|
params: z.ZodObject<{
|
|
970
|
-
myAccount: z.ZodString
|
|
1024
|
+
myAccount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1025
|
+
name_or_address: string;
|
|
1026
|
+
local_mark_first: boolean;
|
|
1027
|
+
}, string>>, z.ZodObject<{
|
|
1028
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1030
|
+
}, z.core.$strict>]>;
|
|
971
1031
|
peerAccount: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
972
1032
|
name_or_address: string;
|
|
973
1033
|
local_mark_first: boolean;
|
|
@@ -997,7 +1057,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
997
1057
|
}, z.core.$strict>, z.ZodObject<{
|
|
998
1058
|
operation: z.ZodLiteral<"sign_wts">;
|
|
999
1059
|
wtsFilePath: z.ZodString;
|
|
1000
|
-
account: z.ZodOptional<z.ZodString
|
|
1060
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1061
|
+
name_or_address: string;
|
|
1062
|
+
local_mark_first: boolean;
|
|
1063
|
+
}, string>>, z.ZodObject<{
|
|
1064
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1065
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1066
|
+
}, z.core.$strict>]>>;
|
|
1001
1067
|
outputPath: z.ZodOptional<z.ZodString>;
|
|
1002
1068
|
}, z.core.$strict>, z.ZodObject<{
|
|
1003
1069
|
operation: z.ZodLiteral<"wts2html">;
|
|
@@ -1013,7 +1079,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1013
1079
|
}, z.core.$strict>, z.ZodObject<{
|
|
1014
1080
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
1015
1081
|
operation: z.ZodLiteral<"proof_message">;
|
|
1016
|
-
account: z.ZodOptional<z.ZodString
|
|
1082
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1083
|
+
name_or_address: string;
|
|
1084
|
+
local_mark_first: boolean;
|
|
1085
|
+
}, string>>, z.ZodObject<{
|
|
1086
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1087
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1088
|
+
}, z.core.$strict>]>>;
|
|
1017
1089
|
messageId: z.ZodString;
|
|
1018
1090
|
network: z.ZodEnum<{
|
|
1019
1091
|
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
@@ -1022,7 +1094,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1022
1094
|
}>;
|
|
1023
1095
|
}, z.core.$strict>, z.ZodObject<{
|
|
1024
1096
|
operation: z.ZodLiteral<"blacklist">;
|
|
1025
|
-
account: z.ZodOptional<z.ZodString
|
|
1097
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1098
|
+
name_or_address: string;
|
|
1099
|
+
local_mark_first: boolean;
|
|
1100
|
+
}, string>>, z.ZodObject<{
|
|
1101
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1102
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1103
|
+
}, z.core.$strict>]>>;
|
|
1026
1104
|
blacklist: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1027
1105
|
op: z.ZodLiteral<"add">;
|
|
1028
1106
|
users: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -1075,7 +1153,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1075
1153
|
}, z.core.$strip>], "op">;
|
|
1076
1154
|
}, z.core.$strict>, z.ZodObject<{
|
|
1077
1155
|
operation: z.ZodLiteral<"friendslist">;
|
|
1078
|
-
account: z.ZodOptional<z.ZodString
|
|
1156
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1157
|
+
name_or_address: string;
|
|
1158
|
+
local_mark_first: boolean;
|
|
1159
|
+
}, string>>, z.ZodObject<{
|
|
1160
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1161
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1162
|
+
}, z.core.$strict>]>>;
|
|
1079
1163
|
friendslist: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1080
1164
|
op: z.ZodLiteral<"add">;
|
|
1081
1165
|
users: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
@@ -1128,7 +1212,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1128
1212
|
}, z.core.$strip>], "op">;
|
|
1129
1213
|
}, z.core.$strict>, z.ZodObject<{
|
|
1130
1214
|
operation: z.ZodLiteral<"guardlist">;
|
|
1131
|
-
account: z.ZodOptional<z.ZodString
|
|
1215
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1216
|
+
name_or_address: string;
|
|
1217
|
+
local_mark_first: boolean;
|
|
1218
|
+
}, string>>, z.ZodObject<{
|
|
1219
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1221
|
+
}, z.core.$strict>]>>;
|
|
1132
1222
|
guardlist: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1133
1223
|
op: z.ZodLiteral<"add">;
|
|
1134
1224
|
guards: z.ZodArray<z.ZodObject<{
|
|
@@ -1143,7 +1233,13 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1143
1233
|
}, z.core.$strip>], "op">;
|
|
1144
1234
|
}, z.core.$strict>, z.ZodObject<{
|
|
1145
1235
|
operation: z.ZodLiteral<"settings">;
|
|
1146
|
-
account: z.ZodOptional<z.ZodString
|
|
1236
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1237
|
+
name_or_address: string;
|
|
1238
|
+
local_mark_first: boolean;
|
|
1239
|
+
}, string>>, z.ZodObject<{
|
|
1240
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1242
|
+
}, z.core.$strict>]>>;
|
|
1147
1243
|
settings: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1148
1244
|
op: z.ZodLiteral<"get">;
|
|
1149
1245
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -1153,11 +1249,23 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1153
1249
|
}, z.core.$strip>], "op">;
|
|
1154
1250
|
}, z.core.$strict>, z.ZodObject<{
|
|
1155
1251
|
operation: z.ZodLiteral<"mark_messages_as_viewed">;
|
|
1156
|
-
account: z.ZodOptional<z.ZodString
|
|
1252
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1253
|
+
name_or_address: string;
|
|
1254
|
+
local_mark_first: boolean;
|
|
1255
|
+
}, string>>, z.ZodObject<{
|
|
1256
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1258
|
+
}, z.core.$strict>]>>;
|
|
1157
1259
|
messageIds: z.ZodArray<z.ZodString>;
|
|
1158
1260
|
}, z.core.$strict>, z.ZodObject<{
|
|
1159
1261
|
operation: z.ZodLiteral<"mark_conversation_as_viewed">;
|
|
1160
|
-
account: z.ZodOptional<z.ZodString
|
|
1262
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1263
|
+
name_or_address: string;
|
|
1264
|
+
local_mark_first: boolean;
|
|
1265
|
+
}, string>>, z.ZodObject<{
|
|
1266
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1268
|
+
}, z.core.$strict>]>>;
|
|
1161
1269
|
peerAddress: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1162
1270
|
name_or_address: string;
|
|
1163
1271
|
local_mark_first: boolean;
|
|
@@ -1167,10 +1275,22 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
1167
1275
|
}, z.core.$strict>]>;
|
|
1168
1276
|
}, z.core.$strict>, z.ZodObject<{
|
|
1169
1277
|
operation: z.ZodLiteral<"pull_messages">;
|
|
1170
|
-
account: z.ZodOptional<z.ZodString
|
|
1278
|
+
account: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1279
|
+
name_or_address: string;
|
|
1280
|
+
local_mark_first: boolean;
|
|
1281
|
+
}, string>>, z.ZodObject<{
|
|
1282
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1283
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1284
|
+
}, z.core.$strict>]>>;
|
|
1171
1285
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
1172
1286
|
allAccounts: z.ZodOptional<z.ZodBoolean>;
|
|
1173
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1287
|
+
accounts: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
1288
|
+
name_or_address: string;
|
|
1289
|
+
local_mark_first: boolean;
|
|
1290
|
+
}, string>>, z.ZodObject<{
|
|
1291
|
+
name_or_address: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
1293
|
+
}, z.core.$strict>]>>>;
|
|
1174
1294
|
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
1175
1295
|
}, z.core.$strict>], "operation">;
|
|
1176
1296
|
export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{NameOrAddressSchema,EntrypointSchema,AccountOrMark_AddressAISchema,ManyAccountOrMark_AddressAISchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/base.js';import{NORMAL_MESSAGE_BYTES_LIMIT}from'@wowok/wowok';export const MessageStatusSchema=z['enum'](['pending','confirmed','read','failed','rejected','decrypted','decrypt_failed']);export const MessageDirectionSchema=z['enum'](['sent','received']);export const MessageTypeSchema=z['union']([z['literal'](0x1),z['literal'](0x3)]);export const MessageContentTypeSchema=z['enum'](['text','zip','wts','wip']);export const MessageTimeFieldSchema=z['enum'](['createdAt','receivedAt','serverTimestamp']);export const RangeTypeSchema=z['enum'](['time','messageId','seqIndex']);export const AttachmentKindSchema=z['enum'](['image','video','audio','voice','file','wts','wip']);export const AttachmentDescriptorSchema=z['object']({'kind':AttachmentKindSchema['describe']('Attachment\x20business\x20type:\x20image/video/audio\x20are\x20inline-renderable\x20media;\x20\x27voice\x27\x20is\x20an\x20explicit\x20voice\x20message\x20(webm\x20cannot\x20be\x20auto-distinguished\x20from\x20video);\x20\x27file\x27\x20is\x20a\x20generic\x20document;\x20wts/wip\x20are\x20evidence\x20files'),'fileName':z['string']()['describe']('Original\x20file\x20name\x20(transport\x20.zip\x20suffix\x20stripped)'),'mimeType':z['string']()['describe']('MIME\x20type\x20inferred\x20from\x20extension\x20or\x20sender-provided'),'size':z['number']()['describe']('Payload\x20size\x20in\x20bytes\x20(uncompressed)'),'caption':z['string']()['optional']()['describe']('Sender-provided\x20caption\x20(E2EE,\x20inside\x20the\x20encrypted\x20envelope)'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels')})['describe']('Byte-free\x20attachment\x20descriptor.\x20The\x20base64\x20payload\x20is\x20deliberately\x20NOT\x20included\x20—\x20use\x20save_attachment\x20to\x20persist\x20the\x20file');export const ZipMetadataSchema=z['object']({'fileName':z['string']()['describe']('ZIP\x20filename'),'fileSize':z['number']()['describe']('File\x20size\x20in\x20bytes'),'fileHash':z['string']()['describe']('File\x20SHA256\x20hash'),'contentType':MessageContentTypeSchema['describe']('Content\x20type'),'localCachePath':z['string']()['optional']()['describe']('Local\x20cache\x20path'),'downloadedAt':z['number']()['optional']()['describe']('Download\x20timestamp')})['describe']('ZIP\x20file\x20metadata');export const ReplyToSchema=z['object']({'messageId':z['string']()['describe']('Replied-to\x20message\x20ID\x20(unique\x20within\x20the\x20conversation)')})['describe']('Reply\x20(quote)\x20relationship\x20—\x20references\x20a\x20previous\x20message\x20in\x20the\x20same\x20conversation.\x20The\x20referenced\x20message\x27s\x20sender/preview\x20are\x20resolved\x20locally\x20by\x20messageId');export const MessageProofRecordSchema=z['object']({'address':z['string']()['describe']('On-chain\x20Proof\x20object\x20address'),'network':z['string']()['optional']()['describe']('Network\x20the\x20proof\x20was\x20published\x20on\x20(testnet/mainnet/localnet);\x20absent\x20in\x20legacy\x20local\x20records'),'createdAt':z['number']()['describe']('Local\x20record\x20time\x20(ms)')})['describe']('One\x20on-chain\x20proof\x20anchored\x20for\x20this\x20message');export const MessageSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID'),'fromAddress':z['string']()['describe']('Sender\x20address'),'toAddress':z['string']()['describe']('Recipient\x20address'),'plaintextHash':z['string']()['describe']('Plaintext\x20hash'),'plaintext':z['string']()['optional']()['describe']('Decrypted\x20plaintext\x20text.\x20UNDEFINED\x20for\x20attachment\x20messages\x20(zipMetadata\x20present)\x20—\x20their\x20base64\x20envelope\x20is\x20stripped\x20at\x20the\x20read\x20boundary;\x20read\x20msg.attachment\x20for\x20metadata\x20and\x20use\x20save_attachment\x20for\x20bytes'),'attachment':AttachmentDescriptorSchema['optional']()['describe']('Present\x20when\x20this\x20message\x20is\x20an\x20attachment\x20(zipMetadata\x20present).\x20Byte-free\x20descriptor;\x20payload\x20never\x20embedded'),'replyTo':ReplyToSchema['optional']()['describe']('Quoted\x20(replied-to)\x20message\x20reference,\x20if\x20this\x20message\x20replies\x20to\x20a\x20previous\x20one'),'guardAddress':z['string']()['optional']()['describe']('Guard\x20address'),'passportAddress':z['string']()['optional']()['describe']('Passport\x20address'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index'),'direction':MessageDirectionSchema['describe']('Message\x20direction'),'status':MessageStatusSchema['describe']('Message\x20status'),'msgType':MessageTypeSchema['describe']('Message\x20type'),'leafIndex':z['number']()['optional']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['optional']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['optional']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['optional']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['optional']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['optional']()['describe']('Server\x20public\x20key'),'arkConfirmed':z['object']({'recipient':z['string']()['describe']('Recipient\x20address'),'recipientPublicKey':z['string']()['describe']('Recipient\x20public\x20key'),'signature':z['string']()['describe']('Recipient\x20signature'),'timestamp':z['number']()['describe']('ARK\x20confirmation\x20time')})['optional']()['describe']('ARK\x20confirmation'),'createdAt':z['number']()['describe']('Message\x20creation\x20time\x20(client)'),'receivedAt':z['number']()['optional']()['describe']('Local\x20reception\x20time'),'zipMetadata':ZipMetadataSchema['optional']()['describe']('ZIP\x20file\x20metadata'),'proof':z['string']()['optional']()['describe']('Latest\x20on-chain\x20proof\x20object\x20address\x20(projection\x20of\x20the\x20last\x20entry\x20in\x20proofs;\x20derived\x20at\x20the\x20read\x20boundary\x20for\x20single-value\x20consumers)'),'proofs':z['array'](MessageProofRecordSchema)['optional']()['describe']('All\x20on-chain\x20proofs\x20anchored\x20for\x20this\x20message,\x20ascending\x20by\x20publish\x20time\x20(one-to-many;\x20a\x20message\x20may\x20be\x20proofed\x20multiple\x20times)'),'decryptError':z['string']()['optional']()['describe']('Decryption\x20failure\x20reason'),'decryptAttempts':z['number']()['optional']()['describe']('Number\x20of\x20decryption\x20attempts'),'lastDecryptAttemptAt':z['number']()['optional']()['describe']('Last\x20decryption\x20attempt\x20timestamp'),'viewedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20the\x20current\x20user\x20viewed\x20this\x20message\x20(local\x20storage).\x20If\x20present,\x20indicates\x20the\x20message\x20has\x20been\x20viewed\x20by\x20the\x20user.\x20Only\x20applicable\x20to\x20received\x20messages\x20(direction\x20===\x20\x27received\x27)')})['describe']('Message\x20object');export const PullAccountResultSchema=z['object']({'account':z['string']()['describe']('Account\x20address'),'pulled':z['number']()['describe']('Number\x20of\x20messages\x20pulled\x20and\x20decrypted\x20in\x20this\x20round'),'messages':z['array'](MessageSchema)['describe']('Newly\x20pulled\x20messages\x20(read\x20boundary\x20applied:\x20attachment\x20payloads\x20stripped\x20into\x20descriptors)'),'error':z['string']()['optional']()['describe']('Per-account\x20pull\x20error;\x20absent\x20on\x20success.\x20Other\x20accounts\x20are\x20unaffected')})['describe']('Per-account\x20fan-out\x20pull\x20result');export const ConversationInfoSchema=z['object']({'peerAddress':z['string']()['describe']('Peer\x20address'),'lastMessageAt':z['number']()['describe']('Last\x20message\x20time'),'messageCount':z['number']()['describe']('Total\x20message\x20count'),'unreadCount':z['number']()['describe']('Unread\x20message\x20count\x20-\x20count\x20of\x20received\x20messages\x20that\x20have\x20not\x20been\x20viewed\x20(viewedAt\x20is\x20undefined)'),'lastMessagePreview':z['string']()['optional']()['describe']('Last\x20message\x20preview\x20text'),'previewMessages':z['array'](MessageSchema)['optional']()['describe']('Preview\x20messages\x20for\x20this\x20conversation\x20(default\x202\x20messages,\x20sorted\x20by\x20time\x20descending)')})['describe']('Conversation\x20info\x20with\x20unread\x20count\x20and\x20preview\x20messages');export const ConversationsFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query\x20conversations\x20for.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'unreadOnly':z['boolean']()['optional']()['describe']('If\x20true,\x20only\x20return\x20conversations\x20with\x20unread\x20messages\x20(unreadCount\x20>\x200).\x20Useful\x20for\x20quickly\x20finding\x20conversations\x20needing\x20attention'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20>=\x20this\x20value'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20<=\x20this\x20value'),'previewMessageCount':z['number']()['optional']()['describe']('Number\x20of\x20preview\x20messages\x20to\x20include\x20for\x20each\x20conversation\x20(default:\x202).\x20Set\x20to\x200\x20to\x20disable\x20preview\x20messages.\x20If\x20>\x200,\x20preview\x20messages\x20are\x20automatically\x20included'),'sortBy':z['enum'](['lastMessageAt','unreadCount','messageCount'])['optional']()['describe']('Sort\x20conversations\x20by:\x20\x27lastMessageAt\x27\x20=\x20most\x20recent\x20activity\x20first,\x20\x27unreadCount\x27\x20=\x20most\x20unread\x20messages\x20first,\x20\x27messageCount\x27\x20=\x20most\x20total\x20messages\x20first'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20\x27asc\x27\x20=\x20ascending\x20(oldest/smallest\x20first),\x20\x27desc\x27\x20=\x20descending\x20(newest/largest\x20first).\x20Default\x20is\x20\x27desc\x27\x20for\x20time-based\x20sorting'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20preview\x20messages\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed\x20when\x20retrieved.\x20Default\x20is\x20false,\x20meaning\x20preview\x20messages\x20are\x20auto-marked\x20as\x20viewed'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20per\x20account\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable')})['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20quickly\x20find\x20active\x20conversations,\x20and\x20previewMessageCount\x20to\x20control\x20how\x20many\x20recent\x20messages\x20are\x20included');export const MessageFilterSchema=z['object']({'account':z['string']()['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for'),'direction':MessageDirectionSchema['optional']()['describe']('Filter\x20by\x20message\x20direction'),'status':MessageStatusSchema['optional']()['describe']('Filter\x20by\x20message\x20status'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Filter\x20by\x20peer\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'msgType':MessageTypeSchema['optional']()['describe']('Filter\x20by\x20message\x20type'),'contentType':MessageContentTypeSchema['optional']()['describe']('Filter\x20by\x20content\x20type'),'decryptedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20decrypted\x20messages'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable'),'confirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20confirmed\x20messages'),'keyword':z['string']()['optional']()['describe']('Search\x20keyword\x20in\x20plaintext'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20asc\x20or\x20desc'),'limit':z['number']()['optional']()['describe']('Return\x20limit'),'offset':z['number']()['optional']()['describe']('Pagination\x20offset'),'timeField':MessageTimeFieldSchema['optional']()['describe']('Time\x20field\x20for\x20time\x20filtering'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)'),'createdAtStart':z['number']()['optional']()['describe']('Created\x20at\x20start\x20time'),'createdAtEnd':z['number']()['optional']()['describe']('Created\x20at\x20end\x20time'),'receivedAtStart':z['number']()['optional']()['describe']('Received\x20at\x20start\x20time'),'receivedAtEnd':z['number']()['optional']()['describe']('Received\x20at\x20end\x20time'),'serverTimestampStart':z['number']()['optional']()['describe']('Server\x20timestamp\x20start\x20time'),'serverTimestampEnd':z['number']()['optional']()['describe']('Server\x20timestamp\x20end\x20time'),'arkConfirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20ARK\x20confirmed\x20messages'),'arkTimestampStart':z['number']()['optional']()['describe']('ARK\x20timestamp\x20start'),'arkTimestampEnd':z['number']()['optional']()['describe']('ARK\x20timestamp\x20end'),'proofedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20proof'),'beforeCreatedAt':z['number']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20only\x20return\x20messages\x20created\x20strictly\x20BEFORE\x20this\x20timestamp\x20(ms).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeMessageId;\x20when\x20both\x20are\x20absent\x20the\x20newest\x20page\x20is\x20returned.\x20Use\x20for\x20\x27open\x20conversation\x20showing\x20latest\x20N,\x20scroll\x20up\x20to\x20load\x20older\x20pages\x27'),'beforeMessageId':z['string']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20message\x20ID\x20anchor\x20paired\x20with\x20beforeCreatedAt\x20(tie-breaker\x20for\x20messages\x20with\x20identical\x20createdAt).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeCreatedAt'),'hasLastReceivedIndexOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20lastReceivedLeafIndex'),'lastReceivedIndexMin':z['number']()['optional']()['describe']('Min\x20lastReceivedLeafIndex'),'lastReceivedIndexMax':z['number']()['optional']()['describe']('Max\x20lastReceivedLeafIndex'),'listFilterMode':z['enum'](['friends','guard','stranger','any'])['optional']()['describe']('List\x20filter\x20mode:\x20\x27friends\x27\x20=\x20only\x20messages\x20from\x20friends\x20list,\x20\x27guard\x27\x20=\x20only\x20messages\x20from\x20Guard\x20list,\x20\x27stranger\x27\x20=\x20only\x20messages\x20from\x20strangers\x20(not\x20in\x20friends/guard\x20lists),\x20\x27any\x27\x20=\x20no\x20filtering\x20(default)'),'customListFilter':z['object']({'includeAddresses':z['array'](z['string']())['optional']()['describe']('Include\x20addresses\x20-\x20only\x20return\x20messages\x20from\x20these\x20addresses\x20(highest\x20priority)'),'excludeAddresses':z['array'](z['string']())['optional']()['describe']('Exclude\x20addresses\x20-\x20exclude\x20messages\x20from\x20these\x20addresses'),'relation':z['enum'](['union','intersection'])['optional']()['describe']('Address\x20list\x20relation:\x20\x27union\x27\x20=\x20combine\x20lists\x20as\x20union,\x20\x27intersection\x27\x20=\x20combine\x20lists\x20as\x20intersection')})['optional']()['describe']('Custom\x20list\x20filter\x20for\x20advanced\x20address-based\x20filtering,\x20works\x20in\x20combination\x20with\x20listFilterMode'),'viewed':z['boolean']()['optional']()['describe']('Filter\x20by\x20viewed\x20status:\x20true\x20=\x20only\x20viewed\x20messages,\x20false\x20=\x20only\x20unviewed\x20messages.\x20A\x20message\x20is\x20considered\x20\x27viewed\x27\x20if\x20viewedAt\x20field\x20exists.\x20Only\x20applicable\x20to\x20received\x20messages'),'viewedAtStart':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20start\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20>=\x20this\x20value.\x20Useful\x20for\x20finding\x20recently\x20viewed\x20messages'),'viewedAtEnd':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20end\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20<=\x20this\x20value.\x20Useful\x20for\x20finding\x20messages\x20viewed\x20before\x20a\x20certain\x20time'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20messages\x20returned\x20by\x20this\x20query\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed.\x20Default\x20is\x20false,\x20meaning\x20messages\x20are\x20auto-marked\x20as\x20viewed\x20when\x20retrieved\x20through\x20watch_messages')})['describe']('Message\x20filter\x20options\x20-\x20all\x20conditions\x20are\x20optional\x20and\x20combined\x20with\x20AND\x20logic.\x20Use\x20viewed\x20field\x20to\x20filter\x20by\x20read/unread\x20status,\x20and\x20viewedAtStart/viewedAtEnd\x20to\x20filter\x20by\x20when\x20messages\x20were\x20viewed');export const SendMessageOptionsSchema=z['object']({'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network.\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks.\x20Guard\x20verification\x20is\x20MAINNET-ONLY\x20(no\x20testnet)'),'replyTo':ReplyToSchema['optional']()['describe']('Quote/reply\x20to\x20a\x20previous\x20message\x20in\x20the\x20SAME\x20conversation.\x20The\x20messageId\x20MUST\x20exist\x20in\x20local\x20storage\x20for\x20the\x20current\x20conversation,\x20otherwise\x20sending\x20fails'),'smart':z['boolean']()['optional']()['describe']('Smart\x20send\x20(default\x20true):\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20a\x20plain\x20send,\x20silently\x20resend\x20using\x20a\x20local\x20Passport\x20issued\x20via\x20one\x20of\x20their\x20guards;\x20when\x20no\x20usable\x20Passport\x20exists,\x20returns\x20a\x20structured\x20guard_authorization_required\x20result\x20(authRequired=true)\x20instead\x20of\x20an\x20error.\x20Set\x20false\x20for\x20strict\x20legacy\x20behavior.\x20Guard\x20verification\x20runs\x20on\x20MAINNET\x20only'),'authorize':z['boolean']()['optional']()['describe']('One-click\x20guard\x20authorization:\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20the\x20send,\x20create\x20a\x20fresh\x20Passport\x20via\x20ALL\x20of\x20their\x20guards\x20in\x20one\x20gas-consuming\x20transaction\x20and\x20resend\x20automatically.\x20Use\x20after\x20showing\x20the\x20user\x20the\x20guard_authorization_required\x20card\x20and\x20getting\x20consent.\x20If\x20a\x20guard\x20demands\x20submission\x20answers,\x20the\x20result\x20returns\x20authRequired\x20with\x20submissions\x20for\x20follow-up.\x20The\x20Passport\x20tx\x20is\x20always\x20on\x20MAINNET\x20(guard\x20verification\x20is\x20mainnet-only)')})['describe']('Send\x20message\x20options.\x20SMART\x20SEND\x20IS\x20ON\x20BY\x20DEFAULT:\x20just\x20send\x20—\x20the\x20SDK\x20silently\x20handles\x20guard\x20verification\x20(local\x20passport\x20reuse\x20→\x20structured\x20authRequired\x20card\x20→\x20authorize:true\x20to\x20spend\x20gas\x20and\x20resend).\x20Explicit\x20guardAddress\x20+\x20passportAddress\x20bypass\x20smart\x20mode\x20and\x20enter\x20the\x20direct\x20Guard\x20verification\x20flow\x20(network\x20MUST\x20be\x20mainnet;\x20the\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20—\x20the\x20server\x20rejects\x20unknown\x20guards)');export const SendFileOptionsSchema=z['object']({'fileName':z['string']()['optional']()['describe']('Custom\x20file\x20name'),'contentType':z['enum'](['wts','wip','zip'])['optional']()['describe']('Legacy\x20server-visible\x20classification\x20hint\x20(auto-inferred\x20from\x20extension:\x20.wts/.wip,\x20otherwise\x20zip).\x20Evidence\x20types\x20wts/wip\x20always\x20win\x20over\x20extension'),'kind':AttachmentKindSchema['optional']()['describe']('Attachment\x20business\x20type\x20for\x20the\x20recipient\x27s\x20UI.\x20Media\x20kinds\x20(image/video/audio/file)\x20are\x20auto-inferred\x20from\x20extension;\x20set\x20\x27voice\x27\x20explicitly\x20for\x20voice\x20messages\x20(webm\x20cannot\x20be\x20distinguished\x20from\x20video\x20automatically)'),'mimeType':z['string']()['optional']()['describe']('Explicit\x20MIME\x20type\x20override\x20(otherwise\x20inferred\x20from\x20extension)'),'caption':z['string']()['optional']()['describe']('Caption\x20text\x20attached\x20to\x20the\x20file.\x20Stored\x20inside\x20the\x20E2EE\x20envelope\x20manifest\x20—\x20the\x20server\x20cannot\x20see\x20it;\x20the\x20recipient\x20sees\x20it\x20with\x20the\x20attachment'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels'),'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network\x20for\x20Guard\x20verification\x20(e.g.,\x20testnet,\x20mainnet).\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks')})['describe']('Send\x20file\x20options.\x20The\x20file\x20travels\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20transport\x20container\x20with\x20an\x20encrypted\x20manifest);\x20media\x20(jpg/mp4/webm/...)\x20is\x20stored\x20uncompressed,\x20documents/evidence\x20deflated.\x20When\x20guardAddress\x20+\x20passportAddress\x20are\x20provided,\x20the\x20file\x20enters\x20Guard\x20verification\x20flow\x20and\x20network\x20MUST\x20be\x20specified.\x20The\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20(the\x20server\x20rejects\x20unknown\x20guards)');export const SendMessageResultSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID\x20(empty\x20on\x20guard_authorization_required)'),'status':MessageStatusSchema['or'](z['literal']('guard_authorization_required'))['describe']('Message\x20status;\x20\x27guard_authorization_required\x27\x20means\x20smart\x20send\x20needs\x20one-click\x20authorization\x20before\x20delivery'),'merkleData':z['object']({'leafIndex':z['number']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['describe']('Server\x20public\x20key')})['optional']()['describe']('Merkle\x20Tree\x20proof\x20data'),'guardList':z['array'](z['string']())['optional']()['describe']('Guard\x20list\x20(only\x20returned\x20on\x20error)'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index\x20(for\x20message\x20confirmation)'),'authRequired':z['boolean']()['optional']()['describe']('True\x20on\x20the\x20guard_authorization_required\x20result\x20shape\x20—\x20show\x20the\x20user\x20ONE\x20confirmation\x20card,\x20then\x20resend\x20via\x20send_message\x20with\x20options.authorize=true'),'network':EntrypointSchema['optional']()['describe']('Network\x20the\x20Passport\x20must\x20be\x20created\x20on\x20(present\x20on\x20guard_authorization_required)'),'reason':z['enum'](['no_local_passport','local_passport_stale'])['optional']()['describe']('Why\x20silent\x20passport\x20reuse\x20failed\x20(present\x20on\x20guard_authorization_required)'),'hint':z['string']()['optional']()['describe']('Guidance\x20text\x20incl.\x20the\x20auto-friend\x20hint\x20—\x20once\x20the\x20recipient\x20replies,\x20the\x20sender\x20is\x20auto-friended\x20and\x20future\x20messages\x20need\x20no\x20verification'),'serverError':z['string']()['optional']()['describe']('Original\x20server\x20rejection\x20message'),'submissions':z['unknown']()['optional']()['describe']('Guard\x20submission\x20requirements,\x20when\x20a\x20guard\x20demands\x20answers\x20before\x20issuing\x20a\x20Passport\x20(route\x20through\x20onchain_operations\x20gen_passport\x20with\x20info)')})['describe']('Send\x20message\x20result.\x20Union:\x20normal\x20delivery\x20(messageId\x20+\x20status)\x20OR\x20guard_authorization_required\x20(authRequired=true\x20+\x20guardList\x20+\x20reason\x20+\x20hint)\x20—\x20the\x20latter\x20is\x20NOT\x20an\x20error;\x20obtain\x20user\x20consent\x20and\x20resend\x20with\x20authorize:true');const BaseRangeSchema=z['object']({'type':RangeTypeSchema['describe']('Range\x20type'),'start':z['union']([z['number'](),z['string']()])['describe']('Start\x20value'),'end':z['union']([z['number'](),z['string']()])['describe']('End\x20value')});export const TimeRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('time'),'start':z['number'](),'end':z['number']()});export const MessageIdRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('messageId'),'start':z['string'](),'end':z['string']()});export const SeqIndexRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('seqIndex'),'start':z['number'](),'end':z['number']()});export const WtsRangeSchema=z['discriminatedUnion']('type',[TimeRangeSchema,MessageIdRangeSchema,SeqIndexRangeSchema])['describe']('WTS\x20range\x20filter\x20parameters');export const WtsGenerationParamsSchema=z['object']({'myAccount':NameOrAddressSchema['describe']('My\x20account\x20name\x20or\x20address\x20(string)'),'peerAccount':AccountOrMark_AddressAISchema['describe']('Peer\x20account\x20name\x20or\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'range':WtsRangeSchema['optional']()['describe']('Range\x20filter\x20parameters'),'excludePlaintext':z['boolean']()['optional']()['describe']('Whether\x20to\x20exclude\x20plaintext'),'outputDir':z['string']()['optional']()['describe']('Output\x20directory\x20path.\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace/wts\x20directory')})['describe']('WTS\x20generation\x20parameters');export const WtsFileResultSchema=z['object']({'files':z['array'](z['string']())['describe']('Generated\x20WTS\x20file\x20paths'),'htmlFiles':z['array'](z['string']())['describe']('Generated\x20HTML\x20report\x20paths\x20—\x20one\x20human-readable\x20companion\x20per\x20WTS\x20file,\x20written\x20next\x20to\x20it\x20(same\x20base\x20name)'),'totalMessageCount':z['number']()['describe']('Total\x20message\x20count'),'timeRange':z['object']({'start':z['number']()['describe']('Start\x20time'),'end':z['number']()['describe']('End\x20time')})['describe']('Time\x20range')})['describe']('WTS\x20file\x20result');export const WtsSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signer\x20public\x20key'),'address':z['string']()['optional']()['describe']('Signer\x20address'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('WTS\x20signature\x20verification\x20details');export const WtsVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20succeeded'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20verification\x20failed'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20validation\x20passed'),'hasSignature':z['boolean']()['describe']('Whether\x20WTS\x20has\x20signatures'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20validation\x20passed'),'signatures':z['array'](WtsSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details')})['describe']('WTS\x20verification\x20result');export const WtsToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20document\x20title'),'theme':z['enum'](['light','dark'])['optional']()['describe']('HTML\x20theme'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path')})['describe']('WTS\x20to\x20HTML\x20conversion\x20options');export const AddressExistenceSchema=z['object']({'address':z['string']()['describe']('Address'),'exists':z['boolean']()['describe']('Whether\x20address\x20exists\x20in\x20list')})['describe']('Address\x20existence\x20check\x20result');export const GuardListItemSchema=z['object']({'guardAddress':z['string']()['describe']('Guard\x20address'),'passportValiditySeconds':z['number']()['describe']('Passport\x20validity\x20in\x20seconds')})['describe']('Guard\x20list\x20item');export const ListOperationResponseSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20operation\x20succeeded'),'operation':z['string']()['describe']('Operation\x20performed'),'modifiedCount':z['number']()['describe']('Number\x20of\x20items\x20modified'),'currentCount':z['number']()['describe']('Current\x20list\x20size'),'maxCount':z['number']()['describe']('Maximum\x20list\x20size'),'invalidAddresses':z['array'](z['string']())['optional']()['nullable']()['describe']('Invalid\x20addresses'),'existResults':z['array'](AddressExistenceSchema)['optional']()['nullable']()['describe']('Existence\x20check\x20results'),'message':z['string']()['optional']()['nullable']()['describe']('Operation\x20message'),'currentList':z['array'](z['string']())['optional']()['nullable']()['describe']('Current\x20list\x20content'),'currentGuardList':z['array'](GuardListItemSchema)['optional']()['nullable']()['describe']('Current\x20guard\x20list\x20content')})['describe']('List\x20operation\x20response');export const BlacklistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Blacklist\x20management\x20operation');export const FriendslistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Friends\x20list\x20management\x20operation');export const GuardParamSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20address\x20or\x20name.\x20⚠️\x20MAINNET-ONLY:\x20Messenger\x20guards\x20must\x20be\x20Guard\x20objects\x20on\x20MAINNET\x20—\x20a\x20testnet\x20Guard\x20is\x20rejected\x20at\x20add\x20time\x20(\x27Guard\x20not\x20found\x20on\x20mainnet\x27).\x20Create\x20the\x20Guard\x20on\x20mainnet\x20before\x20adding\x20it\x20here.'),'passportValiditySeconds':z['number']()['min'](0xa)['max'](0x12cc0300)['describe']('Passport\x20validity\x20in\x20seconds\x20(10s\x20to\x2010\x20years)')})['describe']('Guard\x20parameter');export const GuardlistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](GuardParamSchema)['min'](0x1)['max'](0xa)['describe']('Guards\x20to\x20add\x20to\x20guard\x20list.\x20⚠️\x20MAINNET-ONLY:\x20only\x20mainnet\x20Guard\x20objects\x20are\x20supported\x20—\x20testnet\x20Guards\x20are\x20rejected.')}),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['min'](0x1)['max'](0xa)['describe']('Guard\x20addresses\x20to\x20remove\x20from\x20guard\x20list')}),z['object']({'op':z['literal']('get')})])['describe']('Guard\x20list\x20management\x20operation');export const SettingsOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('set'),'allowStrangerMessages':z['boolean']()['optional']()['describe']('Allow\x20messages\x20from\x20strangers.\x20NOTE:\x20only\x20effective\x20while\x20the\x20guard\x20list\x20is\x20EMPTY\x20—\x20with\x20any\x20guard\x20configured\x20the\x20stranger\x20channel\x20is\x20disabled\x20server-side\x20and\x20non-friends\x20must\x20hold\x20a\x20passport\x20issued\x20via\x20one\x20of\x20the\x20configured\x20guards'),'maxInboxSize':z['number']()['min'](0x1)['optional']()['describe']('Maximum\x20inbox\x20size')})])['describe']('Settings\x20management\x20operation');export const GetSettingsResponseSchema=z['object']({'allowStrangerMessages':z['boolean']()['optional']()['describe']('Whether\x20messages\x20from\x20strangers\x20are\x20allowed\x20(ineffective\x20while\x20the\x20guard\x20list\x20is\x20non-empty)'),'maxInboxSize':z['number']()['optional']()['describe']('Current\x20maximum\x20inbox\x20size'),'minUserInboxSize':z['number']()['describe']('Server\x20minimum\x20allowed\x20inbox\x20size\x20limit'),'maxUserInboxSize':z['number']()['describe']('Server\x20maximum\x20allowed\x20inbox\x20size\x20limit'),'defaultAllowStrangerMessages':z['boolean']()['describe']('Server\x20default\x20setting\x20for\x20allowing\x20stranger\x20messages')})['describe']('Get\x20settings\x20response');const GoalEvidenceRef={'goal_id':z['string']()['optional']()['describe']('Optional\x20goal\x20id\x20(from\x20goal_operation).\x20When\x20set,\x20this\x20act\x20is\x20recorded\x20as\x20communication\x20'+'evidence\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(K3\x2027\x20G5)\x20—\x20use\x20it\x20only\x20when\x20the\x20act\x20belongs\x20to\x20an\x20active\x20'+'goal\x27s\x20execution\x20(order\x20negotiation,\x20required-info\x20confirmation,\x20WTS\x20evidence,\x20on-chain\x20proof).')};export const MessengerOperationInputSchema=z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'filter':ConversationsFilterSchema['optional']()['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20find\x20conversations\x20with\x20unread\x20messages,\x20previewMessageCount\x20to\x20control\x20message\x20previews\x20(default\x202),\x20and\x20sortBy/sortOrder\x20to\x20customize\x20sorting')})['strict'](),z['object']({'operation':z['literal']('send_message'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'content':z['string']()['max'](NORMAL_MESSAGE_BYTES_LIMIT)['describe']('Message\x20content\x20text\x20(max\x2010240\x20bytes)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings')})['strict'](),z['object']({'operation':z['literal']('send_file'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'filePath':z['string']()['describe']('Local\x20file\x20path\x20to\x20send.\x20Transported\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20container);\x20the\x20recipient\x20restores\x20the\x20original\x20file\x20name/type\x20via\x20the\x20encrypted\x20manifest'),'options':SendFileOptionsSchema['optional']()['describe']('Optional\x20file\x20sending\x20settings'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('send_required_info'),'from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20(the\x20merchant\x27s\x20Contact\x20IM\x20address).\x20Can\x20be\x20a\x20string\x20or\x20full\x20object'),'fields':z['array'](z['string']())['optional']()['describe']('LocalInfo\x20field\x20names\x20to\x20send\x20(e.g.\x20[\x27phone\x27,\x27shipping_address\x27]).\x20If\x20omitted,\x20ALL\x20LocalInfo\x20fields\x20are\x20included'),'content':z['string']()['optional']()['describe']('Explicit\x20plaintext\x20content\x20to\x20send.\x20If\x20provided,\x20fields\x20are\x20ignored\x20and\x20LocalInfo\x20is\x20NOT\x20auto-assembled'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict'](),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict'](),z['object']({'operation':z['literal']('save_attachment'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20owning\x20the\x20message.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Attachment\x20message\x20ID\x20(a\x20message\x20with\x20attachment/zipMetadata,\x20e.g.\x20found\x20via\x20watch_messages)'),'outputDir':z['string']()['optional']()['describe']('Target\x20directory.\x20If\x20not\x20specified,\x20saves\x20to\x20the\x20workspace/attachments\x20directory'),'saveAs':z['string']()['optional']()['describe']('Override\x20file\x20name\x20(basename\x20only;\x20directories\x20are\x20stripped).\x20Defaults\x20to\x20the\x20original\x20attachment\x20file\x20name.\x20Collisions\x20get\x20a\x20\x27\x20(1)\x27\x20suffix')})['strict'](),z['object']({'operation':z['literal']('generate_wts'),'params':WtsGenerationParamsSchema['describe']('WTS\x20generation\x20parameters')})['strict'](),z['object']({'operation':z['literal']('verify_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20verify')})['strict'](),z['object']({'operation':z['literal']('sign_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20sign'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20sign\x20with.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20saves\x20to\x20signed_*.wts')})['strict'](),z['object']({'operation':z['literal']('wts2html'),'wtsPath':z['string']()['describe']('WTS\x20file\x20path\x20or\x20directory\x20to\x20convert'),'options':WtsToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict'](),z['object']({'operation':z['literal']('proof_message'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Message\x20ID\x20to\x20proof\x20on-chain'),'network':EntrypointSchema['describe']('Network\x20to\x20use\x20for\x20on-chain\x20proof\x20(required)'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('blacklist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageIds':z['array'](z['string']())['min'](0x1)['max'](0x3e8)['describe']('Array\x20of\x20message\x20IDs\x20to\x20mark\x20as\x20viewed\x20(1-1000\x20messages).\x20Only\x20messages\x20belonging\x20to\x20this\x20account\x20will\x20be\x20marked')})['strict'](),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'peerAddress':AccountOrMark_AddressAISchema['describe']('Peer\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20All\x20unviewed\x20received\x20messages\x20from\x20this\x20peer\x20will\x20be\x20marked\x20as\x20viewed')})['strict'](),z['object']({'operation':z['literal']('pull_messages'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20If\x20not\x20specified,\x20uses\x20default\x20account\x20(ignored\x20when\x20allAccounts/accounts\x20is\x20set)'),'limit':z['number']()['optional']()['describe']('Maximum\x20number\x20of\x20messages\x20to\x20pull\x20from\x20server\x20per\x20account'),'allAccounts':z['boolean']()['optional']()['describe']('Pull\x20every\x20messenger-enabled\x20account\x20in\x20ONE\x20bounded-concurrency\x20fan-out\x20(default\x20concurrency\x205).\x20Only\x20the\x20process\x20holding\x20each\x20account\x27s\x20polling\x20lock\x20pulls;\x20per-account\x20failures\x20are\x20isolated\x20in\x20the\x20result\x20entries.\x20Returns\x20one\x20result\x20entry\x20per\x20account'),'accounts':z['array'](NameOrAddressSchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Cold\x20accounts\x20are\x20initialized\x20on\x20demand'),'concurrency':z['number']()['min'](0x1)['max'](0x14)['optional']()['describe']('Max\x20concurrent\x20account\x20pulls\x20in\x20fan-out\x20mode\x20(default\x205)')})['strict']()])['describe']('Messenger\x20operation\x20input\x20schema.\x20PREREQUISITE:\x20an\x20account\x20must\x20ENABLE\x20messenger\x20before\x20sending/receiving.\x20'+'There\x20is\x20NO\x20\x27enable\x27\x20operation\x20in\x20this\x20tool\x20—\x20enable\x20via\x20account_operation\x20{messenger:\x20{enabled:\x20true,\x20name_or_account:\x20\x27<account>\x27}},\x20'+'or\x20implicitly\x20via\x20send_message/send_file\x20with\x20options.enable_messenger:\x20true.\x20'+'Use\x20proof_message\x20to\x20anchor\x20a\x20message\x27s\x20WTS\x20proof\x20on-chain\x20(creates\x20a\x20Proof\x20object\x20consumable\x20by\x20Guards\x20via\x20proof.signer/proof.time\x20queries).');export const MessengerOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'result':z['array'](ConversationInfoSchema)['describe']('List\x20of\x20conversations')}),z['object']({'operation':z['literal']('send_message'),'result':SendMessageResultSchema['describe']('Send\x20message\x20result')}),z['object']({'operation':z['literal']('send_file'),'result':SendMessageResultSchema['describe']('Send\x20file\x20result')}),z['object']({'operation':z['literal']('send_required_info'),'result':SendMessageResultSchema['extend']({'sent_fields':z['array'](z['string']())['describe']('LocalInfo\x20field\x20names\x20that\x20were\x20assembled\x20and\x20sent')})['describe']('Send\x20required-info\x20result\x20(with\x20the\x20assembled\x20field\x20names)')}),z['object']({'operation':z['literal']('watch_messages'),'result':z['array'](MessageSchema)['describe']('List\x20of\x20messages')}),z['object']({'operation':z['literal']('save_attachment'),'result':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20saved\x20attachment\x20file')}),z['object']({'operation':z['literal']('generate_wts'),'result':WtsFileResultSchema['describe']('Generate\x20WTS\x20result')}),z['object']({'operation':z['literal']('verify_wts'),'result':WtsVerificationResultSchema['describe']('WTS\x20verification\x20result')}),z['object']({'operation':z['literal']('sign_wts'),'result':z['string']()['describe']('Signed\x20WTS\x20file\x20path')}),z['object']({'operation':z['literal']('wts2html'),'result':z['union']([z['string'](),z['array'](z['string']())])['describe']('Output\x20file\x20path(s)\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)')}),z['object']({'operation':z['literal']('proof_message'),'result':z['object']({'proofAddress':z['string']()['describe']('Proof\x20object\x20address\x20on\x20blockchain')})['describe']('Proof\x20message\x20result')}),z['object']({'operation':z['literal']('blacklist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Blacklist\x20operation\x20result')}),z['object']({'operation':z['literal']('friendslist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Friends\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('guardlist'),'op':z['enum'](['add','remove','get'])['describe']('Operation\x20type'),'result':ListOperationResponseSchema['describe']('Guard\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('settings'),'op':z['enum'](['get','set'])['describe']('Operation\x20type'),'result':z['union']([GetSettingsResponseSchema,z['boolean']()])['describe']('Settings\x20operation\x20result\x20-\x20GetSettingsResponse\x20for\x20\x27get\x27\x20operation,\x20boolean\x20for\x20\x27set\x27\x20operation')}),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed.\x20Only\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed\x20in\x20the\x20conversation.\x20Only\x20received\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('pull_messages'),'result':z['union']([z['array'](MessageSchema)['describe']('Single-account\x20mode:\x20messages\x20pulled\x20from\x20server'),z['array'](PullAccountResultSchema)['describe']('Fan-out\x20mode\x20(allAccounts/accounts\x20set):\x20one\x20entry\x20per\x20account\x20with\x20isolated\x20errors')])}),z['object']({'operation':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),'error_code':z['string']()['optional']()['describe']('Error\x20code'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20is\x20retryable'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20hint')})['describe']('Error\x20response')])['describe']('Messenger\x20operation\x20result\x20discriminated\x20union'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20messenger\x20operation')})['describe']('Messenger\x20operation\x20output\x20schema');
|
|
1
|
+
import{z}from'zod';import{NameOrAddressSchema,EntrypointSchema,AccountOrMark_AddressAISchema,ManyAccountOrMark_AddressAISchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/base.js';import{NORMAL_MESSAGE_BYTES_LIMIT}from'@wowok/wowok';export const MessageStatusSchema=z['enum'](['pending','confirmed','read','failed','rejected','decrypted','decrypt_failed']);export const MessageDirectionSchema=z['enum'](['sent','received']);export const MessageTypeSchema=z['union']([z['literal'](0x1),z['literal'](0x3)]);export const MessageContentTypeSchema=z['enum'](['text','zip','wts','wip']);export const MessageTimeFieldSchema=z['enum'](['createdAt','receivedAt','serverTimestamp']);export const RangeTypeSchema=z['enum'](['time','messageId','seqIndex']);export const AttachmentKindSchema=z['enum'](['image','video','audio','voice','file','wts','wip']);export const AttachmentDescriptorSchema=z['object']({'kind':AttachmentKindSchema['describe']('Attachment\x20business\x20type:\x20image/video/audio\x20are\x20inline-renderable\x20media;\x20\x27voice\x27\x20is\x20an\x20explicit\x20voice\x20message\x20(webm\x20cannot\x20be\x20auto-distinguished\x20from\x20video);\x20\x27file\x27\x20is\x20a\x20generic\x20document;\x20wts/wip\x20are\x20evidence\x20files'),'fileName':z['string']()['describe']('Original\x20file\x20name\x20(transport\x20.zip\x20suffix\x20stripped)'),'mimeType':z['string']()['describe']('MIME\x20type\x20inferred\x20from\x20extension\x20or\x20sender-provided'),'size':z['number']()['describe']('Payload\x20size\x20in\x20bytes\x20(uncompressed)'),'caption':z['string']()['optional']()['describe']('Sender-provided\x20caption\x20(E2EE,\x20inside\x20the\x20encrypted\x20envelope)'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels')})['describe']('Byte-free\x20attachment\x20descriptor.\x20The\x20base64\x20payload\x20is\x20deliberately\x20NOT\x20included\x20—\x20use\x20save_attachment\x20to\x20persist\x20the\x20file');export const ZipMetadataSchema=z['object']({'fileName':z['string']()['describe']('ZIP\x20filename'),'fileSize':z['number']()['describe']('File\x20size\x20in\x20bytes'),'fileHash':z['string']()['describe']('File\x20SHA256\x20hash'),'contentType':MessageContentTypeSchema['describe']('Content\x20type'),'localCachePath':z['string']()['optional']()['describe']('Local\x20cache\x20path'),'downloadedAt':z['number']()['optional']()['describe']('Download\x20timestamp')})['describe']('ZIP\x20file\x20metadata');export const ReplyToSchema=z['object']({'messageId':z['string']()['describe']('Replied-to\x20message\x20ID\x20(unique\x20within\x20the\x20conversation)')})['describe']('Reply\x20(quote)\x20relationship\x20—\x20references\x20a\x20previous\x20message\x20in\x20the\x20same\x20conversation.\x20The\x20referenced\x20message\x27s\x20sender/preview\x20are\x20resolved\x20locally\x20by\x20messageId');export const MessageProofRecordSchema=z['object']({'address':z['string']()['describe']('On-chain\x20Proof\x20object\x20address'),'network':z['string']()['optional']()['describe']('Network\x20the\x20proof\x20was\x20published\x20on\x20(testnet/mainnet/localnet);\x20absent\x20in\x20legacy\x20local\x20records'),'createdAt':z['number']()['describe']('Local\x20record\x20time\x20(ms)')})['describe']('One\x20on-chain\x20proof\x20anchored\x20for\x20this\x20message');export const MessageSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID'),'fromAddress':z['string']()['describe']('Sender\x20address'),'toAddress':z['string']()['describe']('Recipient\x20address'),'plaintextHash':z['string']()['describe']('Plaintext\x20hash'),'plaintext':z['string']()['optional']()['describe']('Decrypted\x20plaintext\x20text.\x20UNDEFINED\x20for\x20attachment\x20messages\x20(zipMetadata\x20present)\x20—\x20their\x20base64\x20envelope\x20is\x20stripped\x20at\x20the\x20read\x20boundary;\x20read\x20msg.attachment\x20for\x20metadata\x20and\x20use\x20save_attachment\x20for\x20bytes'),'attachment':AttachmentDescriptorSchema['optional']()['describe']('Present\x20when\x20this\x20message\x20is\x20an\x20attachment\x20(zipMetadata\x20present).\x20Byte-free\x20descriptor;\x20payload\x20never\x20embedded'),'replyTo':ReplyToSchema['optional']()['describe']('Quoted\x20(replied-to)\x20message\x20reference,\x20if\x20this\x20message\x20replies\x20to\x20a\x20previous\x20one'),'guardAddress':z['string']()['optional']()['describe']('Guard\x20address'),'passportAddress':z['string']()['optional']()['describe']('Passport\x20address'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index'),'direction':MessageDirectionSchema['describe']('Message\x20direction'),'status':MessageStatusSchema['describe']('Message\x20status'),'msgType':MessageTypeSchema['describe']('Message\x20type'),'leafIndex':z['number']()['optional']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['optional']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['optional']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['optional']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['optional']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['optional']()['describe']('Server\x20public\x20key'),'arkConfirmed':z['object']({'recipient':z['string']()['describe']('Recipient\x20address'),'recipientPublicKey':z['string']()['describe']('Recipient\x20public\x20key'),'signature':z['string']()['describe']('Recipient\x20signature'),'timestamp':z['number']()['describe']('ARK\x20confirmation\x20time')})['optional']()['describe']('ARK\x20confirmation'),'createdAt':z['number']()['describe']('Message\x20creation\x20time\x20(client)'),'receivedAt':z['number']()['optional']()['describe']('Local\x20reception\x20time'),'zipMetadata':ZipMetadataSchema['optional']()['describe']('ZIP\x20file\x20metadata'),'proof':z['string']()['optional']()['describe']('Latest\x20on-chain\x20proof\x20object\x20address\x20(projection\x20of\x20the\x20last\x20entry\x20in\x20proofs;\x20derived\x20at\x20the\x20read\x20boundary\x20for\x20single-value\x20consumers)'),'proofs':z['array'](MessageProofRecordSchema)['optional']()['describe']('All\x20on-chain\x20proofs\x20anchored\x20for\x20this\x20message,\x20ascending\x20by\x20publish\x20time\x20(one-to-many;\x20a\x20message\x20may\x20be\x20proofed\x20multiple\x20times)'),'decryptError':z['string']()['optional']()['describe']('Decryption\x20failure\x20reason'),'decryptAttempts':z['number']()['optional']()['describe']('Number\x20of\x20decryption\x20attempts'),'lastDecryptAttemptAt':z['number']()['optional']()['describe']('Last\x20decryption\x20attempt\x20timestamp'),'viewedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20the\x20current\x20user\x20viewed\x20this\x20message\x20(local\x20storage).\x20If\x20present,\x20indicates\x20the\x20message\x20has\x20been\x20viewed\x20by\x20the\x20user.\x20Only\x20applicable\x20to\x20received\x20messages\x20(direction\x20===\x20\x27received\x27)')})['describe']('Message\x20object');export const PullAccountResultSchema=z['object']({'account':z['string']()['describe']('Account\x20address'),'pulled':z['number']()['describe']('Number\x20of\x20messages\x20pulled\x20and\x20decrypted\x20in\x20this\x20round'),'messages':z['array'](MessageSchema)['describe']('Newly\x20pulled\x20messages\x20(read\x20boundary\x20applied:\x20attachment\x20payloads\x20stripped\x20into\x20descriptors)'),'error':z['string']()['optional']()['describe']('Per-account\x20pull\x20error;\x20absent\x20on\x20success.\x20Other\x20accounts\x20are\x20unaffected')})['describe']('Per-account\x20fan-out\x20pull\x20result');export const ConversationInfoSchema=z['object']({'peerAddress':z['string']()['describe']('Peer\x20address'),'lastMessageAt':z['number']()['describe']('Last\x20message\x20time'),'messageCount':z['number']()['describe']('Total\x20message\x20count'),'unreadCount':z['number']()['describe']('Unread\x20message\x20count\x20-\x20count\x20of\x20received\x20messages\x20that\x20have\x20not\x20been\x20viewed\x20(viewedAt\x20is\x20undefined)'),'lastMessagePreview':z['string']()['optional']()['describe']('Last\x20message\x20preview\x20text'),'previewMessages':z['array'](MessageSchema)['optional']()['describe']('Preview\x20messages\x20for\x20this\x20conversation\x20(default\x202\x20messages,\x20sorted\x20by\x20time\x20descending)')})['describe']('Conversation\x20info\x20with\x20unread\x20count\x20and\x20preview\x20messages');export const ConversationsFilterSchema=z['object']({'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20query\x20conversations\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'unreadOnly':z['boolean']()['optional']()['describe']('If\x20true,\x20only\x20return\x20conversations\x20with\x20unread\x20messages\x20(unreadCount\x20>\x200).\x20Useful\x20for\x20quickly\x20finding\x20conversations\x20needing\x20attention'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20>=\x20this\x20value'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)\x20for\x20filtering\x20conversations\x20by\x20lastMessageAt.\x20Only\x20returns\x20conversations\x20where\x20lastMessageAt\x20<=\x20this\x20value'),'previewMessageCount':z['number']()['optional']()['describe']('Number\x20of\x20preview\x20messages\x20to\x20include\x20for\x20each\x20conversation\x20(default:\x202).\x20Set\x20to\x200\x20to\x20disable\x20preview\x20messages.\x20If\x20>\x200,\x20preview\x20messages\x20are\x20automatically\x20included'),'sortBy':z['enum'](['lastMessageAt','unreadCount','messageCount'])['optional']()['describe']('Sort\x20conversations\x20by:\x20\x27lastMessageAt\x27\x20=\x20most\x20recent\x20activity\x20first,\x20\x27unreadCount\x27\x20=\x20most\x20unread\x20messages\x20first,\x20\x27messageCount\x27\x20=\x20most\x20total\x20messages\x20first'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20\x27asc\x27\x20=\x20ascending\x20(oldest/smallest\x20first),\x20\x27desc\x27\x20=\x20descending\x20(newest/largest\x20first).\x20Default\x20is\x20\x27desc\x27\x20for\x20time-based\x20sorting'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20preview\x20messages\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed\x20when\x20retrieved.\x20Default\x20is\x20false,\x20meaning\x20preview\x20messages\x20are\x20auto-marked\x20as\x20viewed'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20per\x20account\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable')})['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20quickly\x20find\x20active\x20conversations,\x20and\x20previewMessageCount\x20to\x20control\x20how\x20many\x20recent\x20messages\x20are\x20included');export const MessageFilterSchema=z['object']({'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20filter\x20messages\x20for\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'direction':MessageDirectionSchema['optional']()['describe']('Filter\x20by\x20message\x20direction'),'status':MessageStatusSchema['optional']()['describe']('Filter\x20by\x20message\x20status'),'peerAddress':AccountOrMark_AddressAISchema['optional']()['describe']('Filter\x20by\x20peer\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'msgType':MessageTypeSchema['optional']()['describe']('Filter\x20by\x20message\x20type'),'contentType':MessageContentTypeSchema['optional']()['describe']('Filter\x20by\x20content\x20type'),'decryptedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20decrypted\x20messages'),'sync':z['boolean']()['optional']()['describe']('Sync\x20mode\x20(default\x20true):\x20true\x20=\x20block\x20on\x20one\x20server\x20pull\x20before\x20returning\x20(freshest\x20data,\x20one-shot\x20semantics);\x20false\x20=\x20return\x20local\x20data\x20immediately\x20and\x20trigger\x20a\x20background\x20server\x20pull\x20whose\x20results\x20appear\x20on\x20later\x20queries.\x20Only\x20set\x20false\x20when\x20slightly\x20stale\x20data\x20is\x20acceptable'),'confirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20confirmed\x20messages'),'keyword':z['string']()['optional']()['describe']('Search\x20keyword\x20in\x20plaintext'),'sortOrder':z['enum'](['asc','desc'])['optional']()['describe']('Sort\x20order:\x20asc\x20or\x20desc'),'limit':z['number']()['optional']()['describe']('Return\x20limit'),'offset':z['number']()['optional']()['describe']('Pagination\x20offset'),'timeField':MessageTimeFieldSchema['optional']()['describe']('Time\x20field\x20for\x20time\x20filtering'),'startTime':z['number']()['optional']()['describe']('Start\x20timestamp\x20(ms)'),'endTime':z['number']()['optional']()['describe']('End\x20timestamp\x20(ms)'),'createdAtStart':z['number']()['optional']()['describe']('Created\x20at\x20start\x20time'),'createdAtEnd':z['number']()['optional']()['describe']('Created\x20at\x20end\x20time'),'receivedAtStart':z['number']()['optional']()['describe']('Received\x20at\x20start\x20time'),'receivedAtEnd':z['number']()['optional']()['describe']('Received\x20at\x20end\x20time'),'serverTimestampStart':z['number']()['optional']()['describe']('Server\x20timestamp\x20start\x20time'),'serverTimestampEnd':z['number']()['optional']()['describe']('Server\x20timestamp\x20end\x20time'),'arkConfirmedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20ARK\x20confirmed\x20messages'),'arkTimestampStart':z['number']()['optional']()['describe']('ARK\x20timestamp\x20start'),'arkTimestampEnd':z['number']()['optional']()['describe']('ARK\x20timestamp\x20end'),'proofedOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20proof'),'beforeCreatedAt':z['number']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20only\x20return\x20messages\x20created\x20strictly\x20BEFORE\x20this\x20timestamp\x20(ms).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeMessageId;\x20when\x20both\x20are\x20absent\x20the\x20newest\x20page\x20is\x20returned.\x20Use\x20for\x20\x27open\x20conversation\x20showing\x20latest\x20N,\x20scroll\x20up\x20to\x20load\x20older\x20pages\x27'),'beforeMessageId':z['string']()['optional']()['describe']('Keyset\x20pagination\x20cursor:\x20message\x20ID\x20anchor\x20paired\x20with\x20beforeCreatedAt\x20(tie-breaker\x20for\x20messages\x20with\x20identical\x20createdAt).\x20MUST\x20be\x20provided\x20together\x20with\x20beforeCreatedAt'),'hasLastReceivedIndexOnly':z['boolean']()['optional']()['describe']('Only\x20return\x20messages\x20with\x20lastReceivedLeafIndex'),'lastReceivedIndexMin':z['number']()['optional']()['describe']('Min\x20lastReceivedLeafIndex'),'lastReceivedIndexMax':z['number']()['optional']()['describe']('Max\x20lastReceivedLeafIndex'),'listFilterMode':z['enum'](['friends','guard','stranger','any'])['optional']()['describe']('List\x20filter\x20mode:\x20\x27friends\x27\x20=\x20only\x20messages\x20from\x20friends\x20list,\x20\x27guard\x27\x20=\x20only\x20messages\x20from\x20Guard\x20list,\x20\x27stranger\x27\x20=\x20only\x20messages\x20from\x20strangers\x20(not\x20in\x20friends/guard\x20lists),\x20\x27any\x27\x20=\x20no\x20filtering\x20(default)'),'customListFilter':z['object']({'includeAddresses':z['array'](z['string']())['optional']()['describe']('Include\x20addresses\x20-\x20only\x20return\x20messages\x20from\x20these\x20addresses\x20(highest\x20priority)'),'excludeAddresses':z['array'](z['string']())['optional']()['describe']('Exclude\x20addresses\x20-\x20exclude\x20messages\x20from\x20these\x20addresses'),'relation':z['enum'](['union','intersection'])['optional']()['describe']('Address\x20list\x20relation:\x20\x27union\x27\x20=\x20combine\x20lists\x20as\x20union,\x20\x27intersection\x27\x20=\x20combine\x20lists\x20as\x20intersection')})['optional']()['describe']('Custom\x20list\x20filter\x20for\x20advanced\x20address-based\x20filtering,\x20works\x20in\x20combination\x20with\x20listFilterMode'),'viewed':z['boolean']()['optional']()['describe']('Filter\x20by\x20viewed\x20status:\x20true\x20=\x20only\x20viewed\x20messages,\x20false\x20=\x20only\x20unviewed\x20messages.\x20A\x20message\x20is\x20considered\x20\x27viewed\x27\x20if\x20viewedAt\x20field\x20exists.\x20Only\x20applicable\x20to\x20received\x20messages'),'viewedAtStart':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20start\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20>=\x20this\x20value.\x20Useful\x20for\x20finding\x20recently\x20viewed\x20messages'),'viewedAtEnd':z['number']()['optional']()['describe']('Filter\x20by\x20viewed\x20timestamp\x20end\x20(inclusive).\x20Only\x20returns\x20messages\x20where\x20viewedAt\x20<=\x20this\x20value.\x20Useful\x20for\x20finding\x20messages\x20viewed\x20before\x20a\x20certain\x20time'),'skipAutoMarkViewed':z['boolean']()['optional']()['describe']('If\x20true,\x20messages\x20returned\x20by\x20this\x20query\x20will\x20NOT\x20be\x20automatically\x20marked\x20as\x20viewed.\x20Default\x20is\x20false,\x20meaning\x20messages\x20are\x20auto-marked\x20as\x20viewed\x20when\x20retrieved\x20through\x20watch_messages')})['describe']('Message\x20filter\x20options\x20-\x20all\x20conditions\x20are\x20optional\x20and\x20combined\x20with\x20AND\x20logic.\x20Use\x20viewed\x20field\x20to\x20filter\x20by\x20read/unread\x20status,\x20and\x20viewedAtStart/viewedAtEnd\x20to\x20filter\x20by\x20when\x20messages\x20were\x20viewed');export const SendMessageOptionsSchema=z['object']({'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20messages'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network.\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks.\x20Guard\x20verification\x20is\x20MAINNET-ONLY\x20(no\x20testnet)'),'replyTo':ReplyToSchema['optional']()['describe']('Quote/reply\x20to\x20a\x20previous\x20message\x20in\x20the\x20SAME\x20conversation.\x20The\x20messageId\x20MUST\x20exist\x20in\x20local\x20storage\x20for\x20the\x20current\x20conversation,\x20otherwise\x20sending\x20fails'),'smart':z['boolean']()['optional']()['describe']('Smart\x20send\x20(default\x20true):\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20a\x20plain\x20send,\x20silently\x20resend\x20using\x20a\x20local\x20Passport\x20issued\x20via\x20one\x20of\x20their\x20guards;\x20when\x20no\x20usable\x20Passport\x20exists,\x20returns\x20a\x20structured\x20guard_authorization_required\x20result\x20(authRequired=true)\x20instead\x20of\x20an\x20error.\x20Set\x20false\x20for\x20strict\x20legacy\x20behavior.\x20Guard\x20verification\x20runs\x20on\x20MAINNET\x20only'),'authorize':z['boolean']()['optional']()['describe']('One-click\x20guard\x20authorization:\x20when\x20the\x20recipient\x27s\x20guard\x20policy\x20rejects\x20the\x20send,\x20create\x20a\x20fresh\x20Passport\x20via\x20ALL\x20of\x20their\x20guards\x20in\x20one\x20gas-consuming\x20transaction\x20and\x20resend\x20automatically.\x20Use\x20after\x20showing\x20the\x20user\x20the\x20guard_authorization_required\x20card\x20and\x20getting\x20consent.\x20If\x20a\x20guard\x20demands\x20submission\x20answers,\x20the\x20result\x20returns\x20authRequired\x20with\x20submissions\x20for\x20follow-up.\x20The\x20Passport\x20tx\x20is\x20always\x20on\x20MAINNET\x20(guard\x20verification\x20is\x20mainnet-only)')})['describe']('Send\x20message\x20options.\x20SMART\x20SEND\x20IS\x20ON\x20BY\x20DEFAULT:\x20just\x20send\x20—\x20the\x20SDK\x20silently\x20handles\x20guard\x20verification\x20(local\x20passport\x20reuse\x20→\x20structured\x20authRequired\x20card\x20→\x20authorize:true\x20to\x20spend\x20gas\x20and\x20resend).\x20Explicit\x20guardAddress\x20+\x20passportAddress\x20bypass\x20smart\x20mode\x20and\x20enter\x20the\x20direct\x20Guard\x20verification\x20flow\x20(network\x20MUST\x20be\x20mainnet;\x20the\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20—\x20the\x20server\x20rejects\x20unknown\x20guards)');export const SendFileOptionsSchema=z['object']({'fileName':z['string']()['optional']()['describe']('Custom\x20file\x20name'),'contentType':z['enum'](['wts','wip','zip'])['optional']()['describe']('Legacy\x20server-visible\x20classification\x20hint\x20(auto-inferred\x20from\x20extension:\x20.wts/.wip,\x20otherwise\x20zip).\x20Evidence\x20types\x20wts/wip\x20always\x20win\x20over\x20extension'),'kind':AttachmentKindSchema['optional']()['describe']('Attachment\x20business\x20type\x20for\x20the\x20recipient\x27s\x20UI.\x20Media\x20kinds\x20(image/video/audio/file)\x20are\x20auto-inferred\x20from\x20extension;\x20set\x20\x27voice\x27\x20explicitly\x20for\x20voice\x20messages\x20(webm\x20cannot\x20be\x20distinguished\x20from\x20video\x20automatically)'),'mimeType':z['string']()['optional']()['describe']('Explicit\x20MIME\x20type\x20override\x20(otherwise\x20inferred\x20from\x20extension)'),'caption':z['string']()['optional']()['describe']('Caption\x20text\x20attached\x20to\x20the\x20file.\x20Stored\x20inside\x20the\x20E2EE\x20envelope\x20manifest\x20—\x20the\x20server\x20cannot\x20see\x20it;\x20the\x20recipient\x20sees\x20it\x20with\x20the\x20attachment'),'durationMs':z['number']()['optional']()['describe']('Audio/video\x20duration\x20in\x20milliseconds'),'width':z['number']()['optional']()['describe']('Media\x20width\x20in\x20pixels'),'height':z['number']()['optional']()['describe']('Media\x20height\x20in\x20pixels'),'guardAddress':NameOrAddressSchema['optional']()['describe']('Guard\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'passportAddress':NameOrAddressSchema['optional']()['describe']('Passport\x20address.\x20REQUIRED\x20when\x20sending\x20Guard-verified\x20files'),'force':z['boolean']()['optional']()['describe']('Force\x20send\x20even\x20if\x20there\x20are\x20pending\x20Guard\x20messages'),'enable_messenger':z['boolean']()['optional']()['describe']('Auto-enable\x20messenger\x20for\x20the\x20sender\x20account\x20if\x20not\x20already\x20enabled'),'network':EntrypointSchema['optional']()['describe']('Target\x20network\x20for\x20Guard\x20verification\x20(e.g.,\x20testnet,\x20mainnet).\x20REQUIRED\x20when\x20guardAddress\x20and\x20passportAddress\x20are\x20provided\x20—\x20Guard\x20messages\x20and\x20regular\x20messages\x20are\x20independent\x20data\x20systems\x20on\x20different\x20networks')})['describe']('Send\x20file\x20options.\x20The\x20file\x20travels\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20transport\x20container\x20with\x20an\x20encrypted\x20manifest);\x20media\x20(jpg/mp4/webm/...)\x20is\x20stored\x20uncompressed,\x20documents/evidence\x20deflated.\x20When\x20guardAddress\x20+\x20passportAddress\x20are\x20provided,\x20the\x20file\x20enters\x20Guard\x20verification\x20flow\x20and\x20network\x20MUST\x20be\x20specified.\x20The\x20guard\x20must\x20belong\x20to\x20the\x20RECIPIENT\x27s\x20guard\x20list\x20(the\x20server\x20rejects\x20unknown\x20guards)');export const SendMessageResultSchema=z['object']({'messageId':z['string']()['describe']('Message\x20ID\x20(empty\x20on\x20guard_authorization_required)'),'status':MessageStatusSchema['or'](z['literal']('guard_authorization_required'))['describe']('Message\x20status;\x20\x27guard_authorization_required\x27\x20means\x20smart\x20send\x20needs\x20one-click\x20authorization\x20before\x20delivery'),'merkleData':z['object']({'leafIndex':z['number']()['describe']('Leaf\x20index'),'prevRoot':z['string']()['describe']('Previous\x20Merkle\x20Root'),'newRoot':z['string']()['describe']('Current\x20Merkle\x20Root'),'serverSignature':z['string']()['describe']('Server\x20signature'),'serverTimestamp':z['number']()['describe']('Server\x20confirmation\x20timestamp'),'serverPublicKey':z['string']()['describe']('Server\x20public\x20key')})['optional']()['describe']('Merkle\x20Tree\x20proof\x20data'),'guardList':z['array'](z['string']())['optional']()['describe']('Guard\x20list\x20(only\x20returned\x20on\x20error)'),'lastReceivedLeafIndex':z['number']()['optional']()['describe']('Last\x20received\x20leaf\x20index\x20(for\x20message\x20confirmation)'),'authRequired':z['boolean']()['optional']()['describe']('True\x20on\x20the\x20guard_authorization_required\x20result\x20shape\x20—\x20show\x20the\x20user\x20ONE\x20confirmation\x20card,\x20then\x20resend\x20via\x20send_message\x20with\x20options.authorize=true'),'network':EntrypointSchema['optional']()['describe']('Network\x20the\x20Passport\x20must\x20be\x20created\x20on\x20(present\x20on\x20guard_authorization_required)'),'reason':z['enum'](['no_local_passport','local_passport_stale'])['optional']()['describe']('Why\x20silent\x20passport\x20reuse\x20failed\x20(present\x20on\x20guard_authorization_required)'),'hint':z['string']()['optional']()['describe']('Guidance\x20text\x20incl.\x20the\x20auto-friend\x20hint\x20—\x20once\x20the\x20recipient\x20replies,\x20the\x20sender\x20is\x20auto-friended\x20and\x20future\x20messages\x20need\x20no\x20verification'),'serverError':z['string']()['optional']()['describe']('Original\x20server\x20rejection\x20message'),'submissions':z['unknown']()['optional']()['describe']('Guard\x20submission\x20requirements,\x20when\x20a\x20guard\x20demands\x20answers\x20before\x20issuing\x20a\x20Passport\x20(route\x20through\x20onchain_operations\x20gen_passport\x20with\x20info)')})['describe']('Send\x20message\x20result.\x20Union:\x20normal\x20delivery\x20(messageId\x20+\x20status)\x20OR\x20guard_authorization_required\x20(authRequired=true\x20+\x20guardList\x20+\x20reason\x20+\x20hint)\x20—\x20the\x20latter\x20is\x20NOT\x20an\x20error;\x20obtain\x20user\x20consent\x20and\x20resend\x20with\x20authorize:true');const BaseRangeSchema=z['object']({'type':RangeTypeSchema['describe']('Range\x20type'),'start':z['union']([z['number'](),z['string']()])['describe']('Start\x20value'),'end':z['union']([z['number'](),z['string']()])['describe']('End\x20value')});export const TimeRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('time'),'start':z['number'](),'end':z['number']()});export const MessageIdRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('messageId'),'start':z['string'](),'end':z['string']()});export const SeqIndexRangeSchema=BaseRangeSchema['extend']({'type':z['literal']('seqIndex'),'start':z['number'](),'end':z['number']()});export const WtsRangeSchema=z['discriminatedUnion']('type',[TimeRangeSchema,MessageIdRangeSchema,SeqIndexRangeSchema])['describe']('WTS\x20range\x20filter\x20parameters');export const WtsGenerationParamsSchema=z['object']({'myAccount':AccountOrMark_AddressAISchema['describe']('My\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object'),'peerAccount':AccountOrMark_AddressAISchema['describe']('Peer\x20account\x20name\x20or\x20address\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'range':WtsRangeSchema['optional']()['describe']('Range\x20filter\x20parameters'),'excludePlaintext':z['boolean']()['optional']()['describe']('Whether\x20to\x20exclude\x20plaintext'),'outputDir':z['string']()['optional']()['describe']('Output\x20directory\x20path.\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace/wts\x20directory')})['describe']('WTS\x20generation\x20parameters');export const WtsFileResultSchema=z['object']({'files':z['array'](z['string']())['describe']('Generated\x20WTS\x20file\x20paths'),'htmlFiles':z['array'](z['string']())['describe']('Generated\x20HTML\x20report\x20paths\x20—\x20one\x20human-readable\x20companion\x20per\x20WTS\x20file,\x20written\x20next\x20to\x20it\x20(same\x20base\x20name)'),'totalMessageCount':z['number']()['describe']('Total\x20message\x20count'),'timeRange':z['object']({'start':z['number']()['describe']('Start\x20time'),'end':z['number']()['describe']('End\x20time')})['describe']('Time\x20range')})['describe']('WTS\x20file\x20result');export const WtsSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signer\x20public\x20key'),'address':z['string']()['optional']()['describe']('Signer\x20address'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('WTS\x20signature\x20verification\x20details');export const WtsVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20succeeded'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20verification\x20failed'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20validation\x20passed'),'hasSignature':z['boolean']()['describe']('Whether\x20WTS\x20has\x20signatures'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20validation\x20passed'),'signatures':z['array'](WtsSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details')})['describe']('WTS\x20verification\x20result');export const WtsToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20document\x20title'),'theme':z['enum'](['light','dark'])['optional']()['describe']('HTML\x20theme'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path')})['describe']('WTS\x20to\x20HTML\x20conversion\x20options');export const AddressExistenceSchema=z['object']({'address':z['string']()['describe']('Address'),'exists':z['boolean']()['describe']('Whether\x20address\x20exists\x20in\x20list')})['describe']('Address\x20existence\x20check\x20result');export const GuardListItemSchema=z['object']({'guardAddress':z['string']()['describe']('Guard\x20address'),'passportValiditySeconds':z['number']()['describe']('Passport\x20validity\x20in\x20seconds')})['describe']('Guard\x20list\x20item');export const ListOperationResponseSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20operation\x20succeeded'),'operation':z['string']()['describe']('Operation\x20performed'),'modifiedCount':z['number']()['describe']('Number\x20of\x20items\x20modified'),'currentCount':z['number']()['describe']('Current\x20list\x20size'),'maxCount':z['number']()['describe']('Maximum\x20list\x20size'),'invalidAddresses':z['array'](z['string']())['optional']()['nullable']()['describe']('Invalid\x20addresses'),'existResults':z['array'](AddressExistenceSchema)['optional']()['nullable']()['describe']('Existence\x20check\x20results'),'message':z['string']()['optional']()['nullable']()['describe']('Operation\x20message'),'currentList':z['array'](z['string']())['optional']()['nullable']()['describe']('Current\x20list\x20content'),'currentGuardList':z['array'](GuardListItemSchema)['optional']()['nullable']()['describe']('Current\x20guard\x20list\x20content')})['describe']('List\x20operation\x20response');export const BlacklistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20blacklist\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Blacklist\x20management\x20operation');export const FriendslistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20add\x20to\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('remove'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20remove\x20from\x20friends\x20list\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')}),z['object']({'op':z['literal']('clear')}),z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('exist'),'users':ManyAccountOrMark_AddressAISchema['describe']('Users\x20to\x20check\x20existence\x20-\x20can\x20be\x20array\x20of\x20strings\x20(names/addresses)\x20or\x20full\x20object')})])['describe']('Friends\x20list\x20management\x20operation');export const GuardParamSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20address\x20or\x20name.\x20⚠️\x20MAINNET-ONLY:\x20Messenger\x20guards\x20must\x20be\x20Guard\x20objects\x20on\x20MAINNET\x20—\x20a\x20testnet\x20Guard\x20is\x20rejected\x20at\x20add\x20time\x20(\x27Guard\x20not\x20found\x20on\x20mainnet\x27).\x20Create\x20the\x20Guard\x20on\x20mainnet\x20before\x20adding\x20it\x20here.'),'passportValiditySeconds':z['number']()['min'](0xa)['max'](0x12cc0300)['describe']('Passport\x20validity\x20in\x20seconds\x20(10s\x20to\x2010\x20years)')})['describe']('Guard\x20parameter');export const GuardlistOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add'),'guards':z['array'](GuardParamSchema)['min'](0x1)['max'](0xa)['describe']('Guards\x20to\x20add\x20to\x20guard\x20list.\x20⚠️\x20MAINNET-ONLY:\x20only\x20mainnet\x20Guard\x20objects\x20are\x20supported\x20—\x20testnet\x20Guards\x20are\x20rejected.')}),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)['min'](0x1)['max'](0xa)['describe']('Guard\x20addresses\x20to\x20remove\x20from\x20guard\x20list')}),z['object']({'op':z['literal']('get')})])['describe']('Guard\x20list\x20management\x20operation');export const SettingsOperationSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('get')}),z['object']({'op':z['literal']('set'),'allowStrangerMessages':z['boolean']()['optional']()['describe']('Allow\x20messages\x20from\x20strangers.\x20NOTE:\x20only\x20effective\x20while\x20the\x20guard\x20list\x20is\x20EMPTY\x20—\x20with\x20any\x20guard\x20configured\x20the\x20stranger\x20channel\x20is\x20disabled\x20server-side\x20and\x20non-friends\x20must\x20hold\x20a\x20passport\x20issued\x20via\x20one\x20of\x20the\x20configured\x20guards'),'maxInboxSize':z['number']()['min'](0x1)['optional']()['describe']('Maximum\x20inbox\x20size')})])['describe']('Settings\x20management\x20operation');export const GetSettingsResponseSchema=z['object']({'allowStrangerMessages':z['boolean']()['optional']()['describe']('Whether\x20messages\x20from\x20strangers\x20are\x20allowed\x20(ineffective\x20while\x20the\x20guard\x20list\x20is\x20non-empty)'),'maxInboxSize':z['number']()['optional']()['describe']('Current\x20maximum\x20inbox\x20size'),'minUserInboxSize':z['number']()['describe']('Server\x20minimum\x20allowed\x20inbox\x20size\x20limit'),'maxUserInboxSize':z['number']()['describe']('Server\x20maximum\x20allowed\x20inbox\x20size\x20limit'),'defaultAllowStrangerMessages':z['boolean']()['describe']('Server\x20default\x20setting\x20for\x20allowing\x20stranger\x20messages')})['describe']('Get\x20settings\x20response');const GoalEvidenceRef={'goal_id':z['string']()['optional']()['describe']('Optional\x20goal\x20id\x20(from\x20goal_operation).\x20When\x20set,\x20this\x20act\x20is\x20recorded\x20as\x20communication\x20'+'evidence\x20on\x20the\x20goal\x27s\x20TaskProcess\x20(K3\x2027\x20G5)\x20—\x20use\x20it\x20only\x20when\x20the\x20act\x20belongs\x20to\x20an\x20active\x20'+'goal\x27s\x20execution\x20(order\x20negotiation,\x20required-info\x20confirmation,\x20WTS\x20evidence,\x20on-chain\x20proof).')};export const MessengerOperationInputSchema=z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'filter':ConversationsFilterSchema['optional']()['describe']('Conversations\x20filter\x20options\x20-\x20use\x20unreadOnly\x20to\x20find\x20conversations\x20with\x20unread\x20messages,\x20previewMessageCount\x20to\x20control\x20message\x20previews\x20(default\x202),\x20and\x20sortBy/sortOrder\x20to\x20customize\x20sorting')})['strict'](),z['object']({'operation':z['literal']('send_message'),'from':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'content':z['string']()['max'](NORMAL_MESSAGE_BYTES_LIMIT)['describe']('Message\x20content\x20text\x20(max\x2010240\x20bytes)'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings')})['strict'](),z['object']({'operation':z['literal']('send_file'),'from':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'filePath':z['string']()['describe']('Local\x20file\x20path\x20to\x20send.\x20Transported\x20as\x20an\x20E2EE\x20attachment\x20envelope\x20(zip\x20container);\x20the\x20recipient\x20restores\x20the\x20original\x20file\x20name/type\x20via\x20the\x20encrypted\x20manifest'),'options':SendFileOptionsSchema['optional']()['describe']('Optional\x20file\x20sending\x20settings'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('send_required_info'),'from':AccountOrMark_AddressAISchema['optional']()['describe']('Sender\x20account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'to':AccountOrMark_AddressAISchema['describe']('Recipient\x20address\x20(the\x20merchant\x27s\x20Contact\x20IM\x20address).\x20Can\x20be\x20a\x20string\x20or\x20full\x20object'),'fields':z['array'](z['string']())['optional']()['describe']('LocalInfo\x20field\x20names\x20to\x20send\x20(e.g.\x20[\x27phone\x27,\x27shipping_address\x27]).\x20If\x20omitted,\x20ALL\x20LocalInfo\x20fields\x20are\x20included'),'content':z['string']()['optional']()['describe']('Explicit\x20plaintext\x20content\x20to\x20send.\x20If\x20provided,\x20fields\x20are\x20ignored\x20and\x20LocalInfo\x20is\x20NOT\x20auto-assembled'),'options':SendMessageOptionsSchema['optional']()['describe']('Optional\x20message\x20settings\x20(guardAddress/passportAddress/network/replyTo/force/enable_messenger)')})['strict'](),z['object']({'operation':z['literal']('watch_messages'),'filter':MessageFilterSchema['optional']()['describe']('Message\x20filter\x20options')})['strict'](),z['object']({'operation':z['literal']('save_attachment'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20owning\x20the\x20message\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Attachment\x20message\x20ID\x20(a\x20message\x20with\x20attachment/zipMetadata,\x20e.g.\x20found\x20via\x20watch_messages)'),'outputDir':z['string']()['optional']()['describe']('Target\x20directory.\x20If\x20not\x20specified,\x20saves\x20to\x20the\x20workspace/attachments\x20directory'),'saveAs':z['string']()['optional']()['describe']('Override\x20file\x20name\x20(basename\x20only;\x20directories\x20are\x20stripped).\x20Defaults\x20to\x20the\x20original\x20attachment\x20file\x20name.\x20Collisions\x20get\x20a\x20\x27\x20(1)\x27\x20suffix')})['strict'](),z['object']({'operation':z['literal']('generate_wts'),'params':WtsGenerationParamsSchema['describe']('WTS\x20generation\x20parameters')})['strict'](),z['object']({'operation':z['literal']('verify_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20verify')})['strict'](),z['object']({'operation':z['literal']('sign_wts'),'wtsFilePath':z['string']()['describe']('WTS\x20file\x20path\x20to\x20sign'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20to\x20sign\x20with\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20saves\x20to\x20signed_*.wts')})['strict'](),z['object']({'operation':z['literal']('wts2html'),'wtsPath':z['string']()['describe']('WTS\x20file\x20path\x20or\x20directory\x20to\x20convert'),'options':WtsToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict'](),z['object']({'operation':z['literal']('proof_message'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageId':z['string']()['describe']('Message\x20ID\x20to\x20proof\x20on-chain'),'network':EntrypointSchema['describe']('Network\x20to\x20use\x20for\x20on-chain\x20proof\x20(required)'),...GoalEvidenceRef})['strict'](),z['object']({'operation':z['literal']('blacklist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'blacklist':BlacklistOperationSchema['describe']('Blacklist\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('friendslist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'friendslist':FriendslistOperationSchema['describe']('Friends\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('guardlist'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'guardlist':GuardlistOperationSchema['describe']('Guard\x20list\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('settings'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'settings':SettingsOperationSchema['describe']('Settings\x20management\x20operation')})['strict'](),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'messageIds':z['array'](z['string']())['min'](0x1)['max'](0x3e8)['describe']('Array\x20of\x20message\x20IDs\x20to\x20mark\x20as\x20viewed\x20(1-1000\x20messages).\x20Only\x20messages\x20belonging\x20to\x20this\x20account\x20will\x20be\x20marked')})['strict'](),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'peerAddress':AccountOrMark_AddressAISchema['describe']('Peer\x20address\x20or\x20account\x20name\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object.\x20All\x20unviewed\x20received\x20messages\x20from\x20this\x20peer\x20will\x20be\x20marked\x20as\x20viewed')})['strict'](),z['object']({'operation':z['literal']('pull_messages'),'account':AccountOrMark_AddressAISchema['optional']()['describe']('Account\x20-\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20If\x20not\x20specified,\x20uses\x20default\x20account\x20(ignored\x20when\x20allAccounts/accounts\x20is\x20set)'),'limit':z['number']()['optional']()['describe']('Maximum\x20number\x20of\x20messages\x20to\x20pull\x20from\x20server\x20per\x20account'),'allAccounts':z['boolean']()['optional']()['describe']('Pull\x20every\x20messenger-enabled\x20account\x20in\x20ONE\x20bounded-concurrency\x20fan-out\x20(default\x20concurrency\x205).\x20Only\x20the\x20process\x20holding\x20each\x20account\x27s\x20polling\x20lock\x20pulls;\x20per-account\x20failures\x20are\x20isolated\x20in\x20the\x20result\x20entries.\x20Returns\x20one\x20result\x20entry\x20per\x20account'),'accounts':z['array'](AccountOrMark_AddressAISchema)['optional']()['describe']('Restrict\x20the\x20fan-out\x20to\x20these\x20accounts\x20(implies\x20allAccounts\x20flow).\x20Each\x20entry\x20can\x20be\x20a\x20string\x20(name/address/mark\x20name)\x20or\x20full\x20object.\x20Cold\x20accounts\x20are\x20initialized\x20on\x20demand'),'concurrency':z['number']()['min'](0x1)['max'](0x14)['optional']()['describe']('Max\x20concurrent\x20account\x20pulls\x20in\x20fan-out\x20mode\x20(default\x205)')})['strict']()])['describe']('Messenger\x20operation\x20input\x20schema.\x20PREREQUISITE:\x20an\x20account\x20must\x20ENABLE\x20messenger\x20before\x20sending/receiving.\x20'+'There\x20is\x20NO\x20\x27enable\x27\x20operation\x20in\x20this\x20tool\x20—\x20enable\x20via\x20account_operation\x20{messenger:\x20{enabled:\x20true,\x20name_or_account:\x20\x27<account>\x27}},\x20'+'or\x20implicitly\x20via\x20send_message/send_file\x20with\x20options.enable_messenger:\x20true.\x20'+'Use\x20proof_message\x20to\x20anchor\x20a\x20message\x27s\x20WTS\x20proof\x20on-chain\x20(creates\x20a\x20Proof\x20object\x20consumable\x20by\x20Guards\x20via\x20proof.signer/proof.time\x20queries).');export const MessengerOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('operation',[z['object']({'operation':z['literal']('watch_conversations'),'result':z['array'](ConversationInfoSchema)['describe']('List\x20of\x20conversations')}),z['object']({'operation':z['literal']('send_message'),'result':SendMessageResultSchema['describe']('Send\x20message\x20result')}),z['object']({'operation':z['literal']('send_file'),'result':SendMessageResultSchema['describe']('Send\x20file\x20result')}),z['object']({'operation':z['literal']('send_required_info'),'result':SendMessageResultSchema['extend']({'sent_fields':z['array'](z['string']())['describe']('LocalInfo\x20field\x20names\x20that\x20were\x20assembled\x20and\x20sent')})['describe']('Send\x20required-info\x20result\x20(with\x20the\x20assembled\x20field\x20names)')}),z['object']({'operation':z['literal']('watch_messages'),'result':z['array'](MessageSchema)['describe']('List\x20of\x20messages')}),z['object']({'operation':z['literal']('save_attachment'),'result':z['string']()['describe']('Absolute\x20path\x20of\x20the\x20saved\x20attachment\x20file')}),z['object']({'operation':z['literal']('generate_wts'),'result':WtsFileResultSchema['describe']('Generate\x20WTS\x20result')}),z['object']({'operation':z['literal']('verify_wts'),'result':WtsVerificationResultSchema['describe']('WTS\x20verification\x20result')}),z['object']({'operation':z['literal']('sign_wts'),'result':z['string']()['describe']('Signed\x20WTS\x20file\x20path')}),z['object']({'operation':z['literal']('wts2html'),'result':z['union']([z['string'](),z['array'](z['string']())])['describe']('Output\x20file\x20path(s)\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)')}),z['object']({'operation':z['literal']('proof_message'),'result':z['object']({'proofAddress':z['string']()['describe']('Proof\x20object\x20address\x20on\x20blockchain')})['describe']('Proof\x20message\x20result')}),z['object']({'operation':z['literal']('blacklist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Blacklist\x20operation\x20result')}),z['object']({'operation':z['literal']('friendslist'),'op':z['enum'](['add','remove','clear','get','exist'])['describe']('Operation\x20type'),'result':z['union']([ListOperationResponseSchema,z['array'](z['string']())])['describe']('Friends\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('guardlist'),'op':z['enum'](['add','remove','get'])['describe']('Operation\x20type'),'result':ListOperationResponseSchema['describe']('Guard\x20list\x20operation\x20result')}),z['object']({'operation':z['literal']('settings'),'op':z['enum'](['get','set'])['describe']('Operation\x20type'),'result':z['union']([GetSettingsResponseSchema,z['boolean']()])['describe']('Settings\x20operation\x20result\x20-\x20GetSettingsResponse\x20for\x20\x27get\x27\x20operation,\x20boolean\x20for\x20\x27set\x27\x20operation')}),z['object']({'operation':z['literal']('mark_messages_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed.\x20Only\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('mark_conversation_as_viewed'),'result':z['number']()['describe']('Number\x20of\x20messages\x20successfully\x20marked\x20as\x20viewed\x20in\x20the\x20conversation.\x20Only\x20received\x20messages\x20that\x20were\x20previously\x20unviewed\x20are\x20counted')}),z['object']({'operation':z['literal']('pull_messages'),'result':z['union']([z['array'](MessageSchema)['describe']('Single-account\x20mode:\x20messages\x20pulled\x20from\x20server'),z['array'](PullAccountResultSchema)['describe']('Fan-out\x20mode\x20(allAccounts/accounts\x20set):\x20one\x20entry\x20per\x20account\x20with\x20isolated\x20errors')])}),z['object']({'operation':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),'error_code':z['string']()['optional']()['describe']('Error\x20code'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20is\x20retryable'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20hint')})['describe']('Error\x20response')])['describe']('Messenger\x20operation\x20result\x20discriminated\x20union'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20messenger\x20operation')})['describe']('Messenger\x20operation\x20output\x20schema');
|