@wowok/agent-mcp 2.3.14 → 2.3.16

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 (156) 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/industry-risks.d.ts +36 -0
  6. package/dist/customer/industry-risks.js +424 -0
  7. package/dist/customer/info-puzzle.d.ts +102 -0
  8. package/dist/customer/info-puzzle.js +312 -0
  9. package/dist/customer/order-monitor.d.ts +75 -0
  10. package/dist/customer/order-monitor.js +327 -0
  11. package/dist/customer/order-strategy.d.ts +36 -0
  12. package/dist/customer/order-strategy.js +373 -0
  13. package/dist/customer/post-purchase.d.ts +42 -0
  14. package/dist/customer/post-purchase.js +350 -0
  15. package/dist/customer/reminder-system.d.ts +42 -0
  16. package/dist/customer/reminder-system.js +295 -0
  17. package/dist/customer/risk-assessment.d.ts +8 -0
  18. package/dist/customer/risk-assessment.js +337 -0
  19. package/dist/customer/types.d.ts +193 -0
  20. package/dist/customer/types.js +13 -0
  21. package/dist/customer/user-preferences.d.ts +67 -0
  22. package/dist/customer/user-preferences.js +451 -0
  23. package/dist/experience/experience-reuse.d.ts +10 -0
  24. package/dist/experience/experience-reuse.js +103 -0
  25. package/dist/experience/index.d.ts +6 -0
  26. package/dist/experience/index.js +5 -0
  27. package/dist/experience/intent-distill.d.ts +3 -0
  28. package/dist/experience/intent-distill.js +83 -0
  29. package/dist/experience/realtime-feedback.d.ts +5 -0
  30. package/dist/experience/realtime-feedback.js +77 -0
  31. package/dist/experience/types.d.ts +50 -0
  32. package/dist/experience/types.js +1 -0
  33. package/dist/experience/user-profile.d.ts +25 -0
  34. package/dist/experience/user-profile.js +171 -0
  35. package/dist/index.js +570 -186
  36. package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
  37. package/dist/knowledge/acquisition-flywheel.js +183 -0
  38. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  39. package/dist/knowledge/arbitration-trust.js +117 -0
  40. package/dist/knowledge/audit-rules.d.ts +28 -0
  41. package/dist/knowledge/audit-rules.js +141 -0
  42. package/dist/knowledge/demand-matching.d.ts +29 -0
  43. package/dist/knowledge/demand-matching.js +132 -0
  44. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  45. package/dist/knowledge/dynamic-pricing.js +87 -0
  46. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  47. package/dist/knowledge/flywheel-loop.js +378 -0
  48. package/dist/knowledge/glossary.d.ts +18 -0
  49. package/dist/knowledge/glossary.js +209 -0
  50. package/dist/knowledge/index.d.ts +64 -0
  51. package/dist/knowledge/index.js +66 -0
  52. package/dist/knowledge/industry-evolution.d.ts +82 -0
  53. package/dist/knowledge/industry-evolution.js +323 -0
  54. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  55. package/dist/knowledge/industry-generalizer.js +381 -0
  56. package/dist/knowledge/industry-registry.d.ts +49 -0
  57. package/dist/knowledge/industry-registry.js +167 -0
  58. package/dist/knowledge/intent-metrics.d.ts +42 -0
  59. package/dist/knowledge/intent-metrics.js +566 -0
  60. package/dist/knowledge/process-model.d.ts +24 -0
  61. package/dist/knowledge/process-model.js +160 -0
  62. package/dist/knowledge/reputation-rules.d.ts +42 -0
  63. package/dist/knowledge/reputation-rules.js +99 -0
  64. package/dist/knowledge/reward-templates.d.ts +25 -0
  65. package/dist/knowledge/reward-templates.js +125 -0
  66. package/dist/knowledge/safety-rules.d.ts +36 -0
  67. package/dist/knowledge/safety-rules.js +171 -0
  68. package/dist/knowledge/tool-constraints.d.ts +30 -0
  69. package/dist/knowledge/tool-constraints.js +185 -0
  70. package/dist/knowledge/trust-metrics.d.ts +37 -0
  71. package/dist/knowledge/trust-metrics.js +138 -0
  72. package/dist/loop-engineering/diagnose.d.ts +3 -2
  73. package/dist/loop-engineering/diagnose.js +94 -0
  74. package/dist/loop-engineering/improve.d.ts +1 -1
  75. package/dist/loop-engineering/improve.js +52 -1
  76. package/dist/project/graph.d.ts +71 -0
  77. package/dist/project/graph.js +314 -0
  78. package/dist/project/index.d.ts +62 -0
  79. package/dist/project/index.js +167 -0
  80. package/dist/project/namespace.d.ts +62 -0
  81. package/dist/project/namespace.js +181 -0
  82. package/dist/project/query.d.ts +40 -0
  83. package/dist/project/query.js +110 -0
  84. package/dist/safety/confirm-gate.d.ts +15 -0
  85. package/dist/safety/confirm-gate.js +44 -0
  86. package/dist/safety/index.d.ts +3 -0
  87. package/dist/safety/index.js +3 -0
  88. package/dist/safety/preview.d.ts +2 -0
  89. package/dist/safety/preview.js +36 -0
  90. package/dist/schema/call/allocation.d.ts +15 -0
  91. package/dist/schema/call/arbitration.d.ts +111 -96
  92. package/dist/schema/call/base.d.ts +1070 -44
  93. package/dist/schema/call/base.js +69 -1
  94. package/dist/schema/call/bridge.d.ts +709 -52
  95. package/dist/schema/call/bridge.js +13 -2
  96. package/dist/schema/call/contact.d.ts +15 -0
  97. package/dist/schema/call/demand.d.ts +69 -54
  98. package/dist/schema/call/guard.d.ts +125 -80
  99. package/dist/schema/call/handler.d.ts +3 -0
  100. package/dist/schema/call/handler.js +14 -0
  101. package/dist/schema/call/machine.d.ts +830 -800
  102. package/dist/schema/call/order.d.ts +15 -0
  103. package/dist/schema/call/payment.d.ts +15 -0
  104. package/dist/schema/call/permission.d.ts +15 -0
  105. package/dist/schema/call/personal.d.ts +15 -0
  106. package/dist/schema/call/progress.d.ts +15 -0
  107. package/dist/schema/call/proof.d.ts +42 -12
  108. package/dist/schema/call/proof.js +3 -3
  109. package/dist/schema/call/repository.d.ts +91 -76
  110. package/dist/schema/call/reward.d.ts +45 -30
  111. package/dist/schema/call/semantic.d.ts +1 -0
  112. package/dist/schema/call/semantic.js +217 -0
  113. package/dist/schema/call/service.d.ts +407 -392
  114. package/dist/schema/call/treasury.d.ts +15 -0
  115. package/dist/schema/common/index.js +3 -3
  116. package/dist/schema/local/index.d.ts +228 -72
  117. package/dist/schema/local/index.js +33 -6
  118. package/dist/schema/messenger/index.d.ts +668 -50
  119. package/dist/schema/messenger/index.js +9 -0
  120. package/dist/schema/operations.d.ts +1693 -1369
  121. package/dist/schema/operations.js +2 -2
  122. package/dist/schema/query/index.d.ts +1614 -1614
  123. package/dist/schema/query/index.js +30 -27
  124. package/dist/schemas/account_operation.output.json +25 -16
  125. package/dist/schemas/account_operation.schema.json +1 -1
  126. package/dist/schemas/bridge_operation.output.json +520 -0
  127. package/dist/schemas/bridge_operation.schema.json +15 -0
  128. package/dist/schemas/guard2file.schema.json +15 -0
  129. package/dist/schemas/index.json +1 -1
  130. package/dist/schemas/local_info_operation.output.json +23 -0
  131. package/dist/schemas/local_info_operation.schema.json +1 -1
  132. package/dist/schemas/local_mark_operation.output.json +24 -1
  133. package/dist/schemas/local_mark_operation.schema.json +4 -4
  134. package/dist/schemas/machineNode2file.schema.json +15 -0
  135. package/dist/schemas/messenger_operation.output.json +528 -0
  136. package/dist/schemas/onchain_operations.output.json +350 -16
  137. package/dist/schemas/onchain_operations.schema.json +96 -23
  138. package/dist/schemas/onchain_operations_allocation.schema.json +15 -0
  139. package/dist/schemas/onchain_operations_arbitration.schema.json +15 -0
  140. package/dist/schemas/onchain_operations_contact.schema.json +15 -0
  141. package/dist/schemas/onchain_operations_demand.schema.json +15 -0
  142. package/dist/schemas/onchain_operations_gen_passport.schema.json +30 -0
  143. package/dist/schemas/onchain_operations_guard.schema.json +15 -0
  144. package/dist/schemas/onchain_operations_machine.schema.json +81 -23
  145. package/dist/schemas/onchain_operations_order.schema.json +15 -0
  146. package/dist/schemas/onchain_operations_payment.schema.json +15 -0
  147. package/dist/schemas/onchain_operations_permission.schema.json +15 -0
  148. package/dist/schemas/onchain_operations_personal.schema.json +15 -0
  149. package/dist/schemas/onchain_operations_progress.schema.json +15 -0
  150. package/dist/schemas/onchain_operations_repository.schema.json +15 -0
  151. package/dist/schemas/onchain_operations_reward.schema.json +15 -0
  152. package/dist/schemas/onchain_operations_service.schema.json +15 -0
  153. package/dist/schemas/onchain_operations_treasury.schema.json +15 -0
  154. package/dist/schemas/onchain_table_data.output.json +221 -69
  155. package/dist/schemas/onchain_table_data.schema.json +2 -2
  156. 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;
