@wowok/agent-mcp 3.3.6 → 3.3.7

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 (137) hide show
  1. package/dist/chain-semantics/eval-order.js +1 -1
  2. package/dist/chain-semantics/field-capability.js +1 -1
  3. package/dist/chain-semantics/fund-flow.js +1 -1
  4. package/dist/chain-semantics/guard-verbs.js +1 -1
  5. package/dist/chain-semantics/object-graph.js +1 -1
  6. package/dist/composition/audit.js +1 -1
  7. package/dist/composition/compile.d.ts +2 -1
  8. package/dist/composition/compile.js +1 -1
  9. package/dist/composition/materialize.js +1 -1
  10. package/dist/data/projection/facets.spec.js +1 -1
  11. package/dist/evaluation/match-policy.d.ts +30 -6
  12. package/dist/evaluation/match-policy.js +1 -1
  13. package/dist/evaluation/match-policy.spec.js +1 -1
  14. package/dist/extensions/business-modules.js +1 -1
  15. package/dist/harness/recover.js +1 -1
  16. package/dist/intent/types.d.ts +1 -1
  17. package/dist/intent/types.js +1 -1
  18. package/dist/keeper/detectors.d.ts +3 -0
  19. package/dist/keeper/detectors.js +1 -1
  20. package/dist/keeper/keeper.spec.js +1 -1
  21. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  22. package/dist/knowledge/audit-rules.js +1 -1
  23. package/dist/knowledge/baselines/rules/plan.json +97 -2
  24. package/dist/knowledge/builtin-templates.d.ts +6 -1
  25. package/dist/knowledge/builtin-templates.js +1 -1
  26. package/dist/knowledge/event-semantics.js +1 -1
  27. package/dist/knowledge/guard-design-patterns.js +1 -1
  28. package/dist/knowledge/guard-templates.d.ts +1 -1
  29. package/dist/knowledge/guard-templates.js +1 -1
  30. package/dist/knowledge/industry-generalizer.d.ts +4 -0
  31. package/dist/knowledge/industry-generalizer.js +1 -1
  32. package/dist/knowledge/semantic-ir.d.ts +113 -0
  33. package/dist/knowledge/semantic-ir.js +1 -0
  34. package/dist/knowledge/strategy-manuals.js +1 -1
  35. package/dist/knowledge/template-loader.d.ts +34 -0
  36. package/dist/knowledge/template-loader.js +1 -1
  37. package/dist/knowledge/template-prose.d.ts +50 -0
  38. package/dist/knowledge/template-prose.js +1 -0
  39. package/dist/knowledge/template-registry.js +1 -1
  40. package/dist/knowledge/template-scanner.d.ts +1 -1
  41. package/dist/knowledge/template-scanner.js +1 -1
  42. package/dist/knowledge/tools-reference.js +1 -1
  43. package/dist/monitor/MonitorLoop.js +1 -1
  44. package/dist/monitor/normalize.d.ts +1 -1
  45. package/dist/monitor/normalize.js +1 -1
  46. package/dist/monitor/types.js +1 -1
  47. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  48. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  49. package/dist/playbooks/service-build/merchant-guide.d.ts +4 -0
  50. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  51. package/dist/playbooks/service-build/migration-planner.d.ts +2 -1
  52. package/dist/playbooks/service-build/migration-planner.js +1 -1
  53. package/dist/playbooks/service-build/mode-actions.d.ts +7 -0
  54. package/dist/playbooks/service-build/mode-actions.js +1 -1
  55. package/dist/playbooks/service-build/object-panorama.d.ts +22 -1
  56. package/dist/playbooks/service-build/object-panorama.js +1 -1
  57. package/dist/playbooks/service-build/participation-radar.js +1 -1
  58. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  59. package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -1
  60. package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
  61. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  62. package/dist/playbooks/service-build/service-panorama.js +1 -1
  63. package/dist/playbooks/service-build/service-quote.js +1 -1
  64. package/dist/review/index.js +1 -1
  65. package/dist/safety/confirm-gate.js +1 -1
  66. package/dist/schema/benchmark-migration/index.d.ts +64 -10
  67. package/dist/schema/benchmark-migration/index.js +1 -1
  68. package/dist/schema/call/arbitration.js +1 -1
  69. package/dist/schema/call/base.d.ts +8 -0
  70. package/dist/schema/call/bridge.d.ts +2 -0
  71. package/dist/schema/call/error-codes.d.ts +1 -1
  72. package/dist/schema/call/error-codes.js +1 -1
  73. package/dist/schema/call/reward.d.ts +10 -0
  74. package/dist/schema/call/reward.js +1 -1
  75. package/dist/schema/call/semantic.js +1 -1
  76. package/dist/schema/call/service.js +1 -1
  77. package/dist/schema/common/index.js +1 -1
  78. package/dist/schema/evaluation/index.d.ts +152 -0
  79. package/dist/schema/evaluation/index.js +1 -1
  80. package/dist/schema/goal/index.d.ts +2 -0
  81. package/dist/schema/goal/planning.d.ts +3 -0
  82. package/dist/schema/goal/planning.js +1 -1
  83. package/dist/schema/industry-pack/index.d.ts +62 -0
  84. package/dist/schema/industry-pack/modes.d.ts +62 -0
  85. package/dist/schema/industry-pack/modes.js +1 -1
  86. package/dist/schema/intent-radar/index.d.ts +3 -0
  87. package/dist/schema/intent-radar/index.js +1 -1
  88. package/dist/schema/local/index.d.ts +20 -0
  89. package/dist/schema/local/index.js +1 -1
  90. package/dist/schema/operations.d.ts +5 -0
  91. package/dist/schema/query/index.d.ts +145 -47
  92. package/dist/schema/query/index.js +1 -1
  93. package/dist/schema/schema-version.js +1 -1
  94. package/dist/schema-query-impl/index.js +1 -1
  95. package/dist/schemas/account_operation.output.json +2 -0
  96. package/dist/schemas/benchmark_migration_operation.output.json +42 -0
  97. package/dist/schemas/benchmark_migration_operation.schema.json +208 -5
  98. package/dist/schemas/bridge_operation.output.json +2 -0
  99. package/dist/schemas/evaluation_operation.output.json +240 -0
  100. package/dist/schemas/evaluation_operation.schema.json +397 -1
  101. package/dist/schemas/goal_operation.schema.json +18 -10
  102. package/dist/schemas/index.json +1 -1
  103. package/dist/schemas/industry_pack_operation.output.json +86 -2
  104. package/dist/schemas/industry_pack_operation.schema.json +199 -0
  105. package/dist/schemas/intent_radar.output.json +2 -0
  106. package/dist/schemas/intent_radar.schema.json +1 -0
  107. package/dist/schemas/local_cache_operation.output.json +2 -0
  108. package/dist/schemas/local_history_operation.output.json +2 -0
  109. package/dist/schemas/local_info_operation.output.json +2 -0
  110. package/dist/schemas/local_mark_operation.output.json +2 -0
  111. package/dist/schemas/onchain_events.output.json +281 -11
  112. package/dist/schemas/onchain_events.schema.json +5 -1
  113. package/dist/schemas/onchain_operations.output.json +2 -0
  114. package/dist/schemas/onchain_operations.schema.json +37 -3
  115. package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
  116. package/dist/schemas/onchain_operations_reward.schema.json +35 -1
  117. package/dist/schemas/onchain_operations_service.schema.json +1 -1
  118. package/dist/schemas/query_toolkit.output.json +34 -0
  119. package/dist/tools/handlers/benchmark-migration.d.ts +1 -0
  120. package/dist/tools/handlers/benchmark-migration.js +1 -1
  121. package/dist/tools/handlers/config.js +1 -1
  122. package/dist/tools/handlers/evaluation.js +1 -1
  123. package/dist/tools/handlers/evaluation.spec.js +1 -1
  124. package/dist/tools/handlers/intent-radar.js +1 -1
  125. package/dist/tools/handlers/messenger.d.ts +1 -0
  126. package/dist/tools/handlers/messenger.js +1 -1
  127. package/dist/tools/handlers/onchain.d.ts +1 -0
  128. package/dist/tools/handlers/onchain.js +1 -1
  129. package/dist/tools/handlers/query.js +1 -1
  130. package/dist/tools/handlers/wip.js +1 -1
  131. package/dist/tools/registry/agent.js +1 -1
  132. package/dist/tools/registry/query.js +1 -1
  133. package/dist/tools/wip-verify-ledger.d.ts +14 -0
  134. package/dist/tools/wip-verify-ledger.js +1 -0
  135. package/dist/tools/wrap.d.ts +4 -0
  136. package/dist/tools/wrap.js +1 -1
  137. package/package.json +2 -2
