@wowok/agent-mcp 2.3.13 → 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 (194) 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/harness/checkpoint.d.ts +8 -0
  36. package/dist/harness/checkpoint.js +129 -0
  37. package/dist/harness/index.d.ts +33 -0
  38. package/dist/harness/index.js +75 -0
  39. package/dist/harness/plan.d.ts +18 -0
  40. package/dist/harness/plan.js +252 -0
  41. package/dist/harness/recover.d.ts +17 -0
  42. package/dist/harness/recover.js +139 -0
  43. package/dist/harness/types.d.ts +137 -0
  44. package/dist/harness/types.js +1 -0
  45. package/dist/harness/verify.d.ts +42 -0
  46. package/dist/harness/verify.js +237 -0
  47. package/dist/index.js +667 -201
  48. package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
  49. package/dist/knowledge/acquisition-flywheel.js +183 -0
  50. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  51. package/dist/knowledge/arbitration-trust.js +117 -0
  52. package/dist/knowledge/audit-rules.d.ts +28 -0
  53. package/dist/knowledge/audit-rules.js +141 -0
  54. package/dist/knowledge/demand-matching.d.ts +29 -0
  55. package/dist/knowledge/demand-matching.js +132 -0
  56. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  57. package/dist/knowledge/dynamic-pricing.js +87 -0
  58. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  59. package/dist/knowledge/flywheel-loop.js +378 -0
  60. package/dist/knowledge/glossary.d.ts +18 -0
  61. package/dist/knowledge/glossary.js +209 -0
  62. package/dist/knowledge/index.d.ts +64 -0
  63. package/dist/knowledge/index.js +66 -0
  64. package/dist/knowledge/industry-evolution.d.ts +82 -0
  65. package/dist/knowledge/industry-evolution.js +323 -0
  66. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  67. package/dist/knowledge/industry-generalizer.js +381 -0
  68. package/dist/knowledge/industry-registry.d.ts +49 -0
  69. package/dist/knowledge/industry-registry.js +167 -0
  70. package/dist/knowledge/intent-metrics.d.ts +42 -0
  71. package/dist/knowledge/intent-metrics.js +566 -0
  72. package/dist/knowledge/process-model.d.ts +24 -0
  73. package/dist/knowledge/process-model.js +160 -0
  74. package/dist/knowledge/reputation-rules.d.ts +42 -0
  75. package/dist/knowledge/reputation-rules.js +99 -0
  76. package/dist/knowledge/reward-templates.d.ts +25 -0
  77. package/dist/knowledge/reward-templates.js +125 -0
  78. package/dist/knowledge/safety-rules.d.ts +36 -0
  79. package/dist/knowledge/safety-rules.js +171 -0
  80. package/dist/knowledge/tool-constraints.d.ts +30 -0
  81. package/dist/knowledge/tool-constraints.js +185 -0
  82. package/dist/knowledge/trust-metrics.d.ts +37 -0
  83. package/dist/knowledge/trust-metrics.js +138 -0
  84. package/dist/loop-engineering/aggregate.d.ts +50 -0
  85. package/dist/loop-engineering/aggregate.js +132 -0
  86. package/dist/loop-engineering/diagnose.d.ts +22 -0
  87. package/dist/loop-engineering/diagnose.js +273 -0
  88. package/dist/loop-engineering/improve.d.ts +26 -0
  89. package/dist/loop-engineering/improve.js +229 -0
  90. package/dist/loop-engineering/index.d.ts +4 -0
  91. package/dist/loop-engineering/index.js +4 -0
  92. package/dist/loop-engineering/pipeline.d.ts +17 -0
  93. package/dist/loop-engineering/pipeline.js +56 -0
  94. package/dist/mode-market/index.d.ts +3 -0
  95. package/dist/mode-market/index.js +3 -0
  96. package/dist/mode-market/registry.d.ts +53 -0
  97. package/dist/mode-market/registry.js +124 -0
  98. package/dist/mode-market/review.d.ts +27 -0
  99. package/dist/mode-market/review.js +214 -0
  100. package/dist/mode-market/submission.d.ts +25 -0
  101. package/dist/mode-market/submission.js +85 -0
  102. package/dist/project/graph.d.ts +71 -0
  103. package/dist/project/graph.js +314 -0
  104. package/dist/project/index.d.ts +62 -0
  105. package/dist/project/index.js +167 -0
  106. package/dist/project/namespace.d.ts +62 -0
  107. package/dist/project/namespace.js +181 -0
  108. package/dist/project/query.d.ts +40 -0
  109. package/dist/project/query.js +110 -0
  110. package/dist/safety/confirm-gate.d.ts +15 -0
  111. package/dist/safety/confirm-gate.js +44 -0
  112. package/dist/safety/index.d.ts +3 -0
  113. package/dist/safety/index.js +3 -0
  114. package/dist/safety/preview.d.ts +2 -0
  115. package/dist/safety/preview.js +36 -0
  116. package/dist/schema/call/allocation.d.ts +55 -40
  117. package/dist/schema/call/arbitration.d.ts +201 -186
  118. package/dist/schema/call/base.d.ts +2104 -24
  119. package/dist/schema/call/base.js +168 -22
  120. package/dist/schema/call/bridge-handler.js +36 -18
  121. package/dist/schema/call/bridge.d.ts +777 -120
  122. package/dist/schema/call/bridge.js +13 -2
  123. package/dist/schema/call/contact.d.ts +15 -0
  124. package/dist/schema/call/demand.d.ts +69 -54
  125. package/dist/schema/call/guard.d.ts +125 -80
  126. package/dist/schema/call/handler.d.ts +5 -1
  127. package/dist/schema/call/handler.js +108 -3
  128. package/dist/schema/call/index.d.ts +1 -0
  129. package/dist/schema/call/index.js +1 -0
  130. package/dist/schema/call/machine.d.ts +830 -800
  131. package/dist/schema/call/order.d.ts +27 -12
  132. package/dist/schema/call/payment.d.ts +15 -0
  133. package/dist/schema/call/permission.d.ts +15 -0
  134. package/dist/schema/call/personal.d.ts +15 -0
  135. package/dist/schema/call/progress.d.ts +21 -6
  136. package/dist/schema/call/proof.d.ts +42 -12
  137. package/dist/schema/call/proof.js +3 -3
  138. package/dist/schema/call/repository.d.ts +91 -76
  139. package/dist/schema/call/reward.d.ts +51 -36
  140. package/dist/schema/call/semantic.d.ts +24 -0
  141. package/dist/schema/call/semantic.js +981 -0
  142. package/dist/schema/call/service.d.ts +444 -429
  143. package/dist/schema/call/treasury.d.ts +219 -204
  144. package/dist/schema/common/index.js +3 -3
  145. package/dist/schema/local/index.d.ts +341 -74
  146. package/dist/schema/local/index.js +44 -7
  147. package/dist/schema/messenger/index.d.ts +1034 -92
  148. package/dist/schema/messenger/index.js +18 -0
  149. package/dist/schema/operations.d.ts +2634 -1817
  150. package/dist/schema/operations.js +16 -5
  151. package/dist/schema/query/index.d.ts +2293 -2289
  152. package/dist/schema/query/index.js +34 -28
  153. package/dist/schemas/account_operation.output.json +28 -16
  154. package/dist/schemas/account_operation.schema.json +2 -2
  155. package/dist/schemas/bridge_operation.output.json +520 -0
  156. package/dist/schemas/bridge_operation.schema.json +15 -0
  157. package/dist/schemas/guard2file.schema.json +15 -0
  158. package/dist/schemas/index.json +1 -1
  159. package/dist/schemas/local_info_operation.output.json +26 -0
  160. package/dist/schemas/local_info_operation.schema.json +1 -1
  161. package/dist/schemas/local_mark_operation.output.json +27 -1
  162. package/dist/schemas/local_mark_operation.schema.json +4 -4
  163. package/dist/schemas/machineNode2file.schema.json +15 -0
  164. package/dist/schemas/messenger_operation.output.json +549 -0
  165. package/dist/schemas/messenger_operation.schema.json +21 -0
  166. package/dist/schemas/onchain_events.output.json +3 -0
  167. package/dist/schemas/onchain_operations.output.json +814 -37
  168. package/dist/schemas/onchain_operations.schema.json +117 -40
  169. package/dist/schemas/onchain_operations_allocation.schema.json +26 -9
  170. package/dist/schemas/onchain_operations_arbitration.schema.json +26 -9
  171. package/dist/schemas/onchain_operations_contact.schema.json +26 -9
  172. package/dist/schemas/onchain_operations_demand.schema.json +26 -9
  173. package/dist/schemas/onchain_operations_gen_passport.schema.json +51 -17
  174. package/dist/schemas/onchain_operations_guard.schema.json +26 -9
  175. package/dist/schemas/onchain_operations_machine.schema.json +92 -32
  176. package/dist/schemas/onchain_operations_order.schema.json +26 -9
  177. package/dist/schemas/onchain_operations_payment.schema.json +26 -9
  178. package/dist/schemas/onchain_operations_permission.schema.json +26 -9
  179. package/dist/schemas/onchain_operations_personal.schema.json +26 -9
  180. package/dist/schemas/onchain_operations_progress.schema.json +26 -9
  181. package/dist/schemas/onchain_operations_repository.schema.json +26 -9
  182. package/dist/schemas/onchain_operations_reward.schema.json +26 -9
  183. package/dist/schemas/onchain_operations_service.schema.json +26 -9
  184. package/dist/schemas/onchain_operations_treasury.schema.json +26 -9
  185. package/dist/schemas/onchain_table_data.output.json +224 -69
  186. package/dist/schemas/onchain_table_data.schema.json +2 -2
  187. package/dist/schemas/query_toolkit.schema.json +5 -1
  188. package/dist/telemetry/index.d.ts +19 -0
  189. package/dist/telemetry/index.js +112 -0
  190. package/dist/telemetry/redact.d.ts +2 -0
  191. package/dist/telemetry/redact.js +23 -0
  192. package/dist/telemetry/storage.d.ts +8 -0
  193. package/dist/telemetry/storage.js +80 -0
  194. package/package.json +6 -3
@@ -218,18 +218,27 @@ export declare const CallEnvSchema: z.ZodObject<{
218
218
  no_cache: z.ZodOptional<z.ZodBoolean>;
219
219
  network: z.ZodOptional<z.ZodEnum<[ENTRYPOINT.Localnet, ENTRYPOINT.Testnet, ENTRYPOINT.Mainnet]>>;
220
220
  referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
221
+ confirmed: z.ZodOptional<z.ZodBoolean>;
222
+ user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ project: z.ZodOptional<z.ZodString>;
221
224
  }, "strict", z.ZodTypeAny, {
222
225
  account: string;
223
226
  no_cache?: boolean | undefined;
224
227
  network?: ENTRYPOINT | undefined;
225
228
  permission_guard?: string[] | undefined;
226
229
  referrer?: string | undefined;
230
+ confirmed?: boolean | undefined;
231
+ user_intent_phrases?: string[] | undefined;
232
+ project?: string | undefined;
227
233
  }, {
228
234
  no_cache?: boolean | undefined;
229
235
  network?: ENTRYPOINT | undefined;
230
236
  account?: string | undefined;
231
237
  permission_guard?: string[] | undefined;
232
238
  referrer?: string | undefined;
239
+ confirmed?: boolean | undefined;
240
+ user_intent_phrases?: string[] | undefined;
241
+ project?: string | undefined;
233
242
  }>;
234
243
  export declare const ObjectsOpSchema: z.ZodUnion<[z.ZodObject<{
235
244
  op: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"set">, z.ZodLiteral<"add">]>, z.ZodLiteral<"remove">]>;
@@ -461,15 +470,847 @@ export declare const ResponseDataSchema: z.ZodObject<{
461
470
  } & {
462
471
  change: z.ZodUnion<[z.ZodLiteral<"created">, z.ZodLiteral<"mutated">, z.ZodString]>;
463
472
  }, z.ZodTypeAny, "passthrough">>;
