@wowok/agent-mcp 2.7.6 → 2.7.8

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 (243) hide show
  1. package/dist/customer/index.d.ts +3 -4
  2. package/dist/customer/index.js +1 -1
  3. package/dist/customer/info-puzzle.js +1 -1
  4. package/dist/customer/order-monitor.d.ts +0 -9
  5. package/dist/customer/order-monitor.js +1 -1
  6. package/dist/customer/order-strategy.d.ts +0 -19
  7. package/dist/customer/order-strategy.js +1 -1
  8. package/dist/customer/reminder-system.d.ts +0 -5
  9. package/dist/customer/reminder-system.js +1 -1
  10. package/dist/evaluation/game-strategy.js +1 -1
  11. package/dist/evaluation/injection.d.ts +6 -0
  12. package/dist/evaluation/injection.js +1 -0
  13. package/dist/evaluation/node-game.js +1 -1
  14. package/dist/examples/machine-multisig-threshold.json +1 -0
  15. package/dist/harness/recover.js +1 -1
  16. package/dist/harness/types.d.ts +1 -1
  17. package/dist/harness/verify.js +1 -1
  18. package/dist/intent/enrich.js +1 -1
  19. package/dist/intent/matcher.js +1 -1
  20. package/dist/intent/types.d.ts +1 -1
  21. package/dist/intent/types.js +1 -1
  22. package/dist/knowledge/arbitration-ledger.js +1 -1
  23. package/dist/knowledge/contract-invariants.d.ts +53 -0
  24. package/dist/knowledge/contract-invariants.js +1 -0
  25. package/dist/knowledge/deployment-scanner.js +1 -1
  26. package/dist/knowledge/dynamic-pricing.d.ts +0 -2
  27. package/dist/knowledge/dynamic-pricing.js +1 -1
  28. package/dist/knowledge/event-semantics.d.ts +20 -0
  29. package/dist/knowledge/event-semantics.js +1 -0
  30. package/dist/knowledge/examples-scanner-cli.js +1 -1
  31. package/dist/knowledge/examples-scanner.js +1 -1
  32. package/dist/knowledge/glossary.js +1 -1
  33. package/dist/knowledge/guard-submission-prompt.js +1 -1
  34. package/dist/knowledge/immutability.d.ts +11 -0
  35. package/dist/knowledge/immutability.js +1 -0
  36. package/dist/knowledge/index.d.ts +12 -6
  37. package/dist/knowledge/index.js +1 -1
  38. package/dist/knowledge/industry-registry.js +1 -1
  39. package/dist/knowledge/intent-metrics.d.ts +1 -1
  40. package/dist/knowledge/jsonrpc-enum.d.ts +37 -0
  41. package/dist/knowledge/jsonrpc-enum.js +1 -0
  42. package/dist/knowledge/machine-confirm.js +1 -1
  43. package/dist/knowledge/machine-risk.js +1 -1
  44. package/dist/knowledge/machine-topology.d.ts +11 -0
  45. package/dist/knowledge/machine-topology.js +1 -1
  46. package/dist/knowledge/machine-translation.js +1 -1
  47. package/dist/knowledge/market-metrics.d.ts +11 -0
  48. package/dist/knowledge/market-metrics.js +1 -1
  49. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  50. package/dist/knowledge/mcp-schema-audit.d.ts +1 -0
  51. package/dist/knowledge/mcp-schema-audit.js +1 -1
  52. package/dist/knowledge/messenger-guard-guidance.d.ts +17 -0
  53. package/dist/knowledge/messenger-guard-guidance.js +1 -0
  54. package/dist/knowledge/operation-dictionary.d.ts +18 -0
  55. package/dist/knowledge/operation-dictionary.js +1 -0
  56. package/dist/knowledge/service-ledger.js +1 -1
  57. package/dist/knowledge/service-risk.js +1 -1
  58. package/dist/knowledge/service-translation.js +1 -1
  59. package/dist/knowledge/supply-chain.d.ts +24 -0
  60. package/dist/knowledge/supply-chain.js +1 -0
  61. package/dist/knowledge/template-registry.js +1 -1
  62. package/dist/knowledge/tools-reference.js +1 -1
  63. package/dist/knowledge/trust-metrics.d.ts +27 -2
  64. package/dist/knowledge/trust-metrics.js +1 -1
  65. package/dist/knowledge/workflow-guidance.d.ts +22 -1
  66. package/dist/knowledge/workflow-guidance.js +1 -1
  67. package/dist/monitor/EventStore.d.ts +78 -0
  68. package/dist/monitor/EventStore.js +1 -0
  69. package/dist/participation/radar-core.d.ts +0 -1
  70. package/dist/participation/radar-core.js +1 -1
  71. package/dist/persona/address-format.d.ts +6 -0
  72. package/dist/persona/address-format.js +1 -0
  73. package/dist/persona/analyzer.js +1 -1
  74. package/dist/persona/index.d.ts +3 -0
  75. package/dist/persona/index.js +1 -1
  76. package/dist/persona/types.d.ts +1 -1
  77. package/dist/persona/types.js +1 -1
  78. package/dist/project/business-puzzle.js +1 -1
  79. package/dist/project/edit-planner.js +1 -1
  80. package/dist/project/evaluation-fix.spec.d.ts +1 -0
  81. package/dist/project/evaluation-fix.spec.js +1 -0
  82. package/dist/project/evaluation.js +1 -1
  83. package/dist/project/graph-builder.js +1 -1
  84. package/dist/project/handlers.d.ts +2 -18
  85. package/dist/project/handlers.js +1 -1
  86. package/dist/project/index.js +1 -1
  87. package/dist/project/machine-nodes.d.ts +23 -0
  88. package/dist/project/machine-nodes.js +1 -1
  89. package/dist/project/machine-panorama.d.ts +41 -0
  90. package/dist/project/machine-panorama.js +1 -0
  91. package/dist/project/object-panorama.d.ts +179 -0
  92. package/dist/project/object-panorama.js +1 -0
  93. package/dist/project/object-type.d.ts +1 -0
  94. package/dist/project/object-type.js +1 -0
  95. package/dist/project/participation-radar.js +1 -1
  96. package/dist/project/semantic-assembler.js +1 -1
  97. package/dist/project/service-panorama.d.ts +180 -0
  98. package/dist/project/service-panorama.js +1 -0
  99. package/dist/project/stage-gate.d.ts +0 -1
  100. package/dist/project/stage-gate.js +1 -1
  101. package/dist/project/task-tracker.d.ts +4 -0
  102. package/dist/project/task-tracker.js +1 -1
  103. package/dist/role/derivation.d.ts +19 -2
  104. package/dist/role/derivation.js +1 -1
  105. package/dist/role/index.d.ts +2 -2
  106. package/dist/role/index.js +1 -1
  107. package/dist/role/model.js +1 -1
  108. package/dist/role/resolution.d.ts +16 -0
  109. package/dist/role/resolution.js +1 -1
  110. package/dist/role/types.d.ts +1 -1
  111. package/dist/role/types.js +1 -1
  112. package/dist/safety/confirm-gate.js +1 -1
  113. package/dist/schema/call/allocation.d.ts +10 -0
  114. package/dist/schema/call/arbitration.d.ts +14 -3
  115. package/dist/schema/call/arbitration.js +1 -1
  116. package/dist/schema/call/base.d.ts +16 -0
  117. package/dist/schema/call/base.js +1 -1
  118. package/dist/schema/call/bridge.d.ts +7 -0
  119. package/dist/schema/call/contact.d.ts +11 -0
  120. package/dist/schema/call/demand.d.ts +11 -0
  121. package/dist/schema/call/guard.d.ts +3 -0
  122. package/dist/schema/call/handler.js +1 -1
  123. package/dist/schema/call/machine.d.ts +12 -0
  124. package/dist/schema/call/machine.js +1 -1
  125. package/dist/schema/call/order.d.ts +11 -0
  126. package/dist/schema/call/payment.d.ts +4 -3
  127. package/dist/schema/call/payment.js +1 -1
  128. package/dist/schema/call/permission.d.ts +11 -0
  129. package/dist/schema/call/personal.d.ts +38 -0
  130. package/dist/schema/call/personal.js +1 -1
  131. package/dist/schema/call/progress.d.ts +11 -0
  132. package/dist/schema/call/proof.d.ts +2 -0
  133. package/dist/schema/call/repository.d.ts +15 -4
  134. package/dist/schema/call/reward.d.ts +17 -12
  135. package/dist/schema/call/reward.js +1 -1
  136. package/dist/schema/call/semantic.d.ts +3 -2
  137. package/dist/schema/call/semantic.js +1 -1
  138. package/dist/schema/call/service.d.ts +17 -0
  139. package/dist/schema/call/service.js +1 -1
  140. package/dist/schema/call/treasury.d.ts +17 -0
  141. package/dist/schema/common/index.d.ts +21 -0
  142. package/dist/schema/common/index.js +1 -1
  143. package/dist/schema/evaluation/index.d.ts +146 -0
  144. package/dist/schema/evaluation/index.js +1 -1
  145. package/dist/schema/index.d.ts +1 -0
  146. package/dist/schema/index.js +1 -1
  147. package/dist/schema/intent-radar/index.d.ts +30 -3
  148. package/dist/schema/intent-radar/index.js +1 -1
  149. package/dist/schema/local/index.d.ts +9 -0
  150. package/dist/schema/local/index.js +1 -1
  151. package/dist/schema/messenger/index.d.ts +54 -0
  152. package/dist/schema/messenger/index.js +1 -1
  153. package/dist/schema/operations.d.ts +932 -9
  154. package/dist/schema/operations.js +1 -1
  155. package/dist/schema/permission/index.d.ts +17 -0
  156. package/dist/schema/permission/index.js +1 -1
  157. package/dist/schema/project/index.d.ts +6 -0
  158. package/dist/schema/project/index.js +1 -1
  159. package/dist/schema/query/index.d.ts +663 -56
  160. package/dist/schema/query/index.js +1 -1
  161. package/dist/schema/schema-version.js +1 -1
  162. package/dist/schema/trust/index.d.ts +17 -0
  163. package/dist/schema/trust/index.js +1 -1
  164. package/dist/schema/watch/index.d.ts +204 -0
  165. package/dist/schema/watch/index.js +1 -0
  166. package/dist/schema/workflow/index.d.ts +301 -0
  167. package/dist/schema/workflow/index.js +1 -1
  168. package/dist/schema-query-impl/index.js +1 -1
  169. package/dist/schemas/account_operation.output.json +5 -2
  170. package/dist/schemas/bridge_operation.output.json +5 -2
  171. package/dist/schemas/bridge_operation.schema.json +25 -9
  172. package/dist/schemas/evaluation_operation.output.json +276 -1
  173. package/dist/schemas/evaluation_operation.schema.json +307 -0
  174. package/dist/schemas/guard2file.schema.json +6 -2
  175. package/dist/schemas/index.json +13 -1
  176. package/dist/schemas/intent_radar.output.json +20 -2
  177. package/dist/schemas/intent_radar.schema.json +10 -1
  178. package/dist/schemas/local_info_operation.output.json +5 -2
  179. package/dist/schemas/local_mark_operation.output.json +5 -2
  180. package/dist/schemas/machineNode2file.schema.json +6 -2
  181. package/dist/schemas/messenger_operation.output.json +105 -2
  182. package/dist/schemas/messenger_operation.schema.json +98 -0
  183. package/dist/schemas/monitor_events.output.json +1360 -0
  184. package/dist/schemas/monitor_events.schema.json +62 -0
  185. package/dist/schemas/onchain_events.output.json +237 -14
  186. package/dist/schemas/onchain_events.schema.json +20 -0
  187. package/dist/schemas/onchain_operations.output.json +10 -5
  188. package/dist/schemas/onchain_operations.schema.json +768 -409
  189. package/dist/schemas/onchain_operations_allocation.schema.json +23 -7
  190. package/dist/schemas/onchain_operations_arbitration.schema.json +34 -9
  191. package/dist/schemas/onchain_operations_contact.schema.json +29 -5
  192. package/dist/schemas/onchain_operations_demand.schema.json +29 -5
  193. package/dist/schemas/onchain_operations_gen_passport.schema.json +6 -2
  194. package/dist/schemas/onchain_operations_gen_proof.schema.json +6 -2
  195. package/dist/schemas/onchain_operations_guard.schema.json +6 -2
  196. package/dist/schemas/onchain_operations_machine.schema.json +34 -10
  197. package/dist/schemas/onchain_operations_order.schema.json +29 -5
  198. package/dist/schemas/onchain_operations_payment.schema.json +13 -10
  199. package/dist/schemas/onchain_operations_permission.schema.json +29 -5
  200. package/dist/schemas/onchain_operations_personal.schema.json +44 -2
  201. package/dist/schemas/onchain_operations_progress.schema.json +29 -5
  202. package/dist/schemas/onchain_operations_proof.schema.json +6 -2
  203. package/dist/schemas/onchain_operations_repository.schema.json +310 -305
  204. package/dist/schemas/onchain_operations_reward.schema.json +46 -10
  205. package/dist/schemas/onchain_operations_service.schema.json +49 -13
  206. package/dist/schemas/onchain_operations_treasury.schema.json +46 -10
  207. package/dist/schemas/onchain_table_data.output.json +3750 -208
  208. package/dist/schemas/onchain_table_data.schema.json +311 -0
  209. package/dist/schemas/permission_operation.output.json +32 -0
  210. package/dist/schemas/project_operation.schema.json +14 -8
  211. package/dist/schemas/query_toolkit.output.json +425 -320
  212. package/dist/schemas/query_toolkit.schema.json +139 -1
  213. package/dist/schemas/trust_score.output.json +38 -0
  214. package/dist/schemas/trust_score.schema.json +32 -0
  215. package/dist/schemas/watch_operation.output.json +827 -0
  216. package/dist/schemas/watch_operation.schema.json +145 -0
  217. package/dist/schemas/workflow_operation.output.json +263 -5
  218. package/dist/schemas/workflow_operation.schema.json +597 -2
  219. package/dist/tools/handlers/config.js +1 -1
  220. package/dist/tools/handlers/evaluation.js +1 -1
  221. package/dist/tools/handlers/intent-radar.js +1 -1
  222. package/dist/tools/handlers/messenger.js +1 -1
  223. package/dist/tools/handlers/monitor.d.ts +2 -0
  224. package/dist/tools/handlers/monitor.js +1 -0
  225. package/dist/tools/handlers/onchain.js +1 -1
  226. package/dist/tools/handlers/permission.js +1 -1
  227. package/dist/tools/handlers/project.js +1 -1
  228. package/dist/tools/handlers/query.js +1 -1
  229. package/dist/tools/handlers/trust.d.ts +14 -0
  230. package/dist/tools/handlers/trust.js +1 -1
  231. package/dist/tools/handlers/watch.d.ts +2 -0
  232. package/dist/tools/handlers/watch.js +1 -0
  233. package/dist/tools/handlers/workflow.js +1 -1
  234. package/dist/tools/index.d.ts +2 -0
  235. package/dist/tools/index.js +1 -1
  236. package/dist/tools/shared.js +1 -1
  237. package/package.json +2 -2
  238. package/dist/customer/post-purchase.d.ts +0 -44
  239. package/dist/customer/post-purchase.js +0 -1
  240. package/dist/project/migration.d.ts +0 -22
  241. package/dist/project/migration.js +0 -1
  242. package/dist/project/rollback-policy.d.ts +0 -45
  243. package/dist/project/rollback-policy.js +0 -1
