@wowok/agent-mcp 2.6.0 → 2.6.3

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 (186) hide show
  1. package/README.md +5 -3
  2. package/dist/customer/info-puzzle.d.ts +1 -1
  3. package/dist/customer/info-puzzle.js +4 -2
  4. package/dist/customer/risk-assessment.js +26 -4
  5. package/dist/customer/types.d.ts +2 -0
  6. package/dist/examples/guard-template-balance-check.json +38 -0
  7. package/dist/examples/guard-template-time-lock.json +39 -0
  8. package/dist/examples/machine-template-7node-rental.json +114 -0
  9. package/dist/examples/rental-ziroom-machine-create.json +137 -0
  10. package/dist/examples/rental-ziroom-permission-create.json +35 -0
  11. package/dist/examples/rental-ziroom-service-create.json +80 -0
  12. package/dist/examples/retail-myshop-service-create.json +88 -0
  13. package/dist/extensions/capability-manifest.d.ts +125 -0
  14. package/dist/extensions/capability-manifest.js +594 -0
  15. package/dist/extensions/constraint-registry.d.ts +24 -0
  16. package/dist/extensions/constraint-registry.js +196 -0
  17. package/dist/extensions/index.d.ts +12 -0
  18. package/dist/extensions/index.js +6 -0
  19. package/dist/extensions/metric-registry.d.ts +26 -0
  20. package/dist/extensions/metric-registry.js +257 -0
  21. package/dist/extensions/mode-evaluator.d.ts +15 -0
  22. package/dist/extensions/mode-evaluator.js +170 -0
  23. package/dist/extensions/modes.d.ts +2 -0
  24. package/dist/extensions/modes.js +493 -0
  25. package/dist/extensions/registry.d.ts +50 -0
  26. package/dist/extensions/registry.js +662 -0
  27. package/dist/extensions/types.d.ts +219 -0
  28. package/dist/extensions/types.js +1 -0
  29. package/dist/index.js +50 -0
  30. package/dist/knowledge/deployment-scanner.d.ts +3 -0
  31. package/dist/knowledge/deployment-scanner.js +64 -3
  32. package/dist/knowledge/fund-layer.d.ts +72 -0
  33. package/dist/knowledge/fund-layer.js +420 -0
  34. package/dist/knowledge/guard-render.d.ts +57 -0
  35. package/dist/knowledge/guard-render.js +700 -0
  36. package/dist/knowledge/guard-risk.d.ts +13 -0
  37. package/dist/knowledge/guard-risk.js +57 -0
  38. package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
  39. package/dist/knowledge/guard-submission-prompt.js +171 -0
  40. package/dist/knowledge/guard-templates.js +278 -0
  41. package/dist/knowledge/machine-ledger.js +1 -1
  42. package/dist/knowledge/machine-render.d.ts +41 -0
  43. package/dist/knowledge/machine-render.js +565 -0
  44. package/dist/knowledge/machine-templates.js +24 -5
  45. package/dist/knowledge/reward-confirm.js +2 -2
  46. package/dist/knowledge/reward-puzzle.js +1 -1
  47. package/dist/knowledge/reward-risk.js +9 -9
  48. package/dist/knowledge/reward-templates.js +2 -2
  49. package/dist/knowledge/service-confirm.d.ts +15 -6
  50. package/dist/knowledge/service-confirm.js +119 -11
  51. package/dist/knowledge/service-context.js +1 -1
  52. package/dist/knowledge/service-ledger.js +1 -1
  53. package/dist/knowledge/service-risk.d.ts +1 -1
  54. package/dist/knowledge/service-risk.js +3 -3
  55. package/dist/knowledge/service-templates.js +2 -2
  56. package/dist/knowledge/service-translation.d.ts +1 -1
  57. package/dist/knowledge/service-translation.js +7 -7
  58. package/dist/knowledge/tool-constraints.js +6 -2
  59. package/dist/project/deployment-bridge.d.ts +1 -1
  60. package/dist/project/deployment-bridge.js +31 -7
  61. package/dist/project/deployment-doc.d.ts +3 -0
  62. package/dist/project/deployment-doc.js +76 -14
  63. package/dist/project/edit-planner.d.ts +123 -0
  64. package/dist/project/edit-planner.js +1371 -0
  65. package/dist/project/evaluation.d.ts +2 -0
  66. package/dist/project/evaluation.js +873 -88
  67. package/dist/project/graph-builder.d.ts +4 -1
  68. package/dist/project/graph-builder.js +132 -62
  69. package/dist/project/graph.d.ts +1 -0
  70. package/dist/project/handlers.d.ts +317 -6
  71. package/dist/project/handlers.js +1171 -19
  72. package/dist/project/stage-gate.d.ts +4 -0
  73. package/dist/project/stage-gate.js +64 -5
  74. package/dist/project/task-tracker.d.ts +26 -0
  75. package/dist/project/task-tracker.js +78 -0
  76. package/dist/safety/preview.js +16 -0
  77. package/dist/schema/call/allocation.d.ts +16 -16
  78. package/dist/schema/call/allocation.js +2 -2
  79. package/dist/schema/call/arbitration.js +19 -6
  80. package/dist/schema/call/base.d.ts +21 -13
  81. package/dist/schema/call/base.js +27 -6
  82. package/dist/schema/call/bridge.d.ts +5 -5
  83. package/dist/schema/call/bridge.js +3 -1
  84. package/dist/schema/call/contact.js +2 -2
  85. package/dist/schema/call/demand.d.ts +23 -31
  86. package/dist/schema/call/demand.js +2 -2
  87. package/dist/schema/call/guard.js +2 -2
  88. package/dist/schema/call/machine.d.ts +1976 -752
  89. package/dist/schema/call/machine.js +50 -4
  90. package/dist/schema/call/order.d.ts +149 -228
  91. package/dist/schema/call/order.js +4 -3
  92. package/dist/schema/call/payment.d.ts +183 -3
  93. package/dist/schema/call/payment.js +21 -3
  94. package/dist/schema/call/permission.js +2 -2
  95. package/dist/schema/call/personal.d.ts +241 -52
  96. package/dist/schema/call/progress.d.ts +53 -61
  97. package/dist/schema/call/progress.js +18 -4
  98. package/dist/schema/call/repository.d.ts +23 -31
  99. package/dist/schema/call/repository.js +2 -2
  100. package/dist/schema/call/reward.js +3 -3
  101. package/dist/schema/call/semantic.d.ts +1 -1
  102. package/dist/schema/call/semantic.js +37 -2
  103. package/dist/schema/call/service.d.ts +275 -127
  104. package/dist/schema/call/service.js +89 -13
  105. package/dist/schema/call/treasury.js +3 -3
  106. package/dist/schema/common/index.d.ts +13 -2
  107. package/dist/schema/common/index.js +80 -15
  108. package/dist/schema/local/index.d.ts +32 -35
  109. package/dist/schema/local/index.js +28 -6
  110. package/dist/schema/messenger/index.d.ts +274 -46
  111. package/dist/schema/operations.d.ts +1264 -544
  112. package/dist/schema/operations.js +65 -7
  113. package/dist/schema/project/index.d.ts +2846 -167
  114. package/dist/schema/project/index.js +570 -16
  115. package/dist/schema/query/index.d.ts +922 -349
  116. package/dist/schema/query/index.js +205 -42
  117. package/dist/schema/schema-query/index.d.ts +65 -3
  118. package/dist/schema/schema-query/index.js +38 -5
  119. package/dist/schema/utils/node-parser.js +20 -4
  120. package/dist/schema/utils/object-type-utils.d.ts +12 -0
  121. package/dist/schema/utils/object-type-utils.js +35 -0
  122. package/dist/schema/utils/permission-machine-check.d.ts +49 -0
  123. package/dist/schema/utils/permission-machine-check.js +121 -0
  124. package/dist/schema/utils/skills-recommendation.d.ts +2 -0
  125. package/dist/schema/utils/skills-recommendation.js +76 -0
  126. package/dist/schema-query/index.d.ts +20 -1
  127. package/dist/schema-query/index.js +306 -4
  128. package/dist/schemas/account_operation.output.json +7 -1
  129. package/dist/schemas/account_operation.schema.json +3 -3
  130. package/dist/schemas/bridge_operation.output.json +6 -0
  131. package/dist/schemas/bridge_operation.schema.json +1 -1
  132. package/dist/schemas/guard-templates.json +379 -0
  133. package/dist/schemas/guard2file.schema.json +1 -1
  134. package/dist/schemas/index.json +1 -1
  135. package/dist/schemas/local_info_operation.output.json +6 -0
  136. package/dist/schemas/local_mark_operation.output.json +7 -1
  137. package/dist/schemas/local_mark_operation.schema.json +1 -1
  138. package/dist/schemas/machineNode2file.schema.json +1 -1
  139. package/dist/schemas/messenger_operation.schema.json +4 -4
  140. package/dist/schemas/onchain_events.output.json +1 -1
  141. package/dist/schemas/onchain_operations.output.json +2820 -0
  142. package/dist/schemas/onchain_operations.schema.json +444 -330
  143. package/dist/schemas/onchain_operations_allocation.schema.json +37 -28
  144. package/dist/schemas/onchain_operations_arbitration.schema.json +16 -14
  145. package/dist/schemas/onchain_operations_contact.schema.json +10 -10
  146. package/dist/schemas/onchain_operations_demand.schema.json +10 -10
  147. package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -16
  148. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
  149. package/dist/schemas/onchain_operations_guard.schema.json +2 -2
  150. package/dist/schemas/onchain_operations_machine.schema.json +43 -35
  151. package/dist/schemas/onchain_operations_order.schema.json +72 -78
  152. package/dist/schemas/onchain_operations_payment.schema.json +141 -111
  153. package/dist/schemas/onchain_operations_permission.schema.json +3 -3
  154. package/dist/schemas/onchain_operations_personal.schema.json +7 -7
  155. package/dist/schemas/onchain_operations_progress.schema.json +9 -9
  156. package/dist/schemas/onchain_operations_proof.schema.json +8 -8
  157. package/dist/schemas/onchain_operations_repository.schema.json +10 -10
  158. package/dist/schemas/onchain_operations_reward.schema.json +14 -14
  159. package/dist/schemas/onchain_operations_service.schema.json +119 -48
  160. package/dist/schemas/onchain_operations_treasury.schema.json +11 -11
  161. package/dist/schemas/onchain_table_data.output.json +33 -25
  162. package/dist/schemas/onchain_table_data.schema.json +22 -21
  163. package/dist/schemas/project_operation.output.json +2194 -23
  164. package/dist/schemas/project_operation.schema.json +84 -6
  165. package/dist/schemas/query_toolkit.output.json +108 -80
  166. package/dist/schemas/query_toolkit.schema.json +12 -12
  167. package/dist/schemas/schema_query.output.json +70 -3
  168. package/dist/schemas/schema_query.schema.json +18 -3
  169. package/dist/schemas/wowok_buildin_info.output.json +81 -8
  170. package/dist/schemas/wowok_buildin_info.schema.json +46 -2
  171. package/dist/tools/handlers/local.js +20 -5
  172. package/dist/tools/handlers/onchain.js +594 -6
  173. package/dist/tools/handlers/project.js +76 -4
  174. package/dist/tools/handlers/query.js +27 -0
  175. package/dist/tools/handlers/schema-query.js +43 -1
  176. package/dist/tools/handlers/task-status.d.ts +170 -0
  177. package/dist/tools/handlers/task-status.js +55 -0
  178. package/dist/tools/handlers/wip.js +47 -1
  179. package/dist/tools/index.d.ts +8 -0
  180. package/dist/tools/index.js +387 -12
  181. package/dist/tools/retry.d.ts +8 -0
  182. package/dist/tools/retry.js +85 -0
  183. package/dist/tools/wip-deploy-assist.d.ts +28 -0
  184. package/dist/tools/wip-deploy-assist.js +278 -0
  185. package/package.json +2 -2
  186. package/dist/schemas/guard-node-examples.md +0 -199
