@wowok/agent-mcp 2.3.14 → 2.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/config/index.d.ts +1 -0
  2. package/dist/config/index.js +1 -0
  3. package/dist/config/runtime.d.ts +26 -0
  4. package/dist/config/runtime.js +217 -0
  5. package/dist/customer/index.d.ts +9 -0
  6. package/dist/customer/index.js +9 -0
  7. package/dist/customer/industry-risks.d.ts +40 -0
  8. package/dist/customer/industry-risks.js +438 -0
  9. package/dist/customer/info-puzzle.d.ts +102 -0
  10. package/dist/customer/info-puzzle.js +312 -0
  11. package/dist/customer/order-monitor.d.ts +75 -0
  12. package/dist/customer/order-monitor.js +327 -0
  13. package/dist/customer/order-strategy.d.ts +36 -0
  14. package/dist/customer/order-strategy.js +373 -0
  15. package/dist/customer/post-purchase.d.ts +42 -0
  16. package/dist/customer/post-purchase.js +350 -0
  17. package/dist/customer/reminder-system.d.ts +42 -0
  18. package/dist/customer/reminder-system.js +295 -0
  19. package/dist/customer/risk-assessment.d.ts +8 -0
  20. package/dist/customer/risk-assessment.js +337 -0
  21. package/dist/customer/types.d.ts +193 -0
  22. package/dist/customer/types.js +13 -0
  23. package/dist/customer/user-preferences.d.ts +70 -0
  24. package/dist/customer/user-preferences.js +460 -0
  25. package/dist/experience/experience-reuse.d.ts +10 -0
  26. package/dist/experience/experience-reuse.js +103 -0
  27. package/dist/experience/index.d.ts +6 -0
  28. package/dist/experience/index.js +5 -0
  29. package/dist/experience/intent-distill.d.ts +3 -0
  30. package/dist/experience/intent-distill.js +83 -0
  31. package/dist/experience/realtime-feedback.d.ts +5 -0
  32. package/dist/experience/realtime-feedback.js +94 -0
  33. package/dist/experience/types.d.ts +50 -0
  34. package/dist/experience/types.js +1 -0
  35. package/dist/experience/user-profile.d.ts +25 -0
  36. package/dist/experience/user-profile.js +171 -0
  37. package/dist/index.js +842 -371
  38. package/dist/knowledge/acquisition-flywheel.d.ts +53 -0
  39. package/dist/knowledge/acquisition-flywheel.js +192 -0
  40. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  41. package/dist/knowledge/arbitration-trust.js +117 -0
  42. package/dist/knowledge/audit-rules.d.ts +28 -0
  43. package/dist/knowledge/audit-rules.js +141 -0
  44. package/dist/knowledge/demand-matching.d.ts +29 -0
  45. package/dist/knowledge/demand-matching.js +132 -0
  46. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  47. package/dist/knowledge/dynamic-pricing.js +87 -0
  48. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  49. package/dist/knowledge/flywheel-loop.js +378 -0
  50. package/dist/knowledge/glossary.d.ts +18 -0
  51. package/dist/knowledge/glossary.js +209 -0
  52. package/dist/knowledge/guard-ledger.d.ts +19 -0
  53. package/dist/knowledge/guard-ledger.js +219 -0
  54. package/dist/knowledge/guard-puzzle.d.ts +93 -0
  55. package/dist/knowledge/guard-puzzle.js +278 -0
  56. package/dist/knowledge/guard-risk.d.ts +60 -0
  57. package/dist/knowledge/guard-risk.js +474 -0
  58. package/dist/knowledge/guard-translation.d.ts +46 -0
  59. package/dist/knowledge/guard-translation.js +487 -0
  60. package/dist/knowledge/index.d.ts +77 -0
  61. package/dist/knowledge/index.js +79 -0
  62. package/dist/knowledge/industry-evolution.d.ts +82 -0
  63. package/dist/knowledge/industry-evolution.js +323 -0
  64. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  65. package/dist/knowledge/industry-generalizer.js +381 -0
  66. package/dist/knowledge/industry-registry.d.ts +48 -0
  67. package/dist/knowledge/industry-registry.js +187 -0
  68. package/dist/knowledge/intent-metrics.d.ts +42 -0
  69. package/dist/knowledge/intent-metrics.js +566 -0
  70. package/dist/knowledge/process-model.d.ts +24 -0
  71. package/dist/knowledge/process-model.js +160 -0
  72. package/dist/knowledge/reputation-rules.d.ts +42 -0
  73. package/dist/knowledge/reputation-rules.js +99 -0
  74. package/dist/knowledge/reward-templates.d.ts +25 -0
  75. package/dist/knowledge/reward-templates.js +125 -0
  76. package/dist/knowledge/safety-rules.d.ts +36 -0
  77. package/dist/knowledge/safety-rules.js +232 -0
  78. package/dist/knowledge/tool-constraints.d.ts +30 -0
  79. package/dist/knowledge/tool-constraints.js +175 -0
  80. package/dist/knowledge/trust-metrics.d.ts +37 -0
  81. package/dist/knowledge/trust-metrics.js +138 -0
  82. package/dist/loop-engineering/diagnose.d.ts +3 -2
  83. package/dist/loop-engineering/diagnose.js +94 -0
  84. package/dist/loop-engineering/improve.d.ts +1 -1
  85. package/dist/loop-engineering/improve.js +52 -1
  86. package/dist/project/graph.d.ts +71 -0
  87. package/dist/project/graph.js +314 -0
  88. package/dist/project/index.d.ts +62 -0
  89. package/dist/project/index.js +167 -0
  90. package/dist/project/namespace.d.ts +62 -0
  91. package/dist/project/namespace.js +181 -0
  92. package/dist/project/query.d.ts +40 -0
  93. package/dist/project/query.js +110 -0
  94. package/dist/safety/confirm-gate.d.ts +17 -0
  95. package/dist/safety/confirm-gate.js +88 -0
  96. package/dist/safety/index.d.ts +3 -0
  97. package/dist/safety/index.js +3 -0
  98. package/dist/safety/preview.d.ts +2 -0
  99. package/dist/safety/preview.js +36 -0
  100. package/dist/schema/call/allocation.d.ts +39 -14
  101. package/dist/schema/call/arbitration.d.ts +187 -162
  102. package/dist/schema/call/base.d.ts +1971 -87
  103. package/dist/schema/call/base.js +135 -3
  104. package/dist/schema/call/bridge-handler.js +15 -2
  105. package/dist/schema/call/bridge.d.ts +1478 -53
  106. package/dist/schema/call/bridge.js +50 -2
  107. package/dist/schema/call/contact.d.ts +25 -0
  108. package/dist/schema/call/demand.d.ts +79 -54
  109. package/dist/schema/call/guard.d.ts +125 -50
  110. package/dist/schema/call/handler.d.ts +3 -0
  111. package/dist/schema/call/handler.js +60 -14
  112. package/dist/schema/call/machine.d.ts +988 -938
  113. package/dist/schema/call/order.d.ts +25 -0
  114. package/dist/schema/call/payment.d.ts +25 -0
  115. package/dist/schema/call/permission.d.ts +244 -219
  116. package/dist/schema/call/personal.d.ts +25 -0
  117. package/dist/schema/call/progress.d.ts +25 -0
  118. package/dist/schema/call/proof.d.ts +62 -12
  119. package/dist/schema/call/proof.js +3 -3
  120. package/dist/schema/call/repository.d.ts +101 -76
  121. package/dist/schema/call/reward.d.ts +55 -30
  122. package/dist/schema/call/semantic.d.ts +10 -2
  123. package/dist/schema/call/semantic.js +616 -11
  124. package/dist/schema/call/service.d.ts +442 -417
  125. package/dist/schema/call/treasury.d.ts +25 -0
  126. package/dist/schema/common/index.js +3 -3
  127. package/dist/schema/config/index.d.ts +18 -0
  128. package/dist/schema/config/index.js +17 -0
  129. package/dist/schema/index.d.ts +6 -0
  130. package/dist/schema/index.js +5 -0
  131. package/dist/schema/local/index.d.ts +237 -81
  132. package/dist/schema/local/index.js +42 -6
  133. package/dist/schema/messenger/index.d.ts +1018 -79
  134. package/dist/schema/messenger/index.js +26 -17
  135. package/dist/schema/operations.d.ts +3192 -1746
  136. package/dist/schema/operations.js +93 -98
  137. package/dist/schema/project/index.d.ts +21 -0
  138. package/dist/schema/project/index.js +32 -0
  139. package/dist/schema/query/index.d.ts +2762 -1856
  140. package/dist/schema/query/index.js +38 -35
  141. package/dist/schema/schema-query/index.d.ts +33 -0
  142. package/dist/schema/schema-query/index.js +36 -0
  143. package/dist/schema/schema-version.d.ts +25 -0
  144. package/dist/schema/schema-version.js +76 -0
  145. package/dist/schema/trust/index.d.ts +407 -0
  146. package/dist/schema/trust/index.js +113 -0
  147. package/dist/schemas/account_operation.output.json +25 -16
  148. package/dist/schemas/account_operation.schema.json +1 -1
  149. package/dist/schemas/bridge_operation.output.json +744 -0
  150. package/dist/schemas/bridge_operation.schema.json +82 -8
  151. package/dist/schemas/config_operation.output.json +18 -0
  152. package/dist/schemas/config_operation.schema.json +34 -0
  153. package/dist/schemas/guard-node-schema.json +82 -0
  154. package/dist/schemas/guard2file.schema.json +23 -0
  155. package/dist/schemas/index.json +19 -1
  156. package/dist/schemas/local_info_operation.output.json +23 -0
  157. package/dist/schemas/local_info_operation.schema.json +1 -1
  158. package/dist/schemas/local_mark_operation.output.json +24 -1
  159. package/dist/schemas/local_mark_operation.schema.json +4 -4
  160. package/dist/schemas/machineNode2file.schema.json +23 -0
  161. package/dist/schemas/messenger_operation.output.json +752 -0
  162. package/dist/schemas/onchain_events.output.json +718 -0
  163. package/dist/schemas/onchain_operations.output.json +627 -18
  164. package/dist/schemas/onchain_operations.schema.json +115 -39
  165. package/dist/schemas/onchain_operations_allocation.schema.json +23 -0
  166. package/dist/schemas/onchain_operations_arbitration.schema.json +23 -0
  167. package/dist/schemas/onchain_operations_contact.schema.json +23 -0
  168. package/dist/schemas/onchain_operations_demand.schema.json +23 -0
  169. package/dist/schemas/onchain_operations_gen_passport.schema.json +46 -0
  170. package/dist/schemas/onchain_operations_guard.schema.json +26 -16
  171. package/dist/schemas/onchain_operations_machine.schema.json +89 -23
  172. package/dist/schemas/onchain_operations_order.schema.json +23 -0
  173. package/dist/schemas/onchain_operations_payment.schema.json +23 -0
  174. package/dist/schemas/onchain_operations_permission.schema.json +23 -0
  175. package/dist/schemas/onchain_operations_personal.schema.json +23 -0
  176. package/dist/schemas/onchain_operations_progress.schema.json +23 -0
  177. package/dist/schemas/onchain_operations_repository.schema.json +23 -0
  178. package/dist/schemas/onchain_operations_reward.schema.json +23 -0
  179. package/dist/schemas/onchain_operations_service.schema.json +23 -0
  180. package/dist/schemas/onchain_operations_treasury.schema.json +23 -0
  181. package/dist/schemas/onchain_table_data.output.json +939 -69
  182. package/dist/schemas/onchain_table_data.schema.json +2 -2
  183. package/dist/schemas/project_operation.output.json +18 -0
  184. package/dist/schemas/project_operation.schema.json +42 -0
  185. package/dist/schemas/query_toolkit.schema.json +360 -368
  186. package/dist/schemas/schema_query.schema.json +6 -3
  187. package/dist/schemas/trust_score.output.json +327 -0
  188. package/dist/schemas/trust_score.schema.json +46 -0
  189. package/package.json +2 -2
