@wowok/agent-mcp 2.2.13 → 2.2.14

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 (126) hide show
  1. package/dist/index.js +42 -98
  2. package/dist/schema-query/index.d.ts +29 -0
  3. package/dist/schema-query/index.js +149 -0
  4. package/dist/schemas/account_operation.schema.json +255 -0
  5. package/dist/schemas/guard2file.schema.json +71 -0
  6. package/dist/schemas/index.json +139 -0
  7. package/dist/schemas/local_info_operation.schema.json +142 -0
  8. package/dist/schemas/local_mark_operation.schema.json +119 -0
  9. package/dist/schemas/machineNode2file.schema.json +71 -0
  10. package/dist/schemas/messenger_operation.schema.json +1393 -0
  11. package/dist/schemas/onchain_events.schema.json +113 -0
  12. package/dist/schemas/onchain_operations.schema.json +376 -0
  13. package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
  14. package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
  15. package/dist/schemas/onchain_operations_contact.schema.json +853 -0
  16. package/dist/schemas/onchain_operations_demand.schema.json +984 -0
  17. package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
  18. package/dist/schemas/onchain_operations_guard.schema.json +713 -0
  19. package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
  20. package/dist/schemas/onchain_operations_order.schema.json +830 -0
  21. package/dist/schemas/onchain_operations_payment.schema.json +717 -0
  22. package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
  23. package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
  24. package/dist/schemas/onchain_operations_progress.schema.json +751 -0
  25. package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
  26. package/dist/schemas/onchain_operations_reward.schema.json +955 -0
  27. package/dist/schemas/onchain_operations_service.schema.json +1411 -0
  28. package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
  29. package/dist/schemas/onchain_table_data.schema.json +35 -0
  30. package/dist/schemas/operations/guard.json +163 -0
  31. package/dist/schemas/operations/permission.json +22 -0
  32. package/dist/schemas/query_toolkit.schema.json +32 -0
  33. package/dist/schemas/schema_query.schema.json +33 -0
  34. package/dist/schemas/wip_file.schema.json +27 -0
  35. package/dist/schemas/wowok_buildin_info.schema.json +487 -0
  36. package/package.json +7 -5
  37. package/dist/docs/index.d.ts +0 -3
  38. package/dist/docs/index.js +0 -2
  39. package/dist/docs/loader.d.ts +0 -12
  40. package/dist/docs/loader.js +0 -177
  41. package/dist/docs/search.d.ts +0 -17
  42. package/dist/docs/search.js +0 -325
  43. package/dist/docs/types.d.ts +0 -55
  44. package/dist/docs/types.js +0 -1
  45. package/docs/README.md +0 -249
  46. package/docs/WIP.md +0 -388
  47. package/docs/WTS.md +0 -536
  48. package/docs/docs/account.md +0 -914
  49. package/docs/docs/allocation.md +0 -635
  50. package/docs/docs/arbitration.md +0 -1804
  51. package/docs/docs/arbitration_state_machine.md +0 -270
  52. package/docs/docs/contact.md +0 -709
  53. package/docs/docs/demand.md +0 -948
  54. package/docs/docs/guard.md +0 -1465
  55. package/docs/docs/localinfo.md +0 -432
  56. package/docs/docs/localmark.md +0 -583
  57. package/docs/docs/machine.md +0 -2490
  58. package/docs/docs/messenger.md +0 -2098
  59. package/docs/docs/onchain_events.md +0 -267
  60. package/docs/docs/order.md +0 -1001
  61. package/docs/docs/payment.md +0 -512
  62. package/docs/docs/permission.md +0 -1438
  63. package/docs/docs/personal.md +0 -742
  64. package/docs/docs/progress.md +0 -1748
  65. package/docs/docs/query.md +0 -467
  66. package/docs/docs/repository.md +0 -1043
  67. package/docs/docs/reward.md +0 -833
  68. package/docs/docs/service.md +0 -2130
  69. package/docs/docs/stage-01-introduction.md +0 -243
  70. package/docs/docs/stage-02-trust.md +0 -302
  71. package/docs/docs/stage-03-collaboration.md +0 -337
  72. package/docs/docs/stage-04-transaction.md +0 -277
  73. package/docs/docs/stage-05-business.md +0 -151
  74. package/docs/docs/stage-06-personal.md +0 -203
  75. package/docs/docs/stage-07-query.md +0 -572
  76. package/docs/docs/stage-08-examples.md +0 -184
  77. package/docs/docs/treasury.md +0 -1149
  78. package/docs/docs/wowok_buildin_info.md +0 -740
  79. package/docs/examples/Insurance/Insurance.md +0 -594
  80. package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
  81. package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
  82. package/docs/examples/MyShop/MyShop.md +0 -1353
  83. package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
  84. package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
  85. package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
  86. package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
  87. package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
  88. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
  89. package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
  90. package/docs/examples/Travel/Travel.md +0 -1157
  91. package/docs/examples/Travel/Travel_TestResults.md +0 -743
  92. package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
  93. package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
  94. package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
  95. package/docs/skills/WOWOK.md +0 -650
  96. package/docs/skills/onchain_operations/_common.md +0 -406
  97. package/docs/skills/onchain_operations/_index.md +0 -196
  98. package/docs/skills/onchain_operations/allocation.md +0 -28
  99. package/docs/skills/onchain_operations/arbitration.md +0 -106
  100. package/docs/skills/onchain_operations/contact.md +0 -40
  101. package/docs/skills/onchain_operations/demand.md +0 -53
  102. package/docs/skills/onchain_operations/gen_passport.md +0 -23
  103. package/docs/skills/onchain_operations/guard.md +0 -56
  104. package/docs/skills/onchain_operations/machine.md +0 -89
  105. package/docs/skills/onchain_operations/order.md +0 -56
  106. package/docs/skills/onchain_operations/payment.md +0 -24
  107. package/docs/skills/onchain_operations/permission.md +0 -68
  108. package/docs/skills/onchain_operations/personal.md +0 -58
  109. package/docs/skills/onchain_operations/progress.md +0 -38
  110. package/docs/skills/onchain_operations/repository.md +0 -70
  111. package/docs/skills/onchain_operations/reward.md +0 -38
  112. package/docs/skills/onchain_operations/service.md +0 -78
  113. package/docs/skills/onchain_operations/treasury.md +0 -68
  114. package/docs/skills/schema-account_operation.md +0 -402
  115. package/docs/skills/schema-guard2file.md +0 -153
  116. package/docs/skills/schema-local_info_operation.md +0 -160
  117. package/docs/skills/schema-local_mark_operation.md +0 -148
  118. package/docs/skills/schema-machineNode2file.md +0 -155
  119. package/docs/skills/schema-messenger_operation.md +0 -547
  120. package/docs/skills/schema-onchain_events.md +0 -201
  121. package/docs/skills/schema-onchain_table_data.md +0 -334
  122. package/docs/skills/schema-query_toolkit.md +0 -395
  123. package/docs/skills/schema-wip_file.md +0 -240
  124. package/docs/skills/schema-wowok_buildin_info.md +0 -296
  125. package/docs/wip-examples/three_body.html +0 -57
  126. package/docs/wip-examples/three_body.wip +0 -30