@@ -1 +1 @@
1
- import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';const ARB_CASE_FIELD=NameOrAddressSchema['describe']('Arb\x20CASE\x20object\x20—\x20the\x20single\x20dispute\x20case\x20created\x20by\x20`dispute`\x20(the\x20object\x20you\x20may\x20have\x20named\x20via\x20`namedArb`).\x20'+'NOT\x20the\x20arbitrator\x20registration\x20object:\x20that\x20one\x20goes\x20in\x20the\x20ROOT\x20`object`\x20field,\x20while\x20every\x20case-scoped\x20'+'operation\x20(confirm\x20/\x20voting_deadline_change\x20/\x20vote\x20/\x20feedback\x20/\x20arbitration\x20/\x20reset\x20/\x20arb_withdraw)\x20addresses\x20'+'the\x20case\x20through\x20THIS\x20field.\x20Accepts\x20the\x20Arb\x27s\x200x\x20address\x20or\x20its\x20LocalMark\x20name.');export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['describe']('Dispute\x20description.\x20REQUIRED\x20and\x20NON-EMPTY\x20on-chain\x20(the\x20dispute\x20call\x20aborts\x20when\x20it\x20is\x20empty;\x20max\x204000\x20bytes).\x20State\x20what\x20the\x20dispute\x20is\x20about\x20—\x20it\x20is\x20permanent\x20on-chain\x20case\x20context.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).\x20'+'docs#45:\x20the\x20fee\x20does\x20NOT\x20return\x20to\x20the\x20filer\x20on\x20a\x20win\x20—\x20it\x20stays\x20in\x20the\x20Arbitration\x20object\x20and\x20is\x20withdrawable\x20by\x20the\x20arbitrator.'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['default'](null)['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'null\x20(DEFAULT\x20when\x20omitted)\x20=\x20open-ended\x20voting,\x20no\x20deadline;\x20parties\x20may\x20vote\x20at\x20any\x20time\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20after\x20casting\x20at\x20least\x20one\x20ballot\x20(arb.move\x20skips\x20the\x20deadline\x20assert\x20when\x20the\x20Option\x20is\x20none)\x20—\x20this\x20is\x20the\x20SAFE\x20default;\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20bounded\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours);\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20the\x20case\x20PERMANENTLY\x20DEADLOCKS\x20(kl-real-261016\x20F-01,\x20chain-verified):\x20every\x20vote\x20aborts\x20E_VOTING_DEADLINE_PASSED,\x20so\x20no\x20ballot\x20can\x20ever\x20exist,\x20the\x20verdict\x20then\x20aborts\x20E_NO_VOTE_CAST\x20(a\x20verdict\x20requires\x20>=\x201\x20cast\x20ballot),\x20and\x20reset\x20aborts\x20as\x20well.\x20NEVER\x20pass\x200.\x20Direct\x20verdict\x20=\x20null\x20+\x20cast\x20one\x20ballot\x20first,\x20then\x20deliver\x20the\x20verdict.\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20the\x20case\x20PERMANENTLY\x20DEADLOCKS\x20(votes\x20abort\x20E_VOTING_DEADLINE_PASSED,\x20no\x20ballot\x20can\x20ever\x20exist,\x20verdict\x20aborts\x20E_NO_VOTE_CAST,\x20reset\x20aborts).\x20NEVER\x20pass\x200;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20after\x20casting\x20at\x20least\x20one\x20ballot\x20—\x20use\x20this\x20for\x20the\x20immediate-verdict\x20flow:\x20cast\x20one\x20ballot,\x20then\x20deliver);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':ARB_CASE_FIELD,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Voting\x20Guard\x20for\x20WEIGHTED\x20voting.\x20DECISION\x20RULE\x20(contract-enforced):\x0a'+'(A)\x20Arbitration\x20HAS\x20a\x20non-empty\x20voting_guard\x20list\x20→\x20plain\x20vote\x20is\x20REJECTED\x20on-chain\x20with\x20E_VOTING_GUARD_USED\x20(abort\x202).\x20'+'You\x20MUST\x20provide\x20this\x20field\x20set\x20to\x20ONE\x20guard\x20from\x20the\x20Arbitration\x27s\x20voting_guard\x20list,\x20and\x20fill\x20its\x20submission:\x20'+'when\x20the\x20guard\x27s\x20vote_weight\x20is\x20{GuardIdentifier:\x20pos},\x20the\x20number\x20you\x20submit\x20at\x20that\x20table\x20position\x20IS\x20the\x20vote\x20weight;\x20'+'when\x20it\x20is\x20{FixedValue:\x20v},\x20no\x20submission\x20is\x20needed\x20(weight\x20is\x20fixed).\x20The\x20SDK\x20then\x20routes\x20the\x20call\x20through\x20the\x20Guard-weighted\x20vote\x20path\x20via\x20a\x20Passport.\x20'+'Omitting\x20this\x20field\x20on\x20such\x20an\x20Arbitration\x20now\x20fails\x20fast\x20pre-call\x20with\x20the\x20list\x20of\x20valid\x20guards.\x0a'+'(B)\x20Arbitration\x20has\x20NO\x20voting_guard\x20→\x20omit\x20this\x20field;\x20the\x20SDK\x20uses\x20plain\x20vote\x20(weight\x201,\x20permission-gated),\x20or\x20the\x20passport-gated\x20vote\x20path\x20when\x20other\x20guards\x20require\x20it.\x0a'+'BOTH\x20(B)\x20paths\x20still\x20assert\x20ARBITRATION_VOTE=358\x20on-chain\x20(the\x20SDK\x20now\x20pre-checks\x20358\x20and\x20fails\x20fast\x20with\x20\x27Missing\x20permissions\x20358\x27).\x20'+'An\x20empty\x20voting_guard\x20means\x20EQUAL\x20WEIGHT\x20(1\x20person\x201\x20vote),\x20NOT\x20permissionless\x20—\x20there\x20is\x20no\x20permission-free\x20vote\x20entry.\x20'+'For\x20genuinely\x20open\x20voting,\x20configure\x20a\x20public\x20voting_guard\x20(op=\x22set\x22)\x20and\x20vote\x20via\x20path\x20(A):\x20the\x20weighted\x20passport\x20path\x20authorizes\x20by\x20the\x20guard\x20and\x20does\x20NOT\x20require\x20358.\x0a'+'The\x20Guard\x20(when\x20provided)\x20MUST\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list\x20—\x20an\x20unlisted\x20guard\x20aborts\x20with\x20E_VOTING_GUARD_NOT_FOUND.\x20'+'WEIGHTED\x20REVOTE\x20RESIDUE\x20(az3-mn-261013,\x20arb.move:315-320\x20source\x20comment):\x20under\x20weighted\x20voting\x20a\x20re-vote\x20is\x20NOT\x20clean\x20—\x20'+'re-voting\x20with\x20a\x20LARGER\x20weight\x20than\x20the\x20previous\x20one\x20aborts\x20on\x20underflow\x20(re-vote\x20DoS\x20surface);\x20'+'re-voting\x20with\x20a\x20SMALLER\x20weight\x20succeeds\x20but\x20leaves\x20phantom\x20votes\x20behind.\x20Treat\x20the\x20first\x20weighted\x20vote\x20as\x20final\x20when\x20possible.')})['strict']();export const FeedbackSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)['describe']('Awarded\x20compensation\x20in\x20integer\x20smallest\x20units\x20(0\x20=\x20a\x20denial\x20ruling\x20that\x20pays\x20nothing).\x20'+'Hard-capped\x20at\x203x\x20the\x20disputed\x20order\x20amount\x20on\x20chain.\x20Funded\x20from\x20the\x20Service\x27s\x20merchant-prepaid\x20'+'compensation\x20fund\x20—\x20an\x20award\x20larger\x20than\x20the\x20fund\x20balance\x20aborts\x20the\x20later\x20payout\x20until\x20the\x20'+'merchant\x20tops\x20up.\x20A\x20non-zero\x20award\x20consumes\x20the\x20order\x27s\x20one-shot\x20compensation\x20latch:\x20refund\x20rails\x20'+'gated\x20on\x20\x27no\x20award\x20paid\x27\x20can\x20never\x20fire\x20afterwards,\x20so\x20pair\x20them\x20with\x20a\x20merchant-recovery\x20rail\x20at\x20build\x20time.')})['strict']();export const ResetSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':ARB_CASE_FIELD})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.\x20NOTE:\x20the\x20transferred\x20funds\x20arrive\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20Treasury\x20and\x20only\x20count\x20'+'after\x20the\x20Treasury\x20intakes\x20them\x20—\x20call\x20treasury\x20receive:\x20\x22recently\x22\x20(requires\x20permission\x20253\x20TREASURY_RECEIVE\x20on\x20the\x20Treasury).')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('0-based\x20index\x20of\x20the\x20fee\x20payment\x20inside\x20the\x20Arb\x20case\x27s\x20fees\x20table\x20(query\x20the\x20Arb\x20case\x20with\x20onchain_operations\x20type\x20\x27q\x27\x20/\x20onchain_table_data\x20to\x20list\x20its\x20fees\x20and\x20their\x20indices).\x20REQUIRED\x20—\x20without\x20it\x20the\x20transfer\x20cannot\x20name\x20which\x20fee\x20record\x20to\x20move.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order;\x20the\x20case\x20lands\x20directly\x20in\x20state\x201\x20(Arbitrator_confirming)\x20—\x20the\x20customer\x20does\x20not\x20confirm\x20at\x20filing\x20time.\x20FILING\x20IS\x20SERVICE-BOUND:\x20the\x20SDK\x20resolves\x20the\x20order\x27s\x20Service\x20and\x20files\x20through\x20its\x20Service-side\x20dispute\x20entry\x20points,\x20which\x20enforce\x20the\x20merchant\x27s\x20arbitrator\x20allowlist,\x20the\x20service-arbitration\x20neutrality\x20rule\x20and\x20the\x20order\x20binding\x20before\x20the\x20case\x20is\x20minted\x20(venues\x20gated\x20by\x20a\x20usage_guard\x20require\x20the\x20passport\x20path,\x20verified\x20in\x20the\x20same\x20transaction).\x20The\x20arbitration-side\x20filing\x20entries\x20are\x20package-internal\x20and\x20cannot\x20be\x20called\x20directly'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20filing\x20fee.\x20FORMAT:\x20a\x20direct\x20amount\x20value\x20—\x20NOT\x20wrapped\x20in\x20'+'{balance:\x20...}\x20(that\x20CoinParam\x20shape\x20is\x20only\x20for\x20dispute.fee,\x20which\x20pays\x20a\x20coin\x20object).\x20'+'Accepted:\x20smallest-unit\x20number\x20or\x20string\x20(e.g.\x2050000000\x20=\x200.05\x20WOW\x20at\x209\x20decimals),\x20or\x20'+'display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x220.05WOW\x22)\x20—\x20the\x20Fund\x20Processing\x20Layer\x20'+'converts\x20it\x20using\x20the\x20Arbitration\x20object\x27s\x20own\x20token\x20decimals.\x20'+'Default\x200\x20on\x20creation:\x20disputes\x20are\x20then\x20free\x20(the\x20filer\x27s\x20coin\x20is\x20fully\x20refunded\x20on\x20'+'filing)\x20and\x20the\x20arbitrator\x20earns\x20no\x20per-case\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('ARBITRATOR-side\x20material\x20confirmation\x20(from\x20state\x201):\x20moves\x20the\x20case\x20to\x20state\x202\x20(Voting).\x20'+'Customers\x20cannot\x20call\x20this\x20—\x20the\x20customer-side\x20step\x20is\x20order.arb_confirm\x20(state\x200\x20to\x201).'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('ARBITRATOR-side\x20reset\x20(arbitration\x20permission\x20holder;\x20valid\x20from\x20state\x204\x20Objectionable\x20or\x20state\x201):\x20voids\x20the\x20ruling,\x20'+'clears\x20the\x20indemnity\x20and\x20returns\x20the\x20case\x20to\x20state\x200\x20(Principal_confirming).\x20After\x20a\x20reset\x20ONLY\x20the\x20customer\x20can\x20advance\x20the\x20case\x20'+'again\x20via\x20order.arb_confirm\x20—\x20state\x200\x20has\x20no\x20timeout\x20and\x20the\x20fee\x20stays\x20locked\x20until\x20the\x20customer\x20re-confirms.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object\x20(arbitrator).\x20Immediately\x20from\x20state\x205\x20(Finished);\x20from\x20state\x203\x20only\x20after\x2030\x20days\x20'+'from\x20the\x20ruling\x20time\x20(no\x20objection\x20filed\x20—\x20silence\x20=\x20acceptance);\x20rejected\x20in\x20states\x200/1/2.\x20'+'State\x204\x20(Objectionable)\x20can\x20NEVER\x20withdraw\x20(protocol\x20141):\x20a\x20contested\x20case\x20keeps\x20its\x20fee\x20escrowed\x20until\x20the\x20customer\x20'+'closes\x20the\x20objection\x20cycle\x20—\x20reset\x20→\x20order.arb_confirm\x20→\x20new\x20ruling\x20→\x20unchallenged\x20(or\x20accepted\x20via\x20finish).\x20'+'⚠️\x20TWO-STAGE\x20FEE\x20CASH-OUT\x20(verified\x20on\x20testnet):\x20this\x20call\x20does\x20NOT\x20pay\x20the\x20arbitrator\x27s\x20wallet\x20—\x20it\x20moves\x20the\x20case\x20fee\x20'+'into\x20the\x20Arbitration\x20(Registration)\x20object\x27s\x20own\x20balance\x20pool.\x20To\x20actually\x20receive\x20the\x20money:\x20'+'fees_transfer\x20(to\x20a\x20treasury\x20or\x20allocation)\x20→\x20treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20→\x20treasury\x20withdraw\x20→\x20'+'recipient\x20payment\x20receive.\x20A\x20successful\x20arb_withdraw\x20with\x20no\x20wallet\x20balance\x20change\x20is\x20EXPECTED,\x20not\x20a\x20failure.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.\x20Moves\x20the\x20Arbitration\x27s\x20ENTIRE\x20balance\x20in\x20ONE\x20call\x20—\x20there\x20is\x20NO\x20amount\x20parameter.\x20'+'The\x20balance\x20leaves\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20target\x20(allocation\x20or\x20treasury);\x20for\x20a\x20treasury\x20target,\x20intake\x20it\x20with\x20'+'treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20—\x20see\x20the\x20\x27to\x27\x20field\x20description.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Arbitration\x20operations.\x20TWO\x20OBJECT\x20KINDS\x20—\x20do\x20not\x20confuse\x20them\x20(§5.9):\x20the\x20ROOT\x20\x27object\x27\x20field\x20is\x20the\x20Arbitration\x20(arbitrator\x20REGISTRATION)\x20object;\x20the\x20Arb\x20(single\x20CASE)\x20created\x20by\x20\x27dispute\x27\x20is\x20addressed\x20via\x20each\x20case\x20operation\x27s\x20\x27arb\x27\x20field.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20⚠️\x20PERMISSION\x20RULE\x20(contract-enforced):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
1
+ import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';const ARB_CASE_FIELD=NameOrAddressSchema['describe']('Arb\x20CASE\x20object\x20—\x20the\x20single\x20dispute\x20case\x20created\x20by\x20`dispute`\x20(the\x20object\x20you\x20may\x20have\x20named\x20via\x20`namedArb`).\x20'+'NOT\x20the\x20arbitrator\x20registration\x20object:\x20that\x20one\x20goes\x20in\x20the\x20ROOT\x20`object`\x20field,\x20while\x20every\x20case-scoped\x20'+'operation\x20(confirm\x20/\x20voting_deadline_change\x20/\x20vote\x20/\x20feedback\x20/\x20arbitration\x20/\x20reset\x20/\x20arb_withdraw)\x20addresses\x20'+'the\x20case\x20through\x20THIS\x20field.\x20Accepts\x20the\x20Arb\x27s\x200x\x20address\x20or\x20its\x20LocalMark\x20name.');export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['describe']('Dispute\x20description.\x20REQUIRED\x20and\x20NON-EMPTY\x20on-chain\x20(the\x20dispute\x20call\x20aborts\x20when\x20it\x20is\x20empty;\x20max\x204000\x20bytes).\x20State\x20what\x20the\x20dispute\x20is\x20about\x20—\x20it\x20is\x20permanent\x20on-chain\x20case\x20context.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).\x20'+'docs#45:\x20the\x20fee\x20does\x20NOT\x20return\x20to\x20the\x20filer\x20on\x20a\x20win\x20—\x20it\x20stays\x20in\x20the\x20Arbitration\x20object\x20and\x20is\x20withdrawable\x20by\x20the\x20arbitrator.'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['default'](null)['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'null\x20(DEFAULT\x20when\x20omitted)\x20=\x20open-ended\x20voting,\x20no\x20deadline;\x20parties\x20may\x20vote\x20at\x20any\x20time\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20after\x20casting\x20at\x20least\x20one\x20ballot\x20(arb.move\x20skips\x20the\x20deadline\x20assert\x20when\x20the\x20Option\x20is\x20none)\x20—\x20this\x20is\x20the\x20SAFE\x20default;\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20bounded\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours);\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20the\x20case\x20PERMANENTLY\x20DEADLOCKS\x20(kl-real-261016\x20F-01,\x20chain-verified):\x20every\x20vote\x20aborts\x20E_VOTING_DEADLINE_PASSED,\x20so\x20no\x20ballot\x20can\x20ever\x20exist,\x20the\x20verdict\x20then\x20aborts\x20E_NO_VOTE_CAST\x20(a\x20verdict\x20requires\x20>=\x201\x20cast\x20ballot),\x20and\x20reset\x20aborts\x20as\x20well.\x20NEVER\x20pass\x200.\x20Direct\x20verdict\x20=\x20null\x20+\x20cast\x20one\x20ballot\x20first,\x20then\x20deliver\x20the\x20verdict.\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':ARB_CASE_FIELD,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20the\x20case\x20PERMANENTLY\x20DEADLOCKS\x20(votes\x20abort\x20E_VOTING_DEADLINE_PASSED,\x20no\x20ballot\x20can\x20ever\x20exist,\x20verdict\x20aborts\x20E_NO_VOTE_CAST,\x20reset\x20aborts).\x20NEVER\x20pass\x200;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20after\x20casting\x20at\x20least\x20one\x20ballot\x20—\x20use\x20this\x20for\x20the\x20immediate-verdict\x20flow:\x20cast\x20one\x20ballot,\x20then\x20deliver);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':ARB_CASE_FIELD,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Voting\x20Guard\x20for\x20WEIGHTED\x20voting.\x20DECISION\x20RULE\x20(contract-enforced):\x0a'+'(A)\x20Arbitration\x20HAS\x20a\x20non-empty\x20voting_guard\x20list\x20→\x20plain\x20vote\x20is\x20REJECTED\x20on-chain\x20with\x20E_VOTING_GUARD_USED\x20(abort\x202).\x20'+'You\x20MUST\x20provide\x20this\x20field\x20set\x20to\x20ONE\x20guard\x20from\x20the\x20Arbitration\x27s\x20voting_guard\x20list,\x20and\x20fill\x20its\x20submission:\x20'+'when\x20the\x20guard\x27s\x20vote_weight\x20is\x20{GuardIdentifier:\x20pos},\x20the\x20number\x20you\x20submit\x20at\x20that\x20table\x20position\x20IS\x20the\x20vote\x20weight;\x20'+'when\x20it\x20is\x20{FixedValue:\x20v},\x20no\x20submission\x20is\x20needed\x20(weight\x20is\x20fixed).\x20The\x20SDK\x20then\x20routes\x20the\x20call\x20through\x20the\x20Guard-weighted\x20vote\x20path\x20via\x20a\x20Passport.\x20'+'Omitting\x20this\x20field\x20on\x20such\x20an\x20Arbitration\x20now\x20fails\x20fast\x20pre-call\x20with\x20the\x20list\x20of\x20valid\x20guards.\x0a'+'(B)\x20Arbitration\x20has\x20NO\x20voting_guard\x20→\x20omit\x20this\x20field;\x20the\x20SDK\x20uses\x20plain\x20vote\x20(weight\x201,\x20permission-gated),\x20or\x20the\x20passport-gated\x20vote\x20path\x20when\x20other\x20guards\x20require\x20it.\x0a'+'BOTH\x20(B)\x20paths\x20still\x20assert\x20ARBITRATION_VOTE=358\x20on-chain\x20(the\x20SDK\x20now\x20pre-checks\x20358\x20and\x20fails\x20fast\x20with\x20\x27Missing\x20permissions\x20358\x27).\x20'+'An\x20empty\x20voting_guard\x20means\x20EQUAL\x20WEIGHT\x20(1\x20person\x201\x20vote),\x20NOT\x20permissionless\x20—\x20there\x20is\x20no\x20permission-free\x20vote\x20entry.\x20'+'For\x20genuinely\x20open\x20voting,\x20configure\x20a\x20public\x20voting_guard\x20(op=\x22set\x22)\x20and\x20vote\x20via\x20path\x20(A):\x20the\x20weighted\x20passport\x20path\x20authorizes\x20by\x20the\x20guard\x20and\x20does\x20NOT\x20require\x20358.\x0a'+'The\x20Guard\x20(when\x20provided)\x20MUST\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list\x20—\x20an\x20unlisted\x20guard\x20aborts\x20with\x20E_VOTING_GUARD_NOT_FOUND.\x20'+'WEIGHTED\x20REVOTE\x20RESIDUE\x20(az3-mn-261013,\x20arb.move:315-320\x20source\x20comment):\x20under\x20weighted\x20voting\x20a\x20re-vote\x20is\x20NOT\x20clean\x20—\x20'+'re-voting\x20with\x20a\x20LARGER\x20weight\x20than\x20the\x20previous\x20one\x20aborts\x20on\x20underflow\x20(re-vote\x20DoS\x20surface);\x20'+'re-voting\x20with\x20a\x20SMALLER\x20weight\x20succeeds\x20but\x20leaves\x20phantom\x20votes\x20behind.\x20Treat\x20the\x20first\x20weighted\x20vote\x20as\x20final\x20when\x20possible.')})['strict']();export const FeedbackSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)['describe']('Awarded\x20compensation\x20in\x20integer\x20smallest\x20units\x20(0\x20=\x20a\x20denial\x20ruling\x20that\x20pays\x20nothing).\x20'+'Hard-capped\x20at\x203x\x20the\x20disputed\x20order\x20amount\x20on\x20chain.\x20Funded\x20from\x20the\x20Service\x27s\x20merchant-prepaid\x20'+'compensation\x20fund\x20—\x20an\x20award\x20larger\x20than\x20the\x20fund\x20balance\x20aborts\x20the\x20later\x20payout\x20until\x20the\x20'+'merchant\x20tops\x20up.\x20A\x20non-zero\x20award\x20consumes\x20the\x20order\x27s\x20one-shot\x20compensation\x20latch:\x20refund\x20rails\x20'+'gated\x20on\x20\x27no\x20award\x20paid\x27\x20can\x20never\x20fire\x20afterwards,\x20so\x20pair\x20them\x20with\x20a\x20merchant-recovery\x20rail\x20at\x20build\x20time.')})['strict']();export const ResetSchema=z['object']({'arb':ARB_CASE_FIELD,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':ARB_CASE_FIELD})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.\x20NOTE:\x20the\x20transferred\x20funds\x20arrive\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20Treasury\x20and\x20only\x20count\x20'+'after\x20the\x20Treasury\x20intakes\x20them\x20—\x20call\x20treasury\x20receive:\x20\x22recently\x22\x20(requires\x20permission\x20253\x20TREASURY_RECEIVE\x20on\x20the\x20Treasury).')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('0-based\x20index\x20of\x20the\x20fee\x20payment\x20inside\x20the\x20Arb\x20case\x27s\x20fees\x20table\x20(query\x20the\x20Arb\x20case\x20with\x20onchain_operations\x20type\x20\x27q\x27\x20/\x20onchain_table_data\x20to\x20list\x20its\x20fees\x20and\x20their\x20indices).\x20REQUIRED\x20—\x20without\x20it\x20the\x20transfer\x20cannot\x20name\x20which\x20fee\x20record\x20to\x20move.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order;\x20the\x20case\x20lands\x20directly\x20in\x20state\x201\x20(Arbitrator_confirming)\x20—\x20the\x20customer\x20does\x20not\x20confirm\x20at\x20filing\x20time.\x20FILING\x20IS\x20SERVICE-BOUND:\x20the\x20SDK\x20resolves\x20the\x20order\x27s\x20Service\x20and\x20files\x20through\x20its\x20Service-side\x20dispute\x20entry\x20points,\x20which\x20enforce\x20the\x20merchant\x27s\x20arbitrator\x20allowlist,\x20the\x20service-arbitration\x20neutrality\x20rule\x20and\x20the\x20order\x20binding\x20before\x20the\x20case\x20is\x20minted\x20(venues\x20gated\x20by\x20a\x20usage_guard\x20require\x20the\x20passport\x20path,\x20verified\x20in\x20the\x20same\x20transaction).\x20The\x20arbitration-side\x20filing\x20entries\x20are\x20package-internal\x20and\x20cannot\x20be\x20called\x20directly'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20filing\x20fee.\x20FORMAT:\x20a\x20direct\x20amount\x20value\x20—\x20NOT\x20wrapped\x20in\x20'+'{balance:\x20...}\x20(that\x20CoinParam\x20shape\x20is\x20only\x20for\x20dispute.fee,\x20which\x20pays\x20a\x20coin\x20object).\x20'+'Accepted:\x20smallest-unit\x20number\x20or\x20string\x20(e.g.\x2050000000\x20=\x200.05\x20WOW\x20at\x209\x20decimals),\x20or\x20'+'display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x220.05WOW\x22)\x20—\x20the\x20Fund\x20Processing\x20Layer\x20'+'converts\x20it\x20using\x20the\x20Arbitration\x20object\x27s\x20own\x20token\x20decimals.\x20'+'Default\x200\x20on\x20creation:\x20disputes\x20are\x20then\x20free\x20(the\x20filer\x27s\x20coin\x20is\x20fully\x20refunded\x20on\x20'+'filing)\x20and\x20the\x20arbitrator\x20earns\x20no\x20per-case\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('ARBITRATOR-side\x20material\x20confirmation\x20(from\x20state\x201):\x20moves\x20the\x20case\x20to\x20state\x202\x20(Voting).\x20'+'Customers\x20cannot\x20call\x20this\x20—\x20the\x20customer-side\x20step\x20is\x20order.arb_confirm\x20(state\x200\x20to\x201).'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('ARBITRATOR-side\x20reset\x20(arbitration\x20permission\x20holder;\x20valid\x20from\x20state\x204\x20Objectionable\x20or\x20state\x201):\x20voids\x20the\x20ruling,\x20'+'clears\x20the\x20indemnity\x20and\x20returns\x20the\x20case\x20to\x20state\x200\x20(Principal_confirming).\x20After\x20a\x20reset\x20ONLY\x20the\x20customer\x20can\x20advance\x20the\x20case\x20'+'again\x20via\x20order.arb_confirm\x20—\x20state\x200\x20has\x20no\x20timeout\x20and\x20the\x20fee\x20stays\x20locked\x20until\x20the\x20customer\x20re-confirms.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object\x20(arbitrator).\x20Immediately\x20from\x20state\x205\x20(Finished);\x20from\x20state\x203\x20only\x20after\x2030\x20days\x20'+'from\x20the\x20ruling\x20time\x20(no\x20objection\x20filed\x20—\x20silence\x20=\x20acceptance);\x20rejected\x20in\x20states\x200/1/2.\x20'+'State\x204\x20(Objectionable)\x20can\x20NEVER\x20withdraw\x20(protocol\x20141):\x20a\x20contested\x20case\x20keeps\x20its\x20fee\x20escrowed\x20until\x20the\x20customer\x20'+'closes\x20the\x20objection\x20cycle\x20—\x20reset\x20→\x20order.arb_confirm\x20→\x20new\x20ruling\x20→\x20unchallenged\x20(or\x20accepted\x20via\x20finish).\x20'+'⚠️\x20TWO-STAGE\x20FEE\x20CASH-OUT\x20(verified\x20on\x20testnet):\x20this\x20call\x20does\x20NOT\x20pay\x20the\x20arbitrator\x27s\x20wallet\x20—\x20it\x20moves\x20the\x20case\x20fee\x20'+'into\x20the\x20Arbitration\x20(Registration)\x20object\x27s\x20own\x20balance\x20pool.\x20To\x20actually\x20receive\x20the\x20money:\x20'+'fees_transfer\x20(to\x20a\x20treasury\x20or\x20allocation)\x20→\x20treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20→\x20treasury\x20withdraw\x20→\x20'+'recipient\x20payment\x20receive.\x20A\x20successful\x20arb_withdraw\x20with\x20no\x20wallet\x20balance\x20change\x20is\x20EXPECTED,\x20not\x20a\x20failure.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.\x20SHAPE\x20(exact\x20—\x20a\x20malformed\x20shape\x20aborts\x20on-chain\x20with\x20'+'CommandArgumentError\x20TypeMismatch,\x20observed\x20on\x20testnet):\x20\x27to\x27\x20is\x20a\x20SINGLE-KEY\x20object\x20with\x20EXACTLY\x20ONE\x20of\x20'+'{allocation:\x20\x27<Allocation\x20object\x20ID\x20or\x20registered\x20name>\x27}\x20or\x20{treasury:\x20\x27<Treasury\x20object\x20ID\x20or\x20registered\x20name>\x27}.\x20'+'The\x20value\x20must\x20reference\x20an\x20actual\x20Allocation\x20/\x20Treasury\x20OBJECT\x20(its\x20on-chain\x20address\x20or\x20LocalMark\x20name)\x20—\x20'+'a\x20plain\x20wallet\x20address,\x20the\x20Arb\x20case,\x20or\x20the\x20Arbitration\x20registration\x20object\x20is\x20NOT\x20a\x20valid\x20target.\x20'+'payment_index\x20is\x20REQUIRED\x20and\x20must\x20name\x20an\x20existing\x20fee\x20payment\x20record\x20in\x20the\x20Arb\x20case\x27s\x20fees\x20table\x20'+'(list\x20the\x20fees\x20and\x20their\x20indices\x20via\x20onchain_operations\x20type\x20\x27q\x27\x20/\x20onchain_table_data\x20on\x20the\x20Arb\x20case).\x20'+'Moves\x20the\x20Arbitration\x27s\x20ENTIRE\x20balance\x20pool\x20in\x20ONE\x20call\x20—\x20there\x20is\x20NO\x20amount\x20parameter;\x20the\x20pool\x20must\x20be\x20'+'funded\x20first\x20with\x20arb_withdraw.\x20The\x20balance\x20leaves\x20as\x20a\x20CoinWrapper\x20owned\x20by\x20the\x20target;\x20for\x20a\x20treasury\x20'+'target,\x20intake\x20it\x20with\x20treasury\x20receive:\x20\x22recently\x22\x20(permission\x20253)\x20—\x20see\x20the\x20\x27to\x27\x20field\x20description.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Arbitration\x20operations.\x20TWO\x20OBJECT\x20KINDS\x20—\x20do\x20not\x20confuse\x20them\x20(§5.9):\x20the\x20ROOT\x20\x27object\x27\x20field\x20is\x20the\x20Arbitration\x20(arbitrator\x20REGISTRATION)\x20object;\x20the\x20Arb\x20(single\x20CASE)\x20created\x20by\x20\x27dispute\x27\x20is\x20addressed\x20via\x20each\x20case\x20operation\x27s\x20\x27arb\x27\x20field.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20⚠️\x20PERMISSION\x20RULE\x20(contract-enforced):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
@@ -998,6 +998,8 @@ export declare const CallResponseErrorSchema: z.ZodObject<{
998
998
  move_abort_unmapped: "move_abort_unmapped";
999
999
  missing_data: "missing_data";
1000
1000
  state_not_visible: "state_not_visible";
1001
+ anchor_unavailable: "anchor_unavailable";
1002
+ delivery_unknown: "delivery_unknown";
1001
1003
  }>>;