473
+ export declare const ObjectRoleSchema: z.ZodObject<{
474
+ id: z.ZodString;
475
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
476
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
477
+ relation: z.ZodOptional<z.ZodObject<{
478
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
479
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ parent?: string | null | undefined;
482
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
483
+ }, {
484
+ parent?: string | null | undefined;
485
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
486
+ }>>;
487
+ immutable: z.ZodOptional<z.ZodBoolean>;
488
+ }, "strict", z.ZodTypeAny, {
489
+ id: string;
490
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
491
+ name?: string | null | undefined;
492
+ relation?: {
493
+ parent?: string | null | undefined;
494
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
495
+ } | undefined;
496
+ immutable?: boolean | undefined;
497
+ }, {
498
+ id: string;
499
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
500
+ name?: string | null | undefined;
501
+ relation?: {
502
+ parent?: string | null | undefined;
503
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
504
+ } | undefined;
505
+ immutable?: boolean | undefined;
506
+ }>;
507
+ export declare const FundRoleSchema: z.ZodObject<{
508
+ amount: z.ZodString;
509
+ coinType: z.ZodString;
510
+ role: z.ZodEnum<["payment", "refund", "change", "compensation", "reward", "gas", "deposit", "release", "other"]>;
511
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
512
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
513
+ }, "strict", z.ZodTypeAny, {
514
+ coinType: string;
515
+ amount: string;
516
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
517
+ from?: string | null | undefined;
518
+ to?: string | null | undefined;
519
+ }, {
520
+ coinType: string;
521
+ amount: string;
522
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
523
+ from?: string | null | undefined;
524
+ to?: string | null | undefined;
525
+ }>;
526
+ export declare const NextActionSchema: z.ZodObject<{
527
+ action: z.ZodString;
528
+ reason: z.ZodString;
529
+ tool: z.ZodOptional<z.ZodString>;
530
+ prerequisite: z.ZodOptional<z.ZodString>;
531
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
532
+ }, "strict", z.ZodTypeAny, {
533
+ action: string;
534
+ reason: string;
535
+ priority: "required" | "recommended" | "optional";
536
+ tool?: string | undefined;
537
+ prerequisite?: string | undefined;
538
+ }, {
539
+ action: string;
540
+ reason: string;
541
+ priority: "required" | "recommended" | "optional";
542
+ tool?: string | undefined;
543
+ prerequisite?: string | undefined;
544
+ }>;
545
+ export declare const EventSemanticSchema: z.ZodObject<{
546
+ event_type: z.ZodString;
547
+ business_meaning: z.ZodString;
548
+ category: z.ZodEnum<["lifecycle", "state_change", "fund_flow", "permission", "guard", "other"]>;
549
+ related_object: z.ZodOptional<z.ZodString>;
550
+ side_effect: z.ZodOptional<z.ZodString>;
551
+ }, "strict", z.ZodTypeAny, {
552
+ event_type: string;
553
+ business_meaning: string;
554
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
555
+ related_object?: string | undefined;
556
+ side_effect?: string | undefined;
557
+ }, {
558
+ event_type: string;
559
+ business_meaning: string;
560
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
561
+ related_object?: string | undefined;
562
+ side_effect?: string | undefined;
563
+ }>;
564
+ export declare const ExperienceSchema: z.ZodObject<{
565
+ advice: z.ZodOptional<z.ZodString>;
566
+ avoid: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
567
+ relevance: z.ZodOptional<z.ZodNumber>;
568
+ matched_scenario: z.ZodOptional<z.ZodString>;
569
+ }, "strict", z.ZodTypeAny, {
570
+ advice?: string | undefined;
571
+ avoid?: string[] | undefined;
572
+ relevance?: number | undefined;
573
+ matched_scenario?: string | undefined;
574
+ }, {
575
+ advice?: string | undefined;
576
+ avoid?: string[] | undefined;
577
+ relevance?: number | undefined;
578
+ matched_scenario?: string | undefined;
579
+ }>;
580
+ export declare const ServiceStatusSchema: z.ZodObject<{
581
+ active: z.ZodArray<z.ZodString, "many">;
582
+ inactive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
583
+ }, "strict", z.ZodTypeAny, {
584
+ active: string[];
585
+ inactive?: string[] | undefined;
586
+ }, {
587
+ active: string[];
588
+ inactive?: string[] | undefined;
589
+ }>;
590
+ export declare const CustomerReminderSchema: z.ZodObject<{
591
+ id: z.ZodString;
592
+ stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
593
+ priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
594
+ message: z.ZodString;
595
+ action: z.ZodOptional<z.ZodString>;
596
+ }, "strict", z.ZodTypeAny, {
597
+ message: string;
598
+ id: string;
599
+ priority: "required" | "recommended" | "info" | "reminder";
600
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
601
+ action?: string | undefined;
602
+ }, {
603
+ message: string;
604
+ id: string;
605
+ priority: "required" | "recommended" | "info" | "reminder";
606
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
607
+ action?: string | undefined;
608
+ }>;
609
+ export declare const PreferenceMatchSchema: z.ZodObject<{
610
+ score: z.ZodNumber;
611
+ matches: z.ZodArray<z.ZodString, "many">;
612
+ mismatches: z.ZodArray<z.ZodString, "many">;
613
+ }, "strict", z.ZodTypeAny, {
614
+ score: number;
615
+ matches: string[];
616
+ mismatches: string[];
617
+ }, {
618
+ score: number;
619
+ matches: string[];
620
+ mismatches: string[];
621
+ }>;
622
+ export declare const CustomerAdviceSchema: z.ZodObject<{
623
+ risk_score: z.ZodOptional<z.ZodNumber>;
624
+ risk_level: z.ZodOptional<z.ZodEnum<["low", "medium_low", "medium_high", "high"]>>;
625
+ recommendations: z.ZodArray<z.ZodString, "many">;
626
+ reminders: z.ZodArray<z.ZodObject<{
627
+ id: z.ZodString;
628
+ stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
629
+ priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
630
+ message: z.ZodString;
631
+ action: z.ZodOptional<z.ZodString>;
632
+ }, "strict", z.ZodTypeAny, {
633
+ message: string;
634
+ id: string;
635
+ priority: "required" | "recommended" | "info" | "reminder";
636
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
637
+ action?: string | undefined;
638
+ }, {
639
+ message: string;
640
+ id: string;
641
+ priority: "required" | "recommended" | "info" | "reminder";
642
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
643
+ action?: string | undefined;
644
+ }>, "many">;
645
+ preference_match: z.ZodOptional<z.ZodObject<{
646
+ score: z.ZodNumber;
647
+ matches: z.ZodArray<z.ZodString, "many">;
648
+ mismatches: z.ZodArray<z.ZodString, "many">;
649
+ }, "strict", z.ZodTypeAny, {
650
+ score: number;
651
+ matches: string[];
652
+ mismatches: string[];
653
+ }, {
654
+ score: number;
655
+ matches: string[];
656
+ mismatches: string[];
657
+ }>>;
658
+ }, "strict", z.ZodTypeAny, {
659
+ recommendations: string[];
660
+ reminders: {
661
+ message: string;
662
+ id: string;
663
+ priority: "required" | "recommended" | "info" | "reminder";
664
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
665
+ action?: string | undefined;
666
+ }[];
667
+ risk_score?: number | undefined;
668
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
669
+ preference_match?: {
670
+ score: number;
671
+ matches: string[];
672
+ mismatches: string[];
673
+ } | undefined;
674
+ }, {
675
+ recommendations: string[];
676
+ reminders: {
677
+ message: string;
678
+ id: string;
679
+ priority: "required" | "recommended" | "info" | "reminder";
680
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
681
+ action?: string | undefined;
682
+ }[];
683
+ risk_score?: number | undefined;
684
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
685
+ preference_match?: {
686
+ score: number;
687
+ matches: string[];
688
+ mismatches: string[];
689
+ } | undefined;
690
+ }>;
691
+ export declare const EvolutionContextSchema: z.ZodObject<{
692
+ industry_signal: z.ZodOptional<z.ZodString>;
693
+ evolution_advice: z.ZodOptional<z.ZodString>;
694
+ confidence: z.ZodNumber;
695
+ health_score: z.ZodOptional<z.ZodNumber>;
696
+ pending_suggestions: z.ZodOptional<z.ZodNumber>;
697
+ intent: z.ZodOptional<z.ZodEnum<["default", "growth", "retention", "compliance", "efficiency", "trust_building", "custom"]>>;
698
+ role_advice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
699
+ role: z.ZodOptional<z.ZodEnum<["user", "merchant", "arbitrator"]>>;
700
+ }, "strict", z.ZodTypeAny, {
701
+ confidence: number;
702
+ role?: "user" | "merchant" | "arbitrator" | undefined;
703
+ industry_signal?: string | undefined;
704
+ evolution_advice?: string | undefined;
705
+ health_score?: number | undefined;
706
+ pending_suggestions?: number | undefined;
707
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
708
+ role_advice?: string[] | undefined;
709
+ }, {
710
+ confidence: number;
711
+ role?: "user" | "merchant" | "arbitrator" | undefined;
712
+ industry_signal?: string | undefined;
713
+ evolution_advice?: string | undefined;
714
+ health_score?: number | undefined;
715
+ pending_suggestions?: number | undefined;
716
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
717
+ role_advice?: string[] | undefined;
718
+ }>;
719
+ export declare const SemanticSummarySchema: z.ZodObject<{
720
+ intent: z.ZodString;
721
+ status: z.ZodEnum<["success", "partial", "failed", "pending_input"]>;
722
+ summary: z.ZodString;
723
+ created: z.ZodOptional<z.ZodArray<z.ZodObject<{
724
+ id: z.ZodString;
725
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
726
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
727
+ relation: z.ZodOptional<z.ZodObject<{
728
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
729
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
730
+ }, "strip", z.ZodTypeAny, {
731
+ parent?: string | null | undefined;
732
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
733
+ }, {
734
+ parent?: string | null | undefined;
735
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
736
+ }>>;
737
+ immutable: z.ZodOptional<z.ZodBoolean>;
738
+ }, "strict", z.ZodTypeAny, {
739
+ id: string;
740
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
741
+ name?: string | null | undefined;
742
+ relation?: {
743
+ parent?: string | null | undefined;
744
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
745
+ } | undefined;
746
+ immutable?: boolean | undefined;
747
+ }, {
748
+ id: string;
749
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
750
+ name?: string | null | undefined;
751
+ relation?: {
752
+ parent?: string | null | undefined;
753
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
754
+ } | undefined;
755
+ immutable?: boolean | undefined;
756
+ }>, "many">>;
757
+ modified: z.ZodOptional<z.ZodArray<z.ZodObject<{
758
+ id: z.ZodString;
759
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
760
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
761
+ relation: z.ZodOptional<z.ZodObject<{
762
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
763
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ parent?: string | null | undefined;
766
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
767
+ }, {
768
+ parent?: string | null | undefined;
769
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
770
+ }>>;
771
+ immutable: z.ZodOptional<z.ZodBoolean>;
772
+ }, "strict", z.ZodTypeAny, {
773
+ id: string;
774
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
775
+ name?: string | null | undefined;
776
+ relation?: {
777
+ parent?: string | null | undefined;
778
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
779
+ } | undefined;
780
+ immutable?: boolean | undefined;
781
+ }, {
782
+ id: string;
783
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
784
+ name?: string | null | undefined;
785
+ relation?: {
786
+ parent?: string | null | undefined;
787
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
788
+ } | undefined;
789
+ immutable?: boolean | undefined;
790
+ }>, "many">>;
791
+ released: z.ZodOptional<z.ZodArray<z.ZodObject<{
792
+ amount: z.ZodString;
793
+ coinType: z.ZodString;
794
+ role: z.ZodEnum<["payment", "refund", "change", "compensation", "reward", "gas", "deposit", "release", "other"]>;
795
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
+ }, "strict", z.ZodTypeAny, {
798
+ coinType: string;
799
+ amount: string;
800
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
801
+ from?: string | null | undefined;
802
+ to?: string | null | undefined;
803
+ }, {
804
+ coinType: string;
805
+ amount: string;
806
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
807
+ from?: string | null | undefined;
808
+ to?: string | null | undefined;
809
+ }>, "many">>;
810
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
811
+ event_type: z.ZodString;
812
+ business_meaning: z.ZodString;
813
+ category: z.ZodEnum<["lifecycle", "state_change", "fund_flow", "permission", "guard", "other"]>;
814
+ related_object: z.ZodOptional<z.ZodString>;
815
+ side_effect: z.ZodOptional<z.ZodString>;
816
+ }, "strict", z.ZodTypeAny, {
817
+ event_type: string;
818
+ business_meaning: string;
819
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
820
+ related_object?: string | undefined;
821
+ side_effect?: string | undefined;
822
+ }, {
823
+ event_type: string;
824
+ business_meaning: string;
825
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
826
+ related_object?: string | undefined;
827
+ side_effect?: string | undefined;
828
+ }>, "many">>;
829
+ next_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
830
+ action: z.ZodString;
831
+ reason: z.ZodString;
832
+ tool: z.ZodOptional<z.ZodString>;
833
+ prerequisite: z.ZodOptional<z.ZodString>;
834
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
835
+ }, "strict", z.ZodTypeAny, {
836
+ action: string;
837
+ reason: string;
838
+ priority: "required" | "recommended" | "optional";
839
+ tool?: string | undefined;
840
+ prerequisite?: string | undefined;
841
+ }, {
842
+ action: string;
843
+ reason: string;
844
+ priority: "required" | "recommended" | "optional";
845
+ tool?: string | undefined;
846
+ prerequisite?: string | undefined;
847
+ }>, "many">>;
848
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
849
+ experience: z.ZodOptional<z.ZodObject<{
850
+ advice: z.ZodOptional<z.ZodString>;
851
+ avoid: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
852
+ relevance: z.ZodOptional<z.ZodNumber>;
853
+ matched_scenario: z.ZodOptional<z.ZodString>;
854
+ }, "strict", z.ZodTypeAny, {
855
+ advice?: string | undefined;
856
+ avoid?: string[] | undefined;
857
+ relevance?: number | undefined;
858
+ matched_scenario?: string | undefined;
859
+ }, {
860
+ advice?: string | undefined;
861
+ avoid?: string[] | undefined;
862
+ relevance?: number | undefined;
863
+ matched_scenario?: string | undefined;
864
+ }>>;
865
+ service_status: z.ZodOptional<z.ZodObject<{
866
+ active: z.ZodArray<z.ZodString, "many">;
867
+ inactive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
868
+ }, "strict", z.ZodTypeAny, {
869
+ active: string[];
870
+ inactive?: string[] | undefined;
871
+ }, {
872
+ active: string[];
873
+ inactive?: string[] | undefined;
874
+ }>>;
875
+ customer_advice: z.ZodOptional<z.ZodObject<{
876
+ risk_score: z.ZodOptional<z.ZodNumber>;
877
+ risk_level: z.ZodOptional<z.ZodEnum<["low", "medium_low", "medium_high", "high"]>>;
878
+ recommendations: z.ZodArray<z.ZodString, "many">;
879
+ reminders: z.ZodArray<z.ZodObject<{
880
+ id: z.ZodString;
881
+ stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
882
+ priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
883
+ message: z.ZodString;
884
+ action: z.ZodOptional<z.ZodString>;
885
+ }, "strict", z.ZodTypeAny, {
886
+ message: string;
887
+ id: string;
888
+ priority: "required" | "recommended" | "info" | "reminder";
889
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
890
+ action?: string | undefined;
891
+ }, {
892
+ message: string;
893
+ id: string;
894
+ priority: "required" | "recommended" | "info" | "reminder";
895
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
896
+ action?: string | undefined;
897
+ }>, "many">;
898
+ preference_match: z.ZodOptional<z.ZodObject<{
899
+ score: z.ZodNumber;
900
+ matches: z.ZodArray<z.ZodString, "many">;
901
+ mismatches: z.ZodArray<z.ZodString, "many">;
902
+ }, "strict", z.ZodTypeAny, {
903
+ score: number;
904
+ matches: string[];
905
+ mismatches: string[];
906
+ }, {
907
+ score: number;
908
+ matches: string[];
909
+ mismatches: string[];
910
+ }>>;
911
+ }, "strict", z.ZodTypeAny, {
912
+ recommendations: string[];
913
+ reminders: {
914
+ message: string;
915
+ id: string;
916
+ priority: "required" | "recommended" | "info" | "reminder";
917
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
918
+ action?: string | undefined;
919
+ }[];
920
+ risk_score?: number | undefined;
921
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
922
+ preference_match?: {
923
+ score: number;
924
+ matches: string[];
925
+ mismatches: string[];
926
+ } | undefined;
927
+ }, {
928
+ recommendations: string[];
929
+ reminders: {
930
+ message: string;
931
+ id: string;
932
+ priority: "required" | "recommended" | "info" | "reminder";
933
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
934
+ action?: string | undefined;
935
+ }[];
936
+ risk_score?: number | undefined;
937
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
938
+ preference_match?: {
939
+ score: number;
940
+ matches: string[];
941
+ mismatches: string[];
942
+ } | undefined;
943
+ }>>;
944
+ evolution_context: z.ZodOptional<z.ZodObject<{
945
+ industry_signal: z.ZodOptional<z.ZodString>;
946
+ evolution_advice: z.ZodOptional<z.ZodString>;
947
+ confidence: z.ZodNumber;
948
+ health_score: z.ZodOptional<z.ZodNumber>;
949
+ pending_suggestions: z.ZodOptional<z.ZodNumber>;
950
+ intent: z.ZodOptional<z.ZodEnum<["default", "growth", "retention", "compliance", "efficiency", "trust_building", "custom"]>>;
951
+ role_advice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
952
+ role: z.ZodOptional<z.ZodEnum<["user", "merchant", "arbitrator"]>>;
953
+ }, "strict", z.ZodTypeAny, {
954
+ confidence: number;
955
+ role?: "user" | "merchant" | "arbitrator" | undefined;
956
+ industry_signal?: string | undefined;
957
+ evolution_advice?: string | undefined;
958
+ health_score?: number | undefined;
959
+ pending_suggestions?: number | undefined;
960
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
961
+ role_advice?: string[] | undefined;
962
+ }, {
963
+ confidence: number;
964
+ role?: "user" | "merchant" | "arbitrator" | undefined;
965
+ industry_signal?: string | undefined;
966
+ evolution_advice?: string | undefined;
967
+ health_score?: number | undefined;
968
+ pending_suggestions?: number | undefined;
969
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
970
+ role_advice?: string[] | undefined;
971
+ }>>;
972
+ }, "strict", z.ZodTypeAny, {
973
+ status: "success" | "partial" | "failed" | "pending_input";
974
+ intent: string;
975
+ summary: string;
976
+ created?: {
977
+ id: string;
978
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
979
+ name?: string | null | undefined;
980
+ relation?: {
981
+ parent?: string | null | undefined;
982
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
983
+ } | undefined;
984
+ immutable?: boolean | undefined;
985
+ }[] | undefined;
986
+ events?: {
987
+ event_type: string;
988
+ business_meaning: string;
989
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
990
+ related_object?: string | undefined;
991
+ side_effect?: string | undefined;
992
+ }[] | undefined;
993
+ modified?: {
994
+ id: string;
995
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
996
+ name?: string | null | undefined;
997
+ relation?: {
998
+ parent?: string | null | undefined;
999
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
1000
+ } | undefined;
1001
+ immutable?: boolean | undefined;
1002
+ }[] | undefined;
1003
+ released?: {
1004
+ coinType: string;
1005
+ amount: string;
1006
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
1007
+ from?: string | null | undefined;
1008
+ to?: string | null | undefined;
1009
+ }[] | undefined;
1010
+ next_actions?: {
1011
+ action: string;
1012
+ reason: string;
1013
+ priority: "required" | "recommended" | "optional";
1014
+ tool?: string | undefined;
1015
+ prerequisite?: string | undefined;
1016
+ }[] | undefined;
1017
+ warnings?: string[] | undefined;
1018
+ experience?: {
1019
+ advice?: string | undefined;
1020
+ avoid?: string[] | undefined;
1021
+ relevance?: number | undefined;
1022
+ matched_scenario?: string | undefined;
1023
+ } | undefined;
1024
+ service_status?: {
1025
+ active: string[];
1026
+ inactive?: string[] | undefined;
1027
+ } | undefined;
1028
+ customer_advice?: {
1029
+ recommendations: string[];
1030
+ reminders: {
1031
+ message: string;
1032
+ id: string;
1033
+ priority: "required" | "recommended" | "info" | "reminder";
1034
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
1035
+ action?: string | undefined;
1036
+ }[];
1037
+ risk_score?: number | undefined;
1038
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
1039
+ preference_match?: {
1040
+ score: number;
1041
+ matches: string[];
1042
+ mismatches: string[];
1043
+ } | undefined;
1044
+ } | undefined;
1045
+ evolution_context?: {
1046
+ confidence: number;
1047
+ role?: "user" | "merchant" | "arbitrator" | undefined;
1048
+ industry_signal?: string | undefined;
1049
+ evolution_advice?: string | undefined;
1050
+ health_score?: number | undefined;
1051
+ pending_suggestions?: number | undefined;
1052
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
1053
+ role_advice?: string[] | undefined;
1054
+ } | undefined;
1055
+ }, {
1056
+ status: "success" | "partial" | "failed" | "pending_input";
1057
+ intent: string;
1058
+ summary: string;
1059
+ created?: {
1060
+ id: string;
1061
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
1062
+ name?: string | null | undefined;
1063
+ relation?: {
1064
+ parent?: string | null | undefined;
1065
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
1066
+ } | undefined;
1067
+ immutable?: boolean | undefined;
1068
+ }[] | undefined;
1069
+ events?: {
1070
+ event_type: string;
1071
+ business_meaning: string;
1072
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
1073
+ related_object?: string | undefined;
1074
+ side_effect?: string | undefined;
1075
+ }[] | undefined;
1076
+ modified?: {
1077
+ id: string;
1078
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
1079
+ name?: string | null | undefined;
1080
+ relation?: {
1081
+ parent?: string | null | undefined;
1082
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
1083
+ } | undefined;
1084
+ immutable?: boolean | undefined;
1085
+ }[] | undefined;
1086
+ released?: {
1087
+ coinType: string;
1088
+ amount: string;
1089
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
1090
+ from?: string | null | undefined;
1091
+ to?: string | null | undefined;
1092
+ }[] | undefined;
1093
+ next_actions?: {
1094
+ action: string;
1095
+ reason: string;
1096
+ priority: "required" | "recommended" | "optional";
1097
+ tool?: string | undefined;
1098
+ prerequisite?: string | undefined;
1099
+ }[] | undefined;
1100
+ warnings?: string[] | undefined;
1101
+ experience?: {
1102
+ advice?: string | undefined;
1103
+ avoid?: string[] | undefined;
1104
+ relevance?: number | undefined;
1105
+ matched_scenario?: string | undefined;
1106
+ } | undefined;
1107
+ service_status?: {
1108
+ active: string[];
1109
+ inactive?: string[] | undefined;
1110
+ } | undefined;
1111
+ customer_advice?: {
1112
+ recommendations: string[];
1113
+ reminders: {
1114
+ message: string;
1115
+ id: string;
1116
+ priority: "required" | "recommended" | "info" | "reminder";
1117
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
1118
+ action?: string | undefined;
1119
+ }[];
1120
+ risk_score?: number | undefined;
1121
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
1122
+ preference_match?: {
1123
+ score: number;
1124
+ matches: string[];
1125
+ mismatches: string[];
1126
+ } | undefined;
1127
+ } | undefined;
1128
+ evolution_context?: {
1129
+ confidence: number;
1130
+ role?: "user" | "merchant" | "arbitrator" | undefined;
1131
+ industry_signal?: string | undefined;
1132
+ evolution_advice?: string | undefined;
1133
+ health_score?: number | undefined;
1134
+ pending_suggestions?: number | undefined;
1135
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
1136
+ role_advice?: string[] | undefined;
1137
+ } | undefined;
1138
+ }>;
464
1139
  export declare const CallResponseErrorSchema: z.ZodObject<{
465
1140
  type: z.ZodLiteral<"error">;
466
1141
  error: z.ZodString;
1142
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
1143
+ retryable: z.ZodOptional<z.ZodBoolean>;
1144
+ recovery_hint: z.ZodOptional<z.ZodString>;
1145
+ related_object: z.ZodOptional<z.ZodString>;
467
1146
  }, "strip", z.ZodTypeAny, {
468
1147
  type: "error";
469
1148
  error: string;
1149
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
1150
+ retryable?: boolean | undefined;
1151
+ recovery_hint?: string | undefined;
1152
+ related_object?: string | undefined;
470
1153
  }, {
471
1154
  type: "error";
472
1155
  error: string;
1156
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
1157
+ retryable?: boolean | undefined;
1158
+ recovery_hint?: string | undefined;
1159
+ related_object?: string | undefined;
1160
+ }>;
1161
+ export declare const OperationPreviewSchema: z.ZodObject<{
1162
+ level: z.ZodEnum<["none", "standard", "amount", "publish", "irreversible"]>;
1163
+ operation: z.ZodString;
1164
+ object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>>;
1165
+ network: z.ZodOptional<z.ZodString>;
1166
+ account: z.ZodOptional<z.ZodString>;
1167
+ amount: z.ZodOptional<z.ZodObject<{
1168
+ value: z.ZodString;
1169
+ token: z.ZodString;
1170
+ human_readable: z.ZodString;
1171
+ recipient: z.ZodOptional<z.ZodString>;
1172
+ }, "strip", z.ZodTypeAny, {
1173
+ value: string;
1174
+ token: string;
1175
+ human_readable: string;
1176
+ recipient?: string | undefined;
1177
+ }, {
1178
+ value: string;
1179
+ token: string;
1180
+ human_readable: string;
1181
+ recipient?: string | undefined;
1182
+ }>>;
1183
+ immutable_after: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1184
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1185
+ irreversible: z.ZodOptional<z.ZodBoolean>;
1186
+ }, "strict", z.ZodTypeAny, {
1187
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1188
+ operation: string;
1189
+ object?: string | Record<string, any> | null | undefined;
1190
+ network?: string | undefined;
1191
+ account?: string | undefined;
1192
+ amount?: {
1193
+ value: string;
1194
+ token: string;
1195
+ human_readable: string;
1196
+ recipient?: string | undefined;
1197
+ } | undefined;
1198
+ warnings?: string[] | undefined;
1199
+ irreversible?: boolean | undefined;
1200
+ immutable_after?: string[] | undefined;
1201
+ }, {
1202
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1203
+ operation: string;
1204
+ object?: string | Record<string, any> | null | undefined;
1205
+ network?: string | undefined;
1206
+ account?: string | undefined;
1207
+ amount?: {
1208
+ value: string;
1209
+ token: string;
1210
+ human_readable: string;
1211
+ recipient?: string | undefined;
1212
+ } | undefined;
1213
+ warnings?: string[] | undefined;
1214
+ irreversible?: boolean | undefined;
1215
+ immutable_after?: string[] | undefined;
1216
+ }>;
1217
+ export declare const CallPendingConfirmationSchema: z.ZodObject<{
1218
+ type: z.ZodLiteral<"pending_confirmation">;
1219
+ preview: z.ZodObject<{
1220
+ level: z.ZodEnum<["none", "standard", "amount", "publish", "irreversible"]>;
1221
+ operation: z.ZodString;
1222
+ object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>>;
1223
+ network: z.ZodOptional<z.ZodString>;
1224
+ account: z.ZodOptional<z.ZodString>;
1225
+ amount: z.ZodOptional<z.ZodObject<{
1226
+ value: z.ZodString;
1227
+ token: z.ZodString;
1228
+ human_readable: z.ZodString;
1229
+ recipient: z.ZodOptional<z.ZodString>;
1230
+ }, "strip", z.ZodTypeAny, {
1231
+ value: string;
1232
+ token: string;
1233
+ human_readable: string;
1234
+ recipient?: string | undefined;
1235
+ }, {
1236
+ value: string;
1237
+ token: string;
1238
+ human_readable: string;
1239
+ recipient?: string | undefined;
1240
+ }>>;
1241
+ immutable_after: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1242
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1243
+ irreversible: z.ZodOptional<z.ZodBoolean>;
1244
+ }, "strict", z.ZodTypeAny, {
1245
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1246
+ operation: string;
1247
+ object?: string | Record<string, any> | null | undefined;
1248
+ network?: string | undefined;
1249
+ account?: string | undefined;
1250
+ amount?: {
1251
+ value: string;
1252
+ token: string;
1253
+ human_readable: string;
1254
+ recipient?: string | undefined;
1255
+ } | undefined;
1256
+ warnings?: string[] | undefined;
1257
+ irreversible?: boolean | undefined;
1258
+ immutable_after?: string[] | undefined;
1259
+ }, {
1260
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1261
+ operation: string;
1262
+ object?: string | Record<string, any> | null | undefined;
1263
+ network?: string | undefined;
1264
+ account?: string | undefined;
1265
+ amount?: {
1266
+ value: string;
1267
+ token: string;
1268
+ human_readable: string;
1269
+ recipient?: string | undefined;
1270
+ } | undefined;
1271
+ warnings?: string[] | undefined;
1272
+ irreversible?: boolean | undefined;
1273
+ immutable_after?: string[] | undefined;
1274
+ }>;
1275
+ rule_id: z.ZodOptional<z.ZodString>;
1276
+ }, "strip", z.ZodTypeAny, {
1277
+ type: "pending_confirmation";
1278
+ preview: {
1279
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1280
+ operation: string;
1281
+ object?: string | Record<string, any> | null | undefined;
1282
+ network?: string | undefined;
1283
+ account?: string | undefined;
1284
+ amount?: {
1285
+ value: string;
1286
+ token: string;
1287
+ human_readable: string;
1288
+ recipient?: string | undefined;
1289
+ } | undefined;
1290
+ warnings?: string[] | undefined;
1291
+ irreversible?: boolean | undefined;
1292
+ immutable_after?: string[] | undefined;
1293
+ };
1294
+ rule_id?: string | undefined;
1295
+ }, {
1296
+ type: "pending_confirmation";
1297
+ preview: {
1298
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
1299
+ operation: string;
1300
+ object?: string | Record<string, any> | null | undefined;
1301
+ network?: string | undefined;
1302
+ account?: string | undefined;
1303
+ amount?: {
1304
+ value: string;
1305
+ token: string;
1306
+ human_readable: string;
1307
+ recipient?: string | undefined;
1308
+ } | undefined;
1309
+ warnings?: string[] | undefined;
1310
+ irreversible?: boolean | undefined;
1311
+ immutable_after?: string[] | undefined;
1312
+ };
1313
+ rule_id?: string | undefined;
473
1314
  }>;