@@ -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;
@@ -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;
@@ -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?: {
@@ -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;
@@ -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;
@@ -1747,7 +1747,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
1747
1747
  }, "strip", 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;
@@ -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;
@@ -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;
@@ -1984,7 +1984,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
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;
@@ -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,445 @@ 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
+ }, "strict", z.ZodTypeAny, {
4697
+ status: "success" | "partial" | "failed" | "pending_input";
4698
+ intent: string;
4699
+ summary: string;
4700
+ created?: {
4701
+ id: string;
4702
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4703
+ name?: string | null | undefined;
4704
+ relation?: {
4705
+ parent?: string | null | undefined;
4706
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4707
+ } | undefined;
4708
+ immutable?: boolean | undefined;
4709
+ }[] | undefined;
4710
+ events?: {
4711
+ event_type: string;
4712
+ business_meaning: string;
4713
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
4714
+ related_object?: string | undefined;
4715
+ side_effect?: string | undefined;
4716
+ }[] | undefined;
4717
+ modified?: {
4718
+ id: string;
4719
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4720
+ name?: string | null | undefined;
4721
+ relation?: {
4722
+ parent?: string | null | undefined;
4723
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4724
+ } | undefined;
4725
+ immutable?: boolean | undefined;
4726
+ }[] | undefined;
4727
+ released?: {
4728
+ coinType: string;
4729
+ amount: string;
4730
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
4731
+ from?: string | null | undefined;
4732
+ to?: string | null | undefined;
4733
+ }[] | undefined;
4734
+ next_actions?: {
4735
+ action: string;
4736
+ reason: string;
4737
+ priority: "required" | "recommended" | "optional";
4738
+ tool?: string | undefined;
4739
+ prerequisite?: string | undefined;
4740
+ }[] | undefined;
4741
+ warnings?: string[] | undefined;
4742
+ experience?: {
4743
+ advice?: string | undefined;
4744
+ avoid?: string[] | undefined;
4745
+ relevance?: number | undefined;
4746
+ matched_scenario?: string | undefined;
4747
+ } | undefined;
4748
+ service_status?: {
4749
+ active: string[];
4750
+ inactive?: string[] | undefined;
4751
+ } | undefined;
4752
+ customer_advice?: {
4753
+ recommendations: string[];
4754
+ reminders: {
4755
+ message: string;
4756
+ id: string;
4757
+ priority: "required" | "recommended" | "info" | "reminder";
4758
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4759
+ action?: string | undefined;
4760
+ }[];
4761
+ risk_score?: number | undefined;
4762
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
4763
+ preference_match?: {
4764
+ score: number;
4765
+ matches: string[];
4766
+ mismatches: string[];
4767
+ } | undefined;
4768
+ } | undefined;
4769
+ evolution_context?: {
4770
+ confidence: number;
4771
+ role?: "user" | "merchant" | "arbitrator" | undefined;
4772
+ industry_signal?: string | undefined;
4773
+ evolution_advice?: string | undefined;
4774
+ health_score?: number | undefined;
4775
+ pending_suggestions?: number | undefined;
4776
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
4777
+ role_advice?: string[] | undefined;
4778
+ } | undefined;
4779
+ }, {
4780
+ status: "success" | "partial" | "failed" | "pending_input";
4781
+ intent: string;
4782
+ summary: string;
4783
+ created?: {
4784
+ id: string;
4785
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4786
+ name?: string | null | undefined;
4787
+ relation?: {
4788
+ parent?: string | null | undefined;
4789
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4790
+ } | undefined;
4791
+ immutable?: boolean | undefined;
4792
+ }[] | undefined;
4793
+ events?: {
4794
+ event_type: string;
4795
+ business_meaning: string;
4796
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
4797
+ related_object?: string | undefined;
4798
+ side_effect?: string | undefined;
4799
+ }[] | undefined;
4800
+ modified?: {
4801
+ id: string;
4802
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
4803
+ name?: string | null | undefined;
4804
+ relation?: {
4805
+ parent?: string | null | undefined;
4806
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
4807
+ } | undefined;
4808
+ immutable?: boolean | undefined;
4809
+ }[] | undefined;
4810
+ released?: {
4811
+ coinType: string;
4812
+ amount: string;
4813
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
4814
+ from?: string | null | undefined;
4815
+ to?: string | null | undefined;
4816
+ }[] | undefined;
4817
+ next_actions?: {
4818
+ action: string;
4819
+ reason: string;
4820
+ priority: "required" | "recommended" | "optional";
4821
+ tool?: string | undefined;
4822
+ prerequisite?: string | undefined;
4823
+ }[] | undefined;
4824
+ warnings?: string[] | undefined;
4825
+ experience?: {
4826
+ advice?: string | undefined;
4827
+ avoid?: string[] | undefined;
4828
+ relevance?: number | undefined;
4829
+ matched_scenario?: string | undefined;
4830
+ } | undefined;
4831
+ service_status?: {
4832
+ active: string[];
4833
+ inactive?: string[] | undefined;
4834
+ } | undefined;
4835
+ customer_advice?: {
4836
+ recommendations: string[];
4837
+ reminders: {
4838
+ message: string;
4839
+ id: string;
4840
+ priority: "required" | "recommended" | "info" | "reminder";
4841
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
4842
+ action?: string | undefined;
4843
+ }[];
4844
+ risk_score?: number | undefined;
4845
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
4846
+ preference_match?: {
4847
+ score: number;
4848
+ matches: string[];
4849
+ mismatches: string[];
4850
+ } | undefined;
4851
+ } | undefined;
4852
+ evolution_context?: {
4853
+ confidence: number;
4854
+ role?: "user" | "merchant" | "arbitrator" | undefined;
4855
+ industry_signal?: string | undefined;
4856
+ evolution_advice?: string | undefined;
4857
+ health_score?: number | undefined;
4858
+ pending_suggestions?: number | undefined;
4859
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
4860
+ role_advice?: string[] | undefined;
4861
+ } | undefined;
4862
+ }>>;
4425
4863
  }, "strip", z.ZodTypeAny, {
4426
4864
  result: {
4427
4865
  result: {
@@ -4431,7 +4869,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4431
4869
  unreadCount: number;
4432
4870
  lastMessagePreview?: string | undefined;
4433
4871
  previewMessages?: {
4434
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4872
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4435
4873
  createdAt: number;
4436
4874
  direction: "received" | "sent";
4437
4875
  messageId: string;
@@ -4474,7 +4912,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4474
4912
  operation: "watch_conversations";
4475
4913
  } | {
4476
4914
  result: {
4477
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4915
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4478
4916
  messageId: string;
4479
4917
  lastReceivedLeafIndex?: number | undefined;
4480
4918
  merkleData?: {
@@ -4490,7 +4928,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4490
4928
  operation: "send_message";
4491
4929
  } | {
4492
4930
  result: {
4493
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4931
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4494
4932
  messageId: string;
4495
4933
  lastReceivedLeafIndex?: number | undefined;
4496
4934
  merkleData?: {
@@ -4506,7 +4944,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4506
4944
  operation: "send_file";
4507
4945
  } | {
4508
4946
  result: {
4509
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4947
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4510
4948
  createdAt: number;
4511
4949
  direction: "received" | "sent";
4512
4950
  messageId: string;
@@ -4665,7 +5103,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4665
5103
  operation: "mark_conversation_as_viewed";
4666
5104
  } | {
4667
5105
  result: {
4668
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5106
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4669
5107
  createdAt: number;
4670
5108
  direction: "received" | "sent";
4671
5109
  messageId: string;
@@ -4705,7 +5143,97 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4705
5143
  viewedAt?: number | undefined;
4706
5144
  }[];
4707
5145
  operation: "pull_messages";
5146
+ } | {
5147
+ error: string;
5148
+ operation: "error";
5149
+ error_code?: string | undefined;
5150
+ retryable?: boolean | undefined;
5151
+ recovery_hint?: string | undefined;
4708
5152
  };
5153
+ semantic?: {
5154
+ status: "success" | "partial" | "failed" | "pending_input";
5155
+ intent: string;
5156
+ summary: string;
5157
+ created?: {
5158
+ id: string;
5159
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5160
+ name?: string | null | undefined;
5161
+ relation?: {
5162
+ parent?: string | null | undefined;
5163
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5164
+ } | undefined;
5165
+ immutable?: boolean | undefined;
5166
+ }[] | undefined;
5167
+ events?: {
5168
+ event_type: string;
5169
+ business_meaning: string;
5170
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
5171
+ related_object?: string | undefined;
5172
+ side_effect?: string | undefined;
5173
+ }[] | undefined;
5174
+ modified?: {
5175
+ id: string;
5176
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5177
+ name?: string | null | undefined;
5178
+ relation?: {
5179
+ parent?: string | null | undefined;
5180
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5181
+ } | undefined;
5182
+ immutable?: boolean | undefined;
5183
+ }[] | undefined;
5184
+ released?: {
5185
+ coinType: string;
5186
+ amount: string;
5187
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
5188
+ from?: string | null | undefined;
5189
+ to?: string | null | undefined;
5190
+ }[] | undefined;
5191
+ next_actions?: {
5192
+ action: string;
5193
+ reason: string;
5194
+ priority: "required" | "recommended" | "optional";
5195
+ tool?: string | undefined;
5196
+ prerequisite?: string | undefined;
5197
+ }[] | undefined;
5198
+ warnings?: string[] | undefined;
5199
+ experience?: {
5200
+ advice?: string | undefined;
5201
+ avoid?: string[] | undefined;
5202
+ relevance?: number | undefined;
5203
+ matched_scenario?: string | undefined;
5204
+ } | undefined;
5205
+ service_status?: {
5206
+ active: string[];
5207
+ inactive?: string[] | undefined;
5208
+ } | undefined;
5209
+ customer_advice?: {
5210
+ recommendations: string[];
5211
+ reminders: {
5212
+ message: string;
5213
+ id: string;
5214
+ priority: "required" | "recommended" | "info" | "reminder";
5215
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
5216
+ action?: string | undefined;
5217
+ }[];
5218
+ risk_score?: number | undefined;
5219
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
5220
+ preference_match?: {
5221
+ score: number;
5222
+ matches: string[];
5223
+ mismatches: string[];
5224
+ } | undefined;
5225
+ } | undefined;
5226
+ evolution_context?: {
5227
+ confidence: number;
5228
+ role?: "user" | "merchant" | "arbitrator" | undefined;
5229
+ industry_signal?: string | undefined;
5230
+ evolution_advice?: string | undefined;
5231
+ health_score?: number | undefined;
5232
+ pending_suggestions?: number | undefined;
5233
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
5234
+ role_advice?: string[] | undefined;
5235
+ } | undefined;
5236
+ } | undefined;
4709
5237
  }, {
4710
5238
  result: {
4711
5239
  result: {
@@ -4715,7 +5243,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4715
5243
  unreadCount: number;
4716
5244
  lastMessagePreview?: string | undefined;
4717
5245
  previewMessages?: {
4718
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5246
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4719
5247
  createdAt: number;
4720
5248
  direction: "received" | "sent";
4721
5249
  messageId: string;
@@ -4758,7 +5286,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4758
5286
  operation: "watch_conversations";
4759
5287
  } | {
4760
5288
  result: {
4761
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5289
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4762
5290
  messageId: string;
4763
5291
  lastReceivedLeafIndex?: number | undefined;
4764
5292
  merkleData?: {
@@ -4774,7 +5302,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4774
5302
  operation: "send_message";
4775
5303
  } | {
4776
5304
  result: {
4777
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5305
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4778
5306
  messageId: string;
4779
5307
  lastReceivedLeafIndex?: number | undefined;
4780
5308
  merkleData?: {
@@ -4790,7 +5318,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4790
5318
  operation: "send_file";
4791
5319
  } | {
4792
5320
  result: {
4793
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5321
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4794
5322
  createdAt: number;
4795
5323
  direction: "received" | "sent";
4796
5324
  messageId: string;
@@ -4949,7 +5477,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4949
5477
  operation: "mark_conversation_as_viewed";
4950
5478
  } | {
4951
5479
  result: {
4952
- status: "failed" | "pending" | "confirmed" | "read" | "rejected" | "decrypted" | "decrypt_failed";
5480
+ status: "confirmed" | "failed" | "pending" | "read" | "rejected" | "decrypted" | "decrypt_failed";
4953
5481
  createdAt: number;
4954
5482
  direction: "received" | "sent";
4955
5483
  messageId: string;
@@ -4989,7 +5517,97 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
4989
5517
  viewedAt?: number | undefined;
4990
5518
  }[];
4991
5519
  operation: "pull_messages";
5520
+ } | {
5521
+ error: string;
5522
+ operation: "error";
5523
+ error_code?: string | undefined;
5524
+ retryable?: boolean | undefined;
5525
+ recovery_hint?: string | undefined;
4992
5526
  };
5527
+ semantic?: {
5528
+ status: "success" | "partial" | "failed" | "pending_input";
5529
+ intent: string;
5530
+ summary: string;
5531
+ created?: {
5532
+ id: string;
5533
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5534
+ name?: string | null | undefined;
5535
+ relation?: {
5536
+ parent?: string | null | undefined;
5537
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5538
+ } | undefined;
5539
+ immutable?: boolean | undefined;
5540
+ }[] | undefined;
5541
+ events?: {
5542
+ event_type: string;
5543
+ business_meaning: string;
5544
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
5545
+ related_object?: string | undefined;
5546
+ side_effect?: string | undefined;
5547
+ }[] | undefined;
5548
+ modified?: {
5549
+ id: string;
5550
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
5551
+ name?: string | null | undefined;
5552
+ relation?: {
5553
+ parent?: string | null | undefined;
5554
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
5555
+ } | undefined;
5556
+ immutable?: boolean | undefined;
5557
+ }[] | undefined;
5558
+ released?: {
5559
+ coinType: string;
5560
+ amount: string;
5561
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
5562
+ from?: string | null | undefined;
5563
+ to?: string | null | undefined;
5564
+ }[] | undefined;
5565
+ next_actions?: {
5566
+ action: string;
5567
+ reason: string;
5568
+ priority: "required" | "recommended" | "optional";
5569
+ tool?: string | undefined;
5570
+ prerequisite?: string | undefined;
5571
+ }[] | undefined;
5572
+ warnings?: string[] | undefined;
5573
+ experience?: {
5574
+ advice?: string | undefined;
5575
+ avoid?: string[] | undefined;
5576
+ relevance?: number | undefined;
5577
+ matched_scenario?: string | undefined;
5578
+ } | undefined;
5579
+ service_status?: {
5580
+ active: string[];
5581
+ inactive?: string[] | undefined;
5582
+ } | undefined;
5583
+ customer_advice?: {
5584
+ recommendations: string[];
5585
+ reminders: {
5586
+ message: string;
5587
+ id: string;
5588
+ priority: "required" | "recommended" | "info" | "reminder";
5589
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
5590
+ action?: string | undefined;
5591
+ }[];
5592
+ risk_score?: number | undefined;
5593
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
5594
+ preference_match?: {
5595
+ score: number;
5596
+ matches: string[];
5597
+ mismatches: string[];
5598
+ } | undefined;
5599
+ } | undefined;
5600
+ evolution_context?: {
5601
+ confidence: number;
5602
+ role?: "user" | "merchant" | "arbitrator" | undefined;
5603
+ industry_signal?: string | undefined;
5604
+ evolution_advice?: string | undefined;
5605
+ health_score?: number | undefined;
5606
+ pending_suggestions?: number | undefined;
5607
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
5608
+ role_advice?: string[] | undefined;
5609
+ } | undefined;
5610
+ } | undefined;
4993
5611
  }>;
4994
5612
  export type MessengerOperationInput = z.infer<typeof MessengerOperationInputSchema>;
4995
5613
  export type MessengerOperationOutput = z.infer<typeof MessengerOperationOutputSchema>;