1002
1004
  retryable: z.ZodOptional<z.ZodBoolean>;
1003
1005
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -1969,6 +1971,8 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1969
1971
  move_abort_unmapped: "move_abort_unmapped";
1970
1972
  missing_data: "missing_data";
1971
1973
  state_not_visible: "state_not_visible";
1974
+ anchor_unavailable: "anchor_unavailable";
1975
+ delivery_unknown: "delivery_unknown";
1972
1976
  }>>;
1973
1977
  retryable: z.ZodOptional<z.ZodBoolean>;
1974
1978
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -3437,6 +3441,8 @@ export declare const CallOutputFailedSchema: z.ZodObject<{
3437
3441
  move_abort_unmapped: "move_abort_unmapped";
3438
3442
  missing_data: "missing_data";
3439
3443
  state_not_visible: "state_not_visible";
3444
+ anchor_unavailable: "anchor_unavailable";
3445
+ delivery_unknown: "delivery_unknown";
3440
3446
  }>>;
3441
3447
  retryable: z.ZodOptional<z.ZodBoolean>;
3442
3448
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -5166,6 +5172,8 @@ export declare const CallOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5166
5172
  move_abort_unmapped: "move_abort_unmapped";
5167
5173
  missing_data: "missing_data";
5168
5174
  state_not_visible: "state_not_visible";