@@ -91,7 +91,7 @@ export declare const MessageSchema: z.ZodObject<{
91
91
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
92
92
  viewedAt: z.ZodOptional<z.ZodNumber>;
93
93
  }, "strip", z.ZodTypeAny, {
94
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
94
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
95
95
  createdAt: number;
96
96
  direction: "received" | "sent";
97
97
  messageId: string;
@@ -130,7 +130,7 @@ export declare const MessageSchema: z.ZodObject<{
130
130
  lastDecryptAttemptAt?: number | undefined;
131
131
  viewedAt?: number | undefined;
132
132
  }, {
133
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
133
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
134
134
  createdAt: number;
135
135
  direction: "received" | "sent";
136
136
  messageId: string;
@@ -239,7 +239,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
239
239
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
240
240
  viewedAt: z.ZodOptional<z.ZodNumber>;
241
241
  }, "strip", z.ZodTypeAny, {
242
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
242
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
243
243
  createdAt: number;
244
244
  direction: "received" | "sent";
245
245
  messageId: string;
@@ -278,7 +278,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
278
278
  lastDecryptAttemptAt?: number | undefined;
279
279
  viewedAt?: number | undefined;
280
280
  }, {
281
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
281
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
282
282
  createdAt: number;
283
283
  direction: "received" | "sent";
284
284
  messageId: string;
@@ -324,7 +324,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
324
324
  unreadCount: number;
325
325
  lastMessagePreview?: string | undefined;
326
326
  previewMessages?: {
327
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
327
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
328
328
  createdAt: number;
329
329
  direction: "received" | "sent";
330
330
  messageId: string;
@@ -370,7 +370,7 @@ export declare const ConversationInfoSchema: z.ZodObject<{
370
370
  unreadCount: number;
371
371
  lastMessagePreview?: string | undefined;
372
372
  previewMessages?: {
373
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
373
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
374
374
  createdAt: number;
375
375
  direction: "received" | "sent";
376
376
  messageId: string;
@@ -426,7 +426,7 @@ export declare const ConversationsFilterSchema: z.ZodObject<{
426
426
  endTime?: number | undefined;
427
427
  previewMessageCount?: number | undefined;
428
428
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
429
- sortOrder?: "asc" | "desc" | undefined;
429
+ sortOrder?: "desc" | "asc" | undefined;
430
430
  skipAutoMarkViewed?: boolean | undefined;
431
431
  }, {
432
432
  account?: string | undefined;
@@ -435,7 +435,7 @@ export declare const ConversationsFilterSchema: z.ZodObject<{
435
435
  endTime?: number | undefined;
436
436
  previewMessageCount?: number | undefined;
437
437
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
438
- sortOrder?: "asc" | "desc" | undefined;
438
+ sortOrder?: "desc" | "asc" | undefined;
439
439
  skipAutoMarkViewed?: boolean | undefined;
440
440
  }>;
441
441
  export declare const MessageFilterSchema: z.ZodObject<{
@@ -495,7 +495,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
495
495
  viewedAtEnd: z.ZodOptional<z.ZodNumber>;
496
496
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
497
497
  }, "strip", z.ZodTypeAny, {
498
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
498
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
499
499
  account?: string | undefined;
500
500
  limit?: number | undefined;
501
501
  direction?: "received" | "sent" | undefined;
@@ -507,7 +507,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
507
507
  } | undefined;
508
508
  startTime?: number | undefined;
509
509
  endTime?: number | undefined;
510
- sortOrder?: "asc" | "desc" | undefined;
510
+ sortOrder?: "desc" | "asc" | undefined;
511
511
  skipAutoMarkViewed?: boolean | undefined;
512
512
  decryptedOnly?: boolean | undefined;
513
513
  confirmedOnly?: boolean | undefined;
@@ -537,7 +537,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
537
537
  viewedAtStart?: number | undefined;
538
538
  viewedAtEnd?: number | undefined;
539
539
  }, {
540
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
540
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
541
541
  account?: string | undefined;
542
542
  limit?: number | undefined;
543
543
  direction?: "received" | "sent" | undefined;
@@ -549,7 +549,7 @@ export declare const MessageFilterSchema: z.ZodObject<{
549
549
  } | undefined;
550
550
  startTime?: number | undefined;
551
551
  endTime?: number | undefined;
552
- sortOrder?: "asc" | "desc" | undefined;
552
+ sortOrder?: "desc" | "asc" | undefined;
553
553
  skipAutoMarkViewed?: boolean | undefined;
554
554
  decryptedOnly?: boolean | undefined;
555
555
  confirmedOnly?: boolean | undefined;
@@ -651,7 +651,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
651
651
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
652
652
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
653
653
  }, "strip", z.ZodTypeAny, {
654
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
654
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
655
655
  messageId: string;
656
656
  lastReceivedLeafIndex?: number | undefined;
657
657
  merkleData?: {
@@ -664,7 +664,7 @@ export declare const SendMessageResultSchema: z.ZodObject<{
664
664
  } | undefined;
665
665
  guardList?: string[] | undefined;
666
666
  }, {
667
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
667
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
668
668
  messageId: string;
669
669
  lastReceivedLeafIndex?: number | undefined;
670
670
  merkleData?: {
@@ -1429,7 +1429,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1429
1429
  endTime?: number | undefined;
1430
1430
  previewMessageCount?: number | undefined;
1431
1431
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
1432
- sortOrder?: "asc" | "desc" | undefined;
1432
+ sortOrder?: "desc" | "asc" | undefined;
1433
1433
  skipAutoMarkViewed?: boolean | undefined;
1434
1434
  }, {
1435
1435
  account?: string | undefined;
@@ -1438,10 +1438,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1438
1438
  endTime?: number | undefined;
1439
1439
  previewMessageCount?: number | undefined;
1440
1440
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
1441
- sortOrder?: "asc" | "desc" | undefined;
1441
+ sortOrder?: "desc" | "asc" | undefined;
1442
1442
  skipAutoMarkViewed?: boolean | undefined;
1443
1443
  }>>;
1444
- }, "strip", z.ZodTypeAny, {
1444
+ }, "strict", z.ZodTypeAny, {
1445
1445
  operation: "watch_conversations";
1446
1446
  filter?: {
1447
1447
  account?: string | undefined;
@@ -1450,7 +1450,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1450
1450
  endTime?: number | undefined;
1451
1451
  previewMessageCount?: number | undefined;
1452
1452
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
1453
- sortOrder?: "asc" | "desc" | undefined;
1453
+ sortOrder?: "desc" | "asc" | undefined;
1454
1454
  skipAutoMarkViewed?: boolean | undefined;
1455
1455
  } | undefined;
1456
1456
  }, {
@@ -1462,7 +1462,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1462
1462
  endTime?: number | undefined;
1463
1463
  previewMessageCount?: number | undefined;
1464
1464
  sortBy?: "lastMessageAt" | "messageCount" | "unreadCount" | undefined;
1465
- sortOrder?: "asc" | "desc" | undefined;
1465
+ sortOrder?: "desc" | "asc" | undefined;
1466
1466
  skipAutoMarkViewed?: boolean | undefined;
1467
1467
  } | undefined;
1468
1468
  }>, z.ZodObject<{
@@ -1498,7 +1498,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1498
1498
  force?: boolean | undefined;
1499
1499
  new_messenger_name?: string | undefined;
1500
1500
  }>>;
1501
- }, "strip", z.ZodTypeAny, {
1501
+ }, "strict", z.ZodTypeAny, {
1502
1502
  content: string;
1503
1503
  to: string | {
1504
1504
  name_or_address?: string | undefined;
@@ -1567,7 +1567,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1567
1567
  force?: boolean | undefined;
1568
1568
  new_messenger_name?: string | undefined;
1569
1569
  }>>;
1570
- }, "strip", z.ZodTypeAny, {
1570
+ }, "strict", z.ZodTypeAny, {
1571
1571
  filePath: string;
1572
1572
  to: string | {
1573
1573
  name_or_address?: string | undefined;
@@ -1660,7 +1660,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1660
1660
  viewedAtEnd: z.ZodOptional<z.ZodNumber>;
1661
1661
  skipAutoMarkViewed: z.ZodOptional<z.ZodBoolean>;
1662
1662
  }, "strip", z.ZodTypeAny, {
1663
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1663
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1664
1664
  account?: string | undefined;
1665
1665
  limit?: number | undefined;
1666
1666
  direction?: "received" | "sent" | undefined;
@@ -1672,7 +1672,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1672
1672
  } | undefined;
1673
1673
  startTime?: number | undefined;
1674
1674
  endTime?: number | undefined;
1675
- sortOrder?: "asc" | "desc" | undefined;
1675
+ sortOrder?: "desc" | "asc" | undefined;
1676
1676
  skipAutoMarkViewed?: boolean | undefined;
1677
1677
  decryptedOnly?: boolean | undefined;
1678
1678
  confirmedOnly?: boolean | undefined;
@@ -1702,7 +1702,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1702
1702
  viewedAtStart?: number | undefined;
1703
1703
  viewedAtEnd?: number | undefined;
1704
1704
  }, {
1705
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1705
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1706
1706
  account?: string | undefined;
1707
1707
  limit?: number | undefined;
1708
1708
  direction?: "received" | "sent" | undefined;
@@ -1714,7 +1714,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1714
1714
  } | undefined;
1715
1715
  startTime?: number | undefined;
1716
1716
  endTime?: number | undefined;
1717
- sortOrder?: "asc" | "desc" | undefined;
1717
+ sortOrder?: "desc" | "asc" | undefined;
1718
1718
  skipAutoMarkViewed?: boolean | undefined;
1719
1719
  decryptedOnly?: boolean | undefined;
1720
1720
  confirmedOnly?: boolean | undefined;
@@ -1744,10 +1744,10 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1744
1744
  viewedAtStart?: number | undefined;
1745
1745
  viewedAtEnd?: number | undefined;
1746
1746
  }>>;
1747
- }, "strip", z.ZodTypeAny, {
1747
+ }, "strict", z.ZodTypeAny, {
1748
1748
  operation: "watch_messages";
1749
1749
  filter?: {
1750
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1750
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1751
1751
  account?: string | undefined;
1752
1752
  limit?: number | undefined;
1753
1753
  direction?: "received" | "sent" | undefined;
@@ -1759,7 +1759,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1759
1759
  } | undefined;
1760
1760
  startTime?: number | undefined;
1761
1761
  endTime?: number | undefined;
1762
- sortOrder?: "asc" | "desc" | undefined;
1762
+ sortOrder?: "desc" | "asc" | undefined;
1763
1763
  skipAutoMarkViewed?: boolean | undefined;
1764
1764
  decryptedOnly?: boolean | undefined;
1765
1765
  confirmedOnly?: boolean | undefined;
@@ -1792,7 +1792,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1792
1792
  }, {
1793
1793
  operation: "watch_messages";
1794
1794
  filter?: {
1795
- status?: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1795
+ status?: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed" | undefined;
1796
1796
  account?: string | undefined;
1797
1797
  limit?: number | undefined;
1798
1798
  direction?: "received" | "sent" | undefined;
@@ -1804,7 +1804,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1804
1804
  } | undefined;
1805
1805
  startTime?: number | undefined;
1806
1806
  endTime?: number | undefined;
1807
- sortOrder?: "asc" | "desc" | undefined;
1807
+ sortOrder?: "desc" | "asc" | undefined;
1808
1808
  skipAutoMarkViewed?: boolean | undefined;
1809
1809
  decryptedOnly?: boolean | undefined;
1810
1810
  confirmedOnly?: boolean | undefined;
@@ -1901,7 +1901,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1901
1901
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
1902
1902
  viewedAt: z.ZodOptional<z.ZodNumber>;
1903
1903
  }, "strip", z.ZodTypeAny, {
1904
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1904
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1905
1905
  createdAt: number;
1906
1906
  direction: "received" | "sent";
1907
1907
  messageId: string;
@@ -1940,7 +1940,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1940
1940
  lastDecryptAttemptAt?: number | undefined;
1941
1941
  viewedAt?: number | undefined;
1942
1942
  }, {
1943
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1943
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1944
1944
  createdAt: number;
1945
1945
  direction: "received" | "sent";
1946
1946
  messageId: string;
@@ -1980,11 +1980,11 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1980
1980
  viewedAt?: number | undefined;
1981
1981
  }>]>, "many">;
1982
1982
  outputDir: z.ZodString;
1983
- }, "strip", z.ZodTypeAny, {
1983
+ }, "strict", z.ZodTypeAny, {
1984
1984
  operation: "extract_zip_messages";
1985
1985
  outputDir: string;
1986
1986
  messages: (string | {
1987
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1987
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
1988
1988
  createdAt: number;
1989
1989
  direction: "received" | "sent";
1990
1990
  messageId: string;
@@ -2028,7 +2028,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2028
2028
  operation: "extract_zip_messages";
2029
2029
  outputDir: string;
2030
2030
  messages: (string | {
2031
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2031
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2032
2032
  createdAt: number;
2033
2033
  direction: "received" | "sent";
2034
2034
  messageId: string;
@@ -2164,7 +2164,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2164
2164
  } | undefined;
2165
2165
  excludePlaintext?: boolean | undefined;
2166
2166
  }>;
2167
- }, "strip", z.ZodTypeAny, {
2167
+ }, "strict", z.ZodTypeAny, {
2168
2168
  params: {
2169
2169
  myAccount: string;
2170
2170
  peerAccount: string | {
@@ -2215,7 +2215,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2215
2215
  }>, z.ZodObject<{
2216
2216
  operation: z.ZodLiteral<"verify_wts">;
2217
2217
  wtsFilePath: z.ZodString;
2218
- }, "strip", z.ZodTypeAny, {
2218
+ }, "strict", z.ZodTypeAny, {
2219
2219
  operation: "verify_wts";
2220
2220
  wtsFilePath: string;
2221
2221
  }, {
@@ -2226,7 +2226,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2226
2226
  wtsFilePath: z.ZodString;
2227
2227
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2228
2228
  outputPath: z.ZodOptional<z.ZodString>;
2229
- }, "strip", z.ZodTypeAny, {
2229
+ }, "strict", z.ZodTypeAny, {
2230
2230
  operation: "sign_wts";
2231
2231
  wtsFilePath: string;
2232
2232
  account?: string | undefined;
@@ -2252,7 +2252,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2252
2252
  theme?: "light" | "dark" | undefined;
2253
2253
  outputPath?: string | undefined;
2254
2254
  }>>;
2255
- }, "strip", z.ZodTypeAny, {
2255
+ }, "strict", z.ZodTypeAny, {
2256
2256
  operation: "wts2html";
2257
2257
  wtsPath: string;
2258
2258
  options?: {
@@ -2273,7 +2273,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2273
2273
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2274
2274
  messageId: z.ZodString;
2275
2275
  network: z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>;
2276
- }, "strip", z.ZodTypeAny, {
2276
+ }, "strict", z.ZodTypeAny, {
2277
2277
  network: import("@wowok/wowok").ENTRYPOINT;
2278
2278
  operation: "proof_message";
2279
2279
  messageId: string;
@@ -2434,7 +2434,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2434
2434
  check_all_founded?: boolean | undefined;
2435
2435
  } | string[];
2436
2436
  }>]>;
2437
- }, "strip", z.ZodTypeAny, {
2437
+ }, "strict", z.ZodTypeAny, {
2438
2438
  operation: "blacklist";
2439
2439
  blacklist: {
2440
2440
  op: "add";
@@ -2655,7 +2655,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2655
2655
  check_all_founded?: boolean | undefined;
2656
2656
  } | string[];
2657
2657
  }>]>;