@@ -35,6 +35,8 @@ export interface StageGateInput {
35
35
  }>;
36
36
  trace_coherent?: boolean;
37
37
  has_published_object?: boolean;
38
+ evaluation_score?: number;
39
+ deployment_doc_generated?: boolean;
38
40
  gas_budget?: GasBudgetCheck;
39
41
  }
40
42
  export interface StageGateResult {
@@ -45,5 +47,7 @@ export interface StageGateResult {
45
47
  warnings: string[];
46
48
  can_proceed: boolean;
47
49
  }
50
+ export declare const STAGE5_RISK_SCORE_BLOCK = 50;
51
+ export declare const STAGE5_RISK_SCORE_WARN = 80;
48
52
  export declare function validateStageGate(input: StageGateInput): StageGateResult;
49
53
  export declare function validateStageGateFromDisk(prefix: string, version: string, stage?: ProjectStage, extra?: Partial<StageGateInput>): StageGateResult;
@@ -1,4 +1,66 @@
1
1
  import { loadStageState, projectExists } from "./project-store.js";
2
+ export const STAGE5_RISK_SCORE_BLOCK = 50;
3
+ export const STAGE5_RISK_SCORE_WARN = 80;
4
+ function buildStage5ScoreCheck(input) {
5
+ if (input.evaluation_score !== undefined && input.evaluation_score !== null) {
6
+ const score = input.evaluation_score;
7
+ if (score < STAGE5_RISK_SCORE_BLOCK) {
8
+ return {
9
+ dimension: "risk",
10
+ status: "FAIL",
11
+ message: `Stage 3 evaluation score ${score} < ${STAGE5_RISK_SCORE_BLOCK} (block threshold). ` +
12
+ `GLM6 handoff validation: deployment blocked — too many CRITICAL risks unresolved. ` +
13
+ `Fix risks in Stage 3 (aggregate_risks) before deploying.`,
14
+ };
15
+ }
16
+ if (score < STAGE5_RISK_SCORE_WARN) {
17
+ return {
18
+ dimension: "risk",
19
+ status: "WARN",
20
+ message: `Stage 3 evaluation score ${score} < ${STAGE5_RISK_SCORE_WARN} (warn threshold). ` +
21
+ `GLM6 handoff validation: non-blocking — proceed at your own risk. ` +
22
+ `Recommend improving risk posture before deploying to mainnet.`,
23
+ };
24
+ }
25
+ return {
26
+ dimension: "risk",
27
+ status: "PASS",
28
+ message: `Stage 3 evaluation score ${score} >= ${STAGE5_RISK_SCORE_WARN} — safe to deploy`,
29
+ };
30
+ }
31
+ const riskPassed = input.risk_status === "RISK_PASSED";
32
+ return {
33
+ dimension: "risk",
34
+ status: riskPassed ? "PASS" : "WARN",
35
+ message: riskPassed
36
+ ? "Risk status is RISK_PASSED"
37
+ : `Risk status is ${input.risk_status ?? "unknown"} — recommend resolving before deployment`,
38
+ };
39
+ }
40
+ function buildStage5DocCheck(input) {
41
+ if (input.deployment_doc_generated !== true) {
42
+ return {
43
+ dimension: "semantic",
44
+ status: "FAIL",
45
+ message: "GLM6 handoff validation: Stage 4 deployment doc not generated. " +
46
+ "Call generate_deployment_doc (Stage 4) before executing deployment (Stage 5).",
47
+ };
48
+ }
49
+ const errorCount = input.doc_error_count ?? 0;
50
+ if (errorCount > 0) {
51
+ return {
52
+ dimension: "semantic",
53
+ status: "FAIL",
54
+ message: `GLM6 handoff validation: Stage 4 deployment doc has ${errorCount} D-error(s). ` +
55
+ `Fix all D-errors before executing deployment.`,
56
+ };
57
+ }
58
+ return {
59
+ dimension: "semantic",
60
+ status: "PASS",
61
+ message: "Stage 4 deployment doc generated with 0 D-errors",
62
+ };
63
+ }
2
64
  function buildGasBudgetCheck(input) {
3
65
  const gb = input.gas_budget;
4
66
  if (!gb) {
@@ -220,6 +282,7 @@ function validateStage4Gate(input) {
220
282
  }
221
283
  function validateStage5Gate(input) {
222
284
  const checks = [];
285
+ checks.push(buildStage5DocCheck(input));
223
286
  const coherent = input.trace_coherent === true;
224
287
  checks.push({
225
288
  dimension: "semantic",
@@ -244,11 +307,7 @@ function validateStage5Gate(input) {
244
307
  "Ensure all substeps are correct before executing on mainnet."
245
308
  : "No objects published yet — stage 5 is still reversible",
246
309
  });
247
- checks.push({
248
- dimension: "risk",
249
- status: "PASS",
250
- message: "Risks verified in stage 3",
251
- });
310
+ checks.push(buildStage5ScoreCheck(input));
252
311
  checks.push({
253
312
  dimension: "isolation",
254
313
  status: "PASS",
@@ -0,0 +1,26 @@
1
+ export type TaskStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
2
+ export interface TaskState {
3
+ task_id: string;
4
+ operation: string;
5
+ status: TaskStatus;
6
+ progress: number;
7
+ message: string;
8
+ result: unknown;
9
+ error: string | null;
10
+ started_at: number;
11
+ completed_at: number | null;
12
+ project_id: string | null;
13
+ }
14
+ declare class TaskTrackerImpl {
15
+ private tasks;
16
+ private counter;
17
+ create(operation: string, projectId?: string): string;
18
+ update(task_id: string, progress: number, message?: string): void;
19
+ complete(task_id: string, result: unknown): void;
20
+ fail(task_id: string, error: string): void;
21
+ get(task_id: string): TaskState | undefined;
22
+ list(projectId?: string): TaskState[];
23
+ private evictExpired;
24
+ }
25
+ export declare const TaskTracker: TaskTrackerImpl;
26
+ export {};
@@ -0,0 +1,78 @@
1
+ const RETENTION_MS = 5 * 60 * 1000;
2
+ const MAX_TASKS = 200;
3
+ class TaskTrackerImpl {
4
+ tasks = new Map();
5
+ counter = 0;
6
+ create(operation, projectId) {
7
+ this.evictExpired();
8
+ this.counter++;
9
+ const task_id = `task_${Date.now()}_${this.counter}`;
10
+ const state = {
11
+ task_id,
12
+ operation,
13
+ status: "pending",
14
+ progress: 0,
15
+ message: "Task created",
16
+ result: null,
17
+ error: null,
18
+ started_at: Date.now(),
19
+ completed_at: null,
20
+ project_id: projectId ?? null,
21
+ };
22
+ this.tasks.set(task_id, state);
23
+ return task_id;
24
+ }
25
+ update(task_id, progress, message) {
26
+ const t = this.tasks.get(task_id);
27
+ if (!t)
28
+ return;
29
+ t.progress = Math.max(0, Math.min(100, progress));
30
+ if (message)
31
+ t.message = message;
32
+ if (t.status === "pending")
33
+ t.status = "running";
34
+ }
35
+ complete(task_id, result) {
36
+ const t = this.tasks.get(task_id);
37
+ if (!t)
38
+ return;
39
+ t.status = "completed";
40
+ t.progress = 100;
41
+ t.result = result;
42
+ t.completed_at = Date.now();
43
+ }
44
+ fail(task_id, error) {
45
+ const t = this.tasks.get(task_id);
46
+ if (!t)
47
+ return;
48
+ t.status = "failed";
49
+ t.error = error;
50
+ t.completed_at = Date.now();
51
+ }
52
+ get(task_id) {
53
+ return this.tasks.get(task_id);
54
+ }
55
+ list(projectId) {
56
+ const all = Array.from(this.tasks.values());
57
+ if (projectId)
58
+ return all.filter(t => t.project_id === projectId);
59
+ return all;
60
+ }
61
+ evictExpired() {
62
+ const now = Date.now();
63
+ for (const [id, t] of this.tasks) {
64
+ if (t.completed_at && now - t.completed_at > RETENTION_MS) {
65
+ this.tasks.delete(id);
66
+ }
67
+ }
68
+ if (this.tasks.size > MAX_TASKS) {
69
+ const completed = Array.from(this.tasks.values())
70
+ .filter(t => t.status === "completed" || t.status === "failed")
71
+ .sort((a, b) => (a.completed_at ?? 0) - (b.completed_at ?? 0));
72
+ const toEvict = completed.slice(0, this.tasks.size - MAX_TASKS);
73
+ for (const t of toEvict)
74
+ this.tasks.delete(t.task_id);
75
+ }
76
+ }
77
+ }
78
+ export const TaskTracker = new TaskTrackerImpl();
@@ -5,6 +5,16 @@ const LEVEL_LABEL = {
5
5
  publish: "Publish confirmation (irreversible lock)",
6
6
  irreversible: "Irreversible operation confirmation",
7
7
  };
8
+ const CONFIRMATION_REQUIRED_OPERATIONS = [
9
+ "guard (CREATE — immutable, cannot be edited or deleted)",
10
+ "service (publish=true — locks machine/order_allocators)",
11
+ "machine (publish=true — locks nodes/pairs/forwards)",
12
+ "arbitration (verdict — irreversible)",
13
+ "payment (send — irreversible)",
14
+ "treasury (withdraw/external_withdraw/external_deposit — irreversible)",
15
+ "reward / treasury / service.compensation_fund_add (amount-sensitive)",
16
+ "gen_passport (gas-consuming test)",
17
+ ];
8
18
  export function renderPreview(p) {
9
19
  const lines = [];
10
20
  lines.push(`⚠️ Confirmation required — ${LEVEL_LABEL[p.level]}`);
@@ -32,5 +42,11 @@ export function renderPreview(p) {
32
42
  }
33
43
  lines.push("");
34
44
  lines.push("Confirm by re-calling with env.confirmed=true, or modify/cancel.");
45
+ lines.push("");
46
+ lines.push("Operations that require env.confirmed=true:");
47
+ for (const op of CONFIRMATION_REQUIRED_OPERATIONS) {
48
+ lines.push(` - ${op}`);
49
+ }
50
+ lines.push('Example: {"env": {"account": "...", "network": "testnet", "confirmed": true}}');
35
51
  return lines.join("\n");
36
52
  }
@@ -61,7 +61,7 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
61
61
  Signer: "signer";
62
62
  }>]>;
63
63
  sharing: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
64
- mode: z.ZodEnum<["Amount", "Rate", "Surplus"]>;
64
+ mode: z.ZodUnion<[z.ZodEnum<["Amount", "Rate", "Surplus"]>, z.ZodEffects<z.ZodNumber, "Amount" | "Rate" | "Surplus", number>]>;
65
65
  }, "strip", z.ZodTypeAny, {
66
66
  mode: "Amount" | "Rate" | "Surplus";
67
67
  sharing: string | number;
@@ -76,7 +76,7 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
76
76
  Signer: "signer";
77
77
  };
78
78
  }, {
79
- mode: "Amount" | "Rate" | "Surplus";
79
+ mode: number | "Amount" | "Rate" | "Surplus";
80
80
  sharing: string | number;
81
81
  who: {
82
82
  GuardIdentifier: number;
@@ -112,7 +112,7 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
112
112
  }, {
113
113
  guard: string;
114
114
  sharing: {
115
- mode: "Amount" | "Rate" | "Surplus";
115
+ mode: number | "Amount" | "Rate" | "Surplus";
116
116
  sharing: string | number;
117
117
  who: {
118
118
  GuardIdentifier: number;
@@ -155,7 +155,7 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
155
155
  allocators: {
156
156
  guard: string;
157
157
  sharing: {
158
- mode: "Amount" | "Rate" | "Surplus";
158
+ mode: number | "Amount" | "Rate" | "Surplus";
159
159
  sharing: string | number;
160
160
  who: {
161
161
  GuardIdentifier: number;
@@ -262,7 +262,7 @@ export declare const CallAllocation_CreateSchema: z.ZodObject<{
262
262
  allocators: {
263
263
  guard: string;
264
264
  sharing: {
265
- mode: "Amount" | "Rate" | "Surplus";
265
+ mode: number | "Amount" | "Rate" | "Surplus";
266
266
  sharing: string | number;
267
267
  who: {
268
268
  GuardIdentifier: number;
@@ -410,7 +410,7 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<[z.ZodObject<{
410
410
  Signer: "signer";
411
411
  }>]>;
412
412
  sharing: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
413
- mode: z.ZodEnum<["Amount", "Rate", "Surplus"]>;
413
+ mode: z.ZodUnion<[z.ZodEnum<["Amount", "Rate", "Surplus"]>, z.ZodEffects<z.ZodNumber, "Amount" | "Rate" | "Surplus", number>]>;
414
414
  }, "strip", z.ZodTypeAny, {
415
415
  mode: "Amount" | "Rate" | "Surplus";
416
416
  sharing: string | number;
@@ -425,7 +425,7 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<[z.ZodObject<{
425
425
  Signer: "signer";
426
426
  };
427
427
  }, {
428
- mode: "Amount" | "Rate" | "Surplus";
428
+ mode: number | "Amount" | "Rate" | "Surplus";
429
429
  sharing: string | number;
430
430
  who: {
431
431
  GuardIdentifier: number;
@@ -461,7 +461,7 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<[z.ZodObject<{
461
461
  }, {
462
462
  guard: string;
463
463
  sharing: {
464
- mode: "Amount" | "Rate" | "Surplus";
464
+ mode: number | "Amount" | "Rate" | "Surplus";
465
465
  sharing: string | number;
466
466
  who: {
467
467
  GuardIdentifier: number;
@@ -504,7 +504,7 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<[z.ZodObject<{
504
504
  allocators: {
505
505
  guard: string;
506
506
  sharing: {
507
- mode: "Amount" | "Rate" | "Surplus";
507
+ mode: number | "Amount" | "Rate" | "Surplus";
508
508
  sharing: string | number;
509
509
  who: {
510
510
  GuardIdentifier: number;
@@ -611,7 +611,7 @@ export declare const CallAllocation_DataSchema: z.ZodUnion<[z.ZodObject<{
611
611
  allocators: {
612
612
  guard: string;
613
613
  sharing: {
614
- mode: "Amount" | "Rate" | "Surplus";
614
+ mode: number | "Amount" | "Rate" | "Surplus";
615
615
  sharing: string | number;
616
616
  who: {
617
617
  GuardIdentifier: number;
@@ -759,7 +759,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
759
759
  Signer: "signer";
760
760
  }>]>;
761
761
  sharing: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
762
- mode: z.ZodEnum<["Amount", "Rate", "Surplus"]>;
762
+ mode: z.ZodUnion<[z.ZodEnum<["Amount", "Rate", "Surplus"]>, z.ZodEffects<z.ZodNumber, "Amount" | "Rate" | "Surplus", number>]>;
763
763
  }, "strip", z.ZodTypeAny, {
764
764
  mode: "Amount" | "Rate" | "Surplus";
765
765
  sharing: string | number;
@@ -774,7 +774,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
774
774
  Signer: "signer";
775
775
  };
776
776
  }, {
777
- mode: "Amount" | "Rate" | "Surplus";
777
+ mode: number | "Amount" | "Rate" | "Surplus";
778
778
  sharing: string | number;
779
779
  who: {
780
780
  GuardIdentifier: number;
@@ -810,7 +810,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
810
810
  }, {
811
811
  guard: string;
812
812
  sharing: {
813
- mode: "Amount" | "Rate" | "Surplus";
813
+ mode: number | "Amount" | "Rate" | "Surplus";
814
814
  sharing: string | number;
815
815
  who: {
816
816
  GuardIdentifier: number;
@@ -853,7 +853,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
853
853
  allocators: {
854
854
  guard: string;
855
855
  sharing: {
856
- mode: "Amount" | "Rate" | "Surplus";
856
+ mode: number | "Amount" | "Rate" | "Surplus";
857
857
  sharing: string | number;
858
858
  who: {
859
859
  GuardIdentifier: number;
@@ -960,7 +960,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
960
960
  allocators: {
961
961
  guard: string;
962
962
  sharing: {
963
- mode: "Amount" | "Rate" | "Surplus";
963
+ mode: number | "Amount" | "Rate" | "Surplus";
964
964
  sharing: string | number;
965
965
  who: {
966
966
  GuardIdentifier: number;
@@ -1377,7 +1377,7 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
1377
1377
  allocators: {
1378
1378
  guard: string;
1379
1379
  sharing: {
1380
- mode: "Amount" | "Rate" | "Surplus";
1380
+ mode: number | "Amount" | "Rate" | "Surplus";
1381
1381
  sharing: string | number;
1382
1382
  who: {
1383
1383
  GuardIdentifier: number;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { CoinParamSchema, CallEnvSchema, SubmissionCallSchema, TypeNamedObjectSchema } from "./base.js";
3
3
  import { AllocatorsSchema, PaymentInfoSchema } from "../query/index.js";
4
- import { NameOrAddressSchema, ReceivedBalanceOrRecentlySchema } from "../common/index.js";
4
+ import { NameOrAddressSchema, ReceivedBalanceOrRecentlySchema, RECEIVE_FORMAT_BLOCK_BALANCE } from "../common/index.js";
5
5
  export const CallAllocation_CreateSchema = z.object({
6
6
  object: TypeNamedObjectSchema.describe("REQUIRED for creating new object. Provide {name: 'yourName', type: 'Allocation'} to create and name the new Allocation object."),
7
7
  allocators: AllocatorsSchema,
@@ -10,7 +10,7 @@ export const CallAllocation_CreateSchema = z.object({
10
10
  }).strict().describe("Create a new Allocation object. Set 'object' field with {name: 'yourName', type: 'Allocation'} to name the new object. Notice:'name' goes INSIDE 'object', NOT at the data root level.");
11
11
  export const CallAllocation_OperateSchema = z.object({
12
12
  object: NameOrAddressSchema.describe("REQUIRED for operating existing object. Provide the Allocation object ID or existing name to reference the target object."),
13
- received_coins: ReceivedBalanceOrRecentlySchema.optional().describe("Unwrap the CoinWrapper objects received by the Allocation object and deposit them into the pending allocation balance"),
13
+ received_coins: ReceivedBalanceOrRecentlySchema.optional().describe("Unwrap the CoinWrapper objects received by the Allocation object and deposit them into the pending allocation balance." + RECEIVE_FORMAT_BLOCK_BALANCE),
14
14
  alloc_by_guard: NameOrAddressSchema.optional().describe("Verify the specified Guard and execute the corresponding fund allocation")
15
15
  }).strict().describe("Operate on an existing Allocation object. Set 'object' field with the object ID or existing name to specify the target.");
16
16
  export const CallAllocation_DataSchema = z.union([
@@ -1,21 +1,34 @@
1
1
  import { z } from "zod";
2
2
  import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
3
3
  import { VotingGuardSchema } from "../query/index.js";
4
- import { BalanceTypeSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
4
+ import { BalanceTypeSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
5
5
  export const DisputeSchema = z.object({
6
6
  order: NameOrAddressSchema.describe("Order ID or name."),
7
7
  description: DescriptionSchema.optional().describe("Dispute description."),
8
8
  proposition: z.array(LongNameSchema).describe("List of dispute propositions."),
9
- fee: CoinParamSchema.describe("Dispute processing fee."),
10
- namedArb: NamedObjectSchema.optional().describe("Name for the newly created arbitration object.")
9
+ fee: CoinParamSchema.describe("Dispute processing fee. FORMAT: {balance: <amount_in_smallest_unit>} — field name is 'balance' (NOT 'amount'). " +
10
+ "The token type and precision are determined by the Arbitration object's type_parameter (the generic type set when the Arbitration was created). " +
11
+ "For WOW (9 decimals): {balance: 50000000} = 0.05 WOW. For SUI (9 decimals): {balance: 50000000} = 0.05 SUI. " +
12
+ "For tokens with different decimals, adjust accordingly (e.g. USDC has 6 decimals, so {balance: 50000} = 0.05 USDC)."),
13
+ namedArb: NamedObjectSchema.optional().describe("RECOMMENDED: Set a local name for the newly created Arb (arbitration case) object. " +
14
+ "Without this, the Arb is only referenceable by its on-chain address. " +
15
+ "Example: {name: 'my_dispute_v1'} allows subsequent vote/feedback operations to use 'my_dispute_v1'.")
11
16
  }).strict();
12
17
  export const ConfirmSchema = z.object({
13
18
  arb: NameOrAddressSchema,
14
- voting_deadline: z.union([z.number().int().min(0), z.null()])
19
+ voting_deadline: z.union([z.number().int().min(0), z.null()]).describe("Voting deadline as Unix timestamp in MILLISECONDS (ms). " +
20
+ "MUST be in the future (recommended: now + at least 86400000 ms = 24 hours). " +
21
+ "Set to null to remove the deadline. " +
22
+ "COMMON MISTAKE: using seconds instead of milliseconds (multiply by 1000). " +
23
+ "Example: Date.now() + 259200000 for 3 days from now.")
15
24
  }).strict();
16
25
  export const VotingDeadlineChangeSchema = z.object({
17
26
  arb: NameOrAddressSchema,
18
- voting_deadline: z.union([z.number(), z.null()])
27
+ voting_deadline: z.union([z.number(), z.null()]).describe("New voting deadline as Unix timestamp in MILLISECONDS (ms). " +
28
+ "MUST be in the future (recommended: now + at least 86400000 ms = 24 hours). " +
29
+ "Set to null to remove the deadline. " +
30
+ "COMMON MISTAKE: using seconds instead of milliseconds (multiply by 1000). " +
31
+ "Example: Date.now() + 259200000 for 3 days from now.")
19
32
  }).strict();
20
33
  export const VoteSchema = z.object({
21
34
  arb: NameOrAddressSchema,
@@ -82,7 +95,7 @@ export const CallArbitration_DataSchema = z.object({
82
95
  fees_transfer: FeesTransferSchema.optional().describe("Distribute the withdrawn arbitration fees."),
83
96
  usage_guard: z.union([NameOrAddressSchema, z.null()]).optional().describe("Set Guard for verification when users apply for arbitration; if Guard verification fails, users will not be able to apply for arbitration."),
84
97
  voting_guard: VotingGuardActionSchema.optional().describe("Set Guard for verification during arbitration voting; if Guard verification fails, arbitration voting will fail."),
85
- owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."),
98
+ owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this Arbitration object and send them to the owner of its Permission object." + RECEIVE_FORMAT_BLOCK_OBJECTS),
86
99
  um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name.")
87
100
  }).strict().describe("On-chain Arbitration operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create an Arbitration. NOTE:'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
88
101
  export const CallArbitration_InputSchema = z.object({
@@ -1597,7 +1597,7 @@ export declare const SemanticSummarySchema: z.ZodObject<{
1597
1597
  export declare const CallResponseErrorSchema: z.ZodObject<{
1598
1598
  type: z.ZodLiteral<"error">;
1599
1599
  error: z.ZodString;
1600
- error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "unknown"]>>;
1600
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
1601
1601
  retryable: z.ZodOptional<z.ZodBoolean>;
1602
1602
  recovery_hint: z.ZodOptional<z.ZodString>;
1603
1603
  related_object: z.ZodOptional<z.ZodString>;
@@ -1605,14 +1605,14 @@ export declare const CallResponseErrorSchema: z.ZodObject<{
1605
1605
  type: "error";
1606
1606
  error: string;
1607
1607
  related_object?: string | undefined;
1608
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
1608
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
1609
1609
  retryable?: boolean | undefined;
1610
1610
  recovery_hint?: string | undefined;
1611
1611
  }, {
1612
1612
  type: "error";
1613
1613
  error: string;
1614
1614
  related_object?: string | undefined;
1615
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
1615
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
1616
1616
  retryable?: boolean | undefined;
1617
1617
  recovery_hint?: string | undefined;
1618
1618
  }>;
@@ -4416,7 +4416,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4416
4416
  }>, z.ZodObject<{
4417
4417
  type: z.ZodLiteral<"error">;
4418
4418
  error: z.ZodString;
4419
- error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "unknown"]>>;
4419
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
4420
4420
  retryable: z.ZodOptional<z.ZodBoolean>;
4421
4421
  recovery_hint: z.ZodOptional<z.ZodString>;
4422
4422
  related_object: z.ZodOptional<z.ZodString>;
@@ -4424,14 +4424,14 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4424
4424
  type: "error";
4425
4425
  error: string;
4426
4426
  related_object?: string | undefined;
4427
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
4427
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
4428
4428
  retryable?: boolean | undefined;
4429
4429
  recovery_hint?: string | undefined;
4430
4430
  }, {
4431
4431
  type: "error";
4432
4432
  error: string;
4433
4433
  related_object?: string | undefined;
4434
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
4434
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
4435
4435
  retryable?: boolean | undefined;
4436
4436
  recovery_hint?: string | undefined;
4437
4437
  }>, z.ZodObject<{
@@ -4902,7 +4902,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
4902
4902
  };
4903
4903
  rule_id?: string | undefined;
4904
4904
  }>]>;
4905
- export declare const ObjectsSchema: z.ZodUnion<[z.ZodObject<{
4905
+ export declare const ObjectsSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
4906
4906
  op: z.ZodUnion<[z.ZodLiteral<"add">, z.ZodLiteral<"set">]>;
4907
4907
  objects: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
4908
4908
  }, "strict", z.ZodTypeAny, {
@@ -4926,7 +4926,15 @@ export declare const ObjectsSchema: z.ZodUnion<[z.ZodObject<{
4926
4926
  op: "clear";
4927
4927
  }, {
4928
4928
  op: "clear";
4929
- }>]>;
4929
+ }>]>, {
4930
+ op: "set" | "add";
4931
+ objects: string[];
4932
+ } | {
4933
+ op: "remove";
4934
+ objects: string[];
4935
+ } | {
4936
+ op: "clear";
4937
+ }, unknown>;
4930
4938
  export declare const VerifyMismatchSchema: z.ZodObject<{
4931
4939
  dimension: z.ZodEnum<["created", "modified", "released", "state", "event"]>;
4932
4940
  expected: z.ZodString;
@@ -7391,7 +7399,7 @@ export declare const CallOutputSchema: z.ZodObject<{
7391
7399
  }>, z.ZodObject<{
7392
7400
  type: z.ZodLiteral<"error">;
7393
7401
  error: z.ZodString;
7394
- error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "unknown"]>>;
7402
+ error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
7395
7403
  retryable: z.ZodOptional<z.ZodBoolean>;
7396
7404
  recovery_hint: z.ZodOptional<z.ZodString>;
7397
7405
  related_object: z.ZodOptional<z.ZodString>;
@@ -7399,14 +7407,14 @@ export declare const CallOutputSchema: z.ZodObject<{
7399
7407
  type: "error";
7400
7408
  error: string;
7401
7409
  related_object?: string | undefined;
7402
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
7410
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
7403
7411
  retryable?: boolean | undefined;
7404
7412
  recovery_hint?: string | undefined;
7405
7413
  }, {
7406
7414
  type: "error";
7407
7415
  error: string;
7408
7416
  related_object?: string | undefined;
7409
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
7417
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
7410
7418
  retryable?: boolean | undefined;
7411
7419
  recovery_hint?: string | undefined;
7412
7420
  }>, z.ZodObject<{
@@ -8694,7 +8702,7 @@ export declare const CallOutputSchema: z.ZodObject<{
8694
8702
  type: "error";
8695
8703
  error: string;
8696
8704
  related_object?: string | undefined;
8697
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
8705
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
8698
8706
  retryable?: boolean | undefined;
8699
8707
  recovery_hint?: string | undefined;
8700
8708
  } | {
@@ -9270,7 +9278,7 @@ export declare const CallOutputSchema: z.ZodObject<{
9270
9278
  type: "error";
9271
9279
  error: string;
9272
9280
  related_object?: string | undefined;
9273
- error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | undefined;
9281
+ error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
9274
9282
  retryable?: boolean | undefined;
9275
9283
  recovery_hint?: string | undefined;
9276
9284
  } | {