5175
+ anchor_unavailable: "anchor_unavailable";
5176
+ delivery_unknown: "delivery_unknown";
5169
5177
  }>>;
5170
5178
  retryable: z.ZodOptional<z.ZodBoolean>;
5171
5179
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -1108,6 +1108,8 @@ export declare const BridgeCallOutputSchema: z.ZodObject<{
1108
1108
  move_abort_unmapped: "move_abort_unmapped";
1109
1109
  missing_data: "missing_data";
1110
1110
  state_not_visible: "state_not_visible";
1111
+ anchor_unavailable: "anchor_unavailable";
1112
+ delivery_unknown: "delivery_unknown";
1111
1113
  }>>;
1112
1114
  retryable: z.ZodOptional<z.ZodBoolean>;
1113
1115
  recovery_hint: z.ZodOptional<z.ZodString>;
@@ -1,2 +1,2 @@
1
- export declare const ERROR_CODE_VALUES: readonly ["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "pool_shortage", "transaction_expired", "stock_exhausted", "sale_suspended", "discount_invalid", "object_not_found", "permission_denied", "time_lock_not_elapsed", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "insufficient_gas", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "wip_storage_unavailable", "wip_storage_rejected", "submission_unknown", "move_abort_unmapped", "missing_data", "state_not_visible", "unknown"];
1
+ export declare const ERROR_CODE_VALUES: readonly ["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "pool_shortage", "transaction_expired", "stock_exhausted", "sale_suspended", "discount_invalid", "object_not_found", "permission_denied", "time_lock_not_elapsed", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "insufficient_gas", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "wip_storage_unavailable", "wip_storage_rejected", "submission_unknown", "move_abort_unmapped", "missing_data", "state_not_visible", "anchor_unavailable", "delivery_unknown", "unknown"];
2
2
  export type ErrorCodeValue = (typeof ERROR_CODE_VALUES)[number];
@@ -1 +1 @@
1
- export const ERROR_CODE_VALUES=['invalid_parameter','guard_rejected','state_conflict','insufficient_balance','pool_shortage','transaction_expired','stock_exhausted','sale_suspended','discount_invalid','object_not_found','permission_denied','time_lock_not_elapsed','immutable_violation','network_error','rate_limit','gas_exceeded','insufficient_gas','bcs_error','signature_error','config_error','wip_verification_failed','wip_storage_unavailable','wip_storage_rejected','submission_unknown','move_abort_unmapped','missing_data','state_not_visible','unknown'];
1
+ export const ERROR_CODE_VALUES=['invalid_parameter','guard_rejected','state_conflict','insufficient_balance','pool_shortage','transaction_expired','stock_exhausted','sale_suspended','discount_invalid','object_not_found','permission_denied','time_lock_not_elapsed','immutable_violation','network_error','rate_limit','gas_exceeded','insufficient_gas','bcs_error','signature_error','config_error','wip_verification_failed','wip_storage_unavailable','wip_storage_rejected','submission_unknown','move_abort_unmapped','missing_data','state_not_visible','anchor_unavailable','delivery_unknown','unknown'];
@@ -54,6 +54,11 @@ export declare const CallReward_DataSchema: z.ZodObject<{
54
54
  }, z.core.$strip>], "type">;
55
55
  expiration_time: z.ZodOptional<z.ZodNumber>;
56
56
  store_from_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
57
+ evidence: z.ZodOptional<z.ZodObject<{
58
+ repo: z.ZodString;
59
+ key: z.ZodArray<z.ZodNumber>;
60
+ predicate: z.ZodArray<z.ZodNumber>;
61
+ }, z.core.$strict>>;
57
62
  }, z.core.$strip>>>;