2658
- }, "strip", z.ZodTypeAny, {
2658
+ }, "strict", z.ZodTypeAny, {
2659
2659
  operation: "friendslist";
2660
2660
  friendslist: {
2661
2661
  op: "add";
@@ -2768,7 +2768,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2768
2768
  }, {
2769
2769
  op: "get";
2770
2770
  }>]>;
2771
- }, "strip", z.ZodTypeAny, {
2771
+ }, "strict", z.ZodTypeAny, {
2772
2772
  operation: "guardlist";
2773
2773
  guardlist: {
2774
2774
  op: "add";
@@ -2820,7 +2820,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2820
2820
  allowStrangerMessages?: boolean | undefined;
2821
2821
  maxInboxSize?: number | undefined;
2822
2822
  }>]>;
2823
- }, "strip", z.ZodTypeAny, {
2823
+ }, "strict", z.ZodTypeAny, {
2824
2824
  operation: "settings";
2825
2825
  settings: {
2826
2826
  op: "get";
@@ -2844,7 +2844,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2844
2844
  operation: z.ZodLiteral<"mark_messages_as_viewed">;
2845
2845
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2846
2846
  messageIds: z.ZodArray<z.ZodString, "many">;
2847
- }, "strip", z.ZodTypeAny, {
2847
+ }, "strict", z.ZodTypeAny, {
2848
2848
  operation: "mark_messages_as_viewed";
2849
2849
  messageIds: string[];
2850
2850
  account?: string | undefined;
@@ -2865,7 +2865,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2865
2865
  name_or_address?: string | undefined;
2866
2866
  local_mark_first?: boolean | undefined;
2867
2867
  }>]>;