474
1315
  export declare const GuardSubmissionToFillSchema: z.ZodObject<{
475
1316
  guard: z.ZodEffects<z.ZodString, string, string>;
@@ -1967,7 +2808,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1967
2808
  txDigest: string;
1968
2809
  }>;
1969
2810
  packageId: z.ZodString;
1970
- parsedJson: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
2811
+ parsedJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1971
2812
  sender: z.ZodString;
1972
2813
  timestampMs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1973
2814
  transactionModule: z.ZodString;
@@ -1982,7 +2823,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1982
2823
  };
1983
2824
  bcsEncoding: "base64";
1984
2825
  packageId: string;
1985
- parsedJson: Record<string, string | number | boolean | null>;
2826
+ parsedJson: Record<string, unknown>;
1986
2827
  sender: string;
1987
2828
  transactionModule: string;
1988
2829
  bcs: string;
@@ -1995,7 +2836,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
1995
2836
  };
1996
2837
  bcsEncoding: "base64";
1997
2838
  packageId: string;
1998
- parsedJson: Record<string, string | number | boolean | null>;
2839
+ parsedJson: Record<string, unknown>;
1999
2840
  sender: string;
2000
2841
  transactionModule: string;
2001
2842
  bcs: string;
@@ -2012,7 +2853,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2012
2853
  txDigest: string;