@@ -1 +1 @@
1
- import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,CacheExpireTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,QueryReceivedResultSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/index.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName,isValidWitnessType}from'../utils/guard-query-utils.js';import{ENTITY_LINKER_ADDRESS,ENTITY_REGISTRAR_ADDRESS,isWitnessType}from'@wowok/wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.',tolerantNumber=z['union']([z['number'](),z['string']()]),tolerantStringNullable=z['union']([z['string'](),z['null']()])['optional'](),tolerantNumberNullable=z['union']([z['number'](),z['string'](),z['null']()])['optional']();export const AmountTypeSchema=z['union']([z['enum'](['GuardU64Identifier','Fixed']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'GuardU64Identifier':a===0x1?'Fixed':'GuardU64Identifier')])['describe']('Amount\x20type\x20—\x20determines\x20how\x20a\x20payment\x20amount\x20is\x20resolved.\x20'+'Accepts\x20string\x20(\x27GuardU64Identifier\x27\x20or\x20\x27Fixed\x27)\x20or\x20number\x20(0=\x27GuardU64Identifier\x27,\x201=\x27Fixed\x27).\x20String\x20form\x20is\x20recommended\x20for\x20readability.\x20'+'•\x20\x27GuardU64Identifier\x27\x20(0):\x20the\x20amount\x20is\x20NOT\x20fixed\x20—\x20it\x20is\x20dynamically\x20read\x20from\x20a\x20U64\x20value\x20stored\x20in\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20Identifier\x20index.\x20Use\x20this\x20when\x20the\x20amount\x20varies\x20per\x20order\x20(e.g.\x20milestone-based\x20pricing,\x20negotiated\x20price).\x20The\x20Guard\x20must\x20have\x20a\x20matching\x20U64\x20entry.\x20'+'•\x20\x27Fixed\x27\x20(1):\x20the\x20amount\x20is\x20a\x20fixed\x20value\x20set\x20in\x20the\x20sale/price\x20field.\x20Use\x20this\x20for\x20products\x20with\x20a\x20static\x20price\x20(e.g.\x20service\x20fee\x20=\x2050\x20SUI).\x20'+'Example:\x20{price:\x2050000000000,\x20stock:\x20100,\x20amount_type:\x20\x27Fixed\x27}\x20→\x20fixed\x2050\x20SUI\x20price.\x20'+'Example:\x20{price:\x200,\x20stock:\x20100,\x20amount_type:\x20\x27GuardU64Identifier\x27}\x20→\x20price\x20read\x20from\x20Guard\x20table\x20U64\x20entry.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Static\x20address\x20resolved\x20via\x20LocalMark.\x20'+'Format:\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20—\x20NOTE:\x20Entity\x20is\x20an\x20OBJECT\x20with\x20name_or_address\x20field,\x20NOT\x20a\x20bare\x20string.'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20(tx_context::sender)\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call.\x20'+'For\x20refunds,\x20the\x20Order\x20owner\x20must\x20call\x20alloc_by_guard\x20themselves\x20to\x20receive\x20the\x20funds.')])['describe']('Recipient\x20ID.\x20Three\x20forms:\x0a'+'\x20\x20-\x20{GuardIdentifier:\x20u8}\x20\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x0a'+'\x20\x20-\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20\x20—\x20FIXED\x20static\x20address\x20via\x20LocalMark\x20(recommended)\x0a'+'\x20\x20-\x20{Signer:\x20\x27signer\x27}\x20\x20—\x20transaction\x20sender\x20at\x20alloc()\x20time\x20(e.g.\x20self-refund;\x20customer\x20must\x20call\x20alloc_by_guard\x20themselves)');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'who':z['string']()['describe']('Voter\x20address'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'favor':z['boolean']()['optional']()['describe']('Whether\x20favorited\x20(收藏)'),'time':tolerantNumber['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':tolerantNumber['describe']('Current\x20follow\x20information\x20position'),'count':tolerantNumber['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityContactSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'contact':z['string']()['describe']('Contact\x20(customer-service\x20book)\x20address\x20the\x20entity\x20is\x20a\x20member\x20of'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20membership\x20was\x20last\x20modified')}))['describe']('Contacts\x20the\x20entity\x20is\x20a\x20member\x20of')})['describe']('Entity\x20contact\x20membership\x20reverse\x20index\x20item');export const TableItem_ObjectLinkerCoreSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Core\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(lossless\x20fixed)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20core\x20object\x20bound')}))['describe']('Core\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20core\x20reverse\x20index\x20item');export const TableItem_ObjectLinkerTxSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Tx\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(FIFO\x20window)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20tx\x20object\x20bound')}))['describe']('Recent\x20tx\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20tx\x20reverse\x20index\x20item');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':tolerantNumber['describe']('On-chain\x20registration\x20time'),'referrer':tolerantStringNullable['describe']('Referrer'),'mark_object':tolerantStringNullable['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('Demand\x20location'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('WIP\x20file\x20URL.\x20EMPTY\x20string\x20\x22\x22\x20skips\x20verification\x20(TESTING\x20ONLY).\x20'+'Production\x20MUST\x20use\x20a\x20real\x20HTTP\x20URL\x20pointing\x20to\x20a\x20.wip\x20file\x20generated\x20by\x20the\x20wip_file\x20tool.\x20'+'⚠️\x20NETWORK\x20DEPLOYMENT\x20REQUIRED:\x20the\x20URL\x20is\x20stored\x20ON-CHAIN\x20and\x20every\x20customer\x20fetches\x20it\x20'+'when\x20placing\x20an\x20order.\x20A\x20local\x20file\x20path\x20(C:\x5c...,\x20/path/file.wip),\x20a\x20localhost/loopback\x20URL\x20'+'or\x20a\x20LAN\x20private-IP\x20URL\x20is\x20unreachable\x20by\x20customers\x20on\x20other\x20machines\x20—\x20it\x20passes\x20the\x20'+'merchant-side\x20set-time\x20verification\x20but\x20makes\x20order_new\x20abort\x20100%\x20for\x20customers.\x20'+'Either\x20deploy\x20the\x20.wip\x20file\x20to\x20a\x20public\x20endpoint\x20(GitHub\x20Pages\x20/\x20IPFS\x20/\x20your\x20own\x20website)\x20'+'and\x20set\x20this\x20to\x20the\x20public\x20URL,\x20or\x20leave\x20it\x20empty\x20(\x22\x22)\x20to\x20skip\x20WIP\x20verification\x20(TESTING\x20ONLY).\x20'+'Example:\x20\x22https://cdn.example.com/products/phone_v1.wip\x22'),'wip_hash':z['string']()['describe']('SHA-256\x20hash\x20(hex\x20string)\x20of\x20the\x20sale\x27s\x20WIP\x20file,\x20committed\x20on-chain\x20by\x20the\x20merchant.\x20'+'BUY\x20RULE:\x20if\x20this\x20is\x20NON-EMPTY,\x20the\x20buyer\x20MUST\x20pass\x20this\x20exact\x20value\x20as\x20wip_hash\x20when\x20creating\x20an\x20order\x20'+'(ServiceBuyItem.wip_hash)\x20—\x20NEVER\x20use\x20\x22\x22.\x20Pinning\x20the\x20on-chain\x20hash\x20prevents\x20the\x20merchant\x20from\x20replacing\x20'+'the\x20WIP\x20file\x20(a\x20legitimate\x20update)\x20between\x20the\x20buyer\x27s\x20view\x20and\x20order\x20placement,\x20ensuring\x20\x27what\x20you\x20see\x20is\x20'+'what\x20you\x20get\x27.\x20EMPTY\x20means\x20no\x20hash\x20was\x20committed\x20(TESTING\x20ONLY,\x20no\x20delivery-integrity\x20guarantee).')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Arb\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Used\x20to\x20define\x20submitted\x20data\x20after\x20Guard\x20verification'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':tolerantNumber['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':tolerantNumber['describe']('Total\x20operation\x20weight'),'threshold':tolerantNumber['default'](0x0)['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20Guard\x20list.\x20When\x20one\x20of\x20the\x20Guards\x20is\x20successfully\x20verified\x20in\x20a\x20transaction,\x20the\x20relevant\x20recipient\x20will\x20receive\x20the\x20reward\x20amount.'),'balance':BalanceTypeSchema['describe']('Current\x20balance\x20of\x20reward\x20object'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20reward\x20claimer\x20records.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RewardRecord\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['union']([z['enum'](['Amount','Rate','Surplus']),z['number']()['int']()['min'](0x0)['max'](0x2)['transform'](a=>a===0x0?'Amount':a===0x1?'Rate':a===0x2?'Surplus':'Amount')])['describe']('Allocation\x20mode\x20—\x20determines\x20how\x20the\x20`sharing`\x20field\x20is\x20interpreted.\x20'+'Three\x20modes\x20can\x20be\x20used\x20individually\x20OR\x20combined\x20within\x20a\x20single\x20Allocator;\x20'+'when\x20combined,\x20allocation\x20order\x20is\x20strictly:\x20Amount\x20first,\x20then\x20Rate,\x20then\x20Surplus.\x20'+'Understanding\x20these\x20modes\x20allows\x20modeling\x20almost\x20any\x20fund\x20distribution\x20pattern.\x0a'+'•\x20Amount\x20(0):\x20`sharing`\x20is\x20a\x20FIXED\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20=\x200.75\x20WOW).\x20'+'Allocated\x20FIRST;\x20sum\x20of\x20all\x20Amount\x20items\x20is\x20cached\x20as\x20`fix`\x20by\x20the\x20contract.\x20'+'Validation:\x20when\x20no\x20Rate\x20and\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20allocators.threshold\x20(EAMOUNT_BELOW_THRESHOLD=12);\x20'+'when\x20`max`\x20is\x20set,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13).\x0a'+'•\x20Rate\x20(1):\x20`sharing`\x20is\x20a\x20basis-points\x20rate\x20(10000\x20=\x20100%).\x20'+'Allocated\x20AFTER\x20Amount;\x20formula:\x20allocated\x20=\x20(sharing\x20×\x20total_rates)\x20/\x2010000,\x20'+'where\x20total_rates\x20=\x20balance\x20-\x20fix\x20(or\x20max\x20-\x20fix\x20if\x20`max`\x20is\x20set).\x20'+'Validation:\x20when\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20EXACTLY\x2010000\x20(ERATE_NOT_10000=4);\x20'+'when\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20<=\x2010000\x20(ERATE_EXCEEDS_10000=6).\x0a'+'•\x20Surplus\x20(2):\x20`sharing`\x20is\x20IGNORED\x20(contract\x20forces\x20it\x20to\x200).\x20'+'Allocated\x20LAST;\x20receives\x20the\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x20'+'Validation:\x20MAX\x20ONE\x20Surplus\x20item\x20per\x20Allocator\x20(EMULTIPLE_SURPLUS=5).\x20'+'When\x20Surplus\x20exists,\x20Rate\x20sum\x20constraint\x20relaxes\x20from\x20==\x2010000\x20to\x20<=\x2010000.\x0a'+'ALLOCATION\x20ORDER\x20(strict):\x20Amount\x20items\x20(fixed,\x20cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance-fix)\x20→\x20Surplus\x20item\x20(remaining).\x0a'+'RECOMMENDATION:\x20Use\x20Amount\x20mode\x20for\x20known\x20fixed\x20amounts\x20(clearer,\x20no\x20sum\x20constraint).\x20'+'Use\x20Rate\x20mode\x20for\x20proportional\x20splits\x20(requires\x20sum\x20==\x2010000\x20unless\x20Surplus\x20present).\x20'+'Use\x20Surplus\x20to\x20capture\x20remainder\x20(e.g.,\x20platform\x20fee\x20+\x20host\x20gets\x20rest).\x20'+'Accepts\x20string\x20(\x27Amount\x27/\x27Rate\x27/\x27Surplus\x27,\x20recommended)\x20or\x20number\x20(0/1/2).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20of\x20this\x20allocation.\x20Three\x20forms\x20—\x20each\x20resolves\x20the\x20address\x20at\x20a\x20DIFFERENT\x20time:\x0a'+'•\x20{\x20GuardIdentifier:\x20u8\x20}\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x20(contract\x20calls\x20passport::submission_get).\x20'+'Use\x200\x20for\x20Order\x20owner\x20in\x20Service-integrated\x20mode\x20(Customer\x20who\x20created\x20the\x20Order).\x20'+'The\x20identifier\x20must\x20match\x20a\x20Guard\x20table\x20entry\x20with\x20b_submission=true.\x20'+'If\x20Passport\x20has\x20no\x20matching\x20submission,\x20contract\x20aborts\x20with\x20E_VERIFY_FAILED.\x20'+'Use\x20when\x20the\x20recipient\x20address\x20is\x20not\x20known\x20at\x20config\x20time\x20and\x20must\x20be\x20supplied\x20via\x20Guard\x20submission\x20data.\x0a'+'•\x20{\x20Entity:\x20{\x20name_or_address:\x20\x27...\x27\x20}\x20}\x20—\x20FIXED\x20address\x20resolved\x20via\x20LocalMark\x20at\x20SDK\x20build\x20time\x20(passed\x20to\x20contract\x20as\x20a\x20literal\x20address).\x20'+'Use\x20for\x20known\x20recipients\x20(e.g.,\x20\x27turo_host\x27,\x20or\x20a\x20Treasury\x20object\x20address).\x20'+'Use\x20when\x20the\x20recipient\x20is\x20a\x20stable,\x20known\x20address\x20(e.g.,\x20operator\x20receives\x20rent,\x20platform\x20fee\x20to\x20treasury).\x0a'+'•\x20\x27Signer\x27\x20—\x20the\x20transaction\x20sender\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call\x20(tx_context::sender).\x20'+'RESOLVED\x20AT\x20EXECUTION\x20TIME,\x20not\x20at\x20config\x20time.\x20'+'For\x20refunds:\x20the\x20customer\x20(Order\x20owner)\x20must\x20call\x20alloc_by_guard\x20THEMSELVES\x20so\x20that\x20tx_context::sender\x20resolves\x20to\x20THEIR\x20address\x20—\x20'+'if\x20the\x20operator\x20calls\x20alloc_by_guard,\x20the\x20operator\x20becomes\x20the\x20recipient\x20(Signer\x20=\x20operator),\x20NOT\x20the\x20customer.\x20'+'Use\x20when\x20the\x20recipient\x20is\x20whoever\x20submits\x20the\x20allocation\x20transaction\x20(e.g.,\x20customer\x20receives\x20refund).'),'sharing':BalanceTypeSchema['describe']('Allocation\x20value.\x20SEMANTICS\x20DEPEND\x20ON\x20`mode`:\x0a'+'•\x20mode=\x27Amount\x27:\x20absolute\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20for\x200.75\x20WOW,\x20\x27250000000\x27\x20for\x200.25\x20WOW).\x20'+'Allocated\x20first;\x20sum\x20of\x20Amount\x20items\x20cached\x20as\x20`fix`.\x0a'+'•\x20mode=\x27Rate\x27:\x20basis-points\x20rate,\x2010000\x20=\x20100%\x20(e.g.,\x20\x277500\x27\x20for\x2075%,\x20\x272500\x27\x20for\x2025%).\x20'+'When\x20no\x20Surplus\x20in\x20same\x20Allocator,\x20sum\x20MUST\x20==\x2010000;\x20when\x20Surplus\x20present,\x20sum\x20MUST\x20<=\x2010000.\x0a'+'•\x20mode=\x27Surplus\x27:\x20IGNORED\x20(contract\x20forces\x20to\x200).\x20Set\x20to\x20\x270\x27\x20for\x20clarity.\x20'+'Receives\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-2):\x20the\x20value\x20is\x20PRE-CONFIGURED\x20and\x20STATIC.\x20A\x20continuous/conditional\x20amount\x20'+'(e.g.\x20\x27pay\x20exactly\x20the\x20assessed\x20loss\x20amount\x27)\x20CANNOT\x20be\x20expressed\x20—\x20there\x20is\x20no\x20runtime\x20formula\x20field.\x20'+'Model\x20variable\x20payouts\x20as\x20(a)\x20a\x20fixed-tier\x20Allocator\x20list\x20guarded\x20by\x20distinct\x20Guards,\x20or\x20(b)\x20an\x20Amount\x20'+'with\x20a\x20`max`\x20cap\x20—\x20both\x20are\x20finite\x20configurations,\x20not\x20free-form\x20formulas.'),'mode':AllocationModeSchema})['describe']('Fund\x20allocation\x20item\x20—\x20one\x20recipient\x27s\x20share\x20of\x20the\x20Allocation\x20balance.\x20'+'The\x20`sharing`\x20value\x27s\x20meaning\x20depends\x20on\x20`mode`\x20(see\x20AllocationModeSchema).\x20'+'Multiple\x20items\x20in\x20the\x20same\x20Allocator\x20are\x20evaluated\x20together:\x20Amount\x20items\x20first,\x20Rate\x20items\x20second,\x20Surplus\x20last.');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.\x20If\x20Guard\x20verification\x20passes\x20(via\x20Passport),\x20fund\x20allocation\x20for\x20THIS\x20Allocator\x20fires.\x20'+'Each\x20Allocator\x20in\x20an\x20Allocators\x20list\x20can\x20have\x20a\x20different\x20Guard\x20—\x20the\x20first\x20Allocator\x20whose\x20Guard\x20returns\x20true\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x20refund\x20Guard\x20on\x20\x27return_approved\x27\x20node\x20vs\x20damage\x20Guard\x20on\x20\x27damage_confirmed\x27\x20node).'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20specifies\x20a\x20recipient\x20(who),\x20a\x20value\x20(sharing),\x20and\x20a\x20mode.\x20'+'Items\x20can\x20mix\x20modes\x20(Amount\x20+\x20Rate\x20+\x20Surplus)\x20within\x20the\x20same\x20Allocator.\x20'+'ALLOCATION\x20ORDER:\x20Amount\x20items\x20first\x20(cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance\x20-\x20fix)\x20→\x20Surplus\x20item\x20(remaining).\x20'+'CONSTRAINTS:\x20max\x20ONE\x20Surplus\x20item\x20per\x20Allocator;\x20Rate\x20sum\x20must\x20==\x2010000\x20(no\x20Surplus)\x20or\x20<=\x2010000\x20(with\x20Surplus);\x20'+'Amount\x20sum\x20must\x20>=\x20threshold\x20(no\x20Rate\x20and\x20no\x20Surplus)\x20and\x20<=\x20max\x20(if\x20max\x20set).'),'fix':BalanceTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20result).\x20Cached\x20sum\x20of\x20all\x20Amount-mode\x20`sharing`\x20values\x20in\x20this\x20Allocator.\x20'+'Computed\x20by\x20the\x20contract\x20during\x20`allocator_add`\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20creation.\x20'+'Used\x20internally\x20to\x20compute\x20`total_rates\x20=\x20balance\x20-\x20fix`\x20for\x20Rate\x20allocation.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20cap\x20(OPTIONAL\x20—\x20omit\x20the\x20field\x20or\x20set\x20to\x20null\x20to\x20disable\x20the\x20cap;\x20do\x20NOT\x20set\x20to\x200\x20as\x20that\x20means\x20a\x20cap\x20of\x20zero).\x20'+'Passed\x20through\x20to\x20the\x20contract\x20as\x20Option<u64>\x20via\x20allocator_add():\x20when\x20null/omitted\x20the\x20contract\x20treats\x20it\x20as\x20`none`\x20(no\x20cap);\x20'+'when\x20set,\x20the\x20contract\x20enforces\x20it.\x20Has\x20THREE\x20effects\x20when\x20set:\x0a'+'1.\x20Construction:\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13)\x0a'+'2.\x20Rate\x20execution:\x20total_rates\x20=\x20max\x20-\x20fix\x20(instead\x20of\x20balance\x20-\x20fix)\x0a'+'3.\x20Surplus\x20execution:\x20surplus_amount\x20=\x20max\x20-\x20alloced_amount\x20(instead\x20of\x20balance\x20-\x20alloced_amount)\x0a'+'Use\x20when\x20you\x20want\x20to\x20cap\x20total\x20allocation\x20regardless\x20of\x20Order\x20balance\x20(e.g.,\x20cap\x20payout\x20to\x20declared\x20amount).\x20'+'SDK\x20pre-validates\x20Amount\x20sum\x20<=\x20max\x20at\x20build\x20time\x20to\x20give\x20actionable\x20error\x20messages\x20before\x20on-chain\x20abort.')})['describe']('Fund\x20allocator\x20—\x20a\x20complete\x20allocation\x20strategy\x20triggered\x20by\x20a\x20Guard.\x20'+'Contains\x20a\x20sharing[]\x20array\x20where\x20items\x20can\x20mix\x20Amount/Rate/Surplus\x20modes.\x20'+'When\x20the\x20Guard\x20passes,\x20the\x20contract\x20allocates\x20funds\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['default'](0x0)['describe']('Minimum\x20balance\x20required\x20for\x20allocation\x20to\x20fire.\x20'+'When\x20the\x20Allocation\x20object\x27s\x20balance\x20<\x20threshold,\x20allocation\x20aborts\x20with\x20EINSUFFICIENT_BALANCE=7.\x20'+'Also:\x20when\x20an\x20Allocator\x20has\x20only\x20Amount\x20items\x20(no\x20Rate,\x20no\x20Surplus),\x20the\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20threshold\x20(EAMOUNT_BELOW_THRESHOLD=12).\x20'+'Set\x20to\x200\x20(default)\x20to\x20allow\x20any\x20balance.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20allocator\x20is\x20evaluated\x20in\x20order;\x20the\x20FIRST\x20allocator\x20whose\x20Guard\x20passes\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x203\x20allocators\x20for\x203\x20forward\x20paths:\x20refund\x20/\x20damage-deduct\x20/\x20arbitrate).')})['describe']('Fund\x20allocator\x20list\x20—\x20the\x20top-level\x20allocation\x20configuration\x20attached\x20to\x20an\x20Order.\x20'+'Contains\x20a\x20threshold\x20and\x20a\x20list\x20of\x20Allocators.\x20When\x20funds\x20arrive\x20at\x20the\x20Order,\x20'+'the\x20first\x20Allocator\x20whose\x20Guard\x20passes\x20executes\x20its\x20sharing[]\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.\x20'+'MULTI-TIER\x20ALLOCATION\x20(DOC-04):\x20Each\x20Order\x20binds\x20ONE\x20Allocators\x20template\x20(set\x20on\x20Service.order_allocators\x20before\x20publish).\x20'+'For\x20multi-tier\x20distribution\x20(e.g.,\x20customer→agency→suppliers),\x20use\x20a\x20two-phase\x20approach:\x20'+'(1)\x20Tier-1\x20Allocators\x20on\x20the\x20customer\x27s\x20Order\x20(allocates\x20to\x20agency\x20+\x20refund\x20fund);\x20'+'(2)\x20Tier-2\x20Allocators\x20on\x20a\x20NEW\x20Order\x20created\x20by\x20the\x20agency\x20(allocates\x20agency\x27s\x20received\x20funds\x20to\x20suppliers).\x20'+'Each\x20tier\x27s\x20Rate-mode\x20sharing[]\x20must\x20independently\x20sum\x20to\x2010000\x20(or\x20<=\x2010000\x20with\x20Surplus).');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('Service\x20object\x20location'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused.\x20SPECIAL\x20CASE:\x20publish\x20auto-sets\x20bPaused=false\x20—\x20no\x20separate\x20unpause\x20call\x20needed\x20after\x20publish.'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20BALANCE\x20(NOT\x20a\x20Treasury\x20address).\x20'+'This\x20field\x20reports\x20the\x20total\x20amount\x20of\x20funds\x20currently\x20held\x20in\x20the\x20Service\x27s\x20compensation\x20pool.\x20'+'To\x20ADD\x20funds,\x20use\x20`service.compensation_fund_add`.\x20To\x20RECEIVE\x20funds\x20(as\x20order\x20owner\x20after\x20arbitration),\x20use\x20`service.compensation_fund_receive`.\x20'+'P2-03\x20clarification:\x20this\x20is\x20a\x20balance\x20value\x20(e.g.\x20{balance:\x20\x271000000000\x27,\x20token_type:\x20\x270x2::wow::WOW\x27}),\x20NOT\x20the\x20Treasury\x20object\x20address.\x20'+'The\x20Treasury\x20address\x20(if\x20bound)\x20is\x20queried\x20separately\x20via\x20the\x20Service\x27s\x20`repositories`\x20or\x20`order_allocators`\x20configuration.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'setting_lock_duration':z['union']([z['string'](),z['number'](),z['bigint']()])['describe']('Lock\x20duration\x20for\x20critical\x20settings.\x20After\x20Service\x20is\x20published,\x20modifications\x20to\x20\x27order_allocators\x27,\x20\x27rewards\x27,\x20\x27arbitrations\x27,\x20\x27machine\x27,\x20and\x20withdrawal\x20from\x20\x27compensation_fund\x27\x20must\x20exceed\x20the\x20\x27setting_lock_duration\x27\x20lock\x20time.'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['enum'](['RATES','FIXED']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'RATES':a===0x1?'FIXED':'RATES')])['describe']('Discount\x20type.\x20Accepts\x20string\x20(\x27RATES\x27\x20or\x20\x27FIXED\x27)\x20or\x20number\x20(0=\x27RATES\x27,\x201=\x27FIXED\x27).\x20If\x20rate(0/RATES),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1/FIXED),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).\x20String\x20form\x20is\x20recommended.');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20balance'),'history_count':z['number']()['describe']('Transaction\x20record\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27TreasuryRecord\x27\x20table\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Inflow\x20amount'),'outflow':BalanceTypeSchema['describe']('Outflow\x20amount'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.')});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['describe']('Guard\x20object\x20ID'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':tolerantNumber['describe']('Reward\x20time'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20or\x20virtual\x20location\x20information\x20for\x20this\x20contact'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20dislike\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['union']([z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20numeric\x20value.\x20Valid\x20range:\x20100-108.'}),z['string']()['refine'](a=>isValidWitnessType(a),{'message':'Invalid\x20WitnessType\x20string\x20name.\x20Valid\x20names:\x20OrderProgress\x20(100),\x20OrderMachine\x20(101),\x20OrderService\x20(102),\x20ProgressMachine\x20(103),\x20ArbOrder\x20(104),\x20ArbArbitration\x20(105),\x20ArbProgress\x20(106),\x20ArbMachine\x20(107),\x20ArbService\x20(108).\x20Case-insensitive;\x20\x22Type\x22\x20prefix\x20is\x20optional.'})])['describe']('When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20(witness)\x20object\x20instead\x20of\x20the\x20queried\x20object\x20itself.\x20This\x20enables\x20cross-object\x20queries\x20within\x20Guard\x20validation\x20logic.\x20Can\x20be\x20a\x20numeric\x20ID\x20(100-108)\x20or\x20a\x20string\x20name\x20(case-insensitive,\x20with\x20or\x20without\x20the\x20\x27Type\x27\x20prefix).\x20String\x20format\x20is\x20recommended\x20for\x20readability.\x0a\x0aAvailable\x20WitnessTypes:\x0a-\x20OrderProgress\x20/\x20TypeOrderProgress\x20(100):\x20Query\x20an\x20Order\x27s\x20associated\x20Progress\x20object.\x20Use\x20case:\x20Check\x20if\x20order\x20has\x20reached\x20a\x20specific\x20workflow\x20node\x20(e.g.,\x20\x27complete\x27)\x20before\x20allowing\x20reward\x20claims.\x0a-\x20OrderMachine\x20/\x20TypeOrderMachine\x20(101):\x20Query\x20an\x20Order\x27s\x20associated\x20Machine\x20(workflow\x20definition).\x20Use\x20case:\x20Verify\x20the\x20workflow\x20structure\x20or\x20check\x20node\x20configurations.\x0a-\x20OrderService\x20/\x20TypeOrderService\x20(102):\x20Query\x20an\x20Order\x27s\x20parent\x20Service\x20object.\x20Use\x20case:\x20Validate\x20the\x20service\x20offering\x20details\x20or\x20check\x20service-level\x20configurations.\x0a-\x20ProgressMachine\x20/\x20TypeProgressMachine\x20(103):\x20Query\x20a\x20Progress\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20from\x20a\x20Progress\x20context.\x0a-\x20ArbOrder\x20/\x20TypeArbOrder\x20(104):\x20Query\x20an\x20Arb\x27s\x20associated\x20Order.\x20Use\x20case:\x20In\x20arbitration\x20voting\x20guards,\x20verify\x20order\x20details\x20like\x20payment\x20amount\x20or\x20service\x20ID.\x0a-\x20ArbArbitration\x20/\x20TypeArbArbitration\x20(105):\x20Query\x20an\x20Arb\x27s\x20parent\x20Arbitration\x20service.\x20Use\x20case:\x20Access\x20arbitration\x20configuration\x20or\x20fee\x20settings\x20from\x20within\x20an\x20Arb\x20case.\x0a-\x20ArbProgress\x20/\x20TypeArbProgress\x20(106):\x20Query\x20an\x20Arb\x27s\x20associated\x20Progress.\x20Use\x20case:\x20Check\x20order\x20workflow\x20state\x20during\x20arbitration\x20validation.\x0a-\x20ArbMachine\x20/\x20TypeArbMachine\x20(107):\x20Query\x20an\x20Arb\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20for\x20dispute\x20context\x20analysis.\x0a-\x20ArbService\x20/\x20TypeArbService\x20(108):\x20Query\x20an\x20Arb\x27s\x20associated\x20Service.\x20Use\x20case:\x20Verify\x20service\x20terms\x20or\x20compensation\x20fund\x20status\x20during\x20arbitration.\x0a\x0aExample:\x20To\x20validate\x20that\x20an\x20order\x20has\x20reached\x20the\x20\x27complete\x27\x20node,\x20query\x20the\x20Order\x20with\x20convert_witness=\x27OrderProgress\x27\x20and\x20check\x20the\x20Progress\x27s\x20current_node\x20field.');export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['optional']()['describe']('Parameters\x20required\x20by\x20the\x20query.\x20Optional\x20—\x20defaults\x20to\x20empty\x20array\x20[].\x20Many\x20queries\x20(e.g.\x20progress.current,\x20order.service)\x20take\x20no\x20parameters;\x20for\x20those,\x20this\x20field\x20can\x20be\x20omitted.')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.\x20SPECIAL\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Use\x20system\x20addresses\x20in\x20the\x20Guard\x20table\x20-'+ENTITY_LINKER_ADDRESS+'\x20for\x20EntityLinker\x20queries,\x20'+ENTITY_REGISTRAR_ADDRESS+'\x20for\x20EntityRegistrar\x20queries.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_and\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_and.')['max'](MAX_MULTI_OPERANDS,'logic_and\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_or\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_or.')['max'](MAX_MULTI_OPERANDS,'logic_or\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).'),z['object']({'type':z['literal']('query_reward_record_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20record,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20record.'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20reward\x20record\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20Returns\x20the\x20record\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20record\x20is\x20found\x20(Guard\x20validation\x20fails).\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20count\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20reward\x20records\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_exists'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20existence\x20query.')})['strict']()['describe']('Returns\x20Bool.\x20Returns\x20true\x20if\x20at\x20least\x20one\x20reward\x20record\x20exists\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions,\x20otherwise\x20false.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_progress_history_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'where':z['object']({'node':z['string']()['optional']()['describe']('Optional\x20filter:\x20node\x20name\x20string\x20to\x20match.'),'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20history\x20entry,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20history\x20entry.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20history\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20entry\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20search\x20within.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20session,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20session.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20session\x20within\x20the\x20specified\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20session\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20session\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_forward_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'who':z['string']()['optional']()['describe']('Optional\x20filter:\x20operator\x20address\x20string\x20to\x20match.'),'operation':z['string']()['optional']()['describe']('Optional\x20filter:\x20operation\x20name\x20string\x20to\x20match.'),'accomplished':z['boolean']()['optional']()['describe']('Optional\x20filter:\x20whether\x20the\x20forward\x20operation\x20was\x20accomplished.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20forward\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20forward\x20operation,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20forward\x20operation.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20forward\x20operation\x20within\x20the\x20specified\x20history\x20session\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20forward\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20forward\x20operation\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20count\x20sessions\x20for.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20sessions\x20within\x20the\x20specified\x20history\x20entry.'),z['object']({'type':z['literal']('query_progress_history_session_forward_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20forward\x20operations\x20within\x20the\x20specified\x20history\x20session.'),z['object']({'type':z['literal']('query_progress_history_session_forward_retained_submission_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'forwardIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20forward\x20operation\x20index\x20(U64\x20type)\x20within\x20the\x20session.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20retained\x20submissions\x20within\x20the\x20specified\x20forward\x20operation.')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20for\x20a\x20specific\x20object\x20ID'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['union']([z['string'](),z['number']()])['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('Arbitration\x20object\x20location'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema['nullable']()['or'](z['number']()))['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':tolerantStringNullable['describe']('Recommended\x20service\x20object\x20ID'),'update_time':tolerantNumber['describe']('Last\x20update\x20time'),'acceptance_score':tolerantNumberNullable['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':tolerantNumber['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20name\x20or\x20address\x20(string).\x20Example:\x20\x27my_attendance_guard\x27\x20or\x20\x270x1234...\x27'),'retained_submission':z['array'](tolerantNumber)['nullable']()['optional']()['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['strict']()['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object.\x20ALWAYS\x20an\x20OBJECT\x20{guard:\x20string,\x20retained_submission?:\x20number[]}\x20—\x20never\x20a\x20plain\x20string.\x20The\x20inner\x20\x27guard\x27\x20field\x20is\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20string.');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':tolerantStringNullable['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':tolerantNumberNullable['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).'),'weight':tolerantNumber['describe']('Forward\x20weight'),'guard':z['preprocess'](a=>{if(typeof a==='string')return{'guard':a};return a;},z['union']([MachineForwardGuardSchema['describe']('OBJECT\x20form:\x20{guard:\x20\x27<guard_name_or_address>\x27,\x20retained_submission?:\x20number[]}.\x20'+'Use\x20this\x20form\x20when\x20you\x20need\x20to\x20pass\x20retained_submission\x20data\x20alongside\x20the\x20Guard\x20reference.'),z['string']()['describe']('STRING\x20form\x20(shorthand):\x20the\x20Guard\x20object\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x20'+'Auto-wrapped\x20to\x20{guard:\x20<string>}\x20at\x20runtime.\x20Use\x20this\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20without\x20retained_submission.')])['nullable']()['optional']())['describe']('Guard\x20reference\x20for\x20this\x20forward.\x20Accepts\x20TWO\x20formats:\x0a'+'•\x20STRING\x20(preferred):\x20\x22my_guard_name\x22\x20—\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x0a'+'•\x20OBJECT\x20(only\x20when\x20retained_submission\x20is\x20needed):\x20{guard:\x20\x22my_guard_name\x22,\x20retained_submission:\x20[1,2,3]}.\x0a'+'FOLLOW\x20THE\x20SCHEMA\x20FIELD\x20STRUCTURE:\x20A\x20Guard\x20reference\x20is\x20fundamentally\x20a\x20STRING\x20(the\x20Guard\x20object\x27s\x20name\x20or\x20address).\x20'+'Provide\x20a\x20string\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20—\x20do\x20NOT\x20wrap\x20a\x20bare\x20string\x20in\x20an\x20object\x20structure.\x20'+'The\x20OBJECT\x20form\x20{guard:\x20\x22...\x22,\x20retained_submission:\x20[...]}\x20exists\x20ONLY\x20to\x20carry\x20additional\x20`retained_submission`\x20data\x20'+'alongside\x20the\x20string\x20reference;\x20inside\x20the\x20object,\x20the\x20`guard`\x20field\x20is\x20STILL\x20a\x20string.\x20'+'In\x20short:\x20string-in\x20for\x20a\x20string\x20reference,\x20object-in\x20only\x20when\x20you\x20need\x20to\x20pass\x20extra\x20data.\x0a'+'COGNITIVE\x20PRINCIPLE:\x20Guard\x20validation\x20ALWAYS\x20occurs\x20BEFORE\x20the\x20forward\x20operation.\x20'+'A\x20Guard\x20that\x20queries\x20state\x20of\x20the\x20SAME\x20Progress\x20object\x20this\x20forward\x20operates\x20on\x20'+'(e.g.\x20progress.current)\x20will\x20see\x20the\x20PRE-transition\x20value\x20(source\x20node),\x20NOT\x20the\x20target\x20node.\x20'+'If\x20the\x20Guard\x20checks\x20progress.current\x20==\x20target_node,\x20it\x20will\x20ALWAYS\x20FAIL.\x20'+'Querying\x20a\x20DIFFERENT\x20Progress\x20object\x20(cross-machine)\x20is\x20safe\x20and\x20reasonable\x20—\x20'+'that\x20progress\x20is\x20not\x20modified\x20by\x20this\x20forward.\x20'+'For\x20target-node\x20verification\x20after\x20transition,\x20bind\x20the\x20Guard\x20to\x20the\x20Allocator\x20instead\x20'+'(allocation.alloc\x20runs\x20AFTER\x20the\x20state\x20transition\x20completes).\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-3):\x20WoWok\x20has\x20NO\x20on-chain\x20cron.\x20A\x20business\x20phrase\x20like\x20\x27after\x20N\x20days,\x20auto-X\x27\x20'+'is\x20NOT\x20an\x20automatic\x20trigger\x20—\x20it\x20decomposes\x20into\x20(1)\x20a\x20time_guard\x20that\x20checks\x20elapsed\x20time,\x20and\x20'+'(2)\x20an\x20OFF-CHAIN\x20keeper\x20that\x20must\x20submit\x20the\x20forward\x20when\x20the\x20guard\x20passes.\x20'+'Configuring\x20a\x20time_guard\x20WITHOUT\x20a\x20keeper\x20means\x20nothing\x20ever\x20fires.')})['strict']()['refine'](a=>a['namedOperator']!==null&&a['namedOperator']!==undefined||a['permissionIndex']!==null&&a['permissionIndex']!==undefined,{'message':'One\x20of\x20\x27namedOperator\x27\x20or\x20\x27permissionIndex\x27\x20must\x20be\x20provided\x20for\x20each\x20forward.\x20'+'Use\x20namedOperator:\x27\x27\x20(empty\x20string)\x20when\x20the\x20ORDER\x20OWNER\x20operates\x20this\x20forward;\x20'+'use\x20a\x20permissionIndex\x20(e.g.\x201000)\x20when\x20the\x20same\x20operator\x20acts\x20for\x20all\x20orders.'})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name.\x20Empty\x20string\x20\x27\x27\x20means\x20initial\x20entry\x20node\x20(the\x20first\x20node\x20in\x20the\x20workflow).'),'threshold':tolerantNumber['default'](0x0)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list\x20—\x20operations\x20to\x20ENTER\x20THIS\x20NODE\x20from\x20prev_node.\x20'+'SEMANTIC\x20CLARIFICATION:\x20forwards\x20describe\x20INCOMING\x20transitions\x20(how\x20to\x20ARRIVE\x20at\x20this\x20node),\x20'+'NOT\x20outgoing\x20transitions.\x20Think\x20of\x20each\x20forward\x20as\x20an\x20\x27entry\x20door\x27\x20to\x20this\x20node.\x20'+'Example:\x20pair\x20{prev_node:\x27A\x27,\x20forwards:[{name:\x27Go\x27}]}\x20means\x20\x27use\x20Go\x20to\x20advance\x20FROM\x20A\x20TO\x20THIS\x20NODE\x27.\x20'+'For\x20initial\x20node\x20(prev_node=\x27\x27),\x20forwards\x20are\x20operations\x20to\x20enter\x20this\x20node\x20from\x20the\x20start\x20state.\x20'+'DIAGRAM:\x20A\x20--[Go]-->\x20B\x20means\x20the\x20pair\x20belongs\x20to\x20node\x20B\x20(destination),\x20with\x20prev_node=\x27A\x27.\x20'+'WARNING:\x20forwards\x20belong\x20to\x20the\x20DESTINATION\x20node\x27s\x20pair,\x20NOT\x20the\x20source\x20node.\x20'+'Placing\x20a\x20forward\x20on\x20the\x20wrong\x20pair\x20will\x20cause\x20Progress\x20to\x20get\x20stuck.')})['strict']()['describe']('Node\x20pair\x20in\x20Machine\x20object')['refine'](a=>{if(a['prev_node']===''&&a['forwards']['length']===0x0)return![];return!![];},{'message':'Initial\x20node\x20(prev_node=\x27\x27)\x20must\x20have\x20at\x20least\x20one\x20forward.\x20Without\x20a\x20forward,\x20Progress\x20cannot\x20advance\x20from\x20\x27\x27\x20to\x20this\x20node,\x20causing\x20the\x20order\x20workflow\x20to\x20be\x20permanently\x20stuck.'});export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.\x20⚠️\x20T1\x20LOSSY\x20POINT\x20(B-1):\x20do\x20NOT\x20name\x20a\x20node\x20\x27refund\x27/\x27refunded\x27/\x27disputed\x27/\x27cancelled\x27\x20'+'to\x20model\x20fund\x20return\x20or\x20dispute\x20—\x20funds\x20MUST\x20move\x20through\x20the\x20Allocation\x20waterfall\x20(order_allocators),\x20'+'NOT\x20through\x20Machine\x20terminal\x20nodes\x20(R-M1-11).\x20A\x20node\x20named\x20\x27refund\x27\x20is\x20a\x20semantic\x20lie:\x20reaching\x20it\x20does\x20'+'not\x20move\x20funds\x20by\x20itself.\x20Model\x20refund\x20as\x20a\x20refund-to-Order\x20Allocator\x20slot\x20(a\x20{\x20Signer\x20}\x20or\x20Order-owner\x20'+'recipient),\x20and\x20model\x20dispute\x20as\x20the\x20bound\x20Arbitration,\x20not\x20a\x20Machine\x20node.'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['strict']()['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':tolerantNumber['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':tolerantNumberNullable['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':tolerantStringNullable['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':tolerantNumber['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':CacheExpireTypeSchema['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent'),z['literal']('ServiceEvent'),z['literal']('DemandChangedEvent'),z['literal']('VoteEvent'),z['literal']('FeedbackEvent'),z['string']()])['describe']('Event\x20type.\x20Supports\x20Wowok\x20built-in\x20types\x20(ArbEvent,\x20NewOrderEvent,\x20ProgressEvent,\x20DemandPresentEvent,\x20DemandFeedbackEvent,\x20NewEntityEvent,\x20ServiceEvent,\x20DemandChangedEvent,\x20VoteEvent,\x20FeedbackEvent)\x20or\x20any\x20string\x20for\x20generic\x20MoveEventType\x20(e.g.,\x20\x270x2::coin::CoinEvent\x27)');export const EventCursorSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':EventTypeSchema,'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['union']([z['string'](),z['number']()])['describe']('Event\x20occurrence\x20time'),'parsedJson_raw':z['any']()['optional']()['describe']('Raw\x20parsed\x20JSON\x20data\x20from\x20the\x20event')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema,'indemnity_amount':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Compensation\x20awarded\x20(smallest-unit,\x20when\x20the\x20transition\x20rules\x20indemnity).'),'compensation_time':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Claim-ready\x20time\x20(when\x20the\x20transition\x20finishes\x20indemnity).')})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const ServiceEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Service\x20object\x20ID'),'location':z['string']()['describe']('Service\x20location'),'description':z['string']()['describe']('Service\x20description\x20preview\x20(<=260\x20UTF-8\x20chars).')})['describe']('Service\x20market-opportunity\x20event');export const DemandChangedEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Demand\x20object\x20ID'),'location':z['string']()['describe']('Demand\x20location'),'description':z['string']()['describe']('Demand\x20description\x20preview\x20(<=260\x20UTF-8\x20chars).'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20addresses\x20(amounts\x20read\x20from\x20Reward\x20objects).')})['describe']('Demand\x20market-opportunity\x20event');export const VoteEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'voter':z['string']()['describe']('Voter\x20address'),'agrees':z['array'](z['number']())['describe']('Supported\x20proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight')})['describe']('Arbitration\x20vote\x20event');export const FeedbackEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content')})['describe']('Arbitration\x20feedback\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema,ServiceEventSchema,DemandChangedEventSchema,VoteEventSchema,FeedbackEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types:\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20event\x20query')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index\x20(e.g.\x20315\x20for\x20service.compensation_fund_deposit)'),'name':z['string']()['describe']('Permission\x20name\x20(e.g.\x20\x22service.compensation_fund_deposit\x22)'),'description':z['string']()['describe']('Description\x20of\x20what\x20this\x20permission\x20allows'),'object_type':z['string']()['describe']('Object\x20type\x20this\x20permission\x20belongs\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['optional'](z['string']())['describe']('The\x20SDK/MCP\x20operation\x20field\x20name\x20that\x20triggers\x20this\x20permission\x20check\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22publish\x22,\x20\x22pause\x22).\x20Undefined\x20for\x20permissions\x20with\x20no\x20direct\x20Call*_Data\x20field\x20(e.g.\x20\x22*.new\x22\x20permissions).\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20by\x20filtering\x20with\x20{operation:\x20\x22compensation_fund_add\x22}.')})['describe']('Permission\x20info\x20type\x20—\x20includes\x20the\x20operation\x20field\x20name\x20that\x20maps\x20to\x20this\x20permission,\x20so\x20AI\x20can\x20look\x20up\x20required\x20permissions\x20by\x20operation\x20name.');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(OperatorType\x20or\x20ContextType)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'description':z['string']()['describe']('Description'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20or\x20a\x20guard\x20query');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20SDK/MCP\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22).\x20Returns\x20only\x20permissions\x20triggered\x20by\x20this\x20operation.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22')})['describe']('Permission\x20filter');export const CommonMistakeInfoSchema=z['object']({'object_type':z['string']()['describe']('The\x20object\x20type\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['string']()['describe']('The\x20operation\x20field\x20name\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22voting_deadline\x22)'),'category':z['enum'](['field_name','unit','value_range','workflow','timing'])['describe']('Category\x20of\x20the\x20mistake:\x20field_name\x20(wrong\x20field\x20name),\x20unit\x20(wrong\x20unit\x20like\x20seconds\x20vs\x20ms),\x20value_range\x20(wrong\x20expected\x20value),\x20workflow\x20(wrong\x20operation\x20order),\x20timing\x20(wrong\x20time\x20constraint)'),'mistake':z['string']()['describe']('Short\x20description\x20of\x20the\x20mistake'),'correct_usage':z['string']()['describe']('The\x20correct\x20usage\x20pattern'),'wrong_example':z['string']()['describe']('Example\x20of\x20the\x20wrong\x20usage'),'correct_example':z['string']()['describe']('Example\x20of\x20the\x20correct\x20usage')})['describe']('A\x20known\x20common\x20mistake\x20for\x20an\x20on-chain\x20operation.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20they\x20submit\x20a\x20transaction.');export const CommonMistakeFilterSchema=z['object']({'object_type':z['optional'](z['string']())['describe']('Filter\x20by\x20object\x20type\x20(e.g.\x20\x22Service\x22)'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22)'),'category':z['optional'](z['enum'](['field_name','unit','value_range','workflow','timing']))['describe']('Filter\x20by\x20category\x20(e.g.\x20\x22field_name\x22\x20for\x20field-name\x20mistakes,\x20\x22unit\x22\x20for\x20unit\x20mistakes)')})['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation.');export const BridgeTokenInfoSchema=z['object']({'tokenId':z['number']()['describe']('On-chain\x20token\x20ID\x20(mainnet:\x20WBTC=1,\x20ETH/WETH=2,\x20USDC=3,\x20USDT=4)'),'symbol':z['string']()['describe']('Token\x20symbol/abbreviation\x20(ETH,\x20WETH,\x20WBTC,\x20USDC,\x20USDT)'),'wowTypeTag':z['string']()['describe']('WOW-side\x20token\x20type\x20tag\x20(format:\x20{address}::{module}::{struct},\x20e.g.\x20\x220x2::wow::WOW\x22,\x20\x220x...::usdt::USDT\x22).\x20IMPORTANT:\x20This\x20value\x20can\x20be\x20used\x20directly\x20as\x20the\x20`type_parameter`\x20for\x20Service\x20/\x20Treasury\x20/\x20Reward\x20/\x20Allocation\x20objects\x20to\x20set\x20their\x20payment\x20token.\x20e.g.\x20use\x20USDT\x27s\x20wowTypeTag\x20to\x20create\x20a\x20Service\x20that\x20accepts\x20USDT\x20payments.\x20To\x20discover\x20all\x20available\x20tokens,\x20query\x20this\x20info\x20type.'),'evmAddress':z['string']()['describe']('EVM-side\x20contract\x20address\x20(0x000...000\x20for\x20native\x20ETH;\x20ERC20\x20contract\x20address\x20otherwise)'),'evmDecimals':z['number']()['describe']('EVM-side\x20decimals\x20(ETH/WETH=18,\x20WBTC=8,\x20USDC/USDT=6)'),'wowDecimals':z['number']()['describe']('WOW-side\x20decimals\x20(ETH/WBTC=8,\x20USDC/USDT=6)'),'evmChains':z['array'](z['number']())['optional']()['describe']('Bridge\x20protocol\x20chain\x20IDs\x20where\x20this\x20token\x20is\x20available\x20(e.g.\x2010\x20=\x20ETH\x20mainnet)'),'description':z['string']()['optional']()['describe']('Token\x20description')})['describe']('Mainnet\x20Bridge\x20token\x20info');export const FundingGuidanceSchema=z['object']({'overview':z['string']()['describe']('Overview\x20of\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens'),'testnet':z['object']({'token':z['string']()['describe']('Testnet\x20token\x20(WOW)'),'method':z['literal']('faucet')['describe']('Testnet\x20funding\x20method\x20(faucet)'),'faucet_url':z['string']()['describe']('Testnet\x20faucet\x20URL'),'note':z['string']()['describe']('Testnet\x20funding\x20note:\x20all\x20merchant/order\x20testing\x20can\x20use\x20WOW')}),'mainnet':z['object']({'method':z['literal']('eth_bridge')['describe']('Mainnet\x20funding\x20method\x20(ETH\x20mainnet\x20cross-chain\x20bridge)'),'supported_tokens':z['array'](z['string']())['describe']('Tokens\x20supported\x20by\x20the\x20mainnet\x20bridge\x20(ETH/USDT/USDC/WBTC)'),'steps':z['array'](z['string']())['describe']('Step-by-step\x20mainnet\x20funding\x20flow:\x20query\x20active\x20EVM\x20account\x20→\x20transfer\x20from\x20external\x20wallet\x20→\x20confirm\x20balance\x20→\x20cross-chain\x20to\x20WOW')}),'airdrop':z['object']({'url':z['string']()['describe']('WOW\x20mainnet\x20airdrop\x20URL'),'status':z['string']()['describe']('Airdrop\x20status\x20(under\x20construction)')}),'payment_token':z['object']({'testnet_default':z['string']()['describe']('Default\x20testnet\x20payment\x20token\x20(WOW)'),'mainnet_option':z['string']()['describe']('Mainnet\x20payment\x20token\x20option\x20(USDT\x20and\x20other\x20stablecoins)'),'migration_note':z['string']()['describe']('Guidance:\x20ask\x20whether\x20to\x20switch\x20payment\x20token\x20when\x20migrating\x20testnet\x20→\x20mainnet')})})['describe']('Funding\x20guidance\x20—\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens\x20(testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop).\x20This\x20is\x20the\x20first-step\x20guidance\x20for\x20new\x20users.');export const UniversalTemplateSchema=z['object']({'template':z['literal']('universal')['describe']('Template\x20kind'),'version':z['string']()['describe']('Template\x20version'),'anti_cheat_baseline':z['object']({'fake_orders':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'fake_reviews':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'shell_merchant':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'reputation_trade':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())})})['describe']('Anti-cheat\x20detector\x20baselines'),'pricing_redlines':z['array'](z['string']())['describe']('Forbidden\x20dynamic-pricing\x20mode\x20names'),'governance_redlines':z['array'](z['string']())['describe']('Governance\x20red\x20lines'),'quality_signals':z['array'](z['string']())['describe']('Quality\x20signal\x20identifiers'),'consumer_journey':z['array'](z['string']())['describe']('Consumer\x20journey\x20stages'),'north_star_metric':z['string']()['describe']('North-star\x20metric\x20id'),'revenue_boundary':z['string']()['describe']('Sustainable\x20revenue\x20boundary')})['describe']('Universal\x20Template\x20—\x20cross-industry\x20baselines\x20and\x20red\x20lines');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['strict']()['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20which\x20permission\x20a\x20specific\x20operation\x20requires.')})['strict']()['describe']('Built-in\x20permissions\x20query.\x20Each\x20permission\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20that\x20maps\x20to\x20the\x20SDK/MCP\x20Call*_Data\x20field\x20name\x20triggering\x20it.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20—\x20e.g.\x20filter\x20operation:\x22compensation_fund_add\x22\x20returns\x20permission\x20index\x20315\x20(service.compensation_fund_deposit).'),z['object']({'info':z['literal']('common\x20mistakes'),'filter':z['optional'](CommonMistakeFilterSchema)['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation,\x20or\x20category:\x22field_name\x22\x20for\x20all\x20field-name\x20mistakes.')})['strict']()['describe']('Common\x20mistakes\x20query.\x20Returns\x20known\x20field-name,\x20unit,\x20value-range,\x20workflow,\x20and\x20timing\x20pitfalls\x20for\x20on-chain\x20operations.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20submitting\x20a\x20transaction.\x20Example:\x20query\x20operation:\x22compensation_fund_add\x22\x20to\x20learn\x20about\x20the\x20{amount}\x20vs\x20{balance}\x20field\x20name\x20mistake.'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['strict']()['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['strict']()['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['strict']()['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations'),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens')})['strict']()['describe']('Mainnet\x20Bridge\x20tokens\x20query\x20-\x20returns\x20all\x20tokens\x20deployed\x20on\x20the\x20mainnet\x20bridge\x20with\x20their\x20symbol,\x20WOW-side\x20type\x20tag,\x20EVM\x20address,\x20decimals,\x20and\x20description'),z['object']({'info':z['literal']('funding\x20guidance')})['strict']()['describe']('Funding\x20guidance\x20query\x20-\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens.\x20Returns\x20testnet\x20faucet\x20info,\x20mainnet\x20ETH\x20cross-chain\x20bridge\x20flow,\x20and\x20the\x20WOW\x20mainnet\x20airdrop\x20link.\x20Use\x20this\x20when\x20a\x20user\x20asks\x20how\x20to\x20obtain\x20tokens/gas/funds,\x20or\x20as\x20a\x20proactive\x20first-use\x20reminder.'),z['object']({'info':z['literal']('upgrade_check')})['strict']()['describe']('Upgrade\x20check\x20-\x20returns\x20current\x20vs\x20latest\x20npm\x20versions\x20of\x20the\x20WoWok\x20MCP\x20server\x20and\x20SDK,\x20whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed,\x20and\x20whether\x20an\x20upgrade/install\x20reminder\x20is\x20due.\x20Call\x20at\x20the\x20start\x20of\x20a\x20conversation\x20to\x20decide\x20whether\x20to\x20remind\x20the\x20user\x20to\x20upgrade\x20or\x20install\x20the\x20client.'),z['object']({'info':z['literal']('universal_template')})['strict']()['describe']('Universal\x20Template\x20query\x20-\x20returns\x20cross-industry\x20baselines\x20and\x20red\x20lines\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)\x20that\x20hold\x20across\x20ALL\x20industries\x20(K3\x2017\x20§2).')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const UpgradeCheckComponentSchema=z['object']({'current':z['string']()['nullable']()['describe']('Currently\x20installed/running\x20version'),'latest':z['string']()['nullable']()['describe']('Latest\x20published\x20npm\x20version\x20(null\x20when\x20offline/unreachable)'),'outdated':z['boolean']()['describe']('true\x20when\x20a\x20newer\x20version\x20is\x20available')})['describe']('A\x20component\x20version\x20comparison');export const UpgradeCheckResultSchema=z['object']({'mcp':UpgradeCheckComponentSchema['describe']('WoWok\x20MCP\x20server\x20version\x20comparison'),'sdk':UpgradeCheckComponentSchema['describe']('WoWok\x20SDK\x20version\x20comparison'),'client_installed':z['boolean']()['describe']('Whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed'),'client_install_hint':z['string']()['nullable']()['describe']('Where\x20to\x20get\x20the\x20desktop\x20client\x20(e.g.\x20download\x20URL)'),'upgrade_available':z['boolean']()['describe']('true\x20when\x20any\x20component\x20is\x20outdated'),'reminder':z['object']({'type':z['enum'](['upgrade','install_client','none'])['describe']('Reminder\x20kind'),'due':z['boolean']()['describe']('Whether\x20to\x20surface\x20the\x20reminder\x20in\x20this\x20conversation'),'message':z['string']()['nullable']()['describe']('Ready-to-use,\x20benefit-focused\x20reminder\x20message;\x20null\x20when\x20not\x20due')})['describe']('Reminder\x20decision'),'checked_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20check')})['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result.\x20Each\x20item\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20mapping\x20to\x20the\x20SDK/MCP\x20field\x20name\x20that\x20triggers\x20this\x20permission.')}),z['object']({'info':z['literal']('common\x20mistakes'),'result':z['array'](CommonMistakeInfoSchema)['describe']('Common\x20mistakes\x20result.\x20Each\x20item\x20documents\x20a\x20known\x20pitfall\x20(wrong\x20field\x20name,\x20wrong\x20unit,\x20wrong\x20workflow\x20order,\x20etc.)\x20with\x20wrong/correct\x20examples.')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')}),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens'),'result':z['array'](BridgeTokenInfoSchema)['describe']('Mainnet\x20Bridge\x20tokens\x20result\x20-\x20each\x20item\x20contains\x20tokenId,\x20symbol,\x20wowTypeTag,\x20evmAddress,\x20evmDecimals,\x20wowDecimals,\x20evmChains,\x20and\x20description')}),z['object']({'info':z['literal']('funding\x20guidance'),'result':FundingGuidanceSchema['describe']('Funding\x20guidance\x20result\x20-\x20testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop\x20/\x20payment-token\x20guidance')}),z['object']({'info':z['literal']('upgrade_check'),'result':UpgradeCheckResultSchema['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result')}),z['object']({'info':z['literal']('universal_template'),'result':UniversalTemplateSchema['describe']('Universal\x20Template\x20data\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const TxObjectChangeSchema=z['object']({'id':z['string']()['describe']('Object\x20ID\x20affected\x20by\x20the\x20transaction'),'type':z['enum'](['created','mutated','deleted','wrapped','unwrapped'])['describe']('Type\x20of\x20object\x20change'),'object_type':z['string']()['optional']()['describe']('Full\x20Move\x20type\x20of\x20the\x20object'),'sender':z['string']()['optional']()['describe']('Sender\x20who\x20caused\x20this\x20object\x20change'),'version':z['string']()['optional']()['describe']('Object\x20version\x20after\x20the\x20change'),'previous_version':z['string']()['optional']()['describe']('Previous\x20object\x20version\x20(for\x20mutations)'),'digest':z['string']()['optional']()['describe']('Transaction\x20digest\x20that\x20caused\x20this\x20change')})['strict']()['describe']('Object\x20change\x20within\x20a\x20transaction');export const TxBalanceChangeSchema=z['object']({'owner':z['string']()['describe']('Owner\x20address\x20of\x20the\x20balance\x20change'),'coin_type':z['string']()['describe']('Coin\x20type\x20(e.g.\x200x2::wow::WOW)'),'amount':z['string']()['describe']('Amount\x20changed\x20(signed\x20string,\x20positive=incoming,\x20negative=outgoing)')})['strict']()['describe']('Balance\x20change\x20within\x20a\x20transaction');export const TxEventSchema=z['object']({'type':z['string']()['describe']('Fully-qualified\x20event\x20type\x20(e.g.\x200x2::progress::ProgressEvent)'),'package_id':z['string']()['optional']()['describe']('Package\x20that\x20declared\x20the\x20event\x20module'),'module':z['string']()['optional']()['describe']('Module\x20name\x20that\x20emitted\x20the\x20event'),'sender':z['string']()['optional']()['describe']('Sender\x20of\x20the\x20emitting\x20transaction'),'parsed_json':z['unknown']()['optional']()['describe']('Parsed\x20JSON\x20payload\x20of\x20the\x20event\x20(Move\x20struct\x20fields)'),'bcs':z['string']()['optional']()['describe']('Raw\x20BCS\x20bytes\x20of\x20the\x20event\x20(base64)')})['strict']()['describe']('Event\x20emitted\x20by\x20a\x20transaction');export const TransactionDetailSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20the\x20transaction\x20failed'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds\x20(string)'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'gas_used':z['string']()['optional']()['describe']('Total\x20gas\x20used\x20(string,\x20BigInt)'),'gas_budget':z['string']()['optional']()['describe']('Gas\x20budget\x20set\x20by\x20the\x20sender\x20(string)'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind\x20(e.g.\x20ProgrammableTransaction)'),'object_changes':z['array'](TxObjectChangeSchema)['describe']('Object\x20changes\x20(created/mutated/deleted)'),'balance_changes':z['array'](TxBalanceChangeSchema)['describe']('Balance\x20changes\x20for\x20all\x20involved\x20owners'),'event_count':z['number']()['describe']('Number\x20of\x20events\x20emitted\x20by\x20this\x20transaction'),'events':z['array'](TxEventSchema)['describe']('Events\x20emitted\x20by\x20the\x20transaction.\x20Always\x20populated\x20by\x20query_transaction\x20(showEvents=true).\x20'+'Each\x20event\x20carries\x20its\x20Move\x20struct\x20payload\x20(parsed_json)\x20so\x20callers\x20can\x20inspect\x20'+'ProgressEvent,\x20NewOrderEvent,\x20ArbEvent,\x20etc.\x20without\x20an\x20extra\x20query.'),'epoch':z['string']()['optional']()['describe']('Epoch\x20number\x20when\x20the\x20transaction\x20was\x20executed'),'is_system_tx':z['boolean']()['optional']()['describe']('Whether\x20this\x20was\x20a\x20system\x20transaction'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Full\x20transaction\x20detail\x20—\x20verifiable\x20proof\x20of\x20an\x20on-chain\x20operation');export const TransactionHistoryItemSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind'),'gas_used':z['string']()['optional']()['describe']('Gas\x20used\x20(string)'),'objects_touched':z['array'](z['string']())['describe']('Object\x20IDs\x20touched\x20by\x20this\x20transaction'),'has_object_changes':z['boolean']()['describe']('Whether\x20this\x20tx\x20created/mutated/deleted\x20objects')})['strict']()['describe']('Transaction\x20history\x20summary\x20item');export const TransactionHistoryAnswerSchema=z['object']({'transactions':z['array'](TransactionHistoryItemSchema)['describe']('Transaction\x20history\x20items'),'next_cursor':z['union']([z['string'](),z['null']()])['describe']('Cursor\x20for\x20the\x20next\x20page\x20(null\x20if\x20no\x20more\x20pages)'),'has_next_page':z['boolean']()['describe']('Whether\x20more\x20pages\x20are\x20available'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Paginated\x20transaction\x20history\x20answer');export const OnchainQueryResultSchema_Part1=z['union']([z['object']({'query_type':z['literal']('onchain_personal_profile'),'result':z['union']([ObjectPersonalSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_objects'),'result':ObjectsAnswerSchema}),z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])})]);export const OnchainQueryResultSchema_Part2=z['union']([z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_received'),'result':QueryReceivedResultSchema['shape']['result']})]);export const OnchainQueryResultSchema_Part3=z['union']([z['object']({'query_type':z['literal']('onchain_transaction'),'result':z['union']([TransactionDetailSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_object_history'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_address_activity'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('token_value_convert'),'result':z['object']({'token_type':z['string']()['describe']('Full\x20token\x20type\x20used\x20for\x20conversion'),'symbol':z['string']()['optional']()['describe']('Resolved\x20token\x20symbol'),'decimals':z['number']()['optional']()['describe']('Resolved\x20decimals\x20N\x20—\x20the\x20precision\x20reminder'),'precision_known':z['boolean']()['describe']('false\x20→\x20precision\x20unavailable;\x20conversion\x20may\x20have\x20been\x20impossible'),'direction':z['union']([z['literal']('raw_to_unit'),z['literal']('unit_to_raw')]),'input':z['string']()['describe']('Input\x20value\x20as\x20provided'),'output':z['string']()['describe']('Converted\x20value\x20(empty\x20string\x20when\x20conversion\x20was\x20impossible)'),'error':z['string']()['optional']()['describe']('Hard\x20failure\x20reason\x20(e.g.\x20unit→raw\x20without\x20known\x20precision)'),'text':z['string']()['describe']('One-line\x20human\x20text\x20with\x20the\x20decimals\x20reminder')})['strict']()['describe']('Bidirectional\x20token\x20value\x20conversion\x20result\x20—\x20see\x20Fund\x20Processing\x20Layer')})['strict']()]);export const AllQueryResultsSchema=z['union']([LocalQueryResultSchema,OnchainQueryResultSchema_Part1,OnchainQueryResultSchema_Part2,OnchainQueryResultSchema_Part3]);export const WatchQueryOperationsResultSchema=z['object']({'result':AllQueryResultsSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20query\x20operation')})['describe']('Watch\x20query\x20operations\x20result\x20schema');
1
+ import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,CacheExpireTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,ValueTypeUserSchema,QueryReceivedResultSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/index.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName,isValidWitnessType}from'../utils/guard-query-utils.js';import{ENTITY_LINKER_ADDRESS,ENTITY_REGISTRAR_ADDRESS,isWitnessType}from'@wowok/wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.',tolerantNumber=z['union']([z['number'](),z['string']()]),tolerantStringNullable=z['union']([z['string'](),z['null']()])['optional'](),tolerantNumberNullable=z['union']([z['number'](),z['string'](),z['null']()])['optional']();export const AmountTypeSchema=z['union']([z['enum'](['GuardU64Identifier','Fixed']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'GuardU64Identifier':a===0x1?'Fixed':'GuardU64Identifier')])['describe']('Amount\x20type\x20—\x20determines\x20how\x20a\x20payment\x20amount\x20is\x20resolved.\x20'+'Accepts\x20string\x20(\x27GuardU64Identifier\x27\x20or\x20\x27Fixed\x27)\x20or\x20number\x20(0=\x27GuardU64Identifier\x27,\x201=\x27Fixed\x27).\x20String\x20form\x20is\x20recommended\x20for\x20readability.\x20'+'•\x20\x27GuardU64Identifier\x27\x20(0):\x20the\x20amount\x20is\x20NOT\x20fixed\x20—\x20it\x20is\x20dynamically\x20read\x20from\x20a\x20U64\x20value\x20stored\x20in\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20Identifier\x20index.\x20Use\x20this\x20when\x20the\x20amount\x20varies\x20per\x20order\x20(e.g.\x20milestone-based\x20pricing,\x20negotiated\x20price).\x20The\x20Guard\x20must\x20have\x20a\x20matching\x20U64\x20entry.\x20'+'•\x20\x27Fixed\x27\x20(1):\x20the\x20amount\x20is\x20a\x20fixed\x20value\x20set\x20in\x20the\x20sale/price\x20field.\x20Use\x20this\x20for\x20products\x20with\x20a\x20static\x20price\x20(e.g.\x20service\x20fee\x20=\x2050\x20WOW).\x20'+'Example:\x20{price:\x2050000000000,\x20stock:\x20100,\x20amount_type:\x20\x27Fixed\x27}\x20→\x20fixed\x2050\x20WOW\x20price.\x20'+'Example:\x20{price:\x200,\x20stock:\x20100,\x20amount_type:\x20\x27GuardU64Identifier\x27}\x20→\x20price\x20read\x20from\x20Guard\x20table\x20U64\x20entry.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Static\x20address\x20resolved\x20via\x20LocalMark.\x20'+'Format:\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20—\x20NOTE:\x20Entity\x20is\x20an\x20OBJECT\x20with\x20name_or_address\x20field,\x20NOT\x20a\x20bare\x20string.'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20(tx_context::sender)\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call.\x20'+'For\x20refunds,\x20the\x20Order\x20owner\x20must\x20call\x20alloc_by_guard\x20themselves\x20to\x20receive\x20the\x20funds.')])['describe']('Recipient\x20ID.\x20Three\x20forms:\x0a'+'\x20\x20-\x20{GuardIdentifier:\x20u8}\x20\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x0a'+'\x20\x20-\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20\x20—\x20FIXED\x20static\x20address\x20via\x20LocalMark\x20(recommended)\x0a'+'\x20\x20-\x20{Signer:\x20\x27signer\x27}\x20\x20—\x20transaction\x20sender\x20at\x20alloc()\x20time\x20(e.g.\x20self-refund;\x20customer\x20must\x20call\x20alloc_by_guard\x20themselves)');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'who':z['string']()['describe']('Voter\x20address'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'favor':z['boolean']()['optional']()['describe']('Whether\x20favorited\x20(收藏)'),'time':tolerantNumber['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':tolerantNumber['describe']('Current\x20follow\x20information\x20position'),'count':tolerantNumber['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityContactSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'contact':z['string']()['describe']('Contact\x20(customer-service\x20book)\x20address\x20the\x20entity\x20is\x20a\x20member\x20of'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20membership\x20was\x20last\x20modified')}))['describe']('Contacts\x20the\x20entity\x20is\x20a\x20member\x20of')})['describe']('Entity\x20contact\x20membership\x20reverse\x20index\x20item');export const TableItem_EntityOrderSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)\x20of\x20the\x20entity\x20in\x20the\x20order'),'order':z['string']()['describe']('Order\x20address\x20the\x20entity\x20participates\x20in'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')}))['describe']('Orders\x20the\x20entity\x20participates\x20in')})['describe']('Entity\x20order\x20reverse\x20index\x20item');export const UserOrderViewSchema=z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)'),'is_owner':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20the\x20owner\x20of\x20the\x20order'),'is_agent':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20an\x20agent\x20of\x20the\x20order'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified'),'order':z['any']()['describe']('Full\x20on-chain\x20Order\x20object')})['describe']('One\x20order\x20membership\x20of\x20a\x20user,\x20resolved\x20with\x20the\x20full\x20order');export const EnrichedOrderRoleSchema=z['object']({'account':z['string']()['describe']('Local\x20account\x20address\x20participating\x20in\x20the\x20order'),'is_owner':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20the\x20order\x20owner\x20(buyer)'),'is_agent':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20an\x20operator\x20(agent)\x20of\x20the\x20order'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')})['describe']('One\x20local\x20account\x27s\x20role\x20in\x20the\x20order');export const EnrichedOrderItemSchema=z['object']({'name':z['string']()['describe']('Purchased\x20item\x20name'),'price':z['string']()['describe']('Raw\x20smallest-unit\x20price\x20(u64)'),'price_display':z['string']()['describe']('Human\x20price\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'quantity':z['string']()['describe']('Purchased\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20proof\x20hash\x20(empty\x20when\x20not\x20set)')})['describe']('One\x20purchased\x20SaleItem\x20of\x20the\x20order');export const EnrichedOrderRowSchema=z['object']({'order':z['string']()['describe']('Order\x20object\x20address'),'roles':z['array'](EnrichedOrderRoleSchema)['describe']('Per-account\x20roles\x20merged\x20across\x20the\x20queried\x20accounts\x20(deduped\x20by\x20order\x20address)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20order\x20was\x20created'),'updated_ms':z['number']()['nullable']()['describe']('Last\x20on-chain\x20transaction\x20touching\x20the\x20order\x20(ms);\x20null\x20when\x20unavailable.\x20Distinct\x20from\x20`time`\x20(creation)'),'amount':z['string']()['describe']('Raw\x20smallest-unit\x20order\x20amount\x20(u64);\x20empty\x20when\x20unreadable'),'amount_display':z['string']()['describe']('Human\x20amount\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'amount_tip':z['string']()['describe']('Long-form\x20amount\x20explanation\x20for\x20tooltips'),'service':z['string']()['nullable']()['describe']('Service\x20the\x20order\x20was\x20placed\x20under'),'machine':z['string']()['nullable']()['describe']('Machine\x20driving\x20the\x20order\x27s\x20fulfillment'),'progress':z['string']()['nullable']()['describe']('Progress\x20object\x20tracking\x20the\x20order\x27s\x20workflow'),'allocation':z['string']()['nullable']()['describe']('Allocation\x20(compensation\x20fund)\x20object\x20bound\x20to\x20the\x20order'),'owner':z['string']()['nullable']()['describe']('The\x20account\x20that\x20created\x20(bought)\x20the\x20order\x20(order.owner)'),'claimed_by':z['string']()['nullable']()['describe']('Compensation\x20claimant\x20(Arbitration)\x20when\x20the\x20order\x20was\x20claimed;\x20null\x20while\x20unclaimed'),'required_info':z['string']()['nullable']()['describe']('Buyer-submitted\x20Contact\x20object\x20or\x20WTS\x20proof\x20id\x20(order.required_info);\x20null\x20when\x20not\x20submitted'),'progress_next':z['string']()['nullable']()['describe']('Latest\x20machine\x20node\x20name\x20(Progress.current);\x20null\x20when\x20unavailable'),'progress_since':z['number']()['nullable']()['describe']('When\x20the\x20current\x20node\x20was\x20entered\x20(Progress.current_time,\x20ms);\x20null\x20when\x20unavailable'),'allocation_state':z['enum'](['none','pending','allocated'])['describe']('Compensation\x20fund\x20state:\x20none\x20=\x20no\x20Allocation\x20bound;\x20pending\x20=\x20fund\x20not\x20fully\x20allocated;\x20allocated\x20=\x20balance\x200\x20(fully\x20allocated)'),'disputes':z['array'](z['string']())['describe']('Arbitration\x20addresses\x20that\x20opened\x20a\x20dispute\x20on\x20this\x20order'),'agents':z['array'](z['string']())['describe']('Operator\x20accounts\x20(order.agent)\x20besides\x20the\x20owner'),'items':z['array'](EnrichedOrderItemSchema)['describe']('Purchased\x20items\x20(order.items:\x20vector<SaleItem>)'),'account_errors':z['array'](z['string']())['optional']()['describe']('Per-account\x20query\x20failures\x20(non-blocking)\x20—\x20the\x20other\x20accounts\x27\x20orders\x20still\x20resolve')})['describe']('One\x20enriched\x20order\x20row:\x20raw\x20on-chain\x20fields\x20+\x20server-resolved\x20display/progress/allocation\x20enrichment');export const TableItem_ObjectLinkerCoreSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Core\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(lossless\x20fixed)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20core\x20object\x20bound')}))['describe']('Core\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20core\x20reverse\x20index\x20item');export const TableItem_ObjectLinkerTxSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Tx\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(FIFO\x20window)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20tx\x20object\x20bound')}))['describe']('Recent\x20tx\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20tx\x20reverse\x20index\x20item');export const AffiliationEntrySchema=z['object']({'table':z['enum'](['object_linker_core','object_linker_tx','entity_order','entity_permission','entity_contact','registrar','entity'])['describe']('Source\x20global\x20table\x20(0xaae\x20core\x20/\x200xaaf\x20tx\x20/\x200xaa8\x20order\x20/\x200xaad\x20permission\x20/\x200xaa9\x20contact\x20/\x200xaaa\x20registrar\x20/\x200xaab\x20entity)'),'who':z['string']()['describe']('Linked\x20object\x20or\x20counterparty\x20address\x20recorded\x20under\x20the\x20queried\x20key'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20of\x20the\x20last\x20registration/update'),'role':tolerantNumber['optional']()['describe']('Role\x20bitmask:\x20entity_order\x201=owner,2=agent;\x20entity_permission\x201=owner,2=admin,4=entity')})['describe']('One\x20normalized\x20global-table\x20affiliation\x20entry');export const AffiliationAnswerSchema=z['object']({'address':z['string']()['describe']('Queried\x20key\x20address'),'object_type':z['string']()['nullable']()['describe']('Resolved\x20on-chain\x20object\x20type\x20of\x20the\x20key\x20(null\x20=\x20user\x20account)'),'tables_queried':z['array'](z['string']())['describe']('Global\x20tables\x20queried\x20for\x20this\x20key\x20(type-driven\x20static\x20map;\x20single\x20targeted\x20read\x20each,\x20never\x20a\x20full\x20scan)'),'entries':z['array'](AffiliationEntrySchema)['describe']('All\x20global-table\x20records\x20where\x20this\x20address\x20is\x20the\x20key'),'raw':z['any']()['describe']('Raw\x20per-table\x20views\x20(reverse_core\x20/\x20reverse_tx\x20/\x20order_membership\x20/\x20permission_membership\x20/\x20contact_membership\x20/\x20registrar\x20/\x20entity)')})['describe']('Type-driven\x20aggregation\x20over\x20every\x20global\x20table\x20the\x20address\x20can\x20be\x20recorded\x20in');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':tolerantNumber['describe']('On-chain\x20registration\x20time'),'referrer':tolerantStringNullable['describe']('Referrer'),'mark_object':tolerantStringNullable['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records\x20on-chain')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('Demand\x20location'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('WIP\x20file\x20URL.\x20EMPTY\x20string\x20\x22\x22\x20skips\x20verification\x20(TESTING\x20ONLY).\x20'+'Production\x20MUST\x20use\x20a\x20real\x20HTTP\x20URL\x20pointing\x20to\x20a\x20.wip\x20file\x20generated\x20by\x20the\x20wip_file\x20tool.\x20'+'⚠️\x20NETWORK\x20DEPLOYMENT\x20REQUIRED:\x20the\x20URL\x20is\x20stored\x20ON-CHAIN\x20and\x20every\x20customer\x20fetches\x20it\x20'+'when\x20placing\x20an\x20order.\x20A\x20local\x20file\x20path\x20(C:\x5c...,\x20/path/file.wip),\x20a\x20localhost/loopback\x20URL\x20'+'or\x20a\x20LAN\x20private-IP\x20URL\x20is\x20unreachable\x20by\x20customers\x20on\x20other\x20machines\x20—\x20it\x20passes\x20the\x20'+'merchant-side\x20set-time\x20verification\x20but\x20makes\x20order_new\x20abort\x20100%\x20for\x20customers.\x20'+'Either\x20deploy\x20the\x20.wip\x20file\x20to\x20a\x20public\x20endpoint\x20(GitHub\x20Pages\x20/\x20IPFS\x20/\x20your\x20own\x20website)\x20'+'and\x20set\x20this\x20to\x20the\x20public\x20URL,\x20or\x20leave\x20it\x20empty\x20(\x22\x22)\x20to\x20skip\x20WIP\x20verification\x20(TESTING\x20ONLY).\x20'+'Example:\x20\x22https://cdn.example.com/products/phone_v1.wip\x22'),'wip_hash':z['string']()['describe']('SHA-256\x20hash\x20(hex\x20string)\x20of\x20the\x20sale\x27s\x20WIP\x20file,\x20committed\x20on-chain\x20by\x20the\x20merchant.\x20'+'BUY\x20RULE:\x20if\x20this\x20is\x20NON-EMPTY,\x20the\x20buyer\x20MUST\x20pass\x20this\x20exact\x20value\x20as\x20wip_hash\x20when\x20creating\x20an\x20order\x20'+'(ServiceBuyItem.wip_hash)\x20—\x20NEVER\x20use\x20\x22\x22.\x20Pinning\x20the\x20on-chain\x20hash\x20prevents\x20the\x20merchant\x20from\x20replacing\x20'+'the\x20WIP\x20file\x20(a\x20legitimate\x20update)\x20between\x20the\x20buyer\x27s\x20view\x20and\x20order\x20placement,\x20ensuring\x20\x27what\x20you\x20see\x20is\x20'+'what\x20you\x20get\x27.\x20EMPTY\x20means\x20no\x20hash\x20was\x20committed\x20(TESTING\x20ONLY,\x20no\x20delivery-integrity\x20guarantee).')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Arb\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Used\x20to\x20define\x20submitted\x20data\x20after\x20Guard\x20verification'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':tolerantNumber['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':tolerantNumber['describe']('Total\x20operation\x20weight'),'threshold':tolerantNumber['default'](0x0)['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20Guard\x20list.\x20When\x20one\x20of\x20the\x20Guards\x20is\x20successfully\x20verified\x20in\x20a\x20transaction,\x20the\x20relevant\x20recipient\x20will\x20receive\x20the\x20reward\x20amount.'),'balance':BalanceTypeSchema['describe']('Current\x20balance\x20of\x20reward\x20object'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20reward\x20claimer\x20records.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RewardRecord\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['union']([z['enum'](['Amount','Rate','Surplus']),z['number']()['int']()['min'](0x0)['max'](0x2)['transform'](a=>a===0x0?'Amount':a===0x1?'Rate':a===0x2?'Surplus':'Amount')])['describe']('Allocation\x20mode\x20—\x20determines\x20how\x20the\x20`sharing`\x20field\x20is\x20interpreted.\x20'+'Three\x20modes\x20can\x20be\x20used\x20individually\x20OR\x20combined\x20within\x20a\x20single\x20Allocator;\x20'+'when\x20combined,\x20allocation\x20order\x20is\x20strictly:\x20Amount\x20first,\x20then\x20Rate,\x20then\x20Surplus.\x20'+'Understanding\x20these\x20modes\x20allows\x20modeling\x20almost\x20any\x20fund\x20distribution\x20pattern.\x0a'+'•\x20Amount\x20(0):\x20`sharing`\x20is\x20a\x20FIXED\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20=\x200.75\x20WOW).\x20'+'Allocated\x20FIRST;\x20sum\x20of\x20all\x20Amount\x20items\x20is\x20cached\x20as\x20`fix`\x20by\x20the\x20contract.\x20'+'Validation:\x20when\x20no\x20Rate\x20and\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20allocators.threshold\x20(EAMOUNT_BELOW_THRESHOLD=12);\x20'+'when\x20`max`\x20is\x20set,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13).\x0a'+'•\x20Rate\x20(1):\x20`sharing`\x20is\x20a\x20basis-points\x20rate\x20(10000\x20=\x20100%).\x20'+'Allocated\x20AFTER\x20Amount;\x20formula:\x20allocated\x20=\x20(sharing\x20×\x20total_rates)\x20/\x2010000,\x20'+'where\x20total_rates\x20=\x20balance\x20-\x20fix\x20(or\x20max\x20-\x20fix\x20if\x20`max`\x20is\x20set).\x20'+'Validation:\x20when\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20EXACTLY\x2010000\x20(ERATE_NOT_10000=4);\x20'+'when\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20<=\x2010000\x20(ERATE_EXCEEDS_10000=6).\x0a'+'•\x20Surplus\x20(2):\x20`sharing`\x20is\x20IGNORED\x20(contract\x20forces\x20it\x20to\x200).\x20'+'Allocated\x20LAST;\x20receives\x20the\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x20'+'Validation:\x20MAX\x20ONE\x20Surplus\x20item\x20per\x20Allocator\x20(EMULTIPLE_SURPLUS=5).\x20'+'When\x20Surplus\x20exists,\x20Rate\x20sum\x20constraint\x20relaxes\x20from\x20==\x2010000\x20to\x20<=\x2010000.\x0a'+'ALLOCATION\x20ORDER\x20(strict):\x20Amount\x20items\x20(fixed,\x20cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance-fix)\x20→\x20Surplus\x20item\x20(remaining).\x0a'+'RECOMMENDATION:\x20Use\x20Amount\x20mode\x20for\x20known\x20fixed\x20amounts\x20(clearer,\x20no\x20sum\x20constraint).\x20'+'Use\x20Rate\x20mode\x20for\x20proportional\x20splits\x20(requires\x20sum\x20==\x2010000\x20unless\x20Surplus\x20present).\x20'+'Use\x20Surplus\x20to\x20capture\x20remainder\x20(e.g.,\x20platform\x20fee\x20+\x20host\x20gets\x20rest).\x20'+'Accepts\x20string\x20(\x27Amount\x27/\x27Rate\x27/\x27Surplus\x27,\x20recommended)\x20or\x20number\x20(0/1/2).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20of\x20this\x20allocation.\x20Three\x20forms\x20—\x20each\x20resolves\x20the\x20address\x20at\x20a\x20DIFFERENT\x20time:\x0a'+'•\x20{\x20GuardIdentifier:\x20u8\x20}\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x20(contract\x20calls\x20passport::submission_get).\x20'+'Use\x200\x20for\x20Order\x20owner\x20in\x20Service-integrated\x20mode\x20(Customer\x20who\x20created\x20the\x20Order).\x20'+'The\x20identifier\x20must\x20match\x20a\x20Guard\x20table\x20entry\x20with\x20b_submission=true.\x20'+'If\x20Passport\x20has\x20no\x20matching\x20submission,\x20contract\x20aborts\x20with\x20E_VERIFY_FAILED.\x20'+'Use\x20when\x20the\x20recipient\x20address\x20is\x20not\x20known\x20at\x20config\x20time\x20and\x20must\x20be\x20supplied\x20via\x20Guard\x20submission\x20data.\x0a'+'•\x20{\x20Entity:\x20{\x20name_or_address:\x20\x27...\x27\x20}\x20}\x20—\x20FIXED\x20address\x20resolved\x20via\x20LocalMark\x20at\x20SDK\x20build\x20time\x20(passed\x20to\x20contract\x20as\x20a\x20literal\x20address).\x20'+'Use\x20for\x20known\x20recipients\x20(e.g.,\x20\x27turo_host\x27,\x20or\x20a\x20Treasury\x20object\x20address).\x20'+'Use\x20when\x20the\x20recipient\x20is\x20a\x20stable,\x20known\x20address\x20(e.g.,\x20operator\x20receives\x20rent,\x20platform\x20fee\x20to\x20treasury).\x0a'+'•\x20\x27Signer\x27\x20—\x20the\x20transaction\x20sender\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call\x20(tx_context::sender).\x20'+'RESOLVED\x20AT\x20EXECUTION\x20TIME,\x20not\x20at\x20config\x20time.\x20'+'For\x20refunds:\x20the\x20customer\x20(Order\x20owner)\x20must\x20call\x20alloc_by_guard\x20THEMSELVES\x20so\x20that\x20tx_context::sender\x20resolves\x20to\x20THEIR\x20address\x20—\x20'+'if\x20the\x20operator\x20calls\x20alloc_by_guard,\x20the\x20operator\x20becomes\x20the\x20recipient\x20(Signer\x20=\x20operator),\x20NOT\x20the\x20customer.\x20'+'Use\x20when\x20the\x20recipient\x20is\x20whoever\x20submits\x20the\x20allocation\x20transaction\x20(e.g.,\x20customer\x20receives\x20refund).'),'sharing':BalanceTypeSchema['describe']('Allocation\x20value.\x20SEMANTICS\x20DEPEND\x20ON\x20`mode`:\x0a'+'•\x20mode=\x27Amount\x27:\x20absolute\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20for\x200.75\x20WOW,\x20\x27250000000\x27\x20for\x200.25\x20WOW).\x20'+'Allocated\x20first;\x20sum\x20of\x20Amount\x20items\x20cached\x20as\x20`fix`.\x0a'+'•\x20mode=\x27Rate\x27:\x20basis-points\x20rate,\x2010000\x20=\x20100%\x20(e.g.,\x20\x277500\x27\x20for\x2075%,\x20\x272500\x27\x20for\x2025%).\x20'+'When\x20no\x20Surplus\x20in\x20same\x20Allocator,\x20sum\x20MUST\x20==\x2010000;\x20when\x20Surplus\x20present,\x20sum\x20MUST\x20<=\x2010000.\x0a'+'•\x20mode=\x27Surplus\x27:\x20IGNORED\x20(contract\x20forces\x20to\x200).\x20Set\x20to\x20\x270\x27\x20for\x20clarity.\x20'+'Receives\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-2):\x20the\x20value\x20is\x20PRE-CONFIGURED\x20and\x20STATIC.\x20A\x20continuous/conditional\x20amount\x20'+'(e.g.\x20\x27pay\x20exactly\x20the\x20assessed\x20loss\x20amount\x27)\x20CANNOT\x20be\x20expressed\x20—\x20there\x20is\x20no\x20runtime\x20formula\x20field.\x20'+'Model\x20variable\x20payouts\x20as\x20(a)\x20a\x20fixed-tier\x20Allocator\x20list\x20guarded\x20by\x20distinct\x20Guards,\x20or\x20(b)\x20an\x20Amount\x20'+'with\x20a\x20`max`\x20cap\x20—\x20both\x20are\x20finite\x20configurations,\x20not\x20free-form\x20formulas.'),'mode':AllocationModeSchema})['describe']('Fund\x20allocation\x20item\x20—\x20one\x20recipient\x27s\x20share\x20of\x20the\x20Allocation\x20balance.\x20'+'The\x20`sharing`\x20value\x27s\x20meaning\x20depends\x20on\x20`mode`\x20(see\x20AllocationModeSchema).\x20'+'Multiple\x20items\x20in\x20the\x20same\x20Allocator\x20are\x20evaluated\x20together:\x20Amount\x20items\x20first,\x20Rate\x20items\x20second,\x20Surplus\x20last.');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.\x20If\x20Guard\x20verification\x20passes\x20(via\x20Passport),\x20fund\x20allocation\x20for\x20THIS\x20Allocator\x20fires.\x20'+'Each\x20Allocator\x20in\x20an\x20Allocators\x20list\x20can\x20have\x20a\x20different\x20Guard\x20—\x20the\x20first\x20Allocator\x20whose\x20Guard\x20returns\x20true\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x20refund\x20Guard\x20on\x20\x27return_approved\x27\x20node\x20vs\x20damage\x20Guard\x20on\x20\x27damage_confirmed\x27\x20node).'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20specifies\x20a\x20recipient\x20(who),\x20a\x20value\x20(sharing),\x20and\x20a\x20mode.\x20'+'Items\x20can\x20mix\x20modes\x20(Amount\x20+\x20Rate\x20+\x20Surplus)\x20within\x20the\x20same\x20Allocator.\x20'+'ALLOCATION\x20ORDER:\x20Amount\x20items\x20first\x20(cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance\x20-\x20fix)\x20→\x20Surplus\x20item\x20(remaining).\x20'+'CONSTRAINTS:\x20max\x20ONE\x20Surplus\x20item\x20per\x20Allocator;\x20Rate\x20sum\x20must\x20==\x2010000\x20(no\x20Surplus)\x20or\x20<=\x2010000\x20(with\x20Surplus);\x20'+'Amount\x20sum\x20must\x20>=\x20threshold\x20(no\x20Rate\x20and\x20no\x20Surplus)\x20and\x20<=\x20max\x20(if\x20max\x20set).'),'fix':BalanceTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20result).\x20Cached\x20sum\x20of\x20all\x20Amount-mode\x20`sharing`\x20values\x20in\x20this\x20Allocator.\x20'+'Computed\x20by\x20the\x20contract\x20during\x20`allocator_add`\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20creation.\x20'+'Used\x20internally\x20to\x20compute\x20`total_rates\x20=\x20balance\x20-\x20fix`\x20for\x20Rate\x20allocation.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20cap\x20(OPTIONAL\x20—\x20omit\x20the\x20field\x20or\x20set\x20to\x20null\x20to\x20disable\x20the\x20cap;\x20do\x20NOT\x20set\x20to\x200\x20as\x20that\x20means\x20a\x20cap\x20of\x20zero).\x20'+'Passed\x20through\x20to\x20the\x20contract\x20as\x20Option<u64>\x20via\x20allocator_add():\x20when\x20null/omitted\x20the\x20contract\x20treats\x20it\x20as\x20`none`\x20(no\x20cap);\x20'+'when\x20set,\x20the\x20contract\x20enforces\x20it.\x20Has\x20THREE\x20effects\x20when\x20set:\x0a'+'1.\x20Construction:\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13)\x0a'+'2.\x20Rate\x20execution:\x20total_rates\x20=\x20max\x20-\x20fix\x20(instead\x20of\x20balance\x20-\x20fix)\x0a'+'3.\x20Surplus\x20execution:\x20surplus_amount\x20=\x20max\x20-\x20alloced_amount\x20(instead\x20of\x20balance\x20-\x20alloced_amount)\x0a'+'Use\x20when\x20you\x20want\x20to\x20cap\x20total\x20allocation\x20regardless\x20of\x20Order\x20balance\x20(e.g.,\x20cap\x20payout\x20to\x20declared\x20amount).\x20'+'SDK\x20pre-validates\x20Amount\x20sum\x20<=\x20max\x20at\x20build\x20time\x20to\x20give\x20actionable\x20error\x20messages\x20before\x20on-chain\x20abort.')})['describe']('Fund\x20allocator\x20—\x20a\x20complete\x20allocation\x20strategy\x20triggered\x20by\x20a\x20Guard.\x20'+'Contains\x20a\x20sharing[]\x20array\x20where\x20items\x20can\x20mix\x20Amount/Rate/Surplus\x20modes.\x20'+'When\x20the\x20Guard\x20passes,\x20the\x20contract\x20allocates\x20funds\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['default'](0x0)['describe']('Minimum\x20balance\x20required\x20for\x20allocation\x20to\x20fire.\x20'+'When\x20the\x20Allocation\x20object\x27s\x20balance\x20<\x20threshold,\x20allocation\x20aborts\x20with\x20EINSUFFICIENT_BALANCE=7.\x20'+'Also:\x20when\x20an\x20Allocator\x20has\x20only\x20Amount\x20items\x20(no\x20Rate,\x20no\x20Surplus),\x20the\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20threshold\x20(EAMOUNT_BELOW_THRESHOLD=12).\x20'+'Set\x20to\x200\x20(default)\x20to\x20allow\x20any\x20balance.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20allocator\x20is\x20evaluated\x20in\x20order;\x20the\x20FIRST\x20allocator\x20whose\x20Guard\x20passes\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x203\x20allocators\x20for\x203\x20forward\x20paths:\x20refund\x20/\x20damage-deduct\x20/\x20arbitrate).')})['describe']('Fund\x20allocator\x20list\x20—\x20the\x20top-level\x20allocation\x20configuration\x20attached\x20to\x20an\x20Order.\x20'+'Contains\x20a\x20threshold\x20and\x20a\x20list\x20of\x20Allocators.\x20When\x20funds\x20arrive\x20at\x20the\x20Order,\x20'+'the\x20first\x20Allocator\x20whose\x20Guard\x20passes\x20executes\x20its\x20sharing[]\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.\x20'+'MULTI-TIER\x20ALLOCATION\x20(DOC-04):\x20Each\x20Order\x20binds\x20ONE\x20Allocators\x20template\x20(set\x20on\x20Service.order_allocators\x20before\x20publish).\x20'+'For\x20multi-tier\x20distribution\x20(e.g.,\x20customer→agency→suppliers),\x20use\x20a\x20two-phase\x20approach:\x20'+'(1)\x20Tier-1\x20Allocators\x20on\x20the\x20customer\x27s\x20Order\x20(allocates\x20to\x20agency\x20+\x20refund\x20fund);\x20'+'(2)\x20Tier-2\x20Allocators\x20on\x20a\x20NEW\x20Order\x20created\x20by\x20the\x20agency\x20(allocates\x20agency\x27s\x20received\x20funds\x20to\x20suppliers).\x20'+'Each\x20tier\x27s\x20Rate-mode\x20sharing[]\x20must\x20independently\x20sum\x20to\x2010000\x20(or\x20<=\x2010000\x20with\x20Surplus).');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('Service\x20object\x20location'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused.\x20SPECIAL\x20CASE:\x20publish\x20auto-sets\x20bPaused=false\x20—\x20no\x20separate\x20unpause\x20call\x20needed\x20after\x20publish.'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20BALANCE\x20(NOT\x20a\x20Treasury\x20address).\x20'+'This\x20field\x20reports\x20the\x20total\x20amount\x20of\x20funds\x20currently\x20held\x20in\x20the\x20Service\x27s\x20compensation\x20pool.\x20'+'To\x20ADD\x20funds,\x20use\x20`service.compensation_fund_add`.\x20To\x20RECEIVE\x20funds\x20(as\x20order\x20owner\x20after\x20arbitration),\x20use\x20`service.compensation_fund_receive`.\x20'+'P2-03\x20clarification:\x20this\x20is\x20a\x20balance\x20value\x20(e.g.\x20{balance:\x20\x271000000000\x27,\x20token_type:\x20\x270x2::wow::WOW\x27}),\x20NOT\x20the\x20Treasury\x20object\x20address.\x20'+'The\x20Treasury\x20address\x20(if\x20bound)\x20is\x20queried\x20separately\x20via\x20the\x20Service\x27s\x20`repositories`\x20or\x20`order_allocators`\x20configuration.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'setting_lock_duration':z['union']([z['string'](),z['number'](),z['bigint']()])['describe']('Lock\x20duration\x20for\x20critical\x20operations.\x20Anchored\x20to\x20the\x20\x27paused_time\x27\x20timestamp.\x20'+'After\x20Service\x20is\x20published,\x20only\x20the\x20following\x20operations\x20are\x20gated\x20by\x20this\x20lock:\x20'+'(1)\x20compensation_fund_withdraw,\x20(2)\x20rewards\x20remove/clear,\x20(3)\x20arbitrations\x20remove/clear.\x20'+'All\x20require\x20the\x20Service\x20to\x20be\x20paused\x20AND\x20paused_time\x20+\x20setting_lock_duration\x20<=\x20current\x20clock.\x20'+'Adding\x20rewards/arbitrations,\x20modifying\x20sales/description/location/buy_guard/customer_required/um,\x20'+'and\x20depositing\x20to\x20compensation_fund\x20are\x20NOT\x20gated\x20by\x20this\x20lock.\x20'+'order_allocators\x20and\x20machine\x20are\x20permanently\x20immutable\x20after\x20publish\x20(not\x20related\x20to\x20this\x20lock).'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['enum'](['RATES','FIXED']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'RATES':a===0x1?'FIXED':'RATES')])['describe']('Discount\x20type.\x20Accepts\x20string\x20(\x27RATES\x27\x20or\x20\x27FIXED\x27)\x20or\x20number\x20(0=\x27RATES\x27,\x201=\x27FIXED\x27).\x20If\x20rate(0/RATES),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1/FIXED),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).\x20String\x20form\x20is\x20recommended.');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20balance'),'history_count':z['number']()['describe']('Transaction\x20record\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27TreasuryRecord\x27\x20table\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Inflow\x20amount'),'outflow':BalanceTypeSchema['describe']('Outflow\x20amount'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeUserSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.\x20Note:\x2019\x20(Value)\x20is\x20an\x20internal\x20dynamic\x20type\x20for\x20guard\x20expressions\x20and\x20is\x20NOT\x20accepted\x20here.')});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['nullable']()['optional']()['describe']('Guard\x20object\x20ID\x20(RecipientRecord\x20carries\x20none\x20—\x20the\x20per-claim\x20Record.guard\x20is\x20the\x20verified\x20guard)'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'guard':tolerantStringNullable['describe']('Guard\x20that\x20verified\x20this\x20claim\x20(reward.move\x20Record.guard)'),'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':tolerantNumber['describe']('Reward\x20time'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20or\x20virtual\x20location\x20information\x20for\x20this\x20contact'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20received\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20received\x20dislike\x20count'),'favor':z['number']()['describe']('User\x27s\x20received\x20favor\x20(收藏)\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['union']([z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20numeric\x20value.\x20Valid\x20range:\x20100-108.'}),z['string']()['refine'](a=>isValidWitnessType(a),{'message':'Invalid\x20WitnessType\x20string\x20name.\x20Valid\x20names:\x20OrderProgress\x20(100),\x20OrderMachine\x20(101),\x20OrderService\x20(102),\x20ProgressMachine\x20(103),\x20ArbOrder\x20(104),\x20ArbArbitration\x20(105),\x20ArbProgress\x20(106),\x20ArbMachine\x20(107),\x20ArbService\x20(108).\x20Case-insensitive;\x20\x22Type\x22\x20prefix\x20is\x20optional.'})])['describe']('When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20(witness)\x20object\x20instead\x20of\x20the\x20queried\x20object\x20itself.\x20This\x20enables\x20cross-object\x20queries\x20within\x20Guard\x20validation\x20logic.\x20Can\x20be\x20a\x20numeric\x20ID\x20(100-108)\x20or\x20a\x20string\x20name\x20(case-insensitive,\x20with\x20or\x20without\x20the\x20\x27Type\x27\x20prefix).\x20String\x20format\x20is\x20recommended\x20for\x20readability.\x0a\x0aAvailable\x20WitnessTypes:\x0a-\x20OrderProgress\x20/\x20TypeOrderProgress\x20(100):\x20Query\x20an\x20Order\x27s\x20associated\x20Progress\x20object.\x20Use\x20case:\x20Check\x20if\x20order\x20has\x20reached\x20a\x20specific\x20workflow\x20node\x20(e.g.,\x20\x27complete\x27)\x20before\x20allowing\x20reward\x20claims.\x0a-\x20OrderMachine\x20/\x20TypeOrderMachine\x20(101):\x20Query\x20an\x20Order\x27s\x20associated\x20Machine\x20(workflow\x20definition).\x20Use\x20case:\x20Verify\x20the\x20workflow\x20structure\x20or\x20check\x20node\x20configurations.\x0a-\x20OrderService\x20/\x20TypeOrderService\x20(102):\x20Query\x20an\x20Order\x27s\x20parent\x20Service\x20object.\x20Use\x20case:\x20Validate\x20the\x20service\x20offering\x20details\x20or\x20check\x20service-level\x20configurations.\x0a-\x20ProgressMachine\x20/\x20TypeProgressMachine\x20(103):\x20Query\x20a\x20Progress\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20from\x20a\x20Progress\x20context.\x0a-\x20ArbOrder\x20/\x20TypeArbOrder\x20(104):\x20Query\x20an\x20Arb\x27s\x20associated\x20Order.\x20Use\x20case:\x20In\x20arbitration\x20voting\x20guards,\x20verify\x20order\x20details\x20like\x20payment\x20amount\x20or\x20service\x20ID.\x0a-\x20ArbArbitration\x20/\x20TypeArbArbitration\x20(105):\x20Query\x20an\x20Arb\x27s\x20parent\x20Arbitration\x20service.\x20Use\x20case:\x20Access\x20arbitration\x20configuration\x20or\x20fee\x20settings\x20from\x20within\x20an\x20Arb\x20case.\x0a-\x20ArbProgress\x20/\x20TypeArbProgress\x20(106):\x20Query\x20an\x20Arb\x27s\x20associated\x20Progress.\x20Use\x20case:\x20Check\x20order\x20workflow\x20state\x20during\x20arbitration\x20validation.\x0a-\x20ArbMachine\x20/\x20TypeArbMachine\x20(107):\x20Query\x20an\x20Arb\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20for\x20dispute\x20context\x20analysis.\x0a-\x20ArbService\x20/\x20TypeArbService\x20(108):\x20Query\x20an\x20Arb\x27s\x20associated\x20Service.\x20Use\x20case:\x20Verify\x20service\x20terms\x20or\x20compensation\x20fund\x20status\x20during\x20arbitration.\x0a\x0aExample:\x20To\x20validate\x20that\x20an\x20order\x20has\x20reached\x20the\x20\x27complete\x27\x20node,\x20query\x20the\x20Order\x20with\x20convert_witness=\x27OrderProgress\x27\x20and\x20check\x20the\x20Progress\x27s\x20current_node\x20field.');export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['optional']()['describe']('Parameters\x20required\x20by\x20the\x20query.\x20Optional\x20—\x20defaults\x20to\x20empty\x20array\x20[].\x20Many\x20queries\x20(e.g.\x20progress.current,\x20order.service)\x20take\x20no\x20parameters;\x20for\x20those,\x20this\x20field\x20can\x20be\x20omitted.')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.\x20SPECIAL\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Use\x20system\x20addresses\x20in\x20the\x20Guard\x20table\x20-'+ENTITY_LINKER_ADDRESS+'\x20for\x20EntityLinker\x20queries,\x20'+ENTITY_REGISTRAR_ADDRESS+'\x20for\x20EntityRegistrar\x20queries.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_and\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_and.')['max'](MAX_MULTI_OPERANDS,'logic_and\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_or\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_or.')['max'](MAX_MULTI_OPERANDS,'logic_or\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['describe']('2\x20to\x20'+MAX_MULTI_OPERANDS+'\x20nodes\x20required.\x20First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).'),z['object']({'type':z['literal']('query_reward_record_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20record,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20record.'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20reward\x20record\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20Returns\x20the\x20record\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20record\x20is\x20found\x20(Guard\x20validation\x20fails).\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20count\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20reward\x20records\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_exists'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20existence\x20query.')})['strict']()['describe']('Returns\x20Bool.\x20Returns\x20true\x20if\x20at\x20least\x20one\x20reward\x20record\x20exists\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions,\x20otherwise\x20false.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_progress_history_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'where':z['object']({'node':z['string']()['optional']()['describe']('Optional\x20filter:\x20node\x20name\x20string\x20to\x20match.'),'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20history\x20entry,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20history\x20entry.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20history\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20entry\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20search\x20within.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20session,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20session.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20session\x20within\x20the\x20specified\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20session\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20session\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_forward_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'who':z['string']()['optional']()['describe']('Optional\x20filter:\x20operator\x20address\x20string\x20to\x20match.'),'operation':z['string']()['optional']()['describe']('Optional\x20filter:\x20operation\x20name\x20string\x20to\x20match.'),'accomplished':z['boolean']()['optional']()['describe']('Optional\x20filter:\x20whether\x20the\x20forward\x20operation\x20was\x20accomplished.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20forward\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20forward\x20operation,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20forward\x20operation.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20forward\x20operation\x20within\x20the\x20specified\x20history\x20session\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20forward\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20forward\x20operation\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20count\x20sessions\x20for.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20sessions\x20within\x20the\x20specified\x20history\x20entry.'),z['object']({'type':z['literal']('query_progress_history_session_forward_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20forward\x20operations\x20within\x20the\x20specified\x20history\x20session.'),z['object']({'type':z['literal']('query_progress_history_session_forward_retained_submission_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'forwardIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20forward\x20operation\x20index\x20(U64\x20type)\x20within\x20the\x20session.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20retained\x20submissions\x20within\x20the\x20specified\x20forward\x20operation.')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20for\x20a\x20specific\x20object\x20ID'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['union']([z['string'](),z['number']()])['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('Arbitration\x20object\x20location'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema['nullable']()['or'](z['number']()))['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':tolerantStringNullable['describe']('Recommended\x20service\x20object\x20ID'),'update_time':tolerantNumber['describe']('Last\x20update\x20time'),'acceptance_score':tolerantNumberNullable['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':tolerantNumber['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20name\x20or\x20address\x20(string).\x20Example:\x20\x27my_attendance_guard\x27\x20or\x20\x270x1234...\x27'),'retained_submission':z['array'](tolerantNumber)['nullable']()['optional']()['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['strict']()['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object.\x20ALWAYS\x20an\x20OBJECT\x20{guard:\x20string,\x20retained_submission?:\x20number[]}\x20—\x20never\x20a\x20plain\x20string.\x20The\x20inner\x20\x27guard\x27\x20field\x20is\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20string.');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':tolerantStringNullable['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':tolerantNumberNullable['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).'),'weight':tolerantNumber['describe']('Forward\x20weight\x20—\x20the\x20contribution\x20this\x20forward\x20makes\x20toward\x20its\x20Pair\x27s\x20threshold.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20a\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE.\x20It\x20is\x20locked\x20by\x20'+'the\x20first\x20operator\x20that\x20accomplishes\x20it\x20(progress.move\x20session_accomplish_imp);\x20a\x20second\x20'+'operator\x20re-executing\x20the\x20same\x20accomplished\x20forward\x20aborts\x20E_NOT_THE_HOLDER.\x20Therefore\x20'+'multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20contributing\x20'+'operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201)\x20—\x20never\x20reuse\x20one\x20forward.'),'guard':z['preprocess'](a=>{if(typeof a==='string')return{'guard':a};return a;},z['union']([MachineForwardGuardSchema['describe']('OBJECT\x20form:\x20{guard:\x20\x27<guard_name_or_address>\x27,\x20retained_submission?:\x20number[]}.\x20'+'Use\x20this\x20form\x20when\x20you\x20need\x20to\x20pass\x20retained_submission\x20data\x20alongside\x20the\x20Guard\x20reference.'),z['string']()['describe']('STRING\x20form\x20(shorthand):\x20the\x20Guard\x20object\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x20'+'Auto-wrapped\x20to\x20{guard:\x20<string>}\x20at\x20runtime.\x20Use\x20this\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20without\x20retained_submission.')])['nullable']()['optional']())['describe']('Guard\x20reference\x20for\x20this\x20forward.\x20Accepts\x20TWO\x20formats:\x0a'+'•\x20STRING\x20(preferred):\x20\x22my_guard_name\x22\x20—\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x0a'+'•\x20OBJECT\x20(only\x20when\x20retained_submission\x20is\x20needed):\x20{guard:\x20\x22my_guard_name\x22,\x20retained_submission:\x20[1,2,3]}.\x0a'+'FOLLOW\x20THE\x20SCHEMA\x20FIELD\x20STRUCTURE:\x20A\x20Guard\x20reference\x20is\x20fundamentally\x20a\x20STRING\x20(the\x20Guard\x20object\x27s\x20name\x20or\x20address).\x20'+'Provide\x20a\x20string\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20—\x20do\x20NOT\x20wrap\x20a\x20bare\x20string\x20in\x20an\x20object\x20structure.\x20'+'The\x20OBJECT\x20form\x20{guard:\x20\x22...\x22,\x20retained_submission:\x20[...]}\x20exists\x20ONLY\x20to\x20carry\x20additional\x20`retained_submission`\x20data\x20'+'alongside\x20the\x20string\x20reference;\x20inside\x20the\x20object,\x20the\x20`guard`\x20field\x20is\x20STILL\x20a\x20string.\x20'+'In\x20short:\x20string-in\x20for\x20a\x20string\x20reference,\x20object-in\x20only\x20when\x20you\x20need\x20to\x20pass\x20extra\x20data.\x0a'+'COGNITIVE\x20PRINCIPLE:\x20Guard\x20validation\x20ALWAYS\x20occurs\x20BEFORE\x20the\x20forward\x20operation.\x20'+'A\x20Guard\x20that\x20queries\x20state\x20of\x20the\x20SAME\x20Progress\x20object\x20this\x20forward\x20operates\x20on\x20'+'(e.g.\x20progress.current)\x20will\x20see\x20the\x20PRE-transition\x20value\x20(source\x20node),\x20NOT\x20the\x20target\x20node.\x20'+'If\x20the\x20Guard\x20checks\x20progress.current\x20==\x20target_node,\x20it\x20will\x20ALWAYS\x20FAIL.\x20'+'Querying\x20a\x20DIFFERENT\x20Progress\x20object\x20(cross-machine)\x20is\x20safe\x20and\x20reasonable\x20—\x20'+'that\x20progress\x20is\x20not\x20modified\x20by\x20this\x20forward.\x20'+'For\x20target-node\x20verification\x20after\x20transition,\x20bind\x20the\x20Guard\x20to\x20the\x20Allocator\x20instead\x20'+'(allocation.alloc\x20runs\x20AFTER\x20the\x20state\x20transition\x20completes).\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-3):\x20WoWok\x20has\x20NO\x20on-chain\x20cron.\x20A\x20business\x20phrase\x20like\x20\x27after\x20N\x20days,\x20auto-X\x27\x20'+'is\x20NOT\x20an\x20automatic\x20trigger\x20—\x20it\x20decomposes\x20into\x20(1)\x20a\x20time_guard\x20that\x20checks\x20elapsed\x20time,\x20and\x20'+'(2)\x20an\x20OFF-CHAIN\x20keeper\x20that\x20must\x20submit\x20the\x20forward\x20when\x20the\x20guard\x20passes.\x20'+'Configuring\x20a\x20time_guard\x20WITHOUT\x20a\x20keeper\x20means\x20nothing\x20ever\x20fires.')})['strict']()['refine'](a=>a['namedOperator']!==null&&a['namedOperator']!==undefined||a['permissionIndex']!==null&&a['permissionIndex']!==undefined,{'message':'One\x20of\x20\x27namedOperator\x27\x20or\x20\x27permissionIndex\x27\x20must\x20be\x20provided\x20for\x20each\x20forward.\x20'+'Use\x20namedOperator:\x27\x27\x20(empty\x20string)\x20when\x20the\x20ORDER\x20OWNER\x20operates\x20this\x20forward;\x20'+'use\x20a\x20permissionIndex\x20(e.g.\x201000)\x20when\x20the\x20same\x20operator\x20acts\x20for\x20all\x20orders.'})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name.\x20Empty\x20string\x20\x27\x27\x20means\x20initial\x20entry\x20node\x20(the\x20first\x20node\x20in\x20the\x20workflow).'),'threshold':tolerantNumber['default'](0x0)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20each\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE\x20(locked\x20by\x20its\x20first\x20operator\x20—\x20progress.move\x20session_accomplish_imp;\x20'+'re-execution\x20by\x20others\x20aborts\x20E_NOT_THE_HOLDER).\x20The\x20maximum\x20achievable\x20weight\x20of\x20this\x20Pair\x20is\x20the\x20sum\x20of\x20its\x20DISTINCT\x20forward\x20weights\x20—\x20'+'if\x20that\x20sum\x20<\x20threshold\x20the\x20transition\x20can\x20NEVER\x20migrate.\x20Multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20'+'contributing\x20operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201),\x20never\x20one\x20forward\x20reused\x20by\x20several\x20people.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list\x20—\x20operations\x20to\x20ENTER\x20THIS\x20NODE\x20from\x20prev_node.\x20'+'SEMANTIC\x20CLARIFICATION:\x20forwards\x20describe\x20INCOMING\x20transitions\x20(how\x20to\x20ARRIVE\x20at\x20this\x20node),\x20'+'NOT\x20outgoing\x20transitions.\x20Think\x20of\x20each\x20forward\x20as\x20an\x20\x27entry\x20door\x27\x20to\x20this\x20node.\x20'+'Example:\x20pair\x20{prev_node:\x27A\x27,\x20forwards:[{name:\x27Go\x27}]}\x20means\x20\x27use\x20Go\x20to\x20advance\x20FROM\x20A\x20TO\x20THIS\x20NODE\x27.\x20'+'For\x20initial\x20node\x20(prev_node=\x27\x27),\x20forwards\x20are\x20operations\x20to\x20enter\x20this\x20node\x20from\x20the\x20start\x20state.\x20'+'DIAGRAM:\x20A\x20--[Go]-->\x20B\x20means\x20the\x20pair\x20belongs\x20to\x20node\x20B\x20(destination),\x20with\x20prev_node=\x27A\x27.\x20'+'WARNING:\x20forwards\x20belong\x20to\x20the\x20DESTINATION\x20node\x27s\x20pair,\x20NOT\x20the\x20source\x20node.\x20'+'Placing\x20a\x20forward\x20on\x20the\x20wrong\x20pair\x20will\x20cause\x20Progress\x20to\x20get\x20stuck.')})['strict']()['describe']('Node\x20pair\x20in\x20Machine\x20object')['refine'](a=>{if(a['prev_node']===''&&a['forwards']['length']===0x0)return![];return!![];},{'message':'Initial\x20node\x20(prev_node=\x27\x27)\x20must\x20have\x20at\x20least\x20one\x20forward.\x20Without\x20a\x20forward,\x20Progress\x20cannot\x20advance\x20from\x20\x27\x27\x20to\x20this\x20node,\x20causing\x20the\x20order\x20workflow\x20to\x20be\x20permanently\x20stuck.'});export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.\x20⚠️\x20T1\x20LOSSY\x20POINT\x20(B-1):\x20do\x20NOT\x20name\x20a\x20node\x20\x27refund\x27/\x27refunded\x27/\x27disputed\x27/\x27cancelled\x27\x20'+'to\x20model\x20fund\x20return\x20or\x20dispute\x20—\x20funds\x20MUST\x20move\x20through\x20the\x20Allocation\x20waterfall\x20(order_allocators),\x20'+'NOT\x20through\x20Machine\x20terminal\x20nodes\x20(R-M1-11).\x20A\x20node\x20named\x20\x27refund\x27\x20is\x20a\x20semantic\x20lie:\x20reaching\x20it\x20does\x20'+'not\x20move\x20funds\x20by\x20itself.\x20Model\x20refund\x20as\x20a\x20refund-to-Order\x20Allocator\x20slot\x20(a\x20{\x20Signer\x20}\x20or\x20Order-owner\x20'+'recipient),\x20and\x20model\x20dispute\x20as\x20the\x20bound\x20Arbitration,\x20not\x20a\x20Machine\x20node.'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['strict']()['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':tolerantNumber['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':tolerantNumberNullable['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':tolerantStringNullable['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':tolerantNumber['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':CacheExpireTypeSchema['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent'),z['literal']('ServiceEvent'),z['literal']('DemandChangedEvent'),z['literal']('VoteEvent'),z['literal']('FeedbackEvent'),z['literal']('AllocationEvent'),z['literal']('TreasuryEvent'),z['literal']('RewardClaimEvent'),z['literal']('RewardFundEvent'),z['literal']('NewPaymentEvent'),z['string']()])['describe']('Event\x20type.\x20Supports\x20Wowok\x20built-in\x20types\x20(ArbEvent,\x20NewOrderEvent,\x20ProgressEvent,\x20DemandPresentEvent,\x20DemandFeedbackEvent,\x20NewEntityEvent,\x20ServiceEvent,\x20DemandChangedEvent,\x20VoteEvent,\x20FeedbackEvent,\x20AllocationEvent,\x20TreasuryEvent,\x20RewardClaimEvent,\x20RewardFundEvent,\x20NewPaymentEvent)\x20or\x20any\x20string\x20for\x20generic\x20MoveEventType\x20(e.g.,\x20\x270x2::coin::CoinEvent\x27).\x20See\x20the\x20Event\x20Semantics\x20Registry\x20(knowledge/event-semantics.ts)\x20for\x20every\x20event\x27s\x20trigger\x20logic,\x20parameter\x20meanings,\x20and\x20business\x20semantics\x20—\x20especially\x20NewPaymentEvent\x20(the\x20universal\x20fund-flow\x20receipt:\x20from_object\x20is\x20the\x20internal-only\x20funding-source\x20object\x20—\x20Treasury/Allocation/Service\x20—\x20set\x20by\x20the\x20framework,\x20never\x20by\x20user\x20code).');export const EventCursorSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':EventTypeSchema,'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['union']([z['string'](),z['number']()])['describe']('Event\x20occurrence\x20time'),'parsedJson_raw':z['any']()['optional']()['describe']('Raw\x20parsed\x20JSON\x20data\x20from\x20the\x20event')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema,'indemnity_amount':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Compensation\x20awarded\x20(smallest-unit,\x20when\x20the\x20transition\x20rules\x20indemnity).'),'compensation_time':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Claim-ready\x20time\x20(when\x20the\x20transition\x20finishes\x20indemnity).')})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const ServiceEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Service\x20object\x20ID'),'location':z['string']()['describe']('Service\x20location'),'description':z['string']()['describe']('Service\x20description\x20preview\x20(<=260\x20UTF-8\x20chars).')})['describe']('Service\x20market-opportunity\x20event');export const DemandChangedEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Demand\x20object\x20ID'),'location':z['string']()['describe']('Demand\x20location'),'description':z['string']()['describe']('Demand\x20description\x20preview\x20(<=260\x20UTF-8\x20chars).'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20addresses\x20(amounts\x20read\x20from\x20Reward\x20objects).')})['describe']('Demand\x20market-opportunity\x20event');export const VoteEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'voter':z['string']()['describe']('Voter\x20address'),'agrees':z['array'](z['number']())['describe']('Supported\x20proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight')})['describe']('Arbitration\x20vote\x20event');export const FeedbackEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content')})['describe']('Arbitration\x20feedback\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema,ServiceEventSchema,DemandChangedEventSchema,VoteEventSchema,FeedbackEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types:\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20event\x20query')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const MonitorEventModuleSchema=z['enum'](['order','arb','demand','progress','treasury','reward'])['describe']('Monitor\x20module:\x20\x27order\x27\x20(NewOrderEvent),\x20\x27arb\x27\x20(ArbEvent/VoteEvent/FeedbackEvent),\x20\x27demand\x27\x20(DemandPresentEvent/DemandFeedbackEvent/DemandChangedEvent),\x20\x27progress\x27\x20(ProgressEvent),\x20\x27treasury\x27\x20(AllocationEvent/TreasuryEvent),\x20\x27reward\x27\x20(RewardClaimEvent/RewardFundEvent)');export const MonitorEventsInputSchema=z['object']({'action':z['enum'](['query','mark_read','mark_all_read'])['describe']('\x27query\x27\x20—\x20paginated\x20read\x20of\x20the\x20persistent\x20per-event\x20store\x20(append-only,\x20survives\x20restarts);\x20'+'\x27mark_read\x27\x20—\x20mark\x20the\x20given\x20event_ids\x20as\x20read;\x20'+'\x27mark_all_read\x27\x20—\x20mark\x20every\x20stored\x20event\x20as\x20read\x20(optionally\x20scoped\x20to\x20one\x20module)'),'module':MonitorEventModuleSchema['optional']()['describe']('Optional\x20module\x20filter\x20(query\x20/\x20mark_all_read).\x20Omit\x20to\x20span\x20all\x20modules'),'limit':z['number']()['int']()['positive']()['max'](0x1f4)['optional']()['describe']('Page\x20size\x20for\x20action=\x27query\x27\x20(default\x2050,\x20max\x20500)'),'offset':z['number']()['int']()['min'](0x0)['optional']()['describe']('Pagination\x20offset\x20for\x20action=\x27query\x27\x20(default\x200)'),'event_ids':z['array'](z['string']())['optional']()['describe']('Event\x20ids\x20to\x20mark\x20read\x20for\x20action=\x27mark_read\x27\x20(format\x20\x27<eventSeq>:<txDigest>\x27)'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20the\x20persistent\x20monitor\x20event\x20store\x20(query\x20+\x20read-state\x20management)');export const MonitorEventItemSchema=z['object']({'id':z['string']()['describe']('Event\x20id\x20(\x27<eventSeq>:<txDigest>\x27)'),'module':z['string']()['describe']('Monitor\x20module\x20the\x20event\x20belongs\x20to'),'type':z['string']()['describe']('Short\x20event\x20type\x20(e.g.\x20\x27NewOrderEvent\x27)'),'time':z['number']()['describe']('Event\x20timestamp\x20in\x20milliseconds'),'seen':z['boolean']()['describe']('Read\x20flag\x20—\x20true\x20when\x20the\x20event\x20has\x20been\x20marked\x20read'),'event':z['union']([z['record'](z['string'](),z['any']()),z['null']()])['describe']('Full\x20normalized\x20event\x20payload')})['describe']('One\x20stored\x20monitor\x20event\x20with\x20its\x20read\x20flag');export const MonitorEventsResultSchema=z['object']({'result':z['object']({'action':z['string']()['describe']('Echo\x20of\x20the\x20requested\x20action'),'events':z['array'](MonitorEventItemSchema)['optional']()['describe']('Page\x20of\x20events\x20(action=\x27query\x27)'),'total':z['number']()['optional']()['describe']('Total\x20events\x20in\x20the\x20queried\x20pool\x20(action=\x27query\x27)'),'module_counts':z['record'](z['string'](),z['number']())['optional']()['describe']('Stored\x20event\x20count\x20per\x20module\x20(action=\x27query\x27)'),'unread_by_module':z['record'](z['string'](),z['number']())['optional']()['describe']('Unread\x20count\x20per\x20module\x20(action=\x27query\x27)'),'total_unread':z['number']()['describe']('Total\x20unread\x20events\x20after\x20the\x20operation'),'marked':z['number']()['optional']()['describe']('How\x20many\x20events\x20flipped\x20to\x20read\x20(mark\x20actions)')}),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary')})['describe']('Result\x20of\x20the\x20monitor_events\x20tool');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index\x20(e.g.\x20315\x20for\x20service.compensation_fund_deposit)'),'name':z['string']()['describe']('Permission\x20name\x20(e.g.\x20\x22service.compensation_fund_deposit\x22)'),'description':z['string']()['describe']('Description\x20of\x20what\x20this\x20permission\x20allows'),'object_type':z['string']()['describe']('Object\x20type\x20this\x20permission\x20belongs\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['optional'](z['string']())['describe']('The\x20SDK/MCP\x20operation\x20field\x20name\x20that\x20triggers\x20this\x20permission\x20check\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22publish\x22,\x20\x22pause\x22).\x20Undefined\x20for\x20permissions\x20with\x20no\x20direct\x20Call*_Data\x20field\x20(e.g.\x20\x22*.new\x22\x20permissions).\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20by\x20filtering\x20with\x20{operation:\x20\x22compensation_fund_add\x22}.')})['describe']('Permission\x20info\x20type\x20—\x20includes\x20the\x20operation\x20field\x20name\x20that\x20maps\x20to\x20this\x20permission,\x20so\x20AI\x20can\x20look\x20up\x20required\x20permissions\x20by\x20operation\x20name.');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(OperatorType\x20or\x20ContextType)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'description':z['string']()['describe']('Description'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20or\x20a\x20guard\x20query');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20SDK/MCP\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22).\x20Returns\x20only\x20permissions\x20triggered\x20by\x20this\x20operation.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22')})['describe']('Permission\x20filter');export const CommonMistakeInfoSchema=z['object']({'object_type':z['string']()['describe']('The\x20object\x20type\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['string']()['describe']('The\x20operation\x20field\x20name\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22voting_deadline\x22)'),'category':z['enum'](['field_name','unit','value_range','workflow','timing'])['describe']('Category\x20of\x20the\x20mistake:\x20field_name\x20(wrong\x20field\x20name),\x20unit\x20(wrong\x20unit\x20like\x20seconds\x20vs\x20ms),\x20value_range\x20(wrong\x20expected\x20value),\x20workflow\x20(wrong\x20operation\x20order),\x20timing\x20(wrong\x20time\x20constraint)'),'mistake':z['string']()['describe']('Short\x20description\x20of\x20the\x20mistake'),'correct_usage':z['string']()['describe']('The\x20correct\x20usage\x20pattern'),'wrong_example':z['string']()['describe']('Example\x20of\x20the\x20wrong\x20usage'),'correct_example':z['string']()['describe']('Example\x20of\x20the\x20correct\x20usage')})['describe']('A\x20known\x20common\x20mistake\x20for\x20an\x20on-chain\x20operation.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20they\x20submit\x20a\x20transaction.');export const CommonMistakeFilterSchema=z['object']({'object_type':z['optional'](z['string']())['describe']('Filter\x20by\x20object\x20type\x20(e.g.\x20\x22Service\x22)'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22)'),'category':z['optional'](z['enum'](['field_name','unit','value_range','workflow','timing']))['describe']('Filter\x20by\x20category\x20(e.g.\x20\x22field_name\x22\x20for\x20field-name\x20mistakes,\x20\x22unit\x22\x20for\x20unit\x20mistakes)')})['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation.');export const BridgeTokenInfoSchema=z['object']({'tokenId':z['number']()['describe']('On-chain\x20token\x20ID\x20(mainnet:\x20WBTC=1,\x20ETH/WETH=2,\x20USDC=3,\x20USDT=4)'),'symbol':z['string']()['describe']('Token\x20symbol/abbreviation\x20(ETH,\x20WETH,\x20WBTC,\x20USDC,\x20USDT)'),'wowTypeTag':z['string']()['describe']('WOW-side\x20token\x20type\x20tag\x20(format:\x20{address}::{module}::{struct},\x20e.g.\x20\x220x2::wow::WOW\x22,\x20\x220x...::usdt::USDT\x22).\x20IMPORTANT:\x20This\x20value\x20can\x20be\x20used\x20directly\x20as\x20the\x20`type_parameter`\x20for\x20Service\x20/\x20Treasury\x20/\x20Reward\x20/\x20Allocation\x20objects\x20to\x20set\x20their\x20payment\x20token.\x20e.g.\x20use\x20USDT\x27s\x20wowTypeTag\x20to\x20create\x20a\x20Service\x20that\x20accepts\x20USDT\x20payments.\x20To\x20discover\x20all\x20available\x20tokens,\x20query\x20this\x20info\x20type.'),'evmAddress':z['string']()['describe']('EVM-side\x20contract\x20address\x20(0x000...000\x20for\x20native\x20ETH;\x20ERC20\x20contract\x20address\x20otherwise)'),'evmDecimals':z['number']()['describe']('EVM-side\x20decimals\x20(ETH/WETH=18,\x20WBTC=8,\x20USDC/USDT=6)'),'wowDecimals':z['number']()['describe']('WOW-side\x20decimals\x20(ETH/WBTC=8,\x20USDC/USDT=6)'),'evmChains':z['array'](z['number']())['optional']()['describe']('Bridge\x20protocol\x20chain\x20IDs\x20where\x20this\x20token\x20is\x20available\x20(e.g.\x2010\x20=\x20ETH\x20mainnet)'),'description':z['string']()['optional']()['describe']('Token\x20description')})['describe']('Mainnet\x20Bridge\x20token\x20info');export const FundingGuidanceSchema=z['object']({'overview':z['string']()['describe']('Overview\x20of\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens'),'testnet':z['object']({'token':z['string']()['describe']('Testnet\x20token\x20(WOW)'),'method':z['literal']('faucet')['describe']('Testnet\x20funding\x20method\x20(faucet)'),'faucet_url':z['string']()['describe']('Testnet\x20faucet\x20URL'),'note':z['string']()['describe']('Testnet\x20funding\x20note:\x20all\x20merchant/order\x20testing\x20can\x20use\x20WOW')}),'mainnet':z['object']({'method':z['literal']('eth_bridge')['describe']('Mainnet\x20funding\x20method\x20(ETH\x20mainnet\x20cross-chain\x20bridge)'),'supported_tokens':z['array'](z['string']())['describe']('Tokens\x20supported\x20by\x20the\x20mainnet\x20bridge\x20(ETH/USDT/USDC/WBTC)'),'steps':z['array'](z['string']())['describe']('Step-by-step\x20mainnet\x20funding\x20flow:\x20query\x20active\x20EVM\x20account\x20→\x20transfer\x20from\x20external\x20wallet\x20→\x20confirm\x20balance\x20→\x20cross-chain\x20to\x20WOW')}),'airdrop':z['object']({'url':z['string']()['describe']('WOW\x20mainnet\x20airdrop\x20URL'),'status':z['string']()['describe']('Airdrop\x20status\x20(under\x20construction)')}),'payment_token':z['object']({'testnet_default':z['string']()['describe']('Default\x20testnet\x20payment\x20token\x20(WOW)'),'mainnet_option':z['string']()['describe']('Mainnet\x20payment\x20token\x20option\x20(USDT\x20and\x20other\x20stablecoins)'),'migration_note':z['string']()['describe']('Guidance:\x20ask\x20whether\x20to\x20switch\x20payment\x20token\x20when\x20migrating\x20testnet\x20→\x20mainnet')})})['describe']('Funding\x20guidance\x20—\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens\x20(testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop).\x20This\x20is\x20the\x20first-step\x20guidance\x20for\x20new\x20users.');export const UniversalTemplateSchema=z['object']({'template':z['literal']('universal')['describe']('Template\x20kind'),'version':z['string']()['describe']('Template\x20version'),'anti_cheat_baseline':z['object']({'fake_orders':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'fake_reviews':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'shell_merchant':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'reputation_trade':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())})})['describe']('Anti-cheat\x20detector\x20baselines'),'pricing_redlines':z['array'](z['string']())['describe']('Forbidden\x20dynamic-pricing\x20mode\x20names'),'governance_redlines':z['array'](z['string']())['describe']('Governance\x20red\x20lines'),'quality_signals':z['array'](z['string']())['describe']('Quality\x20signal\x20identifiers'),'consumer_journey':z['array'](z['string']())['describe']('Consumer\x20journey\x20stages'),'north_star_metric':z['string']()['describe']('North-star\x20metric\x20id'),'revenue_boundary':z['string']()['describe']('Sustainable\x20revenue\x20boundary')})['describe']('Universal\x20Template\x20—\x20cross-industry\x20baselines\x20and\x20red\x20lines');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['strict']()['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20which\x20permission\x20a\x20specific\x20operation\x20requires.')})['strict']()['describe']('Built-in\x20permissions\x20query.\x20Each\x20permission\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20that\x20maps\x20to\x20the\x20SDK/MCP\x20Call*_Data\x20field\x20name\x20triggering\x20it.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20—\x20e.g.\x20filter\x20operation:\x22compensation_fund_add\x22\x20returns\x20permission\x20index\x20315\x20(service.compensation_fund_deposit).'),z['object']({'info':z['literal']('common\x20mistakes'),'filter':z['optional'](CommonMistakeFilterSchema)['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation,\x20or\x20category:\x22field_name\x22\x20for\x20all\x20field-name\x20mistakes.')})['strict']()['describe']('Common\x20mistakes\x20query.\x20Returns\x20known\x20field-name,\x20unit,\x20value-range,\x20workflow,\x20and\x20timing\x20pitfalls\x20for\x20on-chain\x20operations.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20submitting\x20a\x20transaction.\x20Example:\x20query\x20operation:\x22compensation_fund_add\x22\x20to\x20learn\x20about\x20the\x20{amount}\x20vs\x20{balance}\x20field\x20name\x20mistake.'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['strict']()['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['strict']()['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['strict']()['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations'),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens')})['strict']()['describe']('Mainnet\x20Bridge\x20tokens\x20query\x20-\x20returns\x20all\x20tokens\x20deployed\x20on\x20the\x20mainnet\x20bridge\x20with\x20their\x20symbol,\x20WOW-side\x20type\x20tag,\x20EVM\x20address,\x20decimals,\x20and\x20description'),z['object']({'info':z['literal']('funding\x20guidance')})['strict']()['describe']('Funding\x20guidance\x20query\x20-\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens.\x20Returns\x20testnet\x20faucet\x20info,\x20mainnet\x20ETH\x20cross-chain\x20bridge\x20flow,\x20and\x20the\x20WOW\x20mainnet\x20airdrop\x20link.\x20Use\x20this\x20when\x20a\x20user\x20asks\x20how\x20to\x20obtain\x20tokens/gas/funds,\x20or\x20as\x20a\x20proactive\x20first-use\x20reminder.'),z['object']({'info':z['literal']('upgrade_check')})['strict']()['describe']('Upgrade\x20check\x20-\x20returns\x20current\x20vs\x20latest\x20npm\x20versions\x20of\x20the\x20WoWok\x20MCP\x20server\x20and\x20SDK,\x20whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed,\x20and\x20whether\x20an\x20upgrade/install\x20reminder\x20is\x20due.\x20Call\x20at\x20the\x20start\x20of\x20a\x20conversation\x20to\x20decide\x20whether\x20to\x20remind\x20the\x20user\x20to\x20upgrade\x20or\x20install\x20the\x20client.'),z['object']({'info':z['literal']('universal_template')})['strict']()['describe']('Universal\x20Template\x20query\x20-\x20returns\x20cross-industry\x20baselines\x20and\x20red\x20lines\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)\x20that\x20hold\x20across\x20ALL\x20industries\x20(K3\x2017\x20§2).')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const UpgradeCheckComponentSchema=z['object']({'current':z['string']()['nullable']()['describe']('Currently\x20installed/running\x20version'),'latest':z['string']()['nullable']()['describe']('Latest\x20published\x20npm\x20version\x20(null\x20when\x20offline/unreachable)'),'outdated':z['boolean']()['describe']('true\x20when\x20a\x20newer\x20version\x20is\x20available')})['describe']('A\x20component\x20version\x20comparison');export const UpgradeCheckResultSchema=z['object']({'mcp':UpgradeCheckComponentSchema['describe']('WoWok\x20MCP\x20server\x20version\x20comparison'),'sdk':UpgradeCheckComponentSchema['describe']('WoWok\x20SDK\x20version\x20comparison'),'client_installed':z['boolean']()['describe']('Whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed'),'client_install_hint':z['string']()['nullable']()['describe']('Where\x20to\x20get\x20the\x20desktop\x20client\x20(e.g.\x20download\x20URL)'),'upgrade_available':z['boolean']()['describe']('true\x20when\x20any\x20component\x20is\x20outdated'),'reminder':z['object']({'type':z['enum'](['upgrade','install_client','none'])['describe']('Reminder\x20kind'),'due':z['boolean']()['describe']('Whether\x20to\x20surface\x20the\x20reminder\x20in\x20this\x20conversation'),'message':z['string']()['nullable']()['describe']('Ready-to-use,\x20benefit-focused\x20reminder\x20message;\x20null\x20when\x20not\x20due')})['describe']('Reminder\x20decision'),'checked_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20check')})['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result.\x20Each\x20item\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20mapping\x20to\x20the\x20SDK/MCP\x20field\x20name\x20that\x20triggers\x20this\x20permission.')}),z['object']({'info':z['literal']('common\x20mistakes'),'result':z['array'](CommonMistakeInfoSchema)['describe']('Common\x20mistakes\x20result.\x20Each\x20item\x20documents\x20a\x20known\x20pitfall\x20(wrong\x20field\x20name,\x20wrong\x20unit,\x20wrong\x20workflow\x20order,\x20etc.)\x20with\x20wrong/correct\x20examples.')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')}),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens'),'result':z['array'](BridgeTokenInfoSchema)['describe']('Mainnet\x20Bridge\x20tokens\x20result\x20-\x20each\x20item\x20contains\x20tokenId,\x20symbol,\x20wowTypeTag,\x20evmAddress,\x20evmDecimals,\x20wowDecimals,\x20evmChains,\x20and\x20description')}),z['object']({'info':z['literal']('funding\x20guidance'),'result':FundingGuidanceSchema['describe']('Funding\x20guidance\x20result\x20-\x20testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop\x20/\x20payment-token\x20guidance')}),z['object']({'info':z['literal']('upgrade_check'),'result':UpgradeCheckResultSchema['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result')}),z['object']({'info':z['literal']('universal_template'),'result':UniversalTemplateSchema['describe']('Universal\x20Template\x20data\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const TxObjectChangeSchema=z['object']({'id':z['string']()['describe']('Object\x20ID\x20affected\x20by\x20the\x20transaction'),'type':z['enum'](['created','mutated','deleted','wrapped','unwrapped'])['describe']('Type\x20of\x20object\x20change'),'object_type':z['string']()['optional']()['describe']('Full\x20Move\x20type\x20of\x20the\x20object'),'sender':z['string']()['optional']()['describe']('Sender\x20who\x20caused\x20this\x20object\x20change'),'version':z['string']()['optional']()['describe']('Object\x20version\x20after\x20the\x20change'),'previous_version':z['string']()['optional']()['describe']('Previous\x20object\x20version\x20(for\x20mutations)'),'digest':z['string']()['optional']()['describe']('Transaction\x20digest\x20that\x20caused\x20this\x20change')})['strict']()['describe']('Object\x20change\x20within\x20a\x20transaction');export const TxBalanceChangeSchema=z['object']({'owner':z['string']()['describe']('Owner\x20address\x20of\x20the\x20balance\x20change'),'coin_type':z['string']()['describe']('Coin\x20type\x20(e.g.\x200x2::wow::WOW)'),'amount':z['string']()['describe']('Amount\x20changed\x20(signed\x20string,\x20positive=incoming,\x20negative=outgoing)')})['strict']()['describe']('Balance\x20change\x20within\x20a\x20transaction');export const TxEventSchema=z['object']({'type':z['string']()['describe']('Fully-qualified\x20event\x20type\x20(e.g.\x200x2::progress::ProgressEvent)'),'package_id':z['string']()['optional']()['describe']('Package\x20that\x20declared\x20the\x20event\x20module'),'module':z['string']()['optional']()['describe']('Module\x20name\x20that\x20emitted\x20the\x20event'),'sender':z['string']()['optional']()['describe']('Sender\x20of\x20the\x20emitting\x20transaction'),'parsed_json':z['unknown']()['optional']()['describe']('Parsed\x20JSON\x20payload\x20of\x20the\x20event\x20(Move\x20struct\x20fields)'),'bcs':z['string']()['optional']()['describe']('Raw\x20BCS\x20bytes\x20of\x20the\x20event\x20(base64)')})['strict']()['describe']('Event\x20emitted\x20by\x20a\x20transaction');export const TransactionDetailSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20the\x20transaction\x20failed'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds\x20(string)'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'gas_used':z['string']()['optional']()['describe']('Total\x20gas\x20used\x20(string,\x20BigInt)'),'gas_budget':z['string']()['optional']()['describe']('Gas\x20budget\x20set\x20by\x20the\x20sender\x20(string)'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind\x20(e.g.\x20ProgrammableTransaction)'),'object_changes':z['array'](TxObjectChangeSchema)['describe']('Object\x20changes\x20(created/mutated/deleted)'),'balance_changes':z['array'](TxBalanceChangeSchema)['describe']('Balance\x20changes\x20for\x20all\x20involved\x20owners'),'event_count':z['number']()['describe']('Number\x20of\x20events\x20emitted\x20by\x20this\x20transaction'),'events':z['array'](TxEventSchema)['describe']('Events\x20emitted\x20by\x20the\x20transaction.\x20Always\x20populated\x20by\x20query_transaction\x20(showEvents=true).\x20'+'Each\x20event\x20carries\x20its\x20Move\x20struct\x20payload\x20(parsed_json)\x20so\x20callers\x20can\x20inspect\x20'+'ProgressEvent,\x20NewOrderEvent,\x20ArbEvent,\x20etc.\x20without\x20an\x20extra\x20query.'),'epoch':z['string']()['optional']()['describe']('Epoch\x20number\x20when\x20the\x20transaction\x20was\x20executed'),'is_system_tx':z['boolean']()['optional']()['describe']('Whether\x20this\x20was\x20a\x20system\x20transaction'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Full\x20transaction\x20detail\x20—\x20verifiable\x20proof\x20of\x20an\x20on-chain\x20operation');export const TransactionHistoryItemSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind'),'gas_used':z['string']()['optional']()['describe']('Gas\x20used\x20(string)'),'objects_touched':z['array'](z['string']())['describe']('Object\x20IDs\x20touched\x20by\x20this\x20transaction'),'has_object_changes':z['boolean']()['describe']('Whether\x20this\x20tx\x20created/mutated/deleted\x20objects')})['strict']()['describe']('Transaction\x20history\x20summary\x20item');export const TransactionHistoryAnswerSchema=z['object']({'transactions':z['array'](TransactionHistoryItemSchema)['describe']('Transaction\x20history\x20items'),'next_cursor':z['union']([z['string'](),z['null']()])['describe']('Cursor\x20for\x20the\x20next\x20page\x20(null\x20if\x20no\x20more\x20pages)'),'has_next_page':z['boolean']()['describe']('Whether\x20more\x20pages\x20are\x20available'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Paginated\x20transaction\x20history\x20answer');export const OnchainQueryResultSchema_Part1=z['union']([z['object']({'query_type':z['literal']('onchain_personal_profile'),'result':z['union']([ObjectPersonalSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_objects'),'result':ObjectsAnswerSchema}),z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])})]);export const OnchainQueryResultSchema_Part2=z['union']([z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_received'),'result':QueryReceivedResultSchema['shape']['result']})]);export const OnchainQueryResultSchema_Part3=z['union']([z['object']({'query_type':z['literal']('onchain_transaction'),'result':z['union']([TransactionDetailSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_object_history'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_address_activity'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('token_value_convert'),'result':z['object']({'token_type':z['string']()['describe']('Full\x20token\x20type\x20used\x20for\x20conversion'),'symbol':z['string']()['optional']()['describe']('Resolved\x20token\x20symbol'),'decimals':z['number']()['optional']()['describe']('Resolved\x20decimals\x20N\x20—\x20the\x20precision\x20reminder'),'precision_known':z['boolean']()['describe']('false\x20→\x20precision\x20unavailable;\x20conversion\x20may\x20have\x20been\x20impossible'),'direction':z['union']([z['literal']('raw_to_unit'),z['literal']('unit_to_raw')]),'input':z['string']()['describe']('Input\x20value\x20as\x20provided'),'output':z['string']()['describe']('Converted\x20value\x20(empty\x20string\x20when\x20conversion\x20was\x20impossible)'),'error':z['string']()['optional']()['describe']('Hard\x20failure\x20reason\x20(e.g.\x20unit→raw\x20without\x20known\x20precision)'),'text':z['string']()['describe']('One-line\x20human\x20text\x20with\x20the\x20decimals\x20reminder')})['strict']()['describe']('Bidirectional\x20token\x20value\x20conversion\x20result\x20—\x20see\x20Fund\x20Processing\x20Layer')})['strict'](),z['object']({'query_type':z['literal']('onchain_last_updated'),'result':z['object']({'items':z['array'](z['object']({'object':z['string']()['describe']('Queried\x20object\x20address'),'timestamp_ms':z['union']([z['string'](),z['null']()])['describe']('Unix\x20ms\x20of\x20the\x20last\x20transaction\x20touching\x20the\x20object\x20(null\x20when\x20unavailable)'),'digest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20that\x20transaction'),'sender':z['union']([z['string'](),z['null']()])['optional']()['describe']('Sender\x20of\x20that\x20transaction')}))['describe']('One\x20entry\x20per\x20queried\x20object,\x20same\x20order\x20as\x20the\x20request')})['strict']()})['strict']()]);export const AllQueryResultsSchema=z['union']([LocalQueryResultSchema,OnchainQueryResultSchema_Part1,OnchainQueryResultSchema_Part2,OnchainQueryResultSchema_Part3]);export const WatchQueryOperationsResultSchema=z['object']({'result':AllQueryResultsSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20query\x20operation')})['describe']('Watch\x20query\x20operations\x20result\x20schema');