@@ -0,0 +1,984 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/onchain_operations_demand.json",
4
+ "title": "Demand Operation",
5
+ "description": "On-chain demand operation schema",
6
+ "type": "object",
7
+ "properties": {
8
+ "operation_type": {
9
+ "const": "demand"
10
+ },
11
+ "data": {
12
+ "$ref": "#/definitions/data",
13
+ "$schema": "http://json-schema.org/draft-07/schema#"
14
+ },
15
+ "env": {
16
+ "$ref": "#/definitions/env",
17
+ "$schema": "http://json-schema.org/draft-07/schema#"
18
+ },
19
+ "submission": {
20
+ "$ref": "#/definitions/submission",
21
+ "$schema": "http://json-schema.org/draft-07/schema#"
22
+ }
23
+ },
24
+ "required": [
25
+ "operation_type",
26
+ "data"
27
+ ],
28
+ "definitions": {
29
+ "data": {
30
+ "type": "object",
31
+ "properties": {
32
+ "object": {
33
+ "anyOf": [
34
+ {
35
+ "type": "string",
36
+ "description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Use when the Permission object already exists."
37
+ },
38
+ {
39
+ "type": "object",
40
+ "properties": {
41
+ "name": {
42
+ "type": "string",
43
+ "description": "The name of the object"
44
+ },
45
+ "tags": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "string"
49
+ },
50
+ "description": "The tags of the object"
51
+ },
52
+ "onChain": {
53
+ "type": "boolean",
54
+ "description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."
55
+ },
56
+ "replaceExistName": {
57
+ "type": "boolean",
58
+ "description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
59
+ },
60
+ "permission": {
61
+ "anyOf": [
62
+ {
63
+ "$ref": "#/definitions/data/properties/object/anyOf/0",
64
+ "description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Example: 'my-object' or '0x1234...'"
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "name": {
70
+ "$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
71
+ },
72
+ "tags": {
73
+ "$ref": "#/definitions/data/properties/object/anyOf/1/properties/tags"
74
+ },
75
+ "onChain": {
76
+ "$ref": "#/definitions/data/properties/object/anyOf/1/properties/onChain"
77
+ },
78
+ "replaceExistName": {
79
+ "$ref": "#/definitions/data/properties/object/anyOf/1/properties/replaceExistName"
80
+ },
81
+ "description": {
82
+ "type": "string",
83
+ "description": "The description of the object"
84
+ }
85
+ },
86
+ "additionalProperties": false,
87
+ "description": "Object format: CREATE a NEW object with name, optional description, and visibility settings. Extends NamedObjectSchema with an additional 'description' field for detailed object information."
88
+ }
89
+ ],
90
+ "description": "Two ways to specify an object: (1) STRING - Reference an EXISTING object by name or ID; (2) OBJECT - CREATE a NEW object with full configuration including optional name, tags, description, and visibility settings (local private by default, or public on-chain with onChain:true)."
91
+ }
92
+ },
93
+ "additionalProperties": false,
94
+ "description": "Object format: CREATE a NEW object with Permission-based access control. Includes optional name, tags, visibility settings, AND a Permission object (which itself can be referenced by string or created as a new object). Use this to create objects with managed access permissions."
95
+ }
96
+ ],
97
+ "description": "Two ways to specify a Permission-managed object: (1) STRING - Reference an EXISTING Permission object by name or ID; (2) OBJECT - CREATE a NEW object with Permission access control, where the Permission can also be either referenced (string) or newly created (object). This is used when you need permission management but don't need to specify a token type."
98
+ },
99
+ "present": {
100
+ "type": "object",
101
+ "properties": {
102
+ "recommend": {
103
+ "type": "string",
104
+ "description": "Recommendation for the demand"
105
+ },
106
+ "by_guard": {
107
+ "$ref": "#/definitions/data/properties/object/anyOf/0",
108
+ "description": "Guard ID or name, used to select which Guard's verification to pass through"
109
+ },
110
+ "service": {
111
+ "$ref": "#/definitions/data/properties/present/properties/by_guard",
112
+ "description": "Service ID or name to present"
113
+ }
114
+ },
115
+ "required": [
116
+ "recommend"
117
+ ],
118
+ "additionalProperties": false,
119
+ "description": "Recommend Service to Demand object"
120
+ },
121
+ "description": {
122
+ "$ref": "#/definitions/data/properties/present/properties/recommend",
123
+ "description": "Description string (max 4000 bcs characters)"
124
+ },
125
+ "location": {
126
+ "type": "string",
127
+ "description": "Service location of the Demand object"
128
+ },
129
+ "rewards": {
130
+ "anyOf": [
131
+ {
132
+ "type": "object",
133
+ "properties": {
134
+ "op": {
135
+ "type": "string",
136
+ "enum": [
137
+ "add",
138
+ "set"
139
+ ]
140
+ },
141
+ "objects": {
142
+ "type": "array",
143
+ "items": {
144
+ "$ref": "#/definitions/data/properties/present/properties/by_guard"
145
+ },
146
+ "description": "List of object IDs or names to add or set"
147
+ }
148
+ },
149
+ "required": [
150
+ "op",
151
+ "objects"
152
+ ],
153
+ "additionalProperties": false
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "op": {
159
+ "type": "string",
160
+ "const": "remove"
161
+ },
162
+ "objects": {
163
+ "type": "array",
164
+ "items": {
165
+ "$ref": "#/definitions/data/properties/present/properties/by_guard"
166
+ },
167
+ "description": "List of object IDs or names to remove"
168
+ }
169
+ },
170
+ "required": [
171
+ "op",
172
+ "objects"
173
+ ],
174
+ "additionalProperties": false
175
+ },
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "op": {
180
+ "type": "string",
181
+ "const": "clear"
182
+ }
183
+ },
184
+ "required": [
185
+ "op"
186
+ ],
187
+ "additionalProperties": false
188
+ }
189
+ ],
190
+ "description": "Reward information of the Demand object"
191
+ },
192
+ "feedback": {
193
+ "type": "array",
194
+ "items": {
195
+ "type": "object",
196
+ "properties": {
197
+ "who": {
198
+ "type": "object",
199
+ "properties": {
200
+ "name_or_address": {
201
+ "$ref": "#/definitions/data/properties/present/properties/by_guard",
202
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
203
+ },
204
+ "local_mark_first": {
205
+ "type": "boolean",
206
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
207
+ }
208
+ },
209
+ "additionalProperties": false,
210
+ "description": "Account address or mark name, used to identify providing feedback to this user"
211
+ },
212
+ "acceptance_score": {
213
+ "type": "integer",
214
+ "minimum": 0,
215
+ "maximum": 255,
216
+ "description": "Acceptance score, used to evaluate the reception level of the service recommended by the user"
217
+ },
218
+ "feedback": {
219
+ "$ref": "#/definitions/data/properties/description",
220
+ "description": "Feedback content for the user"
221
+ }
222
+ },
223
+ "required": [
224
+ "who"
225
+ ],
226
+ "additionalProperties": false
227
+ },
228
+ "description": "User feedback information for the Demand object"
229
+ },
230
+ "guards": {
231
+ "anyOf": [
232
+ {
233
+ "type": "object",
234
+ "properties": {
235
+ "op": {
236
+ "type": "string",
237
+ "const": "add"
238
+ },
239
+ "guard": {
240
+ "type": "array",
241
+ "items": {
242
+ "type": "object",
243
+ "properties": {
244
+ "guard": {
245
+ "type": "string",
246
+ "description": "Service guard"
247
+ },
248
+ "service_identifier": {
249
+ "anyOf": [
250
+ {
251
+ "type": "integer",
252
+ "minimum": 0,
253
+ "maximum": 255,
254
+ "description": "Identifier (0-255) for data lookup in Guard table."
255
+ },
256
+ {
257
+ "type": "null"
258
+ }
259
+ ],
260
+ "description": "Service identifier. Used to determine the service verified in Guard"
261
+ }
262
+ },
263
+ "required": [
264
+ "guard"
265
+ ],
266
+ "additionalProperties": false,
267
+ "description": "Service guard"
268
+ },
269
+ "description": "List of guard IDs or names to add"
270
+ }
271
+ },
272
+ "required": [
273
+ "op",
274
+ "guard"
275
+ ],
276
+ "additionalProperties": false
277
+ },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "op": {
282
+ "type": "string",
283
+ "const": "set"
284
+ },
285
+ "guard": {
286
+ "type": "array",
287
+ "items": {
288
+ "$ref": "#/definitions/data/properties/guards/anyOf/0/properties/guard/items"
289
+ },
290
+ "description": "List of guard IDs or names to set"
291
+ }
292
+ },
293
+ "required": [
294
+ "op",
295
+ "guard"
296
+ ],
297
+ "additionalProperties": false
298
+ },
299
+ {
300
+ "type": "object",
301
+ "properties": {
302
+ "op": {
303
+ "type": "string",
304
+ "const": "remove"
305
+ },
306
+ "guard": {
307
+ "type": "array",
308
+ "items": {
309
+ "$ref": "#/definitions/data/properties/present/properties/by_guard"
310
+ },
311
+ "description": "List of guard IDs or names to remove"
312
+ }
313
+ },
314
+ "required": [
315
+ "op",
316
+ "guard"
317
+ ],
318
+ "additionalProperties": false
319
+ },
320
+ {
321
+ "type": "object",
322
+ "properties": {
323
+ "op": {
324
+ "type": "string",
325
+ "const": "clear"
326
+ }
327
+ },
328
+ "required": [
329
+ "op"
330
+ ],
331
+ "additionalProperties": false
332
+ }
333
+ ],
334
+ "description": "Validation Guard list for the Demand object. Used to verify whether the service recommended by the user meets the requirements"
335
+ },
336
+ "owner_receive": {
337
+ "anyOf": [
338
+ {
339
+ "type": "array",
340
+ "items": {
341
+ "type": "object",
342
+ "properties": {
343
+ "id": {
344
+ "type": "string",
345
+ "minLength": 1,
346
+ "description": "Received object ID"
347
+ },
348
+ "type": {
349
+ "type": "string",
350
+ "minLength": 1,
351
+ "description": "Object type"
352
+ },
353
+ "content_raw": {
354
+ "description": "Raw content data"
355
+ }
356
+ },
357
+ "required": [
358
+ "id",
359
+ "type"
360
+ ],
361
+ "additionalProperties": false,
362
+ "description": "Received normal object record"
363
+ }
364
+ },
365
+ {
366
+ "type": "object",
367
+ "properties": {
368
+ "balance": {
369
+ "type": [
370
+ "number",
371
+ "string"
372
+ ],
373
+ "description": "Balance type"
374
+ },
375
+ "token_type": {
376
+ "type": "string",
377
+ "description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
378
+ },
379
+ "received": {
380
+ "type": "array",
381
+ "items": {
382
+ "type": "object",
383
+ "properties": {
384
+ "id": {
385
+ "type": "string",
386
+ "description": "Received CoinWrapper object ID"
387
+ },
388
+ "balance": {
389
+ "$ref": "#/definitions/data/properties/owner_receive/anyOf/1/properties/balance"
390
+ },
391
+ "payment": {
392
+ "type": "string",
393
+ "description": "Payment object ID"
394
+ }
395
+ },
396
+ "required": [
397
+ "id",
398
+ "balance",
399
+ "payment"
400
+ ],
401
+ "additionalProperties": false,
402
+ "description": "Received CoinWrapper object record"
403
+ },
404
+ "description": "Received records of Coin objects"
405
+ }
406
+ },
407
+ "required": [
408
+ "balance",
409
+ "token_type",
410
+ "received"
411
+ ],
412
+ "additionalProperties": false,
413
+ "description": "Received record of Coin objects"
414
+ },
415
+ {
416
+ "type": "string",
417
+ "const": "recently"
418
+ }
419
+ ],
420
+ "description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
421
+ },
422
+ "um": {
423
+ "anyOf": [
424
+ {
425
+ "$ref": "#/definitions/data/properties/present/properties/by_guard"
426
+ },
427
+ {
428
+ "type": "null"
429
+ }
430
+ ],
431
+ "description": "Contact object."
432
+ }
433
+ },
434
+ "required": [
435
+ "object"
436
+ ],
437
+ "additionalProperties": false,
438
+ "description": "On-chain Demand operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Demand. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation."
439
+ },
440
+ "env": {
441
+ "type": "object",
442
+ "properties": {
443
+ "account": {
444
+ "type": "string",
445
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters).",
446
+ "default": ""
447
+ },
448
+ "permission_guard": {
449
+ "type": "array",
450
+ "items": {
451
+ "type": "string"
452
+ },
453
+ "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
454
+ },
455
+ "no_cache": {
456
+ "type": "boolean",
457
+ "description": "Whether to disable caching."
458
+ },
459
+ "network": {
460
+ "type": "string",
461
+ "enum": [
462
+ "localnet",
463
+ "testnet"
464
+ ],
465
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
466
+ },
467
+ "referrer": {
468
+ "$ref": "#/definitions/env/properties/account",
469
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
470
+ }
471
+ },
472
+ "additionalProperties": false,
473
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
474
+ },
475
+ "submission": {
476
+ "type": "object",
477
+ "properties": {
478
+ "type": {
479
+ "type": "string",
480
+ "const": "submission",
481
+ "description": "Type of call response: submission"
482
+ },
483
+ "guard": {
484
+ "type": "array",
485
+ "items": {
486
+ "type": "object",
487
+ "properties": {
488
+ "object": {
489
+ "type": "string",
490
+ "description": "Guard object name or ID."
491
+ },
492
+ "impack": {
493
+ "type": "boolean",
494
+ "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
495
+ }
496
+ },
497
+ "required": [
498
+ "object",
499
+ "impack"
500
+ ],
501
+ "additionalProperties": false
502
+ }
503
+ },
504
+ "submission": {
505
+ "type": "array",
506
+ "items": {
507
+ "type": "object",
508
+ "properties": {
509
+ "guard": {
510
+ "$ref": "#/definitions/submission/properties/guard/items/properties/object",
511
+ "description": "Guard object name or ID."
512
+ },
513
+ "submission": {
514
+ "type": "array",
515
+ "items": {
516
+ "type": "object",
517
+ "properties": {
518
+ "identifier": {
519
+ "type": "integer",
520
+ "minimum": 0,
521
+ "maximum": 255,
522
+ "description": "Identifier (0-255) for data lookup in Guard table."
523
+ },
524
+ "b_submission": {
525
+ "type": "boolean",
526
+ "description": "Whether user submission is required for this data"
527
+ },
528
+ "value_type": {
529
+ "anyOf": [
530
+ {
531
+ "type": "number",
532
+ "const": 0,
533
+ "description": "Bool (0)"
534
+ },
535
+ {
536
+ "type": "number",
537
+ "const": 1,
538
+ "description": "Address (1)"
539
+ },
540
+ {
541
+ "type": "number",
542
+ "const": 2,
543
+ "description": "String (2)"
544
+ },
545
+ {
546
+ "type": "number",
547
+ "const": 3,
548
+ "description": "U8 (3)"
549
+ },
550
+ {
551
+ "type": "number",
552
+ "const": 4,
553
+ "description": "U16 (4)"
554
+ },
555
+ {
556
+ "type": "number",
557
+ "const": 5,
558
+ "description": "U32 (5)"
559
+ },
560
+ {
561
+ "type": "number",
562
+ "const": 6,
563
+ "description": "U64 (6)"
564
+ },
565
+ {
566
+ "type": "number",
567
+ "const": 7,
568
+ "description": "U128 (7)"
569
+ },
570
+ {
571
+ "type": "number",
572
+ "const": 8,
573
+ "description": "U256 (8)"
574
+ },
575
+ {
576
+ "type": "number",
577
+ "const": 9,
578
+ "description": "VecBool (9)"
579
+ },
580
+ {
581
+ "type": "number",
582
+ "const": 10,
583
+ "description": "VecAddress (10)"
584
+ },
585
+ {
586
+ "type": "number",
587
+ "const": 11,
588
+ "description": "VecString (11)"
589
+ },
590
+ {
591
+ "type": "number",
592
+ "const": 12,
593
+ "description": "VecU8 (12)"
594
+ },
595
+ {
596
+ "type": "number",
597
+ "const": 13,
598
+ "description": "VecU16 (13)"
599
+ },
600
+ {
601
+ "type": "number",
602
+ "const": 14,
603
+ "description": "VecU32 (14)"
604
+ },
605
+ {
606
+ "type": "number",
607
+ "const": 15,
608
+ "description": "VecU64 (15)"
609
+ },
610
+ {
611
+ "type": "number",
612
+ "const": 16,
613
+ "description": "VecU128 (16)"
614
+ },
615
+ {
616
+ "type": "number",
617
+ "const": 17,
618
+ "description": "VecU256 (17)"
619
+ },
620
+ {
621
+ "type": "number",
622
+ "const": 18,
623
+ "description": "VecVecU8 (18)"
624
+ },
625
+ {
626
+ "type": "string",
627
+ "const": "Bool",
628
+ "description": "Bool"
629
+ },
630
+ {
631
+ "type": "string",
632
+ "const": "Address",
633
+ "description": "Address"
634
+ },
635
+ {
636
+ "type": "string",
637
+ "const": "String",
638
+ "description": "String"
639
+ },
640
+ {
641
+ "type": "string",
642
+ "const": "U8",
643
+ "description": "U8"
644
+ },
645
+ {
646
+ "type": "string",
647
+ "const": "U16",
648
+ "description": "U16"
649
+ },
650
+ {
651
+ "type": "string",
652
+ "const": "U32",
653
+ "description": "U32"
654
+ },
655
+ {
656
+ "type": "string",
657
+ "const": "U64",
658
+ "description": "U64"
659
+ },
660
+ {
661
+ "type": "string",
662
+ "const": "U128",
663
+ "description": "U128"
664
+ },
665
+ {
666
+ "type": "string",
667
+ "const": "U256",
668
+ "description": "U256"
669
+ },
670
+ {
671
+ "type": "string",
672
+ "const": "VecBool",
673
+ "description": "VecBool"
674
+ },
675
+ {
676
+ "type": "string",
677
+ "const": "VecAddress",
678
+ "description": "VecAddress"
679
+ },
680
+ {
681
+ "type": "string",
682
+ "const": "VecString",
683
+ "description": "VecString"
684
+ },
685
+ {
686
+ "type": "string",
687
+ "const": "VecU8",
688
+ "description": "VecU8"
689
+ },
690
+ {
691
+ "type": "string",
692
+ "const": "VecU16",
693
+ "description": "VecU16"
694
+ },
695
+ {
696
+ "type": "string",
697
+ "const": "VecU32",
698
+ "description": "VecU32"
699
+ },
700
+ {
701
+ "type": "string",
702
+ "const": "VecU64",
703
+ "description": "VecU64"
704
+ },
705
+ {
706
+ "type": "string",
707
+ "const": "VecU128",
708
+ "description": "VecU128"
709
+ },
710
+ {
711
+ "type": "string",
712
+ "const": "VecU256",
713
+ "description": "VecU256"
714
+ },
715
+ {
716
+ "type": "string",
717
+ "const": "VecVecU8",
718
+ "description": "VecVecU8"
719
+ },
720
+ {
721
+ "type": "string",
722
+ "const": "bool",
723
+ "description": "bool"
724
+ },
725
+ {
726
+ "type": "string",
727
+ "const": "address",
728
+ "description": "address"
729
+ },
730
+ {
731
+ "type": "string",
732
+ "const": "string",
733
+ "description": "string"
734
+ },
735
+ {
736
+ "type": "string",
737
+ "const": "u8",
738
+ "description": "u8"
739
+ },
740
+ {
741
+ "type": "string",
742
+ "const": "u16",
743
+ "description": "u16"
744
+ },
745
+ {
746
+ "type": "string",
747
+ "const": "u32",
748
+ "description": "u32"
749
+ },
750
+ {
751
+ "type": "string",
752
+ "const": "u64",
753
+ "description": "u64"
754
+ },
755
+ {
756
+ "type": "string",
757
+ "const": "u128",
758
+ "description": "u128"
759
+ },
760
+ {
761
+ "type": "string",
762
+ "const": "u256",
763
+ "description": "u256"
764
+ },
765
+ {
766
+ "type": "string",
767
+ "const": "vecbool",
768
+ "description": "vecbool"
769
+ },
770
+ {
771
+ "type": "string",
772
+ "const": "vecaddress",
773
+ "description": "vecaddress"
774
+ },
775
+ {
776
+ "type": "string",
777
+ "const": "vecstring",
778
+ "description": "vecstring"
779
+ },
780
+ {
781
+ "type": "string",
782
+ "const": "vecu8",
783
+ "description": "vecu8"
784
+ },
785
+ {
786
+ "type": "string",
787
+ "const": "vecu16",
788
+ "description": "vecu16"
789
+ },
790
+ {
791
+ "type": "string",
792
+ "const": "vecu32",
793
+ "description": "vecu32"
794
+ },
795
+ {
796
+ "type": "string",
797
+ "const": "vecu64",
798
+ "description": "vecu64"
799
+ },
800
+ {
801
+ "type": "string",
802
+ "const": "vecu128",
803
+ "description": "vecu128"
804
+ },
805
+ {
806
+ "type": "string",
807
+ "const": "vecu256",
808
+ "description": "vecu256"
809
+ },
810
+ {
811
+ "type": "string",
812
+ "const": "vecvecu8",
813
+ "description": "vecvecu8"
814
+ }
815
+ ],
816
+ "description": "Type of the value"
817
+ },
818
+ "value": {
819
+ "anyOf": [
820
+ {
821
+ "type": "boolean"
822
+ },
823
+ {
824
+ "anyOf": [
825
+ {
826
+ "type": "object",
827
+ "properties": {
828
+ "name_or_address": {
829
+ "$ref": "#/definitions/submission/properties/guard/items/properties/object",
830
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
831
+ },
832
+ "local_mark_first": {
833
+ "type": "boolean",
834
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
835
+ }
836
+ },
837
+ "additionalProperties": false,
838
+ "description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
839
+ },
840
+ {
841
+ "type": "string"
842
+ }
843
+ ]
844
+ },
845
+ {
846
+ "type": "string"
847
+ },
848
+ {
849
+ "type": "number"
850
+ },
851
+ {
852
+ "type": "array",
853
+ "items": {
854
+ "type": "boolean"
855
+ }
856
+ },
857
+ {
858
+ "anyOf": [
859
+ {
860
+ "type": "object",
861
+ "properties": {
862
+ "entities": {
863
+ "type": "array",
864
+ "items": {
865
+ "$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
866
+ }
867
+ },
868
+ "check_all_founded": {
869
+ "type": "boolean",
870
+ "description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
871
+ }
872
+ },
873
+ "required": [
874
+ "entities"
875
+ ],
876
+ "additionalProperties": false,
877
+ "description": "Used to batch find account or object IDs by name"
878
+ },
879
+ {
880
+ "type": "array",
881
+ "items": {
882
+ "type": "string"
883
+ }
884
+ }
885
+ ]
886
+ },
887
+ {
888
+ "type": "array",
889
+ "items": {
890
+ "type": "string"
891
+ }
892
+ },
893
+ {
894
+ "type": "array",
895
+ "items": {
896
+ "type": "number"
897
+ }
898
+ },
899
+ {
900
+ "type": "array",
901
+ "items": {
902
+ "type": "array",
903
+ "items": {
904
+ "type": "number"
905
+ }
906
+ }
907
+ }
908
+ ],
909
+ "description": "The actual value data"
910
+ },
911
+ "name": {
912
+ "type": "string",
913
+ "default": "",
914
+ "description": "Name or description of this data"
915
+ },
916
+ "object_type": {
917
+ "type": "string",
918
+ "enum": [
919
+ "Permission",
920
+ "Repository",
921
+ "Arb",
922
+ "Arbitration",
923
+ "Service",
924
+ "Machine",
925
+ "Order",
926
+ "Progress",
927
+ "Payment",
928
+ "Treasury",
929
+ "Guard",
930
+ "Demand",
931
+ "Passport",
932
+ "Allocation",
933
+ "Resource",
934
+ "Reward",
935
+ "Discount",
936
+ "EntityRegistrar",
937
+ "EntityLinker",
938
+ "Proof",
939
+ "WReceivedObject",
940
+ "Contact",
941
+ "TableItem_ProgressHistory",
942
+ "TableItem_PermissionPerm",
943
+ "TableItem_DemandPresenter",
944
+ "TableItem_MachineNode",
945
+ "TableItem_TreasuryHistory",
946
+ "TableItem_RepositoryData",
947
+ "TableItem_RewardRecord",
948
+ "TableItem_EntityLinker",
949
+ "TableItem_AddressMark",
950
+ "TableItem_EntityRegistrar"
951
+ ],
952
+ "description": "Object type when value_type is Address and represents a specific object"
953
+ }
954
+ },
955
+ "required": [
956
+ "identifier",
957
+ "b_submission",
958
+ "value_type"
959
+ ],
960
+ "additionalProperties": false,
961
+ "description": "Guard table item"
962
+ },
963
+ "description": "User-submitted data required for Guard verification."
964
+ }
965
+ },
966
+ "required": [
967
+ "guard",
968
+ "submission"
969
+ ],
970
+ "additionalProperties": false,
971
+ "description": "Permission guard submission data."
972
+ }
973
+ }
974
+ },
975
+ "required": [
976
+ "type",
977
+ "guard",
978
+ "submission"
979
+ ],
980
+ "additionalProperties": false,
981
+ "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
982
+ }
983
+ }
984
+ }