2013
2854
  }>;
2014
2855
  packageId: z.ZodString;
2015
- parsedJson: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
2856
+ parsedJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2016
2857
  sender: z.ZodString;
2017
2858
  timestampMs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
2018
2859
  transactionModule: z.ZodString;
@@ -2027,7 +2868,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2027
2868
  };
2028
2869
  bcsEncoding: "base58";
2029
2870
  packageId: string;
2030
- parsedJson: Record<string, string | number | boolean | null>;
2871
+ parsedJson: Record<string, unknown>;
2031
2872
  sender: string;
2032
2873
  transactionModule: string;
2033
2874
  bcs: string;
@@ -2040,7 +2881,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2040
2881
  };
2041
2882
  bcsEncoding: "base58";
2042
2883
  packageId: string;
2043
- parsedJson: Record<string, string | number | boolean | null>;
2884
+ parsedJson: Record<string, unknown>;
2044
2885
  sender: string;
2045
2886
  transactionModule: string;
2046
2887
  bcs: string;
@@ -2720,7 +3561,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2720
3561
  };
2721
3562
  bcsEncoding: "base64";
2722
3563
  packageId: string;
2723
- parsedJson: Record<string, string | number | boolean | null>;
3564
+ parsedJson: Record<string, unknown>;
2724
3565
  sender: string;
2725
3566
  transactionModule: string;
2726
3567
  bcs: string;
@@ -2733,7 +3574,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
2733
3574
  };
2734
3575
  bcsEncoding: "base58";
2735
3576
  packageId: string;
2736
- parsedJson: Record<string, string | number | boolean | null>;
3577
+ parsedJson: Record<string, unknown>;
2737
3578
  sender: string;
2738
3579
  transactionModule: string;
2739
3580
  bcs: string;
@@ -3010,7 +3851,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3010
3851
  };
3011
3852
  bcsEncoding: "base64";
3012
3853
  packageId: string;
3013
- parsedJson: Record<string, string | number | boolean | null>;
3854
+ parsedJson: Record<string, unknown>;
3014
3855
  sender: string;
3015
3856
  transactionModule: string;
3016
3857
  bcs: string;
@@ -3023,7 +3864,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3023
3864
  };
3024
3865
  bcsEncoding: "base58";
3025
3866
  packageId: string;
3026
- parsedJson: Record<string, string | number | boolean | null>;
3867
+ parsedJson: Record<string, unknown>;
3027
3868
  sender: string;
3028
3869
  transactionModule: string;
3029
3870
  bcs: string;
@@ -3117,12 +3958,24 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3117
3958
  }>, z.ZodObject<{
3118
3959
  type: z.ZodLiteral<"error">;
3119
3960
  error: z.ZodString;
3961
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
3962
+ retryable: z.ZodOptional<z.ZodBoolean>;
3963
+ recovery_hint: z.ZodOptional<z.ZodString>;
3964
+ related_object: z.ZodOptional<z.ZodString>;
3120
3965
  }, "strip", z.ZodTypeAny, {
3121
3966
  type: "error";
3122
3967
  error: string;
3968
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
3969
+ retryable?: boolean | undefined;
3970
+ recovery_hint?: string | undefined;
3971
+ related_object?: string | undefined;
3123
3972
  }, {
3124
3973
  type: "error";
3125
3974
  error: string;
3975
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
3976
+ retryable?: boolean | undefined;
3977
+ recovery_hint?: string | undefined;
3978
+ related_object?: string | undefined;
3126
3979
  }>, z.ZodObject<{
3127
3980
  type: z.ZodLiteral<"data">;
3128
3981
  data: z.ZodArray<z.ZodObject<{
@@ -3493,6 +4346,103 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
3493
4346
  type: "null";
3494
4347
  }, {
3495
4348
  type: "null";
4349
+ }>, z.ZodObject<{
4350
+ type: z.ZodLiteral<"pending_confirmation">;
4351
+ preview: z.ZodObject<{
4352
+ level: z.ZodEnum<["none", "standard", "amount", "publish", "irreversible"]>;
4353
+ operation: z.ZodString;
4354
+ object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>>;
4355
+ network: z.ZodOptional<z.ZodString>;
4356
+ account: z.ZodOptional<z.ZodString>;
4357
+ amount: z.ZodOptional<z.ZodObject<{
4358
+ value: z.ZodString;
4359
+ token: z.ZodString;
4360
+ human_readable: z.ZodString;
4361
+ recipient: z.ZodOptional<z.ZodString>;
4362
+ }, "strip", z.ZodTypeAny, {
4363
+ value: string;
4364
+ token: string;
4365
+ human_readable: string;
4366
+ recipient?: string | undefined;
4367
+ }, {
4368
+ value: string;
4369
+ token: string;
4370
+ human_readable: string;
4371
+ recipient?: string | undefined;
4372
+ }>>;
4373
+ immutable_after: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4374
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4375
+ irreversible: z.ZodOptional<z.ZodBoolean>;
4376
+ }, "strict", z.ZodTypeAny, {
4377
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
4378
+ operation: string;
4379
+ object?: string | Record<string, any> | null | undefined;
4380
+ network?: string | undefined;
4381
+ account?: string | undefined;
4382
+ amount?: {
4383
+ value: string;
4384
+ token: string;
4385
+ human_readable: string;
4386
+ recipient?: string | undefined;
4387
+ } | undefined;
4388
+ warnings?: string[] | undefined;
4389
+ irreversible?: boolean | undefined;
4390
+ immutable_after?: string[] | undefined;
4391
+ }, {
4392
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
4393
+ operation: string;
4394
+ object?: string | Record<string, any> | null | undefined;
4395
+ network?: string | undefined;
4396
+ account?: string | undefined;
4397
+ amount?: {
4398
+ value: string;
4399
+ token: string;
4400
+ human_readable: string;
4401
+ recipient?: string | undefined;
4402
+ } | undefined;
4403
+ warnings?: string[] | undefined;
4404
+ irreversible?: boolean | undefined;
4405
+ immutable_after?: string[] | undefined;
4406
+ }>;
4407
+ rule_id: z.ZodOptional<z.ZodString>;
4408
+ }, "strip", z.ZodTypeAny, {
4409
+ type: "pending_confirmation";
4410
+ preview: {
4411
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
4412
+ operation: string;
4413
+ object?: string | Record<string, any> | null | undefined;
4414
+ network?: string | undefined;
4415
+ account?: string | undefined;
4416
+ amount?: {
4417
+ value: string;
4418
+ token: string;
4419
+ human_readable: string;
4420
+ recipient?: string | undefined;
4421
+ } | undefined;
4422
+ warnings?: string[] | undefined;
4423
+ irreversible?: boolean | undefined;
4424
+ immutable_after?: string[] | undefined;
4425
+ };
4426
+ rule_id?: string | undefined;
4427
+ }, {
4428
+ type: "pending_confirmation";
4429
+ preview: {
4430
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
4431
+ operation: string;
4432
+ object?: string | Record<string, any> | null | undefined;
4433
+ network?: string | undefined;
4434
+ account?: string | undefined;
4435
+ amount?: {
4436
+ value: string;
4437
+ token: string;
4438
+ human_readable: string;
4439
+ recipient?: string | undefined;
4440
+ } | undefined;
4441
+ warnings?: string[] | undefined;
4442
+ irreversible?: boolean | undefined;
4443
+ immutable_after?: string[] | undefined;
4444
+ };
4445
+ rule_id?: string | undefined;
3496
4446
  }>]>;