58
63
  guard_remove: z.ZodOptional<z.ZodString>;
59
64
  guard_expiration_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
@@ -143,6 +148,11 @@ export declare const CallReward_InputSchema: z.ZodObject<{
143
148
  }, z.core.$strip>], "type">;
144
149
  expiration_time: z.ZodOptional<z.ZodNumber>;
145
150
  store_from_id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
151
+ evidence: z.ZodOptional<z.ZodObject<{
152
+ repo: z.ZodString;
153
+ key: z.ZodArray<z.ZodNumber>;
154
+ predicate: z.ZodArray<z.ZodNumber>;
155
+ }, z.core.$strict>>;
146
156
  }, z.core.$strip>>>;
147
157
  guard_remove: z.ZodOptional<z.ZodString>;
148
158
  guard_expiration_time: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
@@ -1 +1 @@
1
- import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
1
+ import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].\x20OPTIONAL\x20EVIDENCE\x20BINDING\x20(ksk9d2-tn-261026\x20F-01):\x20an\x20entry\x20may\x20carry\x20evidence\x20{repo,\x20key,\x20predicate}\x20—\x20a\x20claim-time\x20attestation\x20pin\x20that\x20counts\x20ONLY\x20repository\x20rows\x20tied\x20to\x20THIS\x20claim\x27s\x20own\x20store_from\x20value\x20(the\x20submitted\x20order),\x20so\x20borrowed/foreign\x20rows\x20never\x20satisfy\x20the\x20bounty;\x20it\x20requires\x20store_from_id\x20on\x20the\x20same\x20guard\x20(a\x20missing\x20pin\x20aborts\x2016\x20at\x20build\x20time)\x20and\x20a\x20claim\x20whose\x20order\x20has\x20no\x20matching\x20attestation\x20row\x20aborts\x2015.'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();