2868
- }, "strip", z.ZodTypeAny, {
2868
+ }, "strict", z.ZodTypeAny, {
2869
2869
  operation: "mark_conversation_as_viewed";
2870
2870
  peerAddress: string | {
2871
2871
  name_or_address?: string | undefined;
@@ -2883,7 +2883,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
2883
2883
  operation: z.ZodLiteral<"pull_messages">;
2884
2884
  account: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2885
2885
  limit: z.ZodOptional<z.ZodNumber>;
2886
- }, "strip", z.ZodTypeAny, {
2886
+ }, "strict", z.ZodTypeAny, {
2887
2887
  operation: "pull_messages";
2888
2888
  account?: string | undefined;
2889
2889
  limit?: number | undefined;
@@ -2965,7 +2965,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
2965
2965
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
2966
2966
  viewedAt: z.ZodOptional<z.ZodNumber>;
2967
2967
  }, "strip", z.ZodTypeAny, {
2968
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2968
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
2969
2969
  createdAt: number;
2970
2970
  direction: "received" | "sent";
2971
2971
  messageId: string;
@@ -3004,7 +3004,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3004
3004
  lastDecryptAttemptAt?: number | undefined;
3005
3005
  viewedAt?: number | undefined;
3006
3006
  }, {
3007
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3007
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3008
3008
  createdAt: number;
3009
3009
  direction: "received" | "sent";
3010
3010
  messageId: string;
@@ -3050,7 +3050,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3050
3050
  unreadCount: number;
3051
3051
  lastMessagePreview?: string | undefined;
3052
3052
  previewMessages?: {
3053
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3053
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3054
3054
  createdAt: number;
3055
3055
  direction: "received" | "sent";
3056
3056
  messageId: string;
@@ -3096,7 +3096,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3096
3096
  unreadCount: number;
3097
3097
  lastMessagePreview?: string | undefined;
3098
3098
  previewMessages?: {
3099
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3099
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3100
3100
  createdAt: number;
3101
3101
  direction: "received" | "sent";
3102
3102
  messageId: string;
@@ -3144,7 +3144,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3144
3144
  unreadCount: number;
3145
3145
  lastMessagePreview?: string | undefined;
3146
3146
  previewMessages?: {
3147
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3147
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3148
3148
  createdAt: number;
3149
3149
  direction: "received" | "sent";
3150
3150
  messageId: string;
@@ -3193,7 +3193,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3193
3193
  unreadCount: number;
3194
3194
  lastMessagePreview?: string | undefined;
3195
3195
  previewMessages?: {
3196
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3196
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3197
3197
  createdAt: number;
3198
3198
  direction: "received" | "sent";
3199
3199
  messageId: string;
@@ -3264,7 +3264,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3264
3264
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3265
3265
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
3266
3266
  }, "strip", z.ZodTypeAny, {
3267
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3267
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3268
3268
  messageId: string;
3269
3269
  lastReceivedLeafIndex?: number | undefined;
3270
3270
  merkleData?: {
@@ -3277,7 +3277,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3277
3277
  } | undefined;
3278
3278
  guardList?: string[] | undefined;
3279
3279
  }, {
3280
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3280
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3281
3281
  messageId: string;
3282
3282
  lastReceivedLeafIndex?: number | undefined;
3283
3283
  merkleData?: {
@@ -3292,7 +3292,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3292
3292
  }>;
3293
3293
  }, "strip", z.ZodTypeAny, {
3294
3294
  result: {
3295
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3295
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3296
3296
  messageId: string;
3297
3297
  lastReceivedLeafIndex?: number | undefined;
3298
3298
  merkleData?: {
@@ -3308,7 +3308,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3308
3308
  operation: "send_message";
3309
3309
  }, {
3310
3310
  result: {
3311
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3311
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3312
3312
  messageId: string;
3313
3313
  lastReceivedLeafIndex?: number | undefined;
3314
3314
  merkleData?: {
@@ -3352,7 +3352,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3352
3352
  guardList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3353
3353
  lastReceivedLeafIndex: z.ZodOptional<z.ZodNumber>;
3354
3354
  }, "strip", z.ZodTypeAny, {
3355
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3355
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3356
3356
  messageId: string;
3357
3357
  lastReceivedLeafIndex?: number | undefined;
3358
3358
  merkleData?: {
@@ -3365,7 +3365,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3365
3365
  } | undefined;
3366
3366
  guardList?: string[] | undefined;
3367
3367
  }, {
3368
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3368
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3369
3369
  messageId: string;
3370
3370
  lastReceivedLeafIndex?: number | undefined;
3371
3371
  merkleData?: {
@@ -3380,7 +3380,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3380
3380
  }>;
3381
3381
  }, "strip", z.ZodTypeAny, {
3382
3382
  result: {
3383
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3383
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3384
3384
  messageId: string;
3385
3385
  lastReceivedLeafIndex?: number | undefined;
3386
3386
  merkleData?: {
@@ -3396,7 +3396,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3396
3396
  operation: "send_file";
3397
3397
  }, {
3398
3398
  result: {
3399
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3399
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3400
3400
  messageId: string;
3401
3401
  lastReceivedLeafIndex?: number | undefined;
3402
3402
  merkleData?: {
@@ -3476,7 +3476,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3476
3476
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
3477
3477
  viewedAt: z.ZodOptional<z.ZodNumber>;
3478
3478
  }, "strip", z.ZodTypeAny, {
3479
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3479
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3480
3480
  createdAt: number;
3481
3481
  direction: "received" | "sent";
3482
3482
  messageId: string;
@@ -3515,7 +3515,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3515
3515
  lastDecryptAttemptAt?: number | undefined;
3516
3516
  viewedAt?: number | undefined;
3517
3517
  }, {
3518
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3518
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3519
3519
  createdAt: number;
3520
3520
  direction: "received" | "sent";
3521
3521
  messageId: string;
@@ -3556,7 +3556,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3556
3556
  }>, "many">;
3557
3557
  }, "strip", z.ZodTypeAny, {
3558
3558
  result: {
3559
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3559
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3560
3560
  createdAt: number;
3561
3561
  direction: "received" | "sent";
3562
3562
  messageId: string;
@@ -3598,7 +3598,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
3598
3598
  operation: "watch_messages";
3599
3599
  }, {
3600
3600
  result: {
3601
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3601
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
3602
3602
  createdAt: number;
3603
3603
  direction: "received" | "sent";
3604
3604
  messageId: string;
@@ -4259,7 +4259,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4259
4259
  lastDecryptAttemptAt: z.ZodOptional<z.ZodNumber>;
4260
4260
  viewedAt: z.ZodOptional<z.ZodNumber>;
4261
4261
  }, "strip", z.ZodTypeAny, {
4262
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4262
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4263
4263
  createdAt: number;
4264
4264
  direction: "received" | "sent";
4265
4265
  messageId: string;
@@ -4298,7 +4298,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4298
4298
  lastDecryptAttemptAt?: number | undefined;
4299
4299
  viewedAt?: number | undefined;
4300
4300
  }, {
4301
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4301
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4302
4302
  createdAt: number;
4303
4303
  direction: "received" | "sent";
4304
4304
  messageId: string;
@@ -4339,7 +4339,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4339
4339
  }>, "many">;
4340
4340
  }, "strip", z.ZodTypeAny, {
4341
4341
  result: {
4342
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4342
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4343
4343
  createdAt: number;
4344
4344
  direction: "received" | "sent";
4345
4345
  messageId: string;
@@ -4381,7 +4381,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4381
4381
  operation: "pull_messages";
4382
4382
  }, {
4383
4383
  result: {
4384
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4384
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4385
4385
  createdAt: number;
4386
4386
  direction: "received" | "sent";
4387
4387
  messageId: string;
@@ -4421,7 +4421,688 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4421
4421
  viewedAt?: number | undefined;
4422
4422
  }[];
4423
4423
  operation: "pull_messages";
4424
+ }>, z.ZodObject<{
4425
+ operation: z.ZodLiteral<"error">;
4426
+ error: z.ZodString;
4427
+ error_code: z.ZodOptional<z.ZodString>;
4428
+ retryable: z.ZodOptional<z.ZodBoolean>;
4429
+ recovery_hint: z.ZodOptional<z.ZodString>;
4430
+ }, "strip", z.ZodTypeAny, {
4431
+ error: string;
4432
+ operation: "error";
4433
+ error_code?: string | undefined;
4434
+ retryable?: boolean | undefined;
4435
+ recovery_hint?: string | undefined;
4436
+ }, {
4437
+ error: string;
4438
+ operation: "error";
4439
+ error_code?: string | undefined;
4440
+ retryable?: boolean | undefined;
4441
+ recovery_hint?: string | undefined;
4424
4442
  }>]>;
4443
+ semantic: z.ZodOptional<z.ZodObject<{
4444
+ intent: z.ZodString;
4445
+ status: z.ZodEnum<["success", "partial", "failed", "pending_input"]>;
4446
+ summary: z.ZodString;
4447
+ created: z.ZodOptional<z.ZodArray<z.ZodObject<{
4448
+ id: z.ZodString;
4449
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4450
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
4451
+ relation: z.ZodOptional<z.ZodObject<{
4452
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4453
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
4454
+ }, "strip", z.ZodTypeAny, {
4455
+ parent?: string | null | undefined;
4456
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4457
+ }, {
4458
+ parent?: string | null | undefined;
4459
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4460
+ }>>;
4461
+ immutable: z.ZodOptional<z.ZodBoolean>;
4462
+ }, "strict", z.ZodTypeAny, {
4463
+ id: string;
4464
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4465
+ name?: string | null | undefined;
4466
+ relation?: {
4467
+ parent?: string | null | undefined;
4468
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4469
+ } | undefined;
4470
+ immutable?: boolean | undefined;
4471
+ }, {
4472
+ id: string;
4473
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4474
+ name?: string | null | undefined;
4475
+ relation?: {
4476
+ parent?: string | null | undefined;
4477
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4478
+ } | undefined;
4479
+ immutable?: boolean | undefined;
4480
+ }>, "many">>;
4481
+ modified: z.ZodOptional<z.ZodArray<z.ZodObject<{
4482
+ id: z.ZodString;
4483
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4484
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
4485
+ relation: z.ZodOptional<z.ZodObject<{
4486
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4487
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
4488
+ }, "strip", z.ZodTypeAny, {
4489
+ parent?: string | null | undefined;
4490
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4491
+ }, {
4492
+ parent?: string | null | undefined;
4493
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4494
+ }>>;
4495
+ immutable: z.ZodOptional<z.ZodBoolean>;
4496
+ }, "strict", z.ZodTypeAny, {
4497
+ id: string;
4498
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4499
+ name?: string | null | undefined;
4500
+ relation?: {
4501
+ parent?: string | null | undefined;
4502
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4503
+ } | undefined;
4504
+ immutable?: boolean | undefined;
4505
+ }, {
4506
+ id: string;
4507
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4508
+ name?: string | null | undefined;
4509
+ relation?: {
4510
+ parent?: string | null | undefined;
4511
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4512
+ } | undefined;
4513
+ immutable?: boolean | undefined;
4514
+ }>, "many">>;
4515
+ released: z.ZodOptional<z.ZodArray<z.ZodObject<{
4516
+ amount: z.ZodString;
4517
+ coinType: z.ZodString;
4518
+ role: z.ZodEnum<["payment", "refund", "change", "compensation", "reward", "gas", "deposit", "release", "other"]>;
4519
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4520
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4521
+ }, "strict", z.ZodTypeAny, {
4522
+ coinType: string;
4523
+ amount: string;
4524
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
4525
+ from?: string | null | undefined;
4526
+ to?: string | null | undefined;
4527
+ }, {
4528
+ coinType: string;
4529
+ amount: string;
4530
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
4531
+ from?: string | null | undefined;
4532
+ to?: string | null | undefined;
4533
+ }>, "many">>;
4534
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
4535
+ event_type: z.ZodString;
4536
+ business_meaning: z.ZodString;
4537
+ category: z.ZodEnum<["lifecycle", "state_change", "fund_flow", "permission", "guard", "other"]>;
4538
+ related_object: z.ZodOptional<z.ZodString>;
4539
+ side_effect: z.ZodOptional<z.ZodString>;
4540
+ }, "strict", z.ZodTypeAny, {
4541
+ event_type: string;
4542
+ business_meaning: string;
4543
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
4544
+ related_object?: string | undefined;
4545
+ side_effect?: string | undefined;
4546
+ }, {
4547
+ event_type: string;
4548
+ business_meaning: string;
4549
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
4550
+ related_object?: string | undefined;
4551
+ side_effect?: string | undefined;
4552
+ }>, "many">>;
4553
+ next_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4554
+ action: z.ZodString;
4555
+ reason: z.ZodString;
4556
+ tool: z.ZodOptional<z.ZodString>;
4557
+ prerequisite: z.ZodOptional<z.ZodString>;
4558
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
4559
+ }, "strict", z.ZodTypeAny, {
4560
+ action: string;
4561
+ reason: string;
4562
+ priority: "required" | "recommended" | "optional";
4563
+ tool?: string | undefined;
4564
+ prerequisite?: string | undefined;
4565
+ }, {
4566
+ action: string;
4567
+ reason: string;
4568
+ priority: "required" | "recommended" | "optional";
4569
+ tool?: string | undefined;
4570
+ prerequisite?: string | undefined;
4571
+ }>, "many">>;
4572
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4573
+ experience: z.ZodOptional<z.ZodObject<{
4574
+ advice: z.ZodOptional<z.ZodString>;
4575
+ avoid: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4576
+ relevance: z.ZodOptional<z.ZodNumber>;
4577
+ matched_scenario: z.ZodOptional<z.ZodString>;
4578
+ }, "strict", z.ZodTypeAny, {
4579
+ advice?: string | undefined;
4580
+ avoid?: string[] | undefined;
4581
+ relevance?: number | undefined;
4582
+ matched_scenario?: string | undefined;
4583
+ }, {
4584
+ advice?: string | undefined;
4585
+ avoid?: string[] | undefined;
4586
+ relevance?: number | undefined;
4587
+ matched_scenario?: string | undefined;
4588
+ }>>;
4589
+ service_status: z.ZodOptional<z.ZodObject<{
4590
+ active: z.ZodArray<z.ZodString, "many">;
4591
+ inactive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4592
+ }, "strict", z.ZodTypeAny, {
4593
+ active: string[];
4594
+ inactive?: string[] | undefined;
4595
+ }, {
4596
+ active: string[];
4597
+ inactive?: string[] | undefined;
4598
+ }>>;
4599
+ customer_advice: z.ZodOptional<z.ZodObject<{
4600
+ risk_score: z.ZodOptional<z.ZodNumber>;
4601
+ risk_level: z.ZodOptional<z.ZodEnum<["low", "medium_low", "medium_high", "high"]>>;
4602
+ recommendations: z.ZodArray<z.ZodString, "many">;
4603
+ reminders: z.ZodArray<z.ZodObject<{
4604
+ id: z.ZodString;
4605
+ stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
4606
+ priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
4607
+ message: z.ZodString;
4608
+ action: z.ZodOptional<z.ZodString>;
4609
+ }, "strict", z.ZodTypeAny, {
4610
+ message: string;
4611
+ id: string;
4612
+ priority: "required" | "recommended" | "info" | "reminder";
4613
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4614
+ action?: string | undefined;
4615
+ }, {
4616
+ message: string;
4617
+ id: string;
4618
+ priority: "required" | "recommended" | "info" | "reminder";
4619
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4620
+ action?: string | undefined;
4621
+ }>, "many">;
4622
+ preference_match: z.ZodOptional<z.ZodObject<{
4623
+ score: z.ZodNumber;
4624
+ matches: z.ZodArray<z.ZodString, "many">;
4625
+ mismatches: z.ZodArray<z.ZodString, "many">;
4626
+ }, "strict", z.ZodTypeAny, {
4627
+ score: number;
4628
+ matches: string[];
4629
+ mismatches: string[];
4630
+ }, {
4631
+ score: number;
4632
+ matches: string[];
4633
+ mismatches: string[];
4634
+ }>>;
4635
+ }, "strict", z.ZodTypeAny, {
4636
+ recommendations: string[];
4637
+ reminders: {
4638
+ message: string;
4639
+ id: string;
4640
+ priority: "required" | "recommended" | "info" | "reminder";
4641
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4642
+ action?: string | undefined;
4643
+ }[];
4644
+ risk_score?: number | undefined;
4645
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
4646
+ preference_match?: {
4647
+ score: number;
4648
+ matches: string[];
4649
+ mismatches: string[];
4650
+ } | undefined;
4651
+ }, {
4652
+ recommendations: string[];
4653
+ reminders: {
4654
+ message: string;
4655
+ id: string;
4656
+ priority: "required" | "recommended" | "info" | "reminder";
4657
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4658
+ action?: string | undefined;
4659
+ }[];
4660
+ risk_score?: number | undefined;
4661
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
4662
+ preference_match?: {
4663
+ score: number;
4664
+ matches: string[];
4665
+ mismatches: string[];
4666
+ } | undefined;
4667
+ }>>;
4668
+ evolution_context: z.ZodOptional<z.ZodObject<{
4669
+ industry_signal: z.ZodOptional<z.ZodString>;
4670
+ evolution_advice: z.ZodOptional<z.ZodString>;
4671
+ confidence: z.ZodNumber;
4672
+ health_score: z.ZodOptional<z.ZodNumber>;
4673
+ pending_suggestions: z.ZodOptional<z.ZodNumber>;
4674
+ intent: z.ZodOptional<z.ZodEnum<["default", "growth", "retention", "compliance", "efficiency", "trust_building", "custom"]>>;
4675
+ role_advice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4676
+ role: z.ZodOptional<z.ZodEnum<["user", "merchant", "arbitrator"]>>;
4677
+ }, "strict", z.ZodTypeAny, {
4678
+ confidence: number;
4679
+ role?: "user" | "merchant" | "arbitrator" | undefined;
4680
+ industry_signal?: string | undefined;
4681
+ evolution_advice?: string | undefined;
4682
+ health_score?: number | undefined;
4683
+ pending_suggestions?: number | undefined;
4684
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
4685
+ role_advice?: string[] | undefined;
4686
+ }, {
4687
+ confidence: number;
4688
+ role?: "user" | "merchant" | "arbitrator" | undefined;
4689
+ industry_signal?: string | undefined;
4690
+ evolution_advice?: string | undefined;
4691
+ health_score?: number | undefined;
4692
+ pending_suggestions?: number | undefined;
4693
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
4694
+ role_advice?: string[] | undefined;
4695
+ }>>;
4696
+ guard_advice: z.ZodOptional<z.ZodObject<{
4697
+ current_round: z.ZodOptional<z.ZodEnum<["R1", "R2", "R3", "R4", "R5", "R6", "R7", "R8", "R9", "R10"]>>;
4698
+ puzzle_status: z.ZodOptional<z.ZodObject<{
4699
+ intent: z.ZodBoolean;
4700
+ binding: z.ZodBoolean;
4701
+ data: z.ZodBoolean;
4702
+ query: z.ZodBoolean;
4703
+ logic: z.ZodBoolean;
4704
+ constraints: z.ZodBoolean;
4705
+ }, "strict", z.ZodTypeAny, {
4706
+ data: boolean;
4707
+ intent: boolean;
4708
+ binding: boolean;
4709
+ query: boolean;
4710
+ logic: boolean;
4711
+ constraints: boolean;
4712
+ }, {
4713
+ data: boolean;
4714
+ intent: boolean;
4715
+ binding: boolean;
4716
+ query: boolean;
4717
+ logic: boolean;
4718
+ constraints: boolean;
4719
+ }>>;
4720
+ matched_scene: z.ZodOptional<z.ZodString>;
4721
+ scene_description: z.ZodOptional<z.ZodString>;
4722
+ scene_constraints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4723
+ suggested_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4724
+ available_queries: z.ZodOptional<z.ZodArray<z.ZodObject<{
4725
+ id: z.ZodNumber;
4726
+ name: z.ZodString;
4727
+ objectType: z.ZodString;
4728
+ returnType: z.ZodString;
4729
+ description: z.ZodOptional<z.ZodString>;
4730
+ }, "strict", z.ZodTypeAny, {
4731
+ name: string;
4732
+ id: number;
4733
+ objectType: string;
4734
+ returnType: string;
4735
+ description?: string | undefined;
4736
+ }, {
4737
+ name: string;
4738
+ id: number;
4739
+ objectType: string;
4740
+ returnType: string;
4741
+ description?: string | undefined;
4742
+ }>, "many">>;
4743
+ risk_warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4744
+ pending_questions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4745
+ confirmation_text: z.ZodOptional<z.ZodString>;
4746
+ test_result: z.ZodOptional<z.ZodObject<{
4747
+ status: z.ZodEnum<["pass", "fail", "not_tested"]>;
4748
+ failure_node: z.ZodOptional<z.ZodString>;
4749
+ passport_id: z.ZodOptional<z.ZodString>;
4750
+ }, "strip", z.ZodTypeAny, {
4751
+ status: "pass" | "fail" | "not_tested";
4752
+ failure_node?: string | undefined;
4753
+ passport_id?: string | undefined;
4754
+ }, {
4755
+ status: "pass" | "fail" | "not_tested";
4756
+ failure_node?: string | undefined;
4757
+ passport_id?: string | undefined;
4758
+ }>>;
4759
+ risk_assessment: z.ZodOptional<z.ZodObject<{
4760
+ overall_risk: z.ZodEnum<["critical", "high", "medium", "low", "info"]>;
4761
+ risk_count: z.ZodNumber;
4762
+ critical_count: z.ZodNumber;
4763
+ high_count: z.ZodNumber;
4764
+ needs_human_review: z.ZodBoolean;
4765
+ top_risks: z.ZodArray<z.ZodString, "many">;
4766
+ stakeholder_advice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
4767
+ }, "strip", z.ZodTypeAny, {
4768
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
4769
+ risk_count: number;
4770
+ critical_count: number;
4771
+ high_count: number;
4772
+ needs_human_review: boolean;
4773
+ top_risks: string[];
4774
+ stakeholder_advice?: Record<string, string[]> | undefined;
4775
+ }, {
4776
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
4777
+ risk_count: number;
4778
+ critical_count: number;
4779
+ high_count: number;
4780
+ needs_human_review: boolean;
4781
+ top_risks: string[];
4782
+ stakeholder_advice?: Record<string, string[]> | undefined;
4783
+ }>>;
4784
+ }, "strict", z.ZodTypeAny, {
4785
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
4786
+ puzzle_status?: {
4787
+ data: boolean;
4788
+ intent: boolean;
4789
+ binding: boolean;
4790
+ query: boolean;
4791
+ logic: boolean;
4792
+ constraints: boolean;
4793
+ } | undefined;
4794
+ matched_scene?: string | undefined;
4795
+ scene_description?: string | undefined;
4796
+ scene_constraints?: string[] | undefined;
4797
+ suggested_patterns?: string[] | undefined;
4798
+ available_queries?: {
4799
+ name: string;
4800
+ id: number;
4801
+ objectType: string;
4802
+ returnType: string;
4803
+ description?: string | undefined;
4804
+ }[] | undefined;
4805
+ risk_warnings?: string[] | undefined;
4806
+ pending_questions?: string[] | undefined;
4807
+ confirmation_text?: string | undefined;
4808
+ test_result?: {
4809
+ status: "pass" | "fail" | "not_tested";
4810
+ failure_node?: string | undefined;
4811
+ passport_id?: string | undefined;
4812
+ } | undefined;
4813
+ risk_assessment?: {
4814
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
4815
+ risk_count: number;
4816
+ critical_count: number;
4817
+ high_count: number;
4818
+ needs_human_review: boolean;
4819
+ top_risks: string[];
4820
+ stakeholder_advice?: Record<string, string[]> | undefined;
4821
+ } | undefined;
4822
+ }, {
4823
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
4824
+ puzzle_status?: {
4825
+ data: boolean;
4826
+ intent: boolean;
4827
+ binding: boolean;
4828
+ query: boolean;
4829
+ logic: boolean;
4830
+ constraints: boolean;
4831
+ } | undefined;
4832
+ matched_scene?: string | undefined;
4833
+ scene_description?: string | undefined;
4834
+ scene_constraints?: string[] | undefined;
4835
+ suggested_patterns?: string[] | undefined;
4836
+ available_queries?: {
4837
+ name: string;
4838
+ id: number;
4839
+ objectType: string;
4840
+ returnType: string;
4841
+ description?: string | undefined;
4842
+ }[] | undefined;
4843
+ risk_warnings?: string[] | undefined;
4844
+ pending_questions?: string[] | undefined;
4845
+ confirmation_text?: string | undefined;
4846
+ test_result?: {
4847
+ status: "pass" | "fail" | "not_tested";
4848
+ failure_node?: string | undefined;
4849
+ passport_id?: string | undefined;
4850
+ } | undefined;
4851
+ risk_assessment?: {
4852
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
4853
+ risk_count: number;
4854
+ critical_count: number;
4855
+ high_count: number;
4856
+ needs_human_review: boolean;
4857
+ top_risks: string[];
4858
+ stakeholder_advice?: Record<string, string[]> | undefined;
4859
+ } | undefined;
4860
+ }>>;
4861
+ }, "strict", z.ZodTypeAny, {
4862
+ status: "success" | "partial" | "failed" | "pending_input";
4863
+ intent: string;
4864
+ summary: string;
4865
+ created?: {
4866
+ id: string;
4867
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4868
+ name?: string | null | undefined;
4869
+ relation?: {
4870
+ parent?: string | null | undefined;
4871
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4872
+ } | undefined;
4873
+ immutable?: boolean | undefined;
4874
+ }[] | undefined;
4875
+ events?: {
4876
+ event_type: string;
4877
+ business_meaning: string;
4878
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
4879
+ related_object?: string | undefined;
4880
+ side_effect?: string | undefined;
4881
+ }[] | undefined;
4882
+ modified?: {
4883
+ id: string;
4884
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4885
+ name?: string | null | undefined;
4886
+ relation?: {
4887
+ parent?: string | null | undefined;
4888
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4889
+ } | undefined;
4890
+ immutable?: boolean | undefined;
4891
+ }[] | undefined;
4892
+ released?: {
4893
+ coinType: string;
4894
+ amount: string;
4895
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
4896
+ from?: string | null | undefined;
4897
+ to?: string | null | undefined;
4898
+ }[] | undefined;
4899
+ next_actions?: {
4900
+ action: string;
4901
+ reason: string;
4902
+ priority: "required" | "recommended" | "optional";
4903
+ tool?: string | undefined;
4904
+ prerequisite?: string | undefined;
4905
+ }[] | undefined;
4906
+ warnings?: string[] | undefined;
4907
+ experience?: {
4908
+ advice?: string | undefined;
4909
+ avoid?: string[] | undefined;
4910
+ relevance?: number | undefined;
4911
+ matched_scenario?: string | undefined;
4912
+ } | undefined;
4913
+ service_status?: {
4914
+ active: string[];
4915
+ inactive?: string[] | undefined;
4916
+ } | undefined;
4917
+ customer_advice?: {
4918
+ recommendations: string[];
4919
+ reminders: {
4920
+ message: string;
4921
+ id: string;
4922
+ priority: "required" | "recommended" | "info" | "reminder";
4923
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4924
+ action?: string | undefined;
4925
+ }[];
4926
+ risk_score?: number | undefined;
4927
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
4928
+ preference_match?: {
4929
+ score: number;
4930
+ matches: string[];
4931
+ mismatches: string[];
4932
+ } | undefined;
4933
+ } | undefined;
4934
+ evolution_context?: {
4935
+ confidence: number;
4936
+ role?: "user" | "merchant" | "arbitrator" | undefined;
4937
+ industry_signal?: string | undefined;
4938
+ evolution_advice?: string | undefined;
4939
+ health_score?: number | undefined;
4940
+ pending_suggestions?: number | undefined;
4941
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
4942
+ role_advice?: string[] | undefined;
4943
+ } | undefined;
4944
+ guard_advice?: {
4945
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
4946
+ puzzle_status?: {
4947
+ data: boolean;
4948
+ intent: boolean;
4949
+ binding: boolean;
4950
+ query: boolean;
4951
+ logic: boolean;
4952
+ constraints: boolean;
4953
+ } | undefined;
4954
+ matched_scene?: string | undefined;
4955
+ scene_description?: string | undefined;
4956
+ scene_constraints?: string[] | undefined;
4957
+ suggested_patterns?: string[] | undefined;
4958
+ available_queries?: {
4959
+ name: string;
4960
+ id: number;
4961
+ objectType: string;
4962
+ returnType: string;
4963
+ description?: string | undefined;
4964
+ }[] | undefined;
4965
+ risk_warnings?: string[] | undefined;
4966
+ pending_questions?: string[] | undefined;
4967
+ confirmation_text?: string | undefined;
4968
+ test_result?: {
4969
+ status: "pass" | "fail" | "not_tested";
4970
+ failure_node?: string | undefined;
4971
+ passport_id?: string | undefined;
4972
+ } | undefined;
4973
+ risk_assessment?: {
4974
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
4975
+ risk_count: number;
4976
+ critical_count: number;
4977
+ high_count: number;
4978
+ needs_human_review: boolean;
4979
+ top_risks: string[];
4980
+ stakeholder_advice?: Record<string, string[]> | undefined;
4981
+ } | undefined;
4982
+ } | undefined;
4983
+ }, {
4984
+ status: "success" | "partial" | "failed" | "pending_input";
4985
+ intent: string;
4986
+ summary: string;
4987
+ created?: {
4988
+ id: string;
4989
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4990
+ name?: string | null | undefined;
4991
+ relation?: {
4992
+ parent?: string | null | undefined;
4993
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4994
+ } | undefined;
4995
+ immutable?: boolean | undefined;
4996
+ }[] | undefined;
4997
+ events?: {
4998
+ event_type: string;
4999
+ business_meaning: string;
5000
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
5001
+ related_object?: string | undefined;
5002
+ side_effect?: string | undefined;
5003
+ }[] | undefined;
5004
+ modified?: {
5005
+ id: string;
5006
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5007
+ name?: string | null | undefined;
5008
+ relation?: {
5009
+ parent?: string | null | undefined;
5010
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5011
+ } | undefined;
5012
+ immutable?: boolean | undefined;
5013
+ }[] | undefined;
5014
+ released?: {
5015
+ coinType: string;
5016
+ amount: string;
5017
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
5018
+ from?: string | null | undefined;
5019
+ to?: string | null | undefined;
5020
+ }[] | undefined;
5021
+ next_actions?: {
5022
+ action: string;
5023
+ reason: string;
5024
+ priority: "required" | "recommended" | "optional";
5025
+ tool?: string | undefined;
5026
+ prerequisite?: string | undefined;
5027
+ }[] | undefined;
5028
+ warnings?: string[] | undefined;
5029
+ experience?: {
5030
+ advice?: string | undefined;
5031
+ avoid?: string[] | undefined;
5032
+ relevance?: number | undefined;
5033
+ matched_scenario?: string | undefined;
5034
+ } | undefined;
5035
+ service_status?: {
5036
+ active: string[];
5037
+ inactive?: string[] | undefined;
5038
+ } | undefined;
5039
+ customer_advice?: {
5040
+ recommendations: string[];
5041
+ reminders: {
5042
+ message: string;
5043
+ id: string;
5044
+ priority: "required" | "recommended" | "info" | "reminder";
5045
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
5046
+ action?: string | undefined;
5047
+ }[];
5048
+ risk_score?: number | undefined;
5049
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
5050
+ preference_match?: {
5051
+ score: number;
5052
+ matches: string[];
5053
+ mismatches: string[];
5054
+ } | undefined;
5055
+ } | undefined;
5056
+ evolution_context?: {
5057
+ confidence: number;
5058
+ role?: "user" | "merchant" | "arbitrator" | undefined;
5059
+ industry_signal?: string | undefined;
5060
+ evolution_advice?: string | undefined;
5061
+ health_score?: number | undefined;
5062
+ pending_suggestions?: number | undefined;
5063
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
5064
+ role_advice?: string[] | undefined;
5065
+ } | undefined;
5066
+ guard_advice?: {
5067
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
5068
+ puzzle_status?: {
5069
+ data: boolean;
5070
+ intent: boolean;
5071
+ binding: boolean;
5072
+ query: boolean;
5073
+ logic: boolean;
5074
+ constraints: boolean;
5075
+ } | undefined;
5076
+ matched_scene?: string | undefined;
5077
+ scene_description?: string | undefined;
5078
+ scene_constraints?: string[] | undefined;
5079
+ suggested_patterns?: string[] | undefined;
5080
+ available_queries?: {
5081
+ name: string;
5082
+ id: number;
5083
+ objectType: string;
5084
+ returnType: string;
5085
+ description?: string | undefined;
5086
+ }[] | undefined;
5087
+ risk_warnings?: string[] | undefined;
5088
+ pending_questions?: string[] | undefined;
5089
+ confirmation_text?: string | undefined;
5090
+ test_result?: {
5091
+ status: "pass" | "fail" | "not_tested";
5092
+ failure_node?: string | undefined;
5093
+ passport_id?: string | undefined;
5094
+ } | undefined;
5095
+ risk_assessment?: {
5096
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
5097
+ risk_count: number;
5098
+ critical_count: number;
5099
+ high_count: number;
5100
+ needs_human_review: boolean;
5101
+ top_risks: string[];
5102
+ stakeholder_advice?: Record<string, string[]> | undefined;
5103
+ } | undefined;
5104
+ } | undefined;
5105
+ }>>;
4425
5106
  }, "strip", z.ZodTypeAny, {
4426
5107
  result: {
4427
5108
  result: {
@@ -4431,7 +5112,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4431
5112
  unreadCount: number;
4432
5113
  lastMessagePreview?: string | undefined;
4433
5114
  previewMessages?: {
4434
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5115
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4435
5116
  createdAt: number;
4436
5117
  direction: "received" | "sent";
4437
5118
  messageId: string;
@@ -4474,7 +5155,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4474
5155
  operation: "watch_conversations";
4475
5156
  } | {
4476
5157
  result: {
4477
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5158
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4478
5159
  messageId: string;
4479
5160
  lastReceivedLeafIndex?: number | undefined;
4480
5161
  merkleData?: {
@@ -4490,7 +5171,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4490
5171
  operation: "send_message";
4491
5172
  } | {
4492
5173
  result: {
4493
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5174
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4494
5175
  messageId: string;
4495
5176
  lastReceivedLeafIndex?: number | undefined;
4496
5177
  merkleData?: {
@@ -4506,7 +5187,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4506
5187
  operation: "send_file";
4507
5188
  } | {
4508
5189
  result: {
4509
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5190
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4510
5191
  createdAt: number;
4511
5192
  direction: "received" | "sent";
4512
5193
  messageId: string;
@@ -4665,7 +5346,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4665
5346
  operation: "mark_conversation_as_viewed";
4666
5347
  } | {
4667
5348
  result: {
4668
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5349
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4669
5350
  createdAt: number;
4670
5351
  direction: "received" | "sent";
4671
5352
  messageId: string;
@@ -4705,7 +5386,136 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4705
5386
  viewedAt?: number | undefined;
4706
5387
  }[];
4707
5388
  operation: "pull_messages";
5389
+ } | {
5390
+ error: string;
5391
+ operation: "error";
5392
+ error_code?: string | undefined;
5393
+ retryable?: boolean | undefined;
5394
+ recovery_hint?: string | undefined;
4708
5395
  };
5396
+ semantic?: {
5397
+ status: "success" | "partial" | "failed" | "pending_input";
5398
+ intent: string;
5399
+ summary: string;
5400
+ created?: {
5401
+ id: string;
5402
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5403
+ name?: string | null | undefined;
5404
+ relation?: {
5405
+ parent?: string | null | undefined;
5406
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5407
+ } | undefined;
5408
+ immutable?: boolean | undefined;
5409
+ }[] | undefined;
5410
+ events?: {
5411
+ event_type: string;
5412
+ business_meaning: string;
5413
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
5414
+ related_object?: string | undefined;
5415
+ side_effect?: string | undefined;
5416
+ }[] | undefined;
5417
+ modified?: {
5418
+ id: string;
5419
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5420
+ name?: string | null | undefined;
5421
+ relation?: {
5422
+ parent?: string | null | undefined;
5423
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5424
+ } | undefined;
5425
+ immutable?: boolean | undefined;
5426
+ }[] | undefined;
5427
+ released?: {
5428
+ coinType: string;
5429
+ amount: string;
5430
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
5431
+ from?: string | null | undefined;
5432
+ to?: string | null | undefined;
5433
+ }[] | undefined;
5434
+ next_actions?: {
5435
+ action: string;
5436
+ reason: string;
5437
+ priority: "required" | "recommended" | "optional";
5438
+ tool?: string | undefined;
5439
+ prerequisite?: string | undefined;
5440
+ }[] | undefined;
5441
+ warnings?: string[] | undefined;
5442
+ experience?: {
5443
+ advice?: string | undefined;
5444
+ avoid?: string[] | undefined;
5445
+ relevance?: number | undefined;
5446
+ matched_scenario?: string | undefined;
5447
+ } | undefined;
5448
+ service_status?: {
5449
+ active: string[];
5450
+ inactive?: string[] | undefined;
5451
+ } | undefined;
5452
+ customer_advice?: {
5453
+ recommendations: string[];
5454
+ reminders: {
5455
+ message: string;
5456
+ id: string;
5457
+ priority: "required" | "recommended" | "info" | "reminder";
5458
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
5459
+ action?: string | undefined;
5460
+ }[];
5461
+ risk_score?: number | undefined;
5462
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
5463
+ preference_match?: {
5464
+ score: number;
5465
+ matches: string[];
5466
+ mismatches: string[];
5467
+ } | undefined;
5468
+ } | undefined;
5469
+ evolution_context?: {
5470
+ confidence: number;
5471
+ role?: "user" | "merchant" | "arbitrator" | undefined;
5472
+ industry_signal?: string | undefined;
5473
+ evolution_advice?: string | undefined;
5474
+ health_score?: number | undefined;
5475
+ pending_suggestions?: number | undefined;
5476
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
5477
+ role_advice?: string[] | undefined;
5478
+ } | undefined;
5479
+ guard_advice?: {
5480
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
5481
+ puzzle_status?: {
5482
+ data: boolean;
5483
+ intent: boolean;
5484
+ binding: boolean;
5485
+ query: boolean;
5486
+ logic: boolean;
5487
+ constraints: boolean;
5488
+ } | undefined;
5489
+ matched_scene?: string | undefined;
5490
+ scene_description?: string | undefined;
5491
+ scene_constraints?: string[] | undefined;
5492
+ suggested_patterns?: string[] | undefined;
5493
+ available_queries?: {
5494
+ name: string;
5495
+ id: number;
5496
+ objectType: string;
5497
+ returnType: string;
5498
+ description?: string | undefined;
5499
+ }[] | undefined;
5500
+ risk_warnings?: string[] | undefined;
5501
+ pending_questions?: string[] | undefined;
5502
+ confirmation_text?: string | undefined;
5503
+ test_result?: {
5504
+ status: "pass" | "fail" | "not_tested";
5505
+ failure_node?: string | undefined;
5506
+ passport_id?: string | undefined;
5507
+ } | undefined;
5508
+ risk_assessment?: {
5509
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
5510
+ risk_count: number;
5511
+ critical_count: number;
5512
+ high_count: number;
5513
+ needs_human_review: boolean;
5514
+ top_risks: string[];
5515
+ stakeholder_advice?: Record<string, string[]> | undefined;
5516
+ } | undefined;
5517
+ } | undefined;
5518
+ } | undefined;
4709
5519
  }, {
4710
5520
  result: {
4711
5521
  result: {
@@ -4715,7 +5525,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4715
5525
  unreadCount: number;
4716
5526
  lastMessagePreview?: string | undefined;
4717
5527
  previewMessages?: {
4718
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5528
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4719
5529
  createdAt: number;
4720
5530
  direction: "received" | "sent";
4721
5531
  messageId: string;
@@ -4758,7 +5568,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4758
5568
  operation: "watch_conversations";
4759
5569
  } | {
4760
5570
  result: {
4761
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5571
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4762
5572
  messageId: string;
4763
5573
  lastReceivedLeafIndex?: number | undefined;
4764
5574
  merkleData?: {
@@ -4774,7 +5584,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4774
5584
  operation: "send_message";
4775
5585
  } | {
4776
5586
  result: {
4777
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5587
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4778
5588
  messageId: string;
4779
5589
  lastReceivedLeafIndex?: number | undefined;
4780
5590
  merkleData?: {
@@ -4790,7 +5600,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4790
5600
  operation: "send_file";
4791
5601
  } | {
4792
5602
  result: {
4793
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5603
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4794
5604
  createdAt: number;
4795
5605
  direction: "received" | "sent";
4796
5606
  messageId: string;
@@ -4949,7 +5759,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4949
5759
  operation: "mark_conversation_as_viewed";
4950
5760
  } | {
4951
5761
  result: {
4952
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5762
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4953
5763
  createdAt: number;
4954
5764
  direction: "received" | "sent";
4955
5765
  messageId: string;
@@ -4989,7 +5799,136 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4989
5799
  viewedAt?: number | undefined;
4990
5800
  }[];
4991
5801
  operation: "pull_messages";
5802
+ } | {
5803
+ error: string;
5804
+ operation: "error";
5805
+ error_code?: string | undefined;
5806
+ retryable?: boolean | undefined;
5807
+ recovery_hint?: string | undefined;
4992
5808
  };
5809
+ semantic?: {
5810
+ status: "success" | "partial" | "failed" | "pending_input";
5811
+ intent: string;
5812
+ summary: string;
5813
+ created?: {
5814
+ id: string;
5815
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5816
+ name?: string | null | undefined;
5817
+ relation?: {
5818
+ parent?: string | null | undefined;
5819
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5820
+ } | undefined;
5821
+ immutable?: boolean | undefined;
5822
+ }[] | undefined;
5823
+ events?: {
5824
+ event_type: string;
5825
+ business_meaning: string;
5826
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
5827
+ related_object?: string | undefined;
5828
+ side_effect?: string | undefined;
5829
+ }[] | undefined;
5830
+ modified?: {
5831
+ id: string;
5832
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5833
+ name?: string | null | undefined;
5834
+ relation?: {
5835
+ parent?: string | null | undefined;
5836
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5837
+ } | undefined;
5838
+ immutable?: boolean | undefined;
5839
+ }[] | undefined;
5840
+ released?: {
5841
+ coinType: string;
5842
+ amount: string;
5843
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
5844
+ from?: string | null | undefined;
5845
+ to?: string | null | undefined;
5846
+ }[] | undefined;
5847
+ next_actions?: {
5848
+ action: string;
5849
+ reason: string;
5850
+ priority: "required" | "recommended" | "optional";
5851
+ tool?: string | undefined;
5852
+ prerequisite?: string | undefined;
5853
+ }[] | undefined;
5854
+ warnings?: string[] | undefined;
5855
+ experience?: {
5856
+ advice?: string | undefined;
5857
+ avoid?: string[] | undefined;
5858
+ relevance?: number | undefined;
5859
+ matched_scenario?: string | undefined;
5860
+ } | undefined;
5861
+ service_status?: {
5862
+ active: string[];
5863
+ inactive?: string[] | undefined;
5864
+ } | undefined;
5865
+ customer_advice?: {
5866
+ recommendations: string[];
5867
+ reminders: {
5868
+ message: string;
5869
+ id: string;
5870
+ priority: "required" | "recommended" | "info" | "reminder";
5871
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
5872
+ action?: string | undefined;
5873
+ }[];
5874
+ risk_score?: number | undefined;
5875
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
5876
+ preference_match?: {
5877
+ score: number;
5878
+ matches: string[];
5879
+ mismatches: string[];
5880
+ } | undefined;
5881
+ } | undefined;
5882
+ evolution_context?: {
5883
+ confidence: number;
5884
+ role?: "user" | "merchant" | "arbitrator" | undefined;
5885
+ industry_signal?: string | undefined;
5886
+ evolution_advice?: string | undefined;
5887
+ health_score?: number | undefined;
5888
+ pending_suggestions?: number | undefined;
5889
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
5890
+ role_advice?: string[] | undefined;
5891
+ } | undefined;
5892
+ guard_advice?: {
5893
+ current_round?: "R1" | "R2" | "R3" | "R4" | "R5" | "R6" | "R7" | "R8" | "R9" | "R10" | undefined;
5894
+ puzzle_status?: {
5895
+ data: boolean;
5896
+ intent: boolean;
5897
+ binding: boolean;
5898
+ query: boolean;
5899
+ logic: boolean;
5900
+ constraints: boolean;
5901
+ } | undefined;
5902
+ matched_scene?: string | undefined;
5903
+ scene_description?: string | undefined;
5904
+ scene_constraints?: string[] | undefined;
5905
+ suggested_patterns?: string[] | undefined;
5906
+ available_queries?: {
5907
+ name: string;
5908
+ id: number;
5909
+ objectType: string;
5910
+ returnType: string;
5911
+ description?: string | undefined;
5912
+ }[] | undefined;
5913
+ risk_warnings?: string[] | undefined;
5914
+ pending_questions?: string[] | undefined;
5915
+ confirmation_text?: string | undefined;
5916
+ test_result?: {
5917
+ status: "pass" | "fail" | "not_tested";
5918
+ failure_node?: string | undefined;
5919
+ passport_id?: string | undefined;
5920
+ } | undefined;
5921
+ risk_assessment?: {
5922
+ overall_risk: "info" | "low" | "high" | "critical" | "medium";
5923
+ risk_count: number;
5924
+ critical_count: number;
5925
+ high_count: number;
5926
+ needs_human_review: boolean;
5927
+ top_risks: string[];
5928
+ stakeholder_advice?: Record<string, string[]> | undefined;
5929
+ } | undefined;
5930
+ } | undefined;
5931
+ } | undefined;
4993
5932
  }>;
4994
5933
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;
4995
5934
  export type MessengerOperationOutput = z.infer<typeof MessengerOperationOutputSchema>;