3497
4447
  export declare const ObjectsSchema: z.ZodUnion<[z.ZodObject<{
3498
4448
  op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
@@ -3519,6 +4469,213 @@ export declare const ObjectsSchema: z.ZodUnion<[z.ZodObject<{
3519
4469
  }, {
3520
4470
  op: "clear";
3521
4471
  }>]>;
4472
+ export declare const VerifyMismatchSchema: z.ZodObject<{
4473
+ dimension: z.ZodEnum<["created", "modified", "released", "state", "event"]>;
4474
+ expected: z.ZodString;
4475
+ actual: z.ZodString;
4476
+ severity: z.ZodEnum<["pass", "warn", "fail"]>;
4477
+ detail: z.ZodString;
4478
+ }, "strip", z.ZodTypeAny, {
4479
+ expected: string;
4480
+ dimension: "created" | "modified" | "released" | "state" | "event";
4481
+ actual: string;
4482
+ severity: "pass" | "warn" | "fail";
4483
+ detail: string;
4484
+ }, {
4485
+ expected: string;
4486
+ dimension: "created" | "modified" | "released" | "state" | "event";
4487
+ actual: string;
4488
+ severity: "pass" | "warn" | "fail";
4489
+ detail: string;
4490
+ }>;
4491
+ export declare const VerifyReportSchema: z.ZodObject<{
4492
+ status: z.ZodEnum<["pass", "warn", "fail"]>;
4493
+ mismatches: z.ZodArray<z.ZodObject<{
4494
+ dimension: z.ZodEnum<["created", "modified", "released", "state", "event"]>;
4495
+ expected: z.ZodString;
4496
+ actual: z.ZodString;
4497
+ severity: z.ZodEnum<["pass", "warn", "fail"]>;
4498
+ detail: z.ZodString;
4499
+ }, "strip", z.ZodTypeAny, {
4500
+ expected: string;
4501
+ dimension: "created" | "modified" | "released" | "state" | "event";
4502
+ actual: string;
4503
+ severity: "pass" | "warn" | "fail";
4504
+ detail: string;
4505
+ }, {
4506
+ expected: string;
4507
+ dimension: "created" | "modified" | "released" | "state" | "event";
4508
+ actual: string;
4509
+ severity: "pass" | "warn" | "fail";
4510
+ detail: string;
4511
+ }>, "many">;
4512
+ summary: z.ZodString;
4513
+ timestamp: z.ZodString;
4514
+ }, "strip", z.ZodTypeAny, {
4515
+ status: "pass" | "warn" | "fail";
4516
+ mismatches: {
4517
+ expected: string;
4518
+ dimension: "created" | "modified" | "released" | "state" | "event";
4519
+ actual: string;
4520
+ severity: "pass" | "warn" | "fail";
4521
+ detail: string;
4522
+ }[];
4523
+ summary: string;
4524
+ timestamp: string;
4525
+ }, {
4526
+ status: "pass" | "warn" | "fail";
4527
+ mismatches: {
4528
+ expected: string;
4529
+ dimension: "created" | "modified" | "released" | "state" | "event";
4530
+ actual: string;
4531
+ severity: "pass" | "warn" | "fail";
4532
+ detail: string;
4533
+ }[];
4534
+ summary: string;
4535
+ timestamp: string;
4536
+ }>;
4537
+ export declare const RecoveryActionSchema: z.ZodObject<{
4538
+ strategy: z.ZodEnum<["retry", "claim_faucet", "fill_submission", "recreate", "switch_account", "query_and_retry", "adjust_params", "escalate_human", "stop"]>;
4539
+ should_retry: z.ZodBoolean;
4540
+ adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4541
+ user_prompt: z.ZodOptional<z.ZodString>;
4542
+ max_attempts: z.ZodNumber;
4543
+ current_attempt: z.ZodNumber;
4544
+ detail: z.ZodString;
4545
+ }, "strip", z.ZodTypeAny, {
4546
+ detail: string;
4547
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4548
+ should_retry: boolean;
4549
+ max_attempts: number;
4550
+ current_attempt: number;
4551
+ adjusted_params?: Record<string, unknown> | undefined;
4552
+ user_prompt?: string | undefined;
4553
+ }, {
4554
+ detail: string;
4555
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4556
+ should_retry: boolean;
4557
+ max_attempts: number;
4558
+ current_attempt: number;
4559
+ adjusted_params?: Record<string, unknown> | undefined;
4560
+ user_prompt?: string | undefined;
4561
+ }>;
4562
+ export declare const HarnessReportSchema: z.ZodObject<{
4563
+ verify: z.ZodObject<{
4564
+ status: z.ZodEnum<["pass", "warn", "fail"]>;
4565
+ mismatches: z.ZodArray<z.ZodObject<{
4566
+ dimension: z.ZodEnum<["created", "modified", "released", "state", "event"]>;
4567
+ expected: z.ZodString;
4568
+ actual: z.ZodString;
4569
+ severity: z.ZodEnum<["pass", "warn", "fail"]>;
4570
+ detail: z.ZodString;
4571
+ }, "strip", z.ZodTypeAny, {
4572
+ expected: string;
4573
+ dimension: "created" | "modified" | "released" | "state" | "event";
4574
+ actual: string;
4575
+ severity: "pass" | "warn" | "fail";
4576
+ detail: string;
4577
+ }, {
4578
+ expected: string;
4579
+ dimension: "created" | "modified" | "released" | "state" | "event";
4580
+ actual: string;
4581
+ severity: "pass" | "warn" | "fail";
4582
+ detail: string;
4583
+ }>, "many">;
4584
+ summary: z.ZodString;
4585
+ timestamp: z.ZodString;
4586
+ }, "strip", z.ZodTypeAny, {
4587
+ status: "pass" | "warn" | "fail";
4588
+ mismatches: {
4589
+ expected: string;
4590
+ dimension: "created" | "modified" | "released" | "state" | "event";
4591
+ actual: string;
4592
+ severity: "pass" | "warn" | "fail";
4593
+ detail: string;
4594
+ }[];
4595
+ summary: string;
4596
+ timestamp: string;
4597
+ }, {
4598
+ status: "pass" | "warn" | "fail";
4599
+ mismatches: {
4600
+ expected: string;
4601
+ dimension: "created" | "modified" | "released" | "state" | "event";
4602
+ actual: string;
4603
+ severity: "pass" | "warn" | "fail";
4604
+ detail: string;
4605
+ }[];
4606
+ summary: string;
4607
+ timestamp: string;
4608
+ }>;
4609
+ recovery: z.ZodOptional<z.ZodObject<{
4610
+ strategy: z.ZodEnum<["retry", "claim_faucet", "fill_submission", "recreate", "switch_account", "query_and_retry", "adjust_params", "escalate_human", "stop"]>;
4611
+ should_retry: z.ZodBoolean;
4612
+ adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4613
+ user_prompt: z.ZodOptional<z.ZodString>;
4614
+ max_attempts: z.ZodNumber;
4615
+ current_attempt: z.ZodNumber;
4616
+ detail: z.ZodString;
4617
+ }, "strip", z.ZodTypeAny, {
4618
+ detail: string;
4619
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4620
+ should_retry: boolean;
4621
+ max_attempts: number;
4622
+ current_attempt: number;
4623
+ adjusted_params?: Record<string, unknown> | undefined;
4624
+ user_prompt?: string | undefined;
4625
+ }, {
4626
+ detail: string;
4627
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4628
+ should_retry: boolean;
4629
+ max_attempts: number;
4630
+ current_attempt: number;
4631
+ adjusted_params?: Record<string, unknown> | undefined;
4632
+ user_prompt?: string | undefined;
4633
+ }>>;
4634
+ }, "strip", z.ZodTypeAny, {
4635
+ verify: {
4636
+ status: "pass" | "warn" | "fail";
4637
+ mismatches: {
4638
+ expected: string;
4639
+ dimension: "created" | "modified" | "released" | "state" | "event";
4640
+ actual: string;
4641
+ severity: "pass" | "warn" | "fail";
4642
+ detail: string;
4643
+ }[];
4644
+ summary: string;
4645
+ timestamp: string;
4646
+ };
4647
+ recovery?: {
4648
+ detail: string;
4649
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4650
+ should_retry: boolean;
4651
+ max_attempts: number;
4652
+ current_attempt: number;
4653
+ adjusted_params?: Record<string, unknown> | undefined;
4654
+ user_prompt?: string | undefined;
4655
+ } | undefined;
4656
+ }, {
4657
+ verify: {
4658
+ status: "pass" | "warn" | "fail";
4659
+ mismatches: {
4660
+ expected: string;
4661
+ dimension: "created" | "modified" | "released" | "state" | "event";
4662
+ actual: string;
4663
+ severity: "pass" | "warn" | "fail";
4664
+ detail: string;
4665
+ }[];
4666
+ summary: string;
4667
+ timestamp: string;
4668
+ };
4669
+ recovery?: {
4670
+ detail: string;
4671
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
4672
+ should_retry: boolean;
4673
+ max_attempts: number;
4674
+ current_attempt: number;
4675
+ adjusted_params?: Record<string, unknown> | undefined;
4676
+ user_prompt?: string | undefined;
4677
+ } | undefined;
4678
+ }>;
3522
4679
  export declare const CallOutputSchema: z.ZodObject<{
3523
4680
  result: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3524
4681
  type: z.ZodLiteral<"submission">;
@@ -4595,7 +5752,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4595
5752
  txDigest: string;
4596
5753
  }>;
4597
5754
  packageId: z.ZodString;
4598
- parsedJson: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
5755
+ parsedJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4599
5756
  sender: z.ZodString;
4600
5757
  timestampMs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4601
5758
  transactionModule: z.ZodString;
@@ -4610,7 +5767,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4610
5767
  };
4611
5768
  bcsEncoding: "base64";
4612
5769
  packageId: string;
4613
- parsedJson: Record<string, string | number | boolean | null>;
5770
+ parsedJson: Record<string, unknown>;
4614
5771
  sender: string;
4615
5772
  transactionModule: string;
4616
5773
  bcs: string;
@@ -4623,7 +5780,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4623
5780
  };
4624
5781
  bcsEncoding: "base64";
4625
5782
  packageId: string;
4626
- parsedJson: Record<string, string | number | boolean | null>;
5783
+ parsedJson: Record<string, unknown>;
4627
5784
  sender: string;
4628
5785
  transactionModule: string;
4629
5786
  bcs: string;
@@ -4640,7 +5797,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4640
5797
  txDigest: string;
4641
5798
  }>;
4642
5799
  packageId: z.ZodString;
4643
- parsedJson: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
5800
+ parsedJson: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4644
5801
  sender: z.ZodString;
4645
5802
  timestampMs: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
4646
5803
  transactionModule: z.ZodString;
@@ -4655,7 +5812,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4655
5812
  };
4656
5813
  bcsEncoding: "base58";
4657
5814
  packageId: string;
4658
- parsedJson: Record<string, string | number | boolean | null>;
5815
+ parsedJson: Record<string, unknown>;
4659
5816
  sender: string;
4660
5817
  transactionModule: string;
4661
5818
  bcs: string;
@@ -4668,7 +5825,7 @@ export declare const CallOutputSchema: z.ZodObject<{
4668
5825
  };
4669
5826
  bcsEncoding: "base58";
4670
5827
  packageId: string;
4671
- parsedJson: Record<string, string | number | boolean | null>;
5828
+ parsedJson: Record<string, unknown>;
4672
5829
  sender: string;
4673
5830
  transactionModule: string;
4674
5831
  bcs: string;
@@ -5348,7 +6505,7 @@ export declare const CallOutputSchema: z.ZodObject<{
5348
6505
  };
5349
6506
  bcsEncoding: "base64";
5350
6507
  packageId: string;
5351
- parsedJson: Record<string, string | number | boolean | null>;
6508
+ parsedJson: Record<string, unknown>;
5352
6509
  sender: string;
5353
6510
  transactionModule: string;
5354
6511
  bcs: string;
@@ -5361,7 +6518,7 @@ export declare const CallOutputSchema: z.ZodObject<{
5361
6518
  };
5362
6519
  bcsEncoding: "base58";
5363
6520
  packageId: string;
5364
- parsedJson: Record<string, string | number | boolean | null>;
6521
+ parsedJson: Record<string, unknown>;
5365
6522
  sender: string;
5366
6523
  transactionModule: string;
5367
6524
  bcs: string;
@@ -5638,7 +6795,7 @@ export declare const CallOutputSchema: z.ZodObject<{
5638
6795
  };
5639
6796
  bcsEncoding: "base64";
5640
6797
  packageId: string;
5641
- parsedJson: Record<string, string | number | boolean | null>;
6798
+ parsedJson: Record<string, unknown>;
5642
6799
  sender: string;
5643
6800
  transactionModule: string;
5644
6801
  bcs: string;
@@ -5651,7 +6808,7 @@ export declare const CallOutputSchema: z.ZodObject<{
5651
6808
  };
5652
6809
  bcsEncoding: "base58";
5653
6810
  packageId: string;
5654
- parsedJson: Record<string, string | number | boolean | null>;
6811
+ parsedJson: Record<string, unknown>;
5655
6812
  sender: string;
5656
6813
  transactionModule: string;
5657
6814
  bcs: string;
@@ -5745,12 +6902,24 @@ export declare const CallOutputSchema: z.ZodObject<{
5745
6902
  }>, z.ZodObject<{
5746
6903
  type: z.ZodLiteral<"error">;
5747
6904
  error: z.ZodString;
6905
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
6906
+ retryable: z.ZodOptional<z.ZodBoolean>;
6907
+ recovery_hint: z.ZodOptional<z.ZodString>;
6908
+ related_object: z.ZodOptional<z.ZodString>;
5748
6909
  }, "strip", z.ZodTypeAny, {
5749
6910
  type: "error";
5750
6911
  error: string;
6912
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
6913
+ retryable?: boolean | undefined;
6914
+ recovery_hint?: string | undefined;
6915
+ related_object?: string | undefined;
5751
6916
  }, {
5752
6917
  type: "error";
5753
6918
  error: string;
6919
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
6920
+ retryable?: boolean | undefined;
6921
+ recovery_hint?: string | undefined;
6922
+ related_object?: string | undefined;
5754
6923
  }>, z.ZodObject<{
5755
6924
  type: z.ZodLiteral<"data">;
5756
6925
  data: z.ZodArray<z.ZodObject<{
@@ -6121,12 +7290,669 @@ export declare const CallOutputSchema: z.ZodObject<{
6121
7290
  type: "null";
6122
7291
  }, {
6123
7292
  type: "null";
7293
+ }>, z.ZodObject<{
7294
+ type: z.ZodLiteral<"pending_confirmation">;
7295
+ preview: z.ZodObject<{
7296
+ level: z.ZodEnum<["none", "standard", "amount", "publish", "irreversible"]>;
7297
+ operation: z.ZodString;
7298
+ object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodNull]>>;
7299
+ network: z.ZodOptional<z.ZodString>;
7300
+ account: z.ZodOptional<z.ZodString>;
7301
+ amount: z.ZodOptional<z.ZodObject<{
7302
+ value: z.ZodString;
7303
+ token: z.ZodString;
7304
+ human_readable: z.ZodString;
7305
+ recipient: z.ZodOptional<z.ZodString>;
7306
+ }, "strip", z.ZodTypeAny, {
7307
+ value: string;
7308
+ token: string;
7309
+ human_readable: string;
7310
+ recipient?: string | undefined;
7311
+ }, {
7312
+ value: string;
7313
+ token: string;
7314
+ human_readable: string;
7315
+ recipient?: string | undefined;
7316
+ }>>;
7317
+ immutable_after: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7318
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7319
+ irreversible: z.ZodOptional<z.ZodBoolean>;
7320
+ }, "strict", z.ZodTypeAny, {
7321
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
7322
+ operation: string;
7323
+ object?: string | Record<string, any> | null | undefined;
7324
+ network?: string | undefined;
7325
+ account?: string | undefined;
7326
+ amount?: {
7327
+ value: string;
7328
+ token: string;
7329
+ human_readable: string;
7330
+ recipient?: string | undefined;
7331
+ } | undefined;
7332
+ warnings?: string[] | undefined;
7333
+ irreversible?: boolean | undefined;
7334
+ immutable_after?: string[] | undefined;
7335
+ }, {
7336
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
7337
+ operation: string;
7338
+ object?: string | Record<string, any> | null | undefined;
7339
+ network?: string | undefined;
7340
+ account?: string | undefined;
7341
+ amount?: {
7342
+ value: string;
7343
+ token: string;
7344
+ human_readable: string;
7345
+ recipient?: string | undefined;
7346
+ } | undefined;
7347
+ warnings?: string[] | undefined;
7348
+ irreversible?: boolean | undefined;
7349
+ immutable_after?: string[] | undefined;
7350
+ }>;
7351
+ rule_id: z.ZodOptional<z.ZodString>;
7352
+ }, "strip", z.ZodTypeAny, {
7353
+ type: "pending_confirmation";
7354
+ preview: {
7355
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
7356
+ operation: string;
7357
+ object?: string | Record<string, any> | null | undefined;
7358
+ network?: string | undefined;
7359
+ account?: string | undefined;
7360
+ amount?: {
7361
+ value: string;
7362
+ token: string;
7363
+ human_readable: string;
7364
+ recipient?: string | undefined;
7365
+ } | undefined;
7366
+ warnings?: string[] | undefined;
7367
+ irreversible?: boolean | undefined;
7368
+ immutable_after?: string[] | undefined;
7369
+ };
7370
+ rule_id?: string | undefined;
7371
+ }, {
7372
+ type: "pending_confirmation";
7373
+ preview: {
7374
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
7375
+ operation: string;
7376
+ object?: string | Record<string, any> | null | undefined;
7377
+ network?: string | undefined;
7378
+ account?: string | undefined;
7379
+ amount?: {
7380
+ value: string;
7381
+ token: string;
7382
+ human_readable: string;
7383
+ recipient?: string | undefined;
7384
+ } | undefined;
7385
+ warnings?: string[] | undefined;
7386
+ irreversible?: boolean | undefined;
7387
+ immutable_after?: string[] | undefined;
7388
+ };
7389
+ rule_id?: string | undefined;
6124
7390
  }>]>;
6125
7391
  message: z.ZodOptional<z.ZodString>;
7392
+ semantic: z.ZodOptional<z.ZodObject<{
7393
+ intent: z.ZodString;
7394
+ status: z.ZodEnum<["success", "partial", "failed", "pending_input"]>;
7395
+ summary: z.ZodString;
7396
+ created: z.ZodOptional<z.ZodArray<z.ZodObject<{
7397
+ id: z.ZodString;
7398
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7399
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
7400
+ relation: z.ZodOptional<z.ZodObject<{
7401
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7402
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
7403
+ }, "strip", z.ZodTypeAny, {
7404
+ parent?: string | null | undefined;
7405
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7406
+ }, {
7407
+ parent?: string | null | undefined;
7408
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7409
+ }>>;
7410
+ immutable: z.ZodOptional<z.ZodBoolean>;
7411
+ }, "strict", z.ZodTypeAny, {
7412
+ id: string;
7413
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7414
+ name?: string | null | undefined;
7415
+ relation?: {
7416
+ parent?: string | null | undefined;
7417
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7418
+ } | undefined;
7419
+ immutable?: boolean | undefined;
7420
+ }, {
7421
+ id: string;
7422
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7423
+ name?: string | null | undefined;
7424
+ relation?: {
7425
+ parent?: string | null | undefined;
7426
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7427
+ } | undefined;
7428
+ immutable?: boolean | undefined;
7429
+ }>, "many">>;
7430
+ modified: z.ZodOptional<z.ZodArray<z.ZodObject<{
7431
+ id: z.ZodString;
7432
+ name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7433
+ role: z.ZodEnum<["Permission", "Guard", "Machine", "Progress", "Service", "Order", "Allocation", "Arbitration", "ArbCase", "Messenger", "Contact", "Demand", "Reward", "Personal", "Repository", "Treasury", "Discount", "Other"]>;
7434
+ relation: z.ZodOptional<z.ZodObject<{
7435
+ parent: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
7436
+ relation_type: z.ZodOptional<z.ZodEnum<["machine_of", "guard_of", "allocator_of", "permission_of", "progress_of", "allocation_of", "arb_of", "other"]>>;
7437
+ }, "strip", z.ZodTypeAny, {
7438
+ parent?: string | null | undefined;
7439
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7440
+ }, {
7441
+ parent?: string | null | undefined;
7442
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7443
+ }>>;
7444
+ immutable: z.ZodOptional<z.ZodBoolean>;
7445
+ }, "strict", z.ZodTypeAny, {
7446
+ id: string;
7447
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7448
+ name?: string | null | undefined;
7449
+ relation?: {
7450
+ parent?: string | null | undefined;
7451
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7452
+ } | undefined;
7453
+ immutable?: boolean | undefined;
7454
+ }, {
7455
+ id: string;
7456
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7457
+ name?: string | null | undefined;
7458
+ relation?: {
7459
+ parent?: string | null | undefined;
7460
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7461
+ } | undefined;
7462
+ immutable?: boolean | undefined;
7463
+ }>, "many">>;
7464
+ released: z.ZodOptional<z.ZodArray<z.ZodObject<{
7465
+ amount: z.ZodString;
7466
+ coinType: z.ZodString;
7467
+ role: z.ZodEnum<["payment", "refund", "change", "compensation", "reward", "gas", "deposit", "release", "other"]>;
7468
+ from: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7469
+ to: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7470
+ }, "strict", z.ZodTypeAny, {
7471
+ coinType: string;
7472
+ amount: string;
7473
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
7474
+ from?: string | null | undefined;
7475
+ to?: string | null | undefined;
7476
+ }, {
7477
+ coinType: string;
7478
+ amount: string;
7479
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
7480
+ from?: string | null | undefined;
7481
+ to?: string | null | undefined;
7482
+ }>, "many">>;
7483
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
7484
+ event_type: z.ZodString;
7485
+ business_meaning: z.ZodString;
7486
+ category: z.ZodEnum<["lifecycle", "state_change", "fund_flow", "permission", "guard", "other"]>;
7487
+ related_object: z.ZodOptional<z.ZodString>;
7488
+ side_effect: z.ZodOptional<z.ZodString>;
7489
+ }, "strict", z.ZodTypeAny, {
7490
+ event_type: string;
7491
+ business_meaning: string;
7492
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
7493
+ related_object?: string | undefined;
7494
+ side_effect?: string | undefined;
7495
+ }, {
7496
+ event_type: string;
7497
+ business_meaning: string;
7498
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
7499
+ related_object?: string | undefined;
7500
+ side_effect?: string | undefined;
7501
+ }>, "many">>;
7502
+ next_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7503
+ action: z.ZodString;
7504
+ reason: z.ZodString;
7505
+ tool: z.ZodOptional<z.ZodString>;
7506
+ prerequisite: z.ZodOptional<z.ZodString>;
7507
+ priority: z.ZodEnum<["required", "recommended", "optional"]>;
7508
+ }, "strict", z.ZodTypeAny, {
7509
+ action: string;
7510
+ reason: string;
7511
+ priority: "required" | "recommended" | "optional";
7512
+ tool?: string | undefined;
7513
+ prerequisite?: string | undefined;
7514
+ }, {
7515
+ action: string;
7516
+ reason: string;
7517
+ priority: "required" | "recommended" | "optional";
7518
+ tool?: string | undefined;
7519
+ prerequisite?: string | undefined;
7520
+ }>, "many">>;
7521
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7522
+ experience: z.ZodOptional<z.ZodObject<{
7523
+ advice: z.ZodOptional<z.ZodString>;
7524
+ avoid: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7525
+ relevance: z.ZodOptional<z.ZodNumber>;
7526
+ matched_scenario: z.ZodOptional<z.ZodString>;
7527
+ }, "strict", z.ZodTypeAny, {
7528
+ advice?: string | undefined;
7529
+ avoid?: string[] | undefined;
7530
+ relevance?: number | undefined;
7531
+ matched_scenario?: string | undefined;
7532
+ }, {
7533
+ advice?: string | undefined;
7534
+ avoid?: string[] | undefined;
7535
+ relevance?: number | undefined;
7536
+ matched_scenario?: string | undefined;
7537
+ }>>;
7538
+ service_status: z.ZodOptional<z.ZodObject<{
7539
+ active: z.ZodArray<z.ZodString, "many">;
7540
+ inactive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7541
+ }, "strict", z.ZodTypeAny, {
7542
+ active: string[];
7543
+ inactive?: string[] | undefined;
7544
+ }, {
7545
+ active: string[];
7546
+ inactive?: string[] | undefined;
7547
+ }>>;
7548
+ customer_advice: z.ZodOptional<z.ZodObject<{
7549
+ risk_score: z.ZodOptional<z.ZodNumber>;
7550
+ risk_level: z.ZodOptional<z.ZodEnum<["low", "medium_low", "medium_high", "high"]>>;
7551
+ recommendations: z.ZodArray<z.ZodString, "many">;
7552
+ reminders: z.ZodArray<z.ZodObject<{
7553
+ id: z.ZodString;
7554
+ stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
7555
+ priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
7556
+ message: z.ZodString;
7557
+ action: z.ZodOptional<z.ZodString>;
7558
+ }, "strict", z.ZodTypeAny, {
7559
+ message: string;
7560
+ id: string;
7561
+ priority: "required" | "recommended" | "info" | "reminder";
7562
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7563
+ action?: string | undefined;
7564
+ }, {
7565
+ message: string;
7566
+ id: string;
7567
+ priority: "required" | "recommended" | "info" | "reminder";
7568
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7569
+ action?: string | undefined;
7570
+ }>, "many">;
7571
+ preference_match: z.ZodOptional<z.ZodObject<{
7572
+ score: z.ZodNumber;
7573
+ matches: z.ZodArray<z.ZodString, "many">;
7574
+ mismatches: z.ZodArray<z.ZodString, "many">;
7575
+ }, "strict", z.ZodTypeAny, {
7576
+ score: number;
7577
+ matches: string[];
7578
+ mismatches: string[];
7579
+ }, {
7580
+ score: number;
7581
+ matches: string[];
7582
+ mismatches: string[];
7583
+ }>>;
7584
+ }, "strict", z.ZodTypeAny, {
7585
+ recommendations: string[];
7586
+ reminders: {
7587
+ message: string;
7588
+ id: string;
7589
+ priority: "required" | "recommended" | "info" | "reminder";
7590
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7591
+ action?: string | undefined;
7592
+ }[];
7593
+ risk_score?: number | undefined;
7594
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
7595
+ preference_match?: {
7596
+ score: number;
7597
+ matches: string[];
7598
+ mismatches: string[];
7599
+ } | undefined;
7600
+ }, {
7601
+ recommendations: string[];
7602
+ reminders: {
7603
+ message: string;
7604
+ id: string;
7605
+ priority: "required" | "recommended" | "info" | "reminder";
7606
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7607
+ action?: string | undefined;
7608
+ }[];
7609
+ risk_score?: number | undefined;
7610
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
7611
+ preference_match?: {
7612
+ score: number;
7613
+ matches: string[];
7614
+ mismatches: string[];
7615
+ } | undefined;
7616
+ }>>;
7617
+ evolution_context: z.ZodOptional<z.ZodObject<{
7618
+ industry_signal: z.ZodOptional<z.ZodString>;
7619
+ evolution_advice: z.ZodOptional<z.ZodString>;
7620
+ confidence: z.ZodNumber;
7621
+ health_score: z.ZodOptional<z.ZodNumber>;
7622
+ pending_suggestions: z.ZodOptional<z.ZodNumber>;
7623
+ intent: z.ZodOptional<z.ZodEnum<["default", "growth", "retention", "compliance", "efficiency", "trust_building", "custom"]>>;
7624
+ role_advice: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7625
+ role: z.ZodOptional<z.ZodEnum<["user", "merchant", "arbitrator"]>>;
7626
+ }, "strict", z.ZodTypeAny, {
7627
+ confidence: number;
7628
+ role?: "user" | "merchant" | "arbitrator" | undefined;
7629
+ industry_signal?: string | undefined;
7630
+ evolution_advice?: string | undefined;
7631
+ health_score?: number | undefined;
7632
+ pending_suggestions?: number | undefined;
7633
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
7634
+ role_advice?: string[] | undefined;
7635
+ }, {
7636
+ confidence: number;
7637
+ role?: "user" | "merchant" | "arbitrator" | undefined;
7638
+ industry_signal?: string | undefined;
7639
+ evolution_advice?: string | undefined;
7640
+ health_score?: number | undefined;
7641
+ pending_suggestions?: number | undefined;
7642
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
7643
+ role_advice?: string[] | undefined;
7644
+ }>>;
7645
+ }, "strict", z.ZodTypeAny, {
7646
+ status: "success" | "partial" | "failed" | "pending_input";
7647
+ intent: string;
7648
+ summary: string;
7649
+ created?: {
7650
+ id: string;
7651
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7652
+ name?: string | null | undefined;
7653
+ relation?: {
7654
+ parent?: string | null | undefined;
7655
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7656
+ } | undefined;
7657
+ immutable?: boolean | undefined;
7658
+ }[] | undefined;
7659
+ events?: {
7660
+ event_type: string;
7661
+ business_meaning: string;
7662
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
7663
+ related_object?: string | undefined;
7664
+ side_effect?: string | undefined;
7665
+ }[] | undefined;
7666
+ modified?: {
7667
+ id: string;
7668
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7669
+ name?: string | null | undefined;
7670
+ relation?: {
7671
+ parent?: string | null | undefined;
7672
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7673
+ } | undefined;
7674
+ immutable?: boolean | undefined;
7675
+ }[] | undefined;
7676
+ released?: {
7677
+ coinType: string;
7678
+ amount: string;
7679
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
7680
+ from?: string | null | undefined;
7681
+ to?: string | null | undefined;
7682
+ }[] | undefined;
7683
+ next_actions?: {
7684
+ action: string;
7685
+ reason: string;
7686
+ priority: "required" | "recommended" | "optional";
7687
+ tool?: string | undefined;
7688
+ prerequisite?: string | undefined;
7689
+ }[] | undefined;
7690
+ warnings?: string[] | undefined;
7691
+ experience?: {
7692
+ advice?: string | undefined;
7693
+ avoid?: string[] | undefined;
7694
+ relevance?: number | undefined;
7695
+ matched_scenario?: string | undefined;
7696
+ } | undefined;
7697
+ service_status?: {
7698
+ active: string[];
7699
+ inactive?: string[] | undefined;
7700
+ } | undefined;
7701
+ customer_advice?: {
7702
+ recommendations: string[];
7703
+ reminders: {
7704
+ message: string;
7705
+ id: string;
7706
+ priority: "required" | "recommended" | "info" | "reminder";
7707
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7708
+ action?: string | undefined;
7709
+ }[];
7710
+ risk_score?: number | undefined;
7711
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
7712
+ preference_match?: {
7713
+ score: number;
7714
+ matches: string[];
7715
+ mismatches: string[];
7716
+ } | undefined;
7717
+ } | undefined;
7718
+ evolution_context?: {
7719
+ confidence: number;
7720
+ role?: "user" | "merchant" | "arbitrator" | undefined;
7721
+ industry_signal?: string | undefined;
7722
+ evolution_advice?: string | undefined;
7723
+ health_score?: number | undefined;
7724
+ pending_suggestions?: number | undefined;
7725
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
7726
+ role_advice?: string[] | undefined;
7727
+ } | undefined;
7728
+ }, {
7729
+ status: "success" | "partial" | "failed" | "pending_input";
7730
+ intent: string;
7731
+ summary: string;
7732
+ created?: {
7733
+ id: string;
7734
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7735
+ name?: string | null | undefined;
7736
+ relation?: {
7737
+ parent?: string | null | undefined;
7738
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7739
+ } | undefined;
7740
+ immutable?: boolean | undefined;
7741
+ }[] | undefined;
7742
+ events?: {
7743
+ event_type: string;
7744
+ business_meaning: string;
7745
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
7746
+ related_object?: string | undefined;
7747
+ side_effect?: string | undefined;
7748
+ }[] | undefined;
7749
+ modified?: {
7750
+ id: string;
7751
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
7752
+ name?: string | null | undefined;
7753
+ relation?: {
7754
+ parent?: string | null | undefined;
7755
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
7756
+ } | undefined;
7757
+ immutable?: boolean | undefined;
7758
+ }[] | undefined;
7759
+ released?: {
7760
+ coinType: string;
7761
+ amount: string;
7762
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
7763
+ from?: string | null | undefined;
7764
+ to?: string | null | undefined;
7765
+ }[] | undefined;
7766
+ next_actions?: {
7767
+ action: string;
7768
+ reason: string;
7769
+ priority: "required" | "recommended" | "optional";
7770
+ tool?: string | undefined;
7771
+ prerequisite?: string | undefined;
7772
+ }[] | undefined;
7773
+ warnings?: string[] | undefined;
7774
+ experience?: {
7775
+ advice?: string | undefined;
7776
+ avoid?: string[] | undefined;
7777
+ relevance?: number | undefined;
7778
+ matched_scenario?: string | undefined;
7779
+ } | undefined;
7780
+ service_status?: {
7781
+ active: string[];
7782
+ inactive?: string[] | undefined;
7783
+ } | undefined;
7784
+ customer_advice?: {
7785
+ recommendations: string[];
7786
+ reminders: {
7787
+ message: string;
7788
+ id: string;
7789
+ priority: "required" | "recommended" | "info" | "reminder";
7790
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
7791
+ action?: string | undefined;
7792
+ }[];
7793
+ risk_score?: number | undefined;
7794
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
7795
+ preference_match?: {
7796
+ score: number;
7797
+ matches: string[];
7798
+ mismatches: string[];
7799
+ } | undefined;
7800
+ } | undefined;
7801
+ evolution_context?: {
7802
+ confidence: number;
7803
+ role?: "user" | "merchant" | "arbitrator" | undefined;
7804
+ industry_signal?: string | undefined;
7805
+ evolution_advice?: string | undefined;
7806
+ health_score?: number | undefined;
7807
+ pending_suggestions?: number | undefined;
7808
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
7809
+ role_advice?: string[] | undefined;
7810
+ } | undefined;
7811
+ }>>;
7812
+ harness_report: z.ZodOptional<z.ZodObject<{
7813
+ verify: z.ZodObject<{
7814
+ status: z.ZodEnum<["pass", "warn", "fail"]>;
7815
+ mismatches: z.ZodArray<z.ZodObject<{
7816
+ dimension: z.ZodEnum<["created", "modified", "released", "state", "event"]>;
7817
+ expected: z.ZodString;
7818
+ actual: z.ZodString;
7819
+ severity: z.ZodEnum<["pass", "warn", "fail"]>;
7820
+ detail: z.ZodString;
7821
+ }, "strip", z.ZodTypeAny, {
7822
+ expected: string;
7823
+ dimension: "created" | "modified" | "released" | "state" | "event";
7824
+ actual: string;
7825
+ severity: "pass" | "warn" | "fail";
7826
+ detail: string;
7827
+ }, {
7828
+ expected: string;
7829
+ dimension: "created" | "modified" | "released" | "state" | "event";
7830
+ actual: string;
7831
+ severity: "pass" | "warn" | "fail";
7832
+ detail: string;
7833
+ }>, "many">;
7834
+ summary: z.ZodString;
7835
+ timestamp: z.ZodString;
7836
+ }, "strip", z.ZodTypeAny, {
7837
+ status: "pass" | "warn" | "fail";
7838
+ mismatches: {
7839
+ expected: string;
7840
+ dimension: "created" | "modified" | "released" | "state" | "event";
7841
+ actual: string;
7842
+ severity: "pass" | "warn" | "fail";
7843
+ detail: string;
7844
+ }[];
7845
+ summary: string;
7846
+ timestamp: string;
7847
+ }, {
7848
+ status: "pass" | "warn" | "fail";
7849
+ mismatches: {
7850
+ expected: string;
7851
+ dimension: "created" | "modified" | "released" | "state" | "event";
7852
+ actual: string;
7853
+ severity: "pass" | "warn" | "fail";
7854
+ detail: string;
7855
+ }[];
7856
+ summary: string;
7857
+ timestamp: string;
7858
+ }>;
7859
+ recovery: z.ZodOptional<z.ZodObject<{
7860
+ strategy: z.ZodEnum<["retry", "claim_faucet", "fill_submission", "recreate", "switch_account", "query_and_retry", "adjust_params", "escalate_human", "stop"]>;
7861
+ should_retry: z.ZodBoolean;
7862
+ adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7863
+ user_prompt: z.ZodOptional<z.ZodString>;
7864
+ max_attempts: z.ZodNumber;
7865
+ current_attempt: z.ZodNumber;
7866
+ detail: z.ZodString;
7867
+ }, "strip", z.ZodTypeAny, {
7868
+ detail: string;
7869
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
7870
+ should_retry: boolean;
7871
+ max_attempts: number;
7872
+ current_attempt: number;
7873
+ adjusted_params?: Record<string, unknown> | undefined;
7874
+ user_prompt?: string | undefined;
7875
+ }, {
7876
+ detail: string;
7877
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
7878
+ should_retry: boolean;
7879
+ max_attempts: number;
7880
+ current_attempt: number;
7881
+ adjusted_params?: Record<string, unknown> | undefined;
7882
+ user_prompt?: string | undefined;
7883
+ }>>;
7884
+ }, "strip", z.ZodTypeAny, {
7885
+ verify: {
7886
+ status: "pass" | "warn" | "fail";
7887
+ mismatches: {
7888
+ expected: string;
7889
+ dimension: "created" | "modified" | "released" | "state" | "event";
7890
+ actual: string;
7891
+ severity: "pass" | "warn" | "fail";
7892
+ detail: string;
7893
+ }[];
7894
+ summary: string;
7895
+ timestamp: string;
7896
+ };
7897
+ recovery?: {
7898
+ detail: string;
7899
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
7900
+ should_retry: boolean;
7901
+ max_attempts: number;
7902
+ current_attempt: number;
7903
+ adjusted_params?: Record<string, unknown> | undefined;
7904
+ user_prompt?: string | undefined;
7905
+ } | undefined;
7906
+ }, {
7907
+ verify: {
7908
+ status: "pass" | "warn" | "fail";
7909
+ mismatches: {
7910
+ expected: string;
7911
+ dimension: "created" | "modified" | "released" | "state" | "event";
7912
+ actual: string;
7913
+ severity: "pass" | "warn" | "fail";
7914
+ detail: string;
7915
+ }[];
7916
+ summary: string;
7917
+ timestamp: string;
7918
+ };
7919
+ recovery?: {
7920
+ detail: string;
7921
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
7922
+ should_retry: boolean;
7923
+ max_attempts: number;
7924
+ current_attempt: number;
7925
+ adjusted_params?: Record<string, unknown> | undefined;
7926
+ user_prompt?: string | undefined;
7927
+ } | undefined;
7928
+ }>>;
6126
7929
  }, "strict", z.ZodTypeAny, {
6127
7930
  result: {
6128
7931
  type: "error";
6129
7932
  error: string;
7933
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
7934
+ retryable?: boolean | undefined;
7935
+ recovery_hint?: string | undefined;
7936
+ related_object?: string | undefined;
7937
+ } | {
7938
+ type: "pending_confirmation";
7939
+ preview: {
7940
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
7941
+ operation: string;
7942
+ object?: string | Record<string, any> | null | undefined;
7943
+ network?: string | undefined;
7944
+ account?: string | undefined;
7945
+ amount?: {
7946
+ value: string;
7947
+ token: string;
7948
+ human_readable: string;
7949
+ recipient?: string | undefined;
7950
+ } | undefined;
7951
+ warnings?: string[] | undefined;
7952
+ irreversible?: boolean | undefined;
7953
+ immutable_after?: string[] | undefined;
7954
+ };
7955
+ rule_id?: string | undefined;
6130
7956
  } | {
6131
7957
  type: "submission";
6132
7958
  guard: {
@@ -6339,7 +8165,7 @@ export declare const CallOutputSchema: z.ZodObject<{
6339
8165
  };
6340
8166
  bcsEncoding: "base64";
6341
8167
  packageId: string;
6342
- parsedJson: Record<string, string | number | boolean | null>;
8168
+ parsedJson: Record<string, unknown>;
6343
8169
  sender: string;
6344
8170
  transactionModule: string;
6345
8171
  bcs: string;
@@ -6352,7 +8178,7 @@ export declare const CallOutputSchema: z.ZodObject<{
6352
8178
  };
6353
8179
  bcsEncoding: "base58";
6354
8180
  packageId: string;
6355
- parsedJson: Record<string, string | number | boolean | null>;
8181
+ parsedJson: Record<string, unknown>;
6356
8182
  sender: string;
6357
8183
  transactionModule: string;
6358
8184
  bcs: string;
@@ -6521,10 +8347,140 @@ export declare const CallOutputSchema: z.ZodObject<{
6521
8347
  type: "null";
6522
8348
  };
6523
8349
  message?: string | undefined;
8350
+ semantic?: {
8351
+ status: "success" | "partial" | "failed" | "pending_input";
8352
+ intent: string;
8353
+ summary: string;
8354
+ created?: {
8355
+ id: string;
8356
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
8357
+ name?: string | null | undefined;
8358
+ relation?: {
8359
+ parent?: string | null | undefined;
8360
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
8361
+ } | undefined;
8362
+ immutable?: boolean | undefined;
8363
+ }[] | undefined;
8364
+ events?: {
8365
+ event_type: string;
8366
+ business_meaning: string;
8367
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
8368
+ related_object?: string | undefined;
8369
+ side_effect?: string | undefined;
8370
+ }[] | undefined;
8371
+ modified?: {
8372
+ id: string;
8373
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
8374
+ name?: string | null | undefined;
8375
+ relation?: {
8376
+ parent?: string | null | undefined;
8377
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
8378
+ } | undefined;
8379
+ immutable?: boolean | undefined;
8380
+ }[] | undefined;
8381
+ released?: {
8382
+ coinType: string;
8383
+ amount: string;
8384
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
8385
+ from?: string | null | undefined;
8386
+ to?: string | null | undefined;
8387
+ }[] | undefined;
8388
+ next_actions?: {
8389
+ action: string;
8390
+ reason: string;
8391
+ priority: "required" | "recommended" | "optional";
8392
+ tool?: string | undefined;
8393
+ prerequisite?: string | undefined;
8394
+ }[] | undefined;
8395
+ warnings?: string[] | undefined;
8396
+ experience?: {
8397
+ advice?: string | undefined;
8398
+ avoid?: string[] | undefined;
8399
+ relevance?: number | undefined;
8400
+ matched_scenario?: string | undefined;
8401
+ } | undefined;
8402
+ service_status?: {
8403
+ active: string[];
8404
+ inactive?: string[] | undefined;
8405
+ } | undefined;
8406
+ customer_advice?: {
8407
+ recommendations: string[];
8408
+ reminders: {
8409
+ message: string;
8410
+ id: string;
8411
+ priority: "required" | "recommended" | "info" | "reminder";
8412
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
8413
+ action?: string | undefined;
8414
+ }[];
8415
+ risk_score?: number | undefined;
8416
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
8417
+ preference_match?: {
8418
+ score: number;
8419
+ matches: string[];
8420
+ mismatches: string[];
8421
+ } | undefined;
8422
+ } | undefined;
8423
+ evolution_context?: {
8424
+ confidence: number;
8425
+ role?: "user" | "merchant" | "arbitrator" | undefined;
8426
+ industry_signal?: string | undefined;
8427
+ evolution_advice?: string | undefined;
8428
+ health_score?: number | undefined;
8429
+ pending_suggestions?: number | undefined;
8430
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
8431
+ role_advice?: string[] | undefined;
8432
+ } | undefined;
8433
+ } | undefined;
8434
+ harness_report?: {
8435
+ verify: {
8436
+ status: "pass" | "warn" | "fail";
8437
+ mismatches: {
8438
+ expected: string;
8439
+ dimension: "created" | "modified" | "released" | "state" | "event";
8440
+ actual: string;
8441
+ severity: "pass" | "warn" | "fail";
8442
+ detail: string;
8443
+ }[];
8444
+ summary: string;
8445
+ timestamp: string;
8446
+ };
8447
+ recovery?: {
8448
+ detail: string;
8449
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
8450
+ should_retry: boolean;
8451
+ max_attempts: number;
8452
+ current_attempt: number;
8453
+ adjusted_params?: Record<string, unknown> | undefined;
8454
+ user_prompt?: string | undefined;
8455
+ } | undefined;
8456
+ } | undefined;
6524
8457
  }, {
6525
8458
  result: {
6526
8459
  type: "error";
6527
8460
  error: string;
8461
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
8462
+ retryable?: boolean | undefined;
8463
+ recovery_hint?: string | undefined;
8464
+ related_object?: string | undefined;
8465
+ } | {
8466
+ type: "pending_confirmation";
8467
+ preview: {
8468
+ level: "amount" | "none" | "standard" | "publish" | "irreversible";
8469
+ operation: string;
8470
+ object?: string | Record<string, any> | null | undefined;
8471
+ network?: string | undefined;
8472
+ account?: string | undefined;
8473
+ amount?: {
8474
+ value: string;
8475
+ token: string;
8476
+ human_readable: string;
8477
+ recipient?: string | undefined;
8478
+ } | undefined;
8479
+ warnings?: string[] | undefined;
8480
+ irreversible?: boolean | undefined;
8481
+ immutable_after?: string[] | undefined;
8482
+ };
8483
+ rule_id?: string | undefined;
6528
8484
  } | {
6529
8485
  type: "submission";
6530
8486
  guard: {
@@ -6737,7 +8693,7 @@ export declare const CallOutputSchema: z.ZodObject<{
6737
8693
  };
6738
8694
  bcsEncoding: "base64";
6739
8695
  packageId: string;
6740
- parsedJson: Record<string, string | number | boolean | null>;
8696
+ parsedJson: Record<string, unknown>;
6741
8697
  sender: string;
6742
8698
  transactionModule: string;
6743
8699
  bcs: string;
@@ -6750,7 +8706,7 @@ export declare const CallOutputSchema: z.ZodObject<{
6750
8706
  };
6751
8707
  bcsEncoding: "base58";
6752
8708
  packageId: string;
6753
- parsedJson: Record<string, string | number | boolean | null>;
8709
+ parsedJson: Record<string, unknown>;
6754
8710
  sender: string;
6755
8711
  transactionModule: string;
6756
8712
  bcs: string;
@@ -6919,6 +8875,113 @@ export declare const CallOutputSchema: z.ZodObject<{
6919
8875
  type: "null";
6920
8876
  };
6921
8877
  message?: string | undefined;
8878
+ semantic?: {
8879
+ status: "success" | "partial" | "failed" | "pending_input";
8880
+ intent: string;
8881
+ summary: string;
8882
+ created?: {
8883
+ id: string;
8884
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
8885
+ name?: string | null | undefined;
8886
+ relation?: {
8887
+ parent?: string | null | undefined;
8888
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
8889
+ } | undefined;
8890
+ immutable?: boolean | undefined;
8891
+ }[] | undefined;
8892
+ events?: {
8893
+ event_type: string;
8894
+ business_meaning: string;
8895
+ category: "permission" | "other" | "lifecycle" | "state_change" | "fund_flow" | "guard";
8896
+ related_object?: string | undefined;
8897
+ side_effect?: string | undefined;
8898
+ }[] | undefined;
8899
+ modified?: {
8900
+ id: string;
8901
+ role: "Permission" | "Guard" | "Machine" | "Progress" | "Service" | "Order" | "Allocation" | "Arbitration" | "ArbCase" | "Messenger" | "Contact" | "Demand" | "Reward" | "Personal" | "Repository" | "Treasury" | "Discount" | "Other";
8902
+ name?: string | null | undefined;
8903
+ relation?: {
8904
+ parent?: string | null | undefined;
8905
+ relation_type?: "machine_of" | "guard_of" | "allocator_of" | "permission_of" | "progress_of" | "allocation_of" | "arb_of" | "other" | undefined;
8906
+ } | undefined;
8907
+ immutable?: boolean | undefined;
8908
+ }[] | undefined;
8909
+ released?: {
8910
+ coinType: string;
8911
+ amount: string;
8912
+ role: "payment" | "change" | "other" | "refund" | "compensation" | "reward" | "gas" | "deposit" | "release";
8913
+ from?: string | null | undefined;
8914
+ to?: string | null | undefined;
8915
+ }[] | undefined;
8916
+ next_actions?: {
8917
+ action: string;
8918
+ reason: string;
8919
+ priority: "required" | "recommended" | "optional";
8920
+ tool?: string | undefined;
8921
+ prerequisite?: string | undefined;
8922
+ }[] | undefined;
8923
+ warnings?: string[] | undefined;
8924
+ experience?: {
8925
+ advice?: string | undefined;
8926
+ avoid?: string[] | undefined;
8927
+ relevance?: number | undefined;
8928
+ matched_scenario?: string | undefined;
8929
+ } | undefined;
8930
+ service_status?: {
8931
+ active: string[];
8932
+ inactive?: string[] | undefined;
8933
+ } | undefined;
8934
+ customer_advice?: {
8935
+ recommendations: string[];
8936
+ reminders: {
8937
+ message: string;
8938
+ id: string;
8939
+ priority: "required" | "recommended" | "info" | "reminder";
8940
+ stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
8941
+ action?: string | undefined;
8942
+ }[];
8943
+ risk_score?: number | undefined;
8944
+ risk_level?: "low" | "medium_low" | "medium_high" | "high" | undefined;
8945
+ preference_match?: {
8946
+ score: number;
8947
+ matches: string[];
8948
+ mismatches: string[];
8949
+ } | undefined;
8950
+ } | undefined;
8951
+ evolution_context?: {
8952
+ confidence: number;
8953
+ role?: "user" | "merchant" | "arbitrator" | undefined;
8954
+ industry_signal?: string | undefined;
8955
+ evolution_advice?: string | undefined;
8956
+ health_score?: number | undefined;
8957
+ pending_suggestions?: number | undefined;
8958
+ intent?: "custom" | "default" | "growth" | "retention" | "compliance" | "efficiency" | "trust_building" | undefined;
8959
+ role_advice?: string[] | undefined;
8960
+ } | undefined;
8961
+ } | undefined;
8962
+ harness_report?: {
8963
+ verify: {
8964
+ status: "pass" | "warn" | "fail";
8965
+ mismatches: {
8966
+ expected: string;
8967
+ dimension: "created" | "modified" | "released" | "state" | "event";
8968
+ actual: string;
8969
+ severity: "pass" | "warn" | "fail";
8970
+ detail: string;
8971
+ }[];
8972
+ summary: string;
8973
+ timestamp: string;
8974
+ };
8975
+ recovery?: {
8976
+ detail: string;
8977
+ strategy: "retry" | "claim_faucet" | "fill_submission" | "recreate" | "switch_account" | "query_and_retry" | "adjust_params" | "escalate_human" | "stop";
8978
+ should_retry: boolean;
8979
+ max_attempts: number;
8980
+ current_attempt: number;
8981
+ adjusted_params?: Record<string, unknown> | undefined;
8982
+ user_prompt?: string | undefined;
8983
+ } | undefined;
8984
+ } | undefined;
6922
8985
  }>;
6923
8986
  export type NormalObject = z.infer<typeof NormalObjectSchema>;
6924
8987
  export type NamedObject = z.infer<typeof NamedObjectSchema>;
@@ -6939,3 +9002,20 @@ export type TypedDescriptionObject = z.infer<typeof TypedDescriptionObjectSchema
6939
9002
  export type WithPermissionObject = z.infer<typeof WithPermissionObjectSchema>;
6940
9003
  export type CallResult = z.infer<typeof CallResultSchema>;
6941
9004
  export type CallOutput = z.infer<typeof CallOutputSchema>;
9005
+ export type ObjectRole = z.infer<typeof ObjectRoleSchema>;
9006
+ export type FundRole = z.infer<typeof FundRoleSchema>;
9007
+ export type NextAction = z.infer<typeof NextActionSchema>;
9008
+ export type EventSemantic = z.infer<typeof EventSemanticSchema>;
9009
+ export type Experience = z.infer<typeof ExperienceSchema>;
9010
+ export type ServiceStatus = z.infer<typeof ServiceStatusSchema>;
9011
+ export type SemanticSummary = z.infer<typeof SemanticSummarySchema>;
9012
+ export type CustomerReminder = z.infer<typeof CustomerReminderSchema>;
9013
+ export type PreferenceMatch = z.infer<typeof PreferenceMatchSchema>;
9014
+ export type CustomerAdvice = z.infer<typeof CustomerAdviceSchema>;
9015
+ export type EvolutionContext = z.infer<typeof EvolutionContextSchema>;
9016
+ export type VerifyMismatch = z.infer<typeof VerifyMismatchSchema>;
9017
+ export type VerifyReport = z.infer<typeof VerifyReportSchema>;
9018
+ export type RecoveryAction = z.infer<typeof RecoveryActionSchema>;
9019
+ export type HarnessReport = z.infer<typeof HarnessReportSchema>;
9020
+ export type OperationPreview = z.infer<typeof OperationPreviewSchema>;
9021
+ export type CallPendingConfirmation = z.infer<typeof CallPendingConfirmationSchema>;