@wowok/agent-mcp 2.6.0 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/customer/info-puzzle.d.ts +1 -1
- package/dist/customer/info-puzzle.js +4 -2
- package/dist/customer/risk-assessment.js +26 -4
- package/dist/customer/types.d.ts +2 -0
- package/dist/examples/guard-template-balance-check.json +38 -0
- package/dist/examples/guard-template-time-lock.json +39 -0
- package/dist/examples/machine-template-7node-rental.json +114 -0
- package/dist/examples/rental-ziroom-machine-create.json +137 -0
- package/dist/examples/rental-ziroom-permission-create.json +35 -0
- package/dist/examples/rental-ziroom-service-create.json +80 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/extensions/capability-manifest.d.ts +125 -0
- package/dist/extensions/capability-manifest.js +594 -0
- package/dist/extensions/constraint-registry.d.ts +24 -0
- package/dist/extensions/constraint-registry.js +196 -0
- package/dist/extensions/index.d.ts +12 -0
- package/dist/extensions/index.js +6 -0
- package/dist/extensions/metric-registry.d.ts +26 -0
- package/dist/extensions/metric-registry.js +257 -0
- package/dist/extensions/mode-evaluator.d.ts +15 -0
- package/dist/extensions/mode-evaluator.js +170 -0
- package/dist/extensions/modes.d.ts +2 -0
- package/dist/extensions/modes.js +493 -0
- package/dist/extensions/registry.d.ts +50 -0
- package/dist/extensions/registry.js +662 -0
- package/dist/extensions/types.d.ts +219 -0
- package/dist/extensions/types.js +1 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.d.ts +3 -0
- package/dist/knowledge/deployment-scanner.js +64 -3
- package/dist/knowledge/fund-layer.d.ts +72 -0
- package/dist/knowledge/fund-layer.js +420 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-risk.d.ts +13 -0
- package/dist/knowledge/guard-risk.js +57 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/guard-templates.js +278 -0
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-templates.js +24 -5
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/service-confirm.d.ts +15 -6
- package/dist/knowledge/service-confirm.js +119 -11
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/knowledge/tool-constraints.js +6 -2
- package/dist/project/deployment-bridge.d.ts +1 -1
- package/dist/project/deployment-bridge.js +31 -7
- package/dist/project/deployment-doc.d.ts +3 -0
- package/dist/project/deployment-doc.js +76 -14
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1371 -0
- package/dist/project/evaluation.d.ts +2 -0
- package/dist/project/evaluation.js +873 -88
- package/dist/project/graph-builder.d.ts +4 -1
- package/dist/project/graph-builder.js +132 -62
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/handlers.d.ts +317 -6
- package/dist/project/handlers.js +1171 -19
- package/dist/project/stage-gate.d.ts +4 -0
- package/dist/project/stage-gate.js +64 -5
- package/dist/project/task-tracker.d.ts +26 -0
- package/dist/project/task-tracker.js +78 -0
- package/dist/safety/preview.js +16 -0
- package/dist/schema/call/allocation.d.ts +16 -16
- package/dist/schema/call/allocation.js +2 -2
- package/dist/schema/call/arbitration.js +19 -6
- package/dist/schema/call/base.d.ts +21 -13
- package/dist/schema/call/base.js +27 -6
- package/dist/schema/call/bridge.d.ts +5 -5
- package/dist/schema/call/bridge.js +3 -1
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.d.ts +23 -31
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.js +2 -2
- package/dist/schema/call/machine.d.ts +1976 -752
- package/dist/schema/call/machine.js +50 -4
- package/dist/schema/call/order.d.ts +149 -228
- package/dist/schema/call/order.js +4 -3
- package/dist/schema/call/payment.d.ts +183 -3
- package/dist/schema/call/payment.js +21 -3
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/personal.d.ts +241 -52
- package/dist/schema/call/progress.d.ts +53 -61
- package/dist/schema/call/progress.js +18 -4
- package/dist/schema/call/repository.d.ts +23 -31
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.d.ts +1 -1
- package/dist/schema/call/semantic.js +37 -2
- package/dist/schema/call/service.d.ts +275 -127
- package/dist/schema/call/service.js +89 -13
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +13 -2
- package/dist/schema/common/index.js +80 -15
- package/dist/schema/local/index.d.ts +32 -35
- package/dist/schema/local/index.js +28 -6
- package/dist/schema/messenger/index.d.ts +274 -46
- package/dist/schema/operations.d.ts +1264 -544
- package/dist/schema/operations.js +65 -7
- package/dist/schema/project/index.d.ts +2846 -167
- package/dist/schema/project/index.js +570 -16
- package/dist/schema/query/index.d.ts +922 -349
- package/dist/schema/query/index.js +205 -42
- package/dist/schema/schema-query/index.d.ts +65 -3
- package/dist/schema/schema-query/index.js +38 -5
- package/dist/schema/utils/node-parser.js +20 -4
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +76 -0
- package/dist/schema-query/index.d.ts +20 -1
- package/dist/schema-query/index.js +306 -4
- package/dist/schemas/account_operation.output.json +7 -1
- package/dist/schemas/account_operation.schema.json +3 -3
- package/dist/schemas/bridge_operation.output.json +6 -0
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard-templates.json +379 -0
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +6 -0
- package/dist/schemas/local_mark_operation.output.json +7 -1
- package/dist/schemas/local_mark_operation.schema.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +4 -4
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +444 -330
- package/dist/schemas/onchain_operations_allocation.schema.json +37 -28
- package/dist/schemas/onchain_operations_arbitration.schema.json +16 -14
- package/dist/schemas/onchain_operations_contact.schema.json +10 -10
- package/dist/schemas/onchain_operations_demand.schema.json +10 -10
- package/dist/schemas/onchain_operations_gen_passport.schema.json +16 -16
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +2 -2
- package/dist/schemas/onchain_operations_machine.schema.json +43 -35
- package/dist/schemas/onchain_operations_order.schema.json +72 -78
- package/dist/schemas/onchain_operations_payment.schema.json +141 -111
- package/dist/schemas/onchain_operations_permission.schema.json +3 -3
- package/dist/schemas/onchain_operations_personal.schema.json +7 -7
- package/dist/schemas/onchain_operations_progress.schema.json +9 -9
- package/dist/schemas/onchain_operations_proof.schema.json +8 -8
- package/dist/schemas/onchain_operations_repository.schema.json +10 -10
- package/dist/schemas/onchain_operations_reward.schema.json +14 -14
- package/dist/schemas/onchain_operations_service.schema.json +119 -48
- package/dist/schemas/onchain_operations_treasury.schema.json +11 -11
- package/dist/schemas/onchain_table_data.output.json +33 -25
- package/dist/schemas/onchain_table_data.schema.json +22 -21
- package/dist/schemas/project_operation.output.json +2194 -23
- package/dist/schemas/project_operation.schema.json +84 -6
- package/dist/schemas/query_toolkit.output.json +108 -80
- package/dist/schemas/query_toolkit.schema.json +12 -12
- package/dist/schemas/schema_query.output.json +70 -3
- package/dist/schemas/schema_query.schema.json +18 -3
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/local.js +20 -5
- package/dist/tools/handlers/onchain.js +594 -6
- package/dist/tools/handlers/project.js +76 -4
- package/dist/tools/handlers/query.js +27 -0
- package/dist/tools/handlers/schema-query.js +43 -1
- package/dist/tools/handlers/task-status.d.ts +170 -0
- package/dist/tools/handlers/task-status.js +55 -0
- package/dist/tools/handlers/wip.js +47 -1
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +387 -12
- package/dist/tools/retry.d.ts +8 -0
- package/dist/tools/retry.js +85 -0
- package/dist/tools/wip-deploy-assist.d.ts +28 -0
- package/dist/tools/wip-deploy-assist.js +278 -0
- package/package.json +2 -2
- package/dist/schemas/guard-node-examples.md +0 -199
|
@@ -0,0 +1,2820 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations.json",
|
|
4
|
+
"title": "On-chain Operations",
|
|
5
|
+
"description": "On-chain operations for WoWok objects: service, machine, progress, repository, arbitration, contact, treasury, reward, allocation, permission, guard, personal, payment, demand, order, gen_passport, proof, gen_proof.",
|
|
6
|
+
"$ref": "#/definitions/onchain_operations",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"onchain_operations": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"result": {
|
|
12
|
+
"anyOf": [
|
|
13
|
+
{
|
|
14
|
+
"type": "object",
|
|
15
|
+
"properties": {
|
|
16
|
+
"type": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"const": "submission",
|
|
19
|
+
"description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
|
|
20
|
+
},
|
|
21
|
+
"guard": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"object": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
|
|
29
|
+
},
|
|
30
|
+
"impack": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": [
|
|
36
|
+
"object",
|
|
37
|
+
"impack"
|
|
38
|
+
],
|
|
39
|
+
"additionalProperties": false
|
|
40
|
+
},
|
|
41
|
+
"maxItems": 20,
|
|
42
|
+
"description": "Array of Guard objects to verify. Constraint: at most 20 entries (MAX_GUARD_COUNT_PASSPORT). Relation: each entry corresponds to a Guard bound to the operation."
|
|
43
|
+
},
|
|
44
|
+
"submission": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"guard": {
|
|
50
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/0/properties/guard/items/properties/object",
|
|
51
|
+
"description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
|
|
52
|
+
},
|
|
53
|
+
"submission": {
|
|
54
|
+
"type": "array",
|
|
55
|
+
"items": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"identifier": {
|
|
59
|
+
"type": "integer",
|
|
60
|
+
"minimum": 0,
|
|
61
|
+
"maximum": 255,
|
|
62
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
63
|
+
},
|
|
64
|
+
"b_submission": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "Whether this table item's value is submitted dynamically at Guard trigger time (alloc_by_guard call). \n\ntrue = value is submitted by the caller when triggering the Guard. Use for runtime-context-dependent values like order address, user address. The 'value' field is ignored when b_submission=true; the caller must provide it via submissions[]. \n\nfalse = value is static, set at Guard creation time. Use for values known when the Guard is created: expected node names, expected merchant address, expected service address. The 'value' field must be populated and will be stored on-chain permanently. \n\nRule of thumb: if the value is the SAME for all future Guard triggers, use false. If the value DIFFERS per trigger (e.g., which order to release funds for), use true."
|
|
67
|
+
},
|
|
68
|
+
"value_type": {
|
|
69
|
+
"anyOf": [
|
|
70
|
+
{
|
|
71
|
+
"type": "number",
|
|
72
|
+
"const": 0,
|
|
73
|
+
"description": "Bool (0)"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "number",
|
|
77
|
+
"const": 1,
|
|
78
|
+
"description": "Address (1)"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "number",
|
|
82
|
+
"const": 2,
|
|
83
|
+
"description": "String (2)"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "number",
|
|
87
|
+
"const": 3,
|
|
88
|
+
"description": "U8 (3)"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "number",
|
|
92
|
+
"const": 4,
|
|
93
|
+
"description": "U16 (4)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "number",
|
|
97
|
+
"const": 5,
|
|
98
|
+
"description": "U32 (5)"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "number",
|
|
102
|
+
"const": 6,
|
|
103
|
+
"description": "U64 (6)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "number",
|
|
107
|
+
"const": 7,
|
|
108
|
+
"description": "U128 (7)"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "number",
|
|
112
|
+
"const": 8,
|
|
113
|
+
"description": "U256 (8)"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "number",
|
|
117
|
+
"const": 9,
|
|
118
|
+
"description": "VecBool (9)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "number",
|
|
122
|
+
"const": 10,
|
|
123
|
+
"description": "VecAddress (10)"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "number",
|
|
127
|
+
"const": 11,
|
|
128
|
+
"description": "VecString (11)"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "number",
|
|
132
|
+
"const": 12,
|
|
133
|
+
"description": "VecU8 (12)"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "number",
|
|
137
|
+
"const": 13,
|
|
138
|
+
"description": "VecU16 (13)"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "number",
|
|
142
|
+
"const": 14,
|
|
143
|
+
"description": "VecU32 (14)"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"type": "number",
|
|
147
|
+
"const": 15,
|
|
148
|
+
"description": "VecU64 (15)"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"type": "number",
|
|
152
|
+
"const": 16,
|
|
153
|
+
"description": "VecU128 (16)"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "number",
|
|
157
|
+
"const": 17,
|
|
158
|
+
"description": "VecU256 (17)"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"type": "number",
|
|
162
|
+
"const": 18,
|
|
163
|
+
"description": "VecVecU8 (18)"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "string",
|
|
167
|
+
"const": "Bool",
|
|
168
|
+
"description": "Bool"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "string",
|
|
172
|
+
"const": "Address",
|
|
173
|
+
"description": "Address"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "string",
|
|
177
|
+
"const": "String",
|
|
178
|
+
"description": "String"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "string",
|
|
182
|
+
"const": "U8",
|
|
183
|
+
"description": "U8"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "string",
|
|
187
|
+
"const": "U16",
|
|
188
|
+
"description": "U16"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "string",
|
|
192
|
+
"const": "U32",
|
|
193
|
+
"description": "U32"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "string",
|
|
197
|
+
"const": "U64",
|
|
198
|
+
"description": "U64"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "string",
|
|
202
|
+
"const": "U128",
|
|
203
|
+
"description": "U128"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "string",
|
|
207
|
+
"const": "U256",
|
|
208
|
+
"description": "U256"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"type": "string",
|
|
212
|
+
"const": "VecBool",
|
|
213
|
+
"description": "VecBool"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "string",
|
|
217
|
+
"const": "VecAddress",
|
|
218
|
+
"description": "VecAddress"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"type": "string",
|
|
222
|
+
"const": "VecString",
|
|
223
|
+
"description": "VecString"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"type": "string",
|
|
227
|
+
"const": "VecU8",
|
|
228
|
+
"description": "VecU8"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"type": "string",
|
|
232
|
+
"const": "VecU16",
|
|
233
|
+
"description": "VecU16"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"type": "string",
|
|
237
|
+
"const": "VecU32",
|
|
238
|
+
"description": "VecU32"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "string",
|
|
242
|
+
"const": "VecU64",
|
|
243
|
+
"description": "VecU64"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"type": "string",
|
|
247
|
+
"const": "VecU128",
|
|
248
|
+
"description": "VecU128"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"type": "string",
|
|
252
|
+
"const": "VecU256",
|
|
253
|
+
"description": "VecU256"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"type": "string",
|
|
257
|
+
"const": "VecVecU8",
|
|
258
|
+
"description": "VecVecU8"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "string",
|
|
262
|
+
"const": "bool",
|
|
263
|
+
"description": "bool"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "string",
|
|
267
|
+
"const": "address",
|
|
268
|
+
"description": "address"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "string",
|
|
272
|
+
"const": "string",
|
|
273
|
+
"description": "string"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"type": "string",
|
|
277
|
+
"const": "u8",
|
|
278
|
+
"description": "u8"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"type": "string",
|
|
282
|
+
"const": "u16",
|
|
283
|
+
"description": "u16"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"type": "string",
|
|
287
|
+
"const": "u32",
|
|
288
|
+
"description": "u32"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "string",
|
|
292
|
+
"const": "u64",
|
|
293
|
+
"description": "u64"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"type": "string",
|
|
297
|
+
"const": "u128",
|
|
298
|
+
"description": "u128"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "string",
|
|
302
|
+
"const": "u256",
|
|
303
|
+
"description": "u256"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "string",
|
|
307
|
+
"const": "vecbool",
|
|
308
|
+
"description": "vecbool"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "string",
|
|
312
|
+
"const": "vecaddress",
|
|
313
|
+
"description": "vecaddress"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "string",
|
|
317
|
+
"const": "vecstring",
|
|
318
|
+
"description": "vecstring"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "string",
|
|
322
|
+
"const": "vecu8",
|
|
323
|
+
"description": "vecu8"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"type": "string",
|
|
327
|
+
"const": "vecu16",
|
|
328
|
+
"description": "vecu16"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"type": "string",
|
|
332
|
+
"const": "vecu32",
|
|
333
|
+
"description": "vecu32"
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"type": "string",
|
|
337
|
+
"const": "vecu64",
|
|
338
|
+
"description": "vecu64"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"type": "string",
|
|
342
|
+
"const": "vecu128",
|
|
343
|
+
"description": "vecu128"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"type": "string",
|
|
347
|
+
"const": "vecu256",
|
|
348
|
+
"description": "vecu256"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"type": "string",
|
|
352
|
+
"const": "vecvecu8",
|
|
353
|
+
"description": "vecvecu8"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"description": "Type of the value stored in `value`. One of: Bool(0), Address(1), String(2), U8(3), U16(4), U32(5), U64(6), U128(7), U256(8), VecBool(9), VecAddress(10), VecString(11), VecU8(12), VecU16(13), VecU32(14), VecU64(15), VecU128(16), VecU256(17), VecVecU8(18). When value_type=Address (1), the `value` field accepts a hex address string, a LocalMark name, or an AccountOrMark_Address object — see `value` field description for details."
|
|
357
|
+
},
|
|
358
|
+
"value": {
|
|
359
|
+
"anyOf": [
|
|
360
|
+
{
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"anyOf": [
|
|
365
|
+
{
|
|
366
|
+
"type": "object",
|
|
367
|
+
"properties": {
|
|
368
|
+
"name_or_address": {
|
|
369
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/0/properties/guard/items/properties/object",
|
|
370
|
+
"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)."
|
|
371
|
+
},
|
|
372
|
+
"local_mark_first": {
|
|
373
|
+
"type": "boolean",
|
|
374
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"additionalProperties": false,
|
|
378
|
+
"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."
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"type": "number"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"type": "array",
|
|
393
|
+
"items": {
|
|
394
|
+
"type": "boolean"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"type": "object",
|
|
401
|
+
"properties": {
|
|
402
|
+
"entities": {
|
|
403
|
+
"type": "array",
|
|
404
|
+
"items": {
|
|
405
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/0/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
"check_all_founded": {
|
|
409
|
+
"type": "boolean",
|
|
410
|
+
"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"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"required": [
|
|
414
|
+
"entities"
|
|
415
|
+
],
|
|
416
|
+
"additionalProperties": false,
|
|
417
|
+
"description": "Used to batch find account or object IDs by name"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "array",
|
|
421
|
+
"items": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "array",
|
|
429
|
+
"items": {
|
|
430
|
+
"type": "string"
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": "array",
|
|
435
|
+
"items": {
|
|
436
|
+
"type": "number"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "array",
|
|
441
|
+
"items": {
|
|
442
|
+
"type": "array",
|
|
443
|
+
"items": {
|
|
444
|
+
"type": "number"
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
],
|
|
449
|
+
"description": "The actual value data. Format depends on `value_type`:\n• Bool: true/false (boolean)\n• Address (CRITICAL — string 'Address' is NOT a placeholder): a hex address (e.g. '0x1234...'), a LocalMark name (e.g. 'my-service' — resolved to address at evaluation time), an AccountOrMark_Address object (e.g. {name_or_address:'my-service'}), or system shorthand ('0xaaa' = EntityLinker, '0xaab' = EntityRegistrar). The literal string 'Address' itself is INVALID — it would be treated as a non-existent LocalMark name and fail. Example: value='0x2::wow::WOW<address>' or value='my-permission'.\n• String: any string\n• U8/U16/U32/U64/U128/U256: number or numeric string (e.g. 42 or '42')\n• Vec* types: arrays of the corresponding element type\nREQUIRED when b_submission=false. OPTIONAL when b_submission=true (value is supplied at evaluation time by user submission)."
|
|
450
|
+
},
|
|
451
|
+
"name": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"default": "",
|
|
454
|
+
"description": "Data name identifier. MAX 64 BCS characters (Chinese chars count as 3-4 BCS bytes each). Use short identifiers like 'order_id', 'delivery_node'. Put longer descriptions in the Guard's 'description' field, NOT here."
|
|
455
|
+
},
|
|
456
|
+
"object_type": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"enum": [
|
|
459
|
+
"Permission",
|
|
460
|
+
"Repository",
|
|
461
|
+
"Arb",
|
|
462
|
+
"Arbitration",
|
|
463
|
+
"Service",
|
|
464
|
+
"Machine",
|
|
465
|
+
"Order",
|
|
466
|
+
"Progress",
|
|
467
|
+
"Payment",
|
|
468
|
+
"Treasury",
|
|
469
|
+
"Guard",
|
|
470
|
+
"Demand",
|
|
471
|
+
"Passport",
|
|
472
|
+
"Allocation",
|
|
473
|
+
"Resource",
|
|
474
|
+
"Reward",
|
|
475
|
+
"Discount",
|
|
476
|
+
"EntityRegistrar",
|
|
477
|
+
"EntityLinker",
|
|
478
|
+
"Proof",
|
|
479
|
+
"WReceivedObject",
|
|
480
|
+
"Contact",
|
|
481
|
+
"TableItem_ProgressHistory",
|
|
482
|
+
"TableItem_PermissionPerm",
|
|
483
|
+
"TableItem_DemandPresenter",
|
|
484
|
+
"TableItem_MachineNode",
|
|
485
|
+
"TableItem_TreasuryHistory",
|
|
486
|
+
"TableItem_RepositoryData",
|
|
487
|
+
"TableItem_RewardRecord",
|
|
488
|
+
"TableItem_EntityLinker",
|
|
489
|
+
"TableItem_AddressMark",
|
|
490
|
+
"TableItem_EntityRegistrar"
|
|
491
|
+
],
|
|
492
|
+
"description": "OUTPUT-ONLY (query side): Object type when value_type is Address and represents a specific object. Auto-derived by the system — DO NOT set this field at Guard creation."
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
"required": [
|
|
496
|
+
"identifier",
|
|
497
|
+
"b_submission",
|
|
498
|
+
"value_type"
|
|
499
|
+
],
|
|
500
|
+
"additionalProperties": false,
|
|
501
|
+
"description": "Guard table item (QUERY/OUTPUT form — includes auto-derived object_type field)"
|
|
502
|
+
},
|
|
503
|
+
"description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"required": [
|
|
507
|
+
"guard",
|
|
508
|
+
"submission"
|
|
509
|
+
],
|
|
510
|
+
"additionalProperties": false,
|
|
511
|
+
"description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
|
|
512
|
+
},
|
|
513
|
+
"description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission. PLACEMENT: this `submission` field is at the SAME level as `data` and `env` in the operation input — NOT inside `data.data`. Example structure: {tool:'onchain_operations', data:{operation_type:'order', data:{object:'my_order', progress:{...}}}, submission:{type:'submission', guard:[...], submission:[...]}}"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"required": [
|
|
517
|
+
"type",
|
|
518
|
+
"guard",
|
|
519
|
+
"submission"
|
|
520
|
+
],
|
|
521
|
+
"additionalProperties": false,
|
|
522
|
+
"description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "object",
|
|
526
|
+
"properties": {
|
|
527
|
+
"balanceChanges": {
|
|
528
|
+
"anyOf": [
|
|
529
|
+
{
|
|
530
|
+
"type": "array",
|
|
531
|
+
"items": {
|
|
532
|
+
"type": "object",
|
|
533
|
+
"properties": {
|
|
534
|
+
"amount": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"description": "Balance change value, negative for spending, positive for receiving"
|
|
537
|
+
},
|
|
538
|
+
"coinType": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"description": "Coin type"
|
|
541
|
+
},
|
|
542
|
+
"owner": {
|
|
543
|
+
"anyOf": [
|
|
544
|
+
{
|
|
545
|
+
"type": "object",
|
|
546
|
+
"properties": {
|
|
547
|
+
"AddressOwner": {
|
|
548
|
+
"type": "string",
|
|
549
|
+
"description": "Address owner"
|
|
550
|
+
}
|
|
551
|
+
},
|
|
552
|
+
"required": [
|
|
553
|
+
"AddressOwner"
|
|
554
|
+
],
|
|
555
|
+
"additionalProperties": false
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"type": "object",
|
|
559
|
+
"properties": {
|
|
560
|
+
"ObjectOwner": {
|
|
561
|
+
"type": "string",
|
|
562
|
+
"description": "Object owner"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
"required": [
|
|
566
|
+
"ObjectOwner"
|
|
567
|
+
],
|
|
568
|
+
"additionalProperties": false
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"type": "object",
|
|
572
|
+
"properties": {
|
|
573
|
+
"Shared": {
|
|
574
|
+
"type": "object",
|
|
575
|
+
"properties": {
|
|
576
|
+
"initial_shared_version": {
|
|
577
|
+
"type": [
|
|
578
|
+
"string",
|
|
579
|
+
"number"
|
|
580
|
+
],
|
|
581
|
+
"description": "Version when object became shared"
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"required": [
|
|
585
|
+
"initial_shared_version"
|
|
586
|
+
],
|
|
587
|
+
"additionalProperties": false,
|
|
588
|
+
"description": "Shared object"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"required": [
|
|
592
|
+
"Shared"
|
|
593
|
+
],
|
|
594
|
+
"additionalProperties": false
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"type": "string",
|
|
598
|
+
"const": "Immutable"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"type": "object",
|
|
602
|
+
"properties": {
|
|
603
|
+
"ConsensusAddressOwner": {
|
|
604
|
+
"type": "object",
|
|
605
|
+
"properties": {
|
|
606
|
+
"owner": {
|
|
607
|
+
"type": "string",
|
|
608
|
+
"description": "Consensus ID owner"
|
|
609
|
+
},
|
|
610
|
+
"start_version": {
|
|
611
|
+
"type": [
|
|
612
|
+
"string",
|
|
613
|
+
"number"
|
|
614
|
+
],
|
|
615
|
+
"description": "Version when object recently became consensus object"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"required": [
|
|
619
|
+
"owner",
|
|
620
|
+
"start_version"
|
|
621
|
+
],
|
|
622
|
+
"additionalProperties": false,
|
|
623
|
+
"description": "Consensus ID owner"
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
"required": [
|
|
627
|
+
"ConsensusAddressOwner"
|
|
628
|
+
],
|
|
629
|
+
"additionalProperties": false
|
|
630
|
+
}
|
|
631
|
+
],
|
|
632
|
+
"description": "Owner of the balance change"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"required": [
|
|
636
|
+
"amount",
|
|
637
|
+
"coinType",
|
|
638
|
+
"owner"
|
|
639
|
+
],
|
|
640
|
+
"additionalProperties": false,
|
|
641
|
+
"description": "Balance change"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"type": "null"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"description": "Balance changes"
|
|
649
|
+
},
|
|
650
|
+
"checkpoint": {
|
|
651
|
+
"type": [
|
|
652
|
+
"string",
|
|
653
|
+
"null"
|
|
654
|
+
],
|
|
655
|
+
"description": "Checkpoint number that this transaction is included in and thus completed"
|
|
656
|
+
},
|
|
657
|
+
"confirmedLocalExecution": {
|
|
658
|
+
"type": [
|
|
659
|
+
"boolean",
|
|
660
|
+
"null"
|
|
661
|
+
],
|
|
662
|
+
"description": "Confirmed local execution"
|
|
663
|
+
},
|
|
664
|
+
"digest": {
|
|
665
|
+
"type": "string",
|
|
666
|
+
"description": "Transaction digest"
|
|
667
|
+
},
|
|
668
|
+
"effects": {
|
|
669
|
+
"anyOf": [
|
|
670
|
+
{
|
|
671
|
+
"type": "object",
|
|
672
|
+
"properties": {
|
|
673
|
+
"abortError": {
|
|
674
|
+
"anyOf": [
|
|
675
|
+
{
|
|
676
|
+
"type": "object",
|
|
677
|
+
"properties": {
|
|
678
|
+
"error_code": {
|
|
679
|
+
"type": [
|
|
680
|
+
"string",
|
|
681
|
+
"null"
|
|
682
|
+
],
|
|
683
|
+
"description": "Error code"
|
|
684
|
+
},
|
|
685
|
+
"function": {
|
|
686
|
+
"type": [
|
|
687
|
+
"string",
|
|
688
|
+
"null"
|
|
689
|
+
],
|
|
690
|
+
"description": "Function"
|
|
691
|
+
},
|
|
692
|
+
"line": {
|
|
693
|
+
"type": [
|
|
694
|
+
"number",
|
|
695
|
+
"null"
|
|
696
|
+
],
|
|
697
|
+
"description": "Line number"
|
|
698
|
+
},
|
|
699
|
+
"module_id": {
|
|
700
|
+
"type": [
|
|
701
|
+
"string",
|
|
702
|
+
"null"
|
|
703
|
+
],
|
|
704
|
+
"description": "Module ID"
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
"additionalProperties": false,
|
|
708
|
+
"description": "Wow Move abort"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"type": "null"
|
|
712
|
+
}
|
|
713
|
+
],
|
|
714
|
+
"description": "Abort error if transaction failed with abort code"
|
|
715
|
+
},
|
|
716
|
+
"created": {
|
|
717
|
+
"type": "array",
|
|
718
|
+
"items": {
|
|
719
|
+
"type": "object",
|
|
720
|
+
"properties": {
|
|
721
|
+
"owner": {
|
|
722
|
+
"anyOf": [
|
|
723
|
+
{
|
|
724
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/0"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/1"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/2"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/3"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/4"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"description": "Owner"
|
|
740
|
+
},
|
|
741
|
+
"reference": {
|
|
742
|
+
"type": "object",
|
|
743
|
+
"properties": {
|
|
744
|
+
"digest": {
|
|
745
|
+
"type": "string",
|
|
746
|
+
"description": "Base64 string of object digest"
|
|
747
|
+
},
|
|
748
|
+
"objectId": {
|
|
749
|
+
"type": "string",
|
|
750
|
+
"description": "Hex code string representing object ID"
|
|
751
|
+
},
|
|
752
|
+
"version": {
|
|
753
|
+
"type": [
|
|
754
|
+
"string",
|
|
755
|
+
"number"
|
|
756
|
+
],
|
|
757
|
+
"description": "Object version"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
"required": [
|
|
761
|
+
"digest",
|
|
762
|
+
"objectId",
|
|
763
|
+
"version"
|
|
764
|
+
],
|
|
765
|
+
"additionalProperties": false,
|
|
766
|
+
"description": "Object reference"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"required": [
|
|
770
|
+
"owner",
|
|
771
|
+
"reference"
|
|
772
|
+
],
|
|
773
|
+
"additionalProperties": false,
|
|
774
|
+
"description": "Owned object reference"
|
|
775
|
+
},
|
|
776
|
+
"description": "ObjectRef and owner of newly created objects"
|
|
777
|
+
},
|
|
778
|
+
"deleted": {
|
|
779
|
+
"type": "array",
|
|
780
|
+
"items": {
|
|
781
|
+
"type": "object",
|
|
782
|
+
"properties": {
|
|
783
|
+
"digest": {
|
|
784
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items/properties/reference/properties/digest"
|
|
785
|
+
},
|
|
786
|
+
"objectId": {
|
|
787
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items/properties/reference/properties/objectId"
|
|
788
|
+
},
|
|
789
|
+
"version": {
|
|
790
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items/properties/reference/properties/version"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"required": [
|
|
794
|
+
"digest",
|
|
795
|
+
"objectId",
|
|
796
|
+
"version"
|
|
797
|
+
],
|
|
798
|
+
"additionalProperties": false,
|
|
799
|
+
"description": "Wow object reference"
|
|
800
|
+
},
|
|
801
|
+
"description": "Object references (old refs) of now deleted objects"
|
|
802
|
+
},
|
|
803
|
+
"dependencies": {
|
|
804
|
+
"type": "array",
|
|
805
|
+
"items": {
|
|
806
|
+
"type": "string"
|
|
807
|
+
},
|
|
808
|
+
"description": "Set of transaction digests this transaction depends on"
|
|
809
|
+
},
|
|
810
|
+
"eventsDigest": {
|
|
811
|
+
"type": [
|
|
812
|
+
"string",
|
|
813
|
+
"null"
|
|
814
|
+
],
|
|
815
|
+
"description": "Digest of events emitted during execution"
|
|
816
|
+
},
|
|
817
|
+
"executedEpoch": {
|
|
818
|
+
"type": [
|
|
819
|
+
"string",
|
|
820
|
+
"number"
|
|
821
|
+
],
|
|
822
|
+
"description": "Epoch in which this transaction was executed"
|
|
823
|
+
},
|
|
824
|
+
"gasObject": {
|
|
825
|
+
"type": "object",
|
|
826
|
+
"properties": {
|
|
827
|
+
"owner": {
|
|
828
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items/properties/owner"
|
|
829
|
+
},
|
|
830
|
+
"reference": {
|
|
831
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items/properties/reference"
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
"required": [
|
|
835
|
+
"owner",
|
|
836
|
+
"reference"
|
|
837
|
+
],
|
|
838
|
+
"additionalProperties": false,
|
|
839
|
+
"description": "Updated gas object reference"
|
|
840
|
+
},
|
|
841
|
+
"gasUsed": {
|
|
842
|
+
"type": "object",
|
|
843
|
+
"properties": {
|
|
844
|
+
"computationCost": {
|
|
845
|
+
"type": "string",
|
|
846
|
+
"description": "Computation/execution cost"
|
|
847
|
+
},
|
|
848
|
+
"nonRefundableStorageFee": {
|
|
849
|
+
"type": "string",
|
|
850
|
+
"description": "Non-refundable storage fee"
|
|
851
|
+
},
|
|
852
|
+
"storageCost": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"description": "Storage cost"
|
|
855
|
+
},
|
|
856
|
+
"storageRebate": {
|
|
857
|
+
"type": "string",
|
|
858
|
+
"description": "Storage rebate"
|
|
859
|
+
}
|
|
860
|
+
},
|
|
861
|
+
"required": [
|
|
862
|
+
"computationCost",
|
|
863
|
+
"nonRefundableStorageFee",
|
|
864
|
+
"storageCost",
|
|
865
|
+
"storageRebate"
|
|
866
|
+
],
|
|
867
|
+
"additionalProperties": false,
|
|
868
|
+
"description": "Gas used"
|
|
869
|
+
},
|
|
870
|
+
"messageVersion": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"const": "v1",
|
|
873
|
+
"description": "Message version"
|
|
874
|
+
},
|
|
875
|
+
"modifiedAtVersions": {
|
|
876
|
+
"type": "array",
|
|
877
|
+
"items": {
|
|
878
|
+
"type": "object",
|
|
879
|
+
"properties": {
|
|
880
|
+
"objectId": {
|
|
881
|
+
"type": "string",
|
|
882
|
+
"description": "Object ID"
|
|
883
|
+
},
|
|
884
|
+
"sequenceNumber": {
|
|
885
|
+
"type": [
|
|
886
|
+
"string",
|
|
887
|
+
"number"
|
|
888
|
+
],
|
|
889
|
+
"description": "Sequence number"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"required": [
|
|
893
|
+
"objectId",
|
|
894
|
+
"sequenceNumber"
|
|
895
|
+
],
|
|
896
|
+
"additionalProperties": false,
|
|
897
|
+
"description": "Transaction block effects modified versions"
|
|
898
|
+
},
|
|
899
|
+
"description": "Version of each modified (mutated or deleted) object before this transaction modified it"
|
|
900
|
+
},
|
|
901
|
+
"mutated": {
|
|
902
|
+
"type": "array",
|
|
903
|
+
"items": {
|
|
904
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items"
|
|
905
|
+
},
|
|
906
|
+
"description": "ObjectRef and owner of mutated objects, including gas object"
|
|
907
|
+
},
|
|
908
|
+
"sharedObjects": {
|
|
909
|
+
"type": "array",
|
|
910
|
+
"items": {
|
|
911
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/deleted/items"
|
|
912
|
+
},
|
|
913
|
+
"description": "Object references of shared objects used in this transaction"
|
|
914
|
+
},
|
|
915
|
+
"status": {
|
|
916
|
+
"type": "object",
|
|
917
|
+
"properties": {
|
|
918
|
+
"status": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"enum": [
|
|
921
|
+
"success",
|
|
922
|
+
"failure"
|
|
923
|
+
],
|
|
924
|
+
"description": "Execution status"
|
|
925
|
+
},
|
|
926
|
+
"error": {
|
|
927
|
+
"type": "string",
|
|
928
|
+
"description": "Error message"
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"required": [
|
|
932
|
+
"status"
|
|
933
|
+
],
|
|
934
|
+
"additionalProperties": false,
|
|
935
|
+
"description": "Execution status"
|
|
936
|
+
},
|
|
937
|
+
"transactionDigest": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"description": "Transaction digest"
|
|
940
|
+
},
|
|
941
|
+
"unwrapped": {
|
|
942
|
+
"type": "array",
|
|
943
|
+
"items": {
|
|
944
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/created/items"
|
|
945
|
+
},
|
|
946
|
+
"description": "ObjectRef and owner of objects unwrapped in this transaction"
|
|
947
|
+
},
|
|
948
|
+
"unwrappedThenDeleted": {
|
|
949
|
+
"type": "array",
|
|
950
|
+
"items": {
|
|
951
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/deleted/items"
|
|
952
|
+
},
|
|
953
|
+
"description": "Object references of objects previously wrapped in other objects but now deleted"
|
|
954
|
+
},
|
|
955
|
+
"wrapped": {
|
|
956
|
+
"type": "array",
|
|
957
|
+
"items": {
|
|
958
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/deleted/items"
|
|
959
|
+
},
|
|
960
|
+
"description": "Object references of objects now wrapped in other objects"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"required": [
|
|
964
|
+
"executedEpoch",
|
|
965
|
+
"gasObject",
|
|
966
|
+
"gasUsed",
|
|
967
|
+
"messageVersion",
|
|
968
|
+
"status",
|
|
969
|
+
"transactionDigest"
|
|
970
|
+
],
|
|
971
|
+
"additionalProperties": false,
|
|
972
|
+
"description": "Transaction effects"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"type": "null"
|
|
976
|
+
}
|
|
977
|
+
],
|
|
978
|
+
"description": "Transaction effects"
|
|
979
|
+
},
|
|
980
|
+
"errors": {
|
|
981
|
+
"type": "array",
|
|
982
|
+
"items": {
|
|
983
|
+
"type": "string"
|
|
984
|
+
},
|
|
985
|
+
"description": "Error messages"
|
|
986
|
+
},
|
|
987
|
+
"events": {
|
|
988
|
+
"anyOf": [
|
|
989
|
+
{
|
|
990
|
+
"type": "array",
|
|
991
|
+
"items": {
|
|
992
|
+
"anyOf": [
|
|
993
|
+
{
|
|
994
|
+
"type": "object",
|
|
995
|
+
"properties": {
|
|
996
|
+
"id": {
|
|
997
|
+
"type": "object",
|
|
998
|
+
"properties": {
|
|
999
|
+
"eventSeq": {
|
|
1000
|
+
"type": [
|
|
1001
|
+
"string",
|
|
1002
|
+
"number"
|
|
1003
|
+
],
|
|
1004
|
+
"description": "Event sequence number"
|
|
1005
|
+
},
|
|
1006
|
+
"txDigest": {
|
|
1007
|
+
"type": "string",
|
|
1008
|
+
"description": "Transaction digest"
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"required": [
|
|
1012
|
+
"eventSeq",
|
|
1013
|
+
"txDigest"
|
|
1014
|
+
],
|
|
1015
|
+
"additionalProperties": false,
|
|
1016
|
+
"description": "Event ID"
|
|
1017
|
+
},
|
|
1018
|
+
"packageId": {
|
|
1019
|
+
"type": "string",
|
|
1020
|
+
"description": "Package ID where event originated"
|
|
1021
|
+
},
|
|
1022
|
+
"parsedJson": {
|
|
1023
|
+
"type": "object",
|
|
1024
|
+
"additionalProperties": {},
|
|
1025
|
+
"description": "Parsed JSON value of the event"
|
|
1026
|
+
},
|
|
1027
|
+
"sender": {
|
|
1028
|
+
"type": "string",
|
|
1029
|
+
"description": "Sender's address"
|
|
1030
|
+
},
|
|
1031
|
+
"timestampMs": {
|
|
1032
|
+
"type": [
|
|
1033
|
+
"string",
|
|
1034
|
+
"null"
|
|
1035
|
+
],
|
|
1036
|
+
"description": "UTC timestamp in milliseconds since epoch"
|
|
1037
|
+
},
|
|
1038
|
+
"transactionModule": {
|
|
1039
|
+
"type": "string",
|
|
1040
|
+
"description": "Module where event originated"
|
|
1041
|
+
},
|
|
1042
|
+
"type": {
|
|
1043
|
+
"type": "string",
|
|
1044
|
+
"description": "Move event type"
|
|
1045
|
+
},
|
|
1046
|
+
"bcs": {
|
|
1047
|
+
"type": "string",
|
|
1048
|
+
"description": "BCS encoded event"
|
|
1049
|
+
},
|
|
1050
|
+
"bcsEncoding": {
|
|
1051
|
+
"type": "string",
|
|
1052
|
+
"const": "base64",
|
|
1053
|
+
"description": "BCS encoding format"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"required": [
|
|
1057
|
+
"id",
|
|
1058
|
+
"packageId",
|
|
1059
|
+
"parsedJson",
|
|
1060
|
+
"sender",
|
|
1061
|
+
"transactionModule",
|
|
1062
|
+
"type",
|
|
1063
|
+
"bcs",
|
|
1064
|
+
"bcsEncoding"
|
|
1065
|
+
],
|
|
1066
|
+
"additionalProperties": false
|
|
1067
|
+
},
|
|
1068
|
+
{
|
|
1069
|
+
"type": "object",
|
|
1070
|
+
"properties": {
|
|
1071
|
+
"id": {
|
|
1072
|
+
"type": "object",
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"eventSeq": {
|
|
1075
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/events/anyOf/0/items/anyOf/0/properties/id/properties/eventSeq"
|
|
1076
|
+
},
|
|
1077
|
+
"txDigest": {
|
|
1078
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/events/anyOf/0/items/anyOf/0/properties/id/properties/txDigest"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"required": [
|
|
1082
|
+
"eventSeq",
|
|
1083
|
+
"txDigest"
|
|
1084
|
+
],
|
|
1085
|
+
"additionalProperties": false,
|
|
1086
|
+
"description": "Event ID"
|
|
1087
|
+
},
|
|
1088
|
+
"packageId": {
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
"description": "Package ID where event originated"
|
|
1091
|
+
},
|
|
1092
|
+
"parsedJson": {
|
|
1093
|
+
"type": "object",
|
|
1094
|
+
"additionalProperties": {},
|
|
1095
|
+
"description": "Parsed JSON value of the event"
|
|
1096
|
+
},
|
|
1097
|
+
"sender": {
|
|
1098
|
+
"type": "string",
|
|
1099
|
+
"description": "Sender's ID"
|
|
1100
|
+
},
|
|
1101
|
+
"timestampMs": {
|
|
1102
|
+
"type": [
|
|
1103
|
+
"string",
|
|
1104
|
+
"null"
|
|
1105
|
+
],
|
|
1106
|
+
"description": "UTC timestamp in milliseconds since epoch"
|
|
1107
|
+
},
|
|
1108
|
+
"transactionModule": {
|
|
1109
|
+
"type": "string",
|
|
1110
|
+
"description": "Module where event originated"
|
|
1111
|
+
},
|
|
1112
|
+
"type": {
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"description": "Move event type"
|
|
1115
|
+
},
|
|
1116
|
+
"bcs": {
|
|
1117
|
+
"type": "string",
|
|
1118
|
+
"description": "BCS encoded event"
|
|
1119
|
+
},
|
|
1120
|
+
"bcsEncoding": {
|
|
1121
|
+
"type": "string",
|
|
1122
|
+
"const": "base58",
|
|
1123
|
+
"description": "BCS encoding format"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"required": [
|
|
1127
|
+
"id",
|
|
1128
|
+
"packageId",
|
|
1129
|
+
"parsedJson",
|
|
1130
|
+
"sender",
|
|
1131
|
+
"transactionModule",
|
|
1132
|
+
"type",
|
|
1133
|
+
"bcs",
|
|
1134
|
+
"bcsEncoding"
|
|
1135
|
+
],
|
|
1136
|
+
"additionalProperties": false
|
|
1137
|
+
}
|
|
1138
|
+
],
|
|
1139
|
+
"description": "Blockchain event"
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"type": "null"
|
|
1144
|
+
}
|
|
1145
|
+
],
|
|
1146
|
+
"description": "Events"
|
|
1147
|
+
},
|
|
1148
|
+
"objectChanges": {
|
|
1149
|
+
"anyOf": [
|
|
1150
|
+
{
|
|
1151
|
+
"type": "array",
|
|
1152
|
+
"items": {
|
|
1153
|
+
"anyOf": [
|
|
1154
|
+
{
|
|
1155
|
+
"type": "object",
|
|
1156
|
+
"properties": {
|
|
1157
|
+
"type": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"const": "published"
|
|
1160
|
+
},
|
|
1161
|
+
"digest": {
|
|
1162
|
+
"type": "string",
|
|
1163
|
+
"description": "Digest"
|
|
1164
|
+
},
|
|
1165
|
+
"modules": {
|
|
1166
|
+
"type": "array",
|
|
1167
|
+
"items": {
|
|
1168
|
+
"type": "string"
|
|
1169
|
+
},
|
|
1170
|
+
"description": "Modules"
|
|
1171
|
+
},
|
|
1172
|
+
"packageId": {
|
|
1173
|
+
"type": "string",
|
|
1174
|
+
"description": "Package ID"
|
|
1175
|
+
},
|
|
1176
|
+
"version": {
|
|
1177
|
+
"type": [
|
|
1178
|
+
"string",
|
|
1179
|
+
"number"
|
|
1180
|
+
],
|
|
1181
|
+
"description": "Version"
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"required": [
|
|
1185
|
+
"type",
|
|
1186
|
+
"digest",
|
|
1187
|
+
"modules",
|
|
1188
|
+
"packageId",
|
|
1189
|
+
"version"
|
|
1190
|
+
],
|
|
1191
|
+
"additionalProperties": false
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"type": "object",
|
|
1195
|
+
"properties": {
|
|
1196
|
+
"type": {
|
|
1197
|
+
"type": "string",
|
|
1198
|
+
"const": "transferred"
|
|
1199
|
+
},
|
|
1200
|
+
"digest": {
|
|
1201
|
+
"type": "string",
|
|
1202
|
+
"description": "Digest"
|
|
1203
|
+
},
|
|
1204
|
+
"objectId": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"description": "Object ID"
|
|
1207
|
+
},
|
|
1208
|
+
"objectType": {
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"description": "Object type"
|
|
1211
|
+
},
|
|
1212
|
+
"recipient": {
|
|
1213
|
+
"anyOf": [
|
|
1214
|
+
{
|
|
1215
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/0"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/1"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/2"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/3"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/4"
|
|
1228
|
+
}
|
|
1229
|
+
],
|
|
1230
|
+
"description": "Recipient"
|
|
1231
|
+
},
|
|
1232
|
+
"sender": {
|
|
1233
|
+
"type": "string",
|
|
1234
|
+
"description": "Sender ID"
|
|
1235
|
+
},
|
|
1236
|
+
"version": {
|
|
1237
|
+
"type": [
|
|
1238
|
+
"string",
|
|
1239
|
+
"number"
|
|
1240
|
+
],
|
|
1241
|
+
"description": "Version"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
"required": [
|
|
1245
|
+
"type",
|
|
1246
|
+
"digest",
|
|
1247
|
+
"objectId",
|
|
1248
|
+
"objectType",
|
|
1249
|
+
"recipient",
|
|
1250
|
+
"sender",
|
|
1251
|
+
"version"
|
|
1252
|
+
],
|
|
1253
|
+
"additionalProperties": false
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"type": "object",
|
|
1257
|
+
"properties": {
|
|
1258
|
+
"type": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"const": "mutated"
|
|
1261
|
+
},
|
|
1262
|
+
"digest": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "Digest"
|
|
1265
|
+
},
|
|
1266
|
+
"objectId": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "Object ID"
|
|
1269
|
+
},
|
|
1270
|
+
"objectType": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "Object type"
|
|
1273
|
+
},
|
|
1274
|
+
"owner": {
|
|
1275
|
+
"anyOf": [
|
|
1276
|
+
{
|
|
1277
|
+
"anyOf": [
|
|
1278
|
+
{
|
|
1279
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/0"
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/1"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/2"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/3"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/balanceChanges/anyOf/0/items/properties/owner/anyOf/4"
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
"description": "Object owner"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"type": "null"
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
"description": "Owner"
|
|
1301
|
+
},
|
|
1302
|
+
"previousVersion": {
|
|
1303
|
+
"type": [
|
|
1304
|
+
"string",
|
|
1305
|
+
"number"
|
|
1306
|
+
],
|
|
1307
|
+
"description": "Previous version"
|
|
1308
|
+
},
|
|
1309
|
+
"sender": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"description": "Sender"
|
|
1312
|
+
},
|
|
1313
|
+
"version": {
|
|
1314
|
+
"type": [
|
|
1315
|
+
"string",
|
|
1316
|
+
"number"
|
|
1317
|
+
],
|
|
1318
|
+
"description": "Version"
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
"required": [
|
|
1322
|
+
"type",
|
|
1323
|
+
"digest",
|
|
1324
|
+
"objectId",
|
|
1325
|
+
"objectType",
|
|
1326
|
+
"owner",
|
|
1327
|
+
"previousVersion",
|
|
1328
|
+
"sender",
|
|
1329
|
+
"version"
|
|
1330
|
+
],
|
|
1331
|
+
"additionalProperties": false
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"type": "object",
|
|
1335
|
+
"properties": {
|
|
1336
|
+
"type": {
|
|
1337
|
+
"type": "string",
|
|
1338
|
+
"const": "deleted"
|
|
1339
|
+
},
|
|
1340
|
+
"objectId": {
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"description": "Object ID"
|
|
1343
|
+
},
|
|
1344
|
+
"objectType": {
|
|
1345
|
+
"type": "string",
|
|
1346
|
+
"description": "Object type"
|
|
1347
|
+
},
|
|
1348
|
+
"sender": {
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"description": "Sender"
|
|
1351
|
+
},
|
|
1352
|
+
"version": {
|
|
1353
|
+
"type": [
|
|
1354
|
+
"string",
|
|
1355
|
+
"number"
|
|
1356
|
+
],
|
|
1357
|
+
"description": "Version"
|
|
1358
|
+
}
|
|
1359
|
+
},
|
|
1360
|
+
"required": [
|
|
1361
|
+
"type",
|
|
1362
|
+
"objectId",
|
|
1363
|
+
"objectType",
|
|
1364
|
+
"sender",
|
|
1365
|
+
"version"
|
|
1366
|
+
],
|
|
1367
|
+
"additionalProperties": false
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
"type": "object",
|
|
1371
|
+
"properties": {
|
|
1372
|
+
"type": {
|
|
1373
|
+
"type": "string",
|
|
1374
|
+
"const": "wrapped"
|
|
1375
|
+
},
|
|
1376
|
+
"objectId": {
|
|
1377
|
+
"type": "string",
|
|
1378
|
+
"description": "Object ID"
|
|
1379
|
+
},
|
|
1380
|
+
"objectType": {
|
|
1381
|
+
"type": "string",
|
|
1382
|
+
"description": "Object type"
|
|
1383
|
+
},
|
|
1384
|
+
"sender": {
|
|
1385
|
+
"type": "string",
|
|
1386
|
+
"description": "Sender"
|
|
1387
|
+
},
|
|
1388
|
+
"version": {
|
|
1389
|
+
"type": [
|
|
1390
|
+
"string",
|
|
1391
|
+
"number"
|
|
1392
|
+
],
|
|
1393
|
+
"description": "Version"
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"required": [
|
|
1397
|
+
"type",
|
|
1398
|
+
"objectId",
|
|
1399
|
+
"objectType",
|
|
1400
|
+
"sender",
|
|
1401
|
+
"version"
|
|
1402
|
+
],
|
|
1403
|
+
"additionalProperties": false
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"type": "object",
|
|
1407
|
+
"properties": {
|
|
1408
|
+
"type": {
|
|
1409
|
+
"type": "string",
|
|
1410
|
+
"const": "created"
|
|
1411
|
+
},
|
|
1412
|
+
"digest": {
|
|
1413
|
+
"type": "string",
|
|
1414
|
+
"description": "Digest"
|
|
1415
|
+
},
|
|
1416
|
+
"objectId": {
|
|
1417
|
+
"type": "string",
|
|
1418
|
+
"description": "Object ID"
|
|
1419
|
+
},
|
|
1420
|
+
"objectType": {
|
|
1421
|
+
"type": "string",
|
|
1422
|
+
"description": "Object type"
|
|
1423
|
+
},
|
|
1424
|
+
"owner": {
|
|
1425
|
+
"anyOf": [
|
|
1426
|
+
{
|
|
1427
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/objectChanges/anyOf/0/items/anyOf/2/properties/owner/anyOf/0"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"type": "null"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"description": "Owner"
|
|
1434
|
+
},
|
|
1435
|
+
"sender": {
|
|
1436
|
+
"type": "string",
|
|
1437
|
+
"description": "Sender"
|
|
1438
|
+
},
|
|
1439
|
+
"version": {
|
|
1440
|
+
"type": [
|
|
1441
|
+
"string",
|
|
1442
|
+
"number"
|
|
1443
|
+
],
|
|
1444
|
+
"description": "Version"
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
"required": [
|
|
1448
|
+
"type",
|
|
1449
|
+
"digest",
|
|
1450
|
+
"objectId",
|
|
1451
|
+
"objectType",
|
|
1452
|
+
"owner",
|
|
1453
|
+
"sender",
|
|
1454
|
+
"version"
|
|
1455
|
+
],
|
|
1456
|
+
"additionalProperties": false
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"description": "Object change information"
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"type": "null"
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
"description": "Object changes"
|
|
1467
|
+
},
|
|
1468
|
+
"rawEffects": {
|
|
1469
|
+
"type": "array",
|
|
1470
|
+
"items": {
|
|
1471
|
+
"type": "number"
|
|
1472
|
+
},
|
|
1473
|
+
"description": "Raw effects"
|
|
1474
|
+
},
|
|
1475
|
+
"rawTransaction": {
|
|
1476
|
+
"type": "string",
|
|
1477
|
+
"description": "Raw transaction"
|
|
1478
|
+
},
|
|
1479
|
+
"timestampMs": {
|
|
1480
|
+
"type": [
|
|
1481
|
+
"string",
|
|
1482
|
+
"null"
|
|
1483
|
+
],
|
|
1484
|
+
"description": "Timestamp"
|
|
1485
|
+
},
|
|
1486
|
+
"transaction": {
|
|
1487
|
+
"anyOf": [
|
|
1488
|
+
{
|
|
1489
|
+
"type": "object",
|
|
1490
|
+
"properties": {
|
|
1491
|
+
"data": {
|
|
1492
|
+
"type": "object",
|
|
1493
|
+
"properties": {
|
|
1494
|
+
"gasData": {
|
|
1495
|
+
"type": "object",
|
|
1496
|
+
"properties": {
|
|
1497
|
+
"budget": {
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"description": "Budget"
|
|
1500
|
+
},
|
|
1501
|
+
"owner": {
|
|
1502
|
+
"type": "string",
|
|
1503
|
+
"description": "Owner"
|
|
1504
|
+
},
|
|
1505
|
+
"payment": {
|
|
1506
|
+
"type": "array",
|
|
1507
|
+
"items": {
|
|
1508
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/effects/anyOf/0/properties/deleted/items"
|
|
1509
|
+
},
|
|
1510
|
+
"description": "Payment"
|
|
1511
|
+
},
|
|
1512
|
+
"price": {
|
|
1513
|
+
"type": "string",
|
|
1514
|
+
"description": "Price"
|
|
1515
|
+
}
|
|
1516
|
+
},
|
|
1517
|
+
"required": [
|
|
1518
|
+
"budget",
|
|
1519
|
+
"owner",
|
|
1520
|
+
"payment",
|
|
1521
|
+
"price"
|
|
1522
|
+
],
|
|
1523
|
+
"additionalProperties": false,
|
|
1524
|
+
"description": "Gas data"
|
|
1525
|
+
},
|
|
1526
|
+
"messageVersion": {
|
|
1527
|
+
"type": "string",
|
|
1528
|
+
"const": "v1",
|
|
1529
|
+
"description": "Message version"
|
|
1530
|
+
},
|
|
1531
|
+
"sender": {
|
|
1532
|
+
"type": "string",
|
|
1533
|
+
"description": "Sender"
|
|
1534
|
+
},
|
|
1535
|
+
"transaction": {
|
|
1536
|
+
"type": "object",
|
|
1537
|
+
"properties": {
|
|
1538
|
+
"kind": {
|
|
1539
|
+
"type": "string",
|
|
1540
|
+
"description": "Transaction type"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
"required": [
|
|
1544
|
+
"kind"
|
|
1545
|
+
],
|
|
1546
|
+
"additionalProperties": true,
|
|
1547
|
+
"description": "Transaction"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
"required": [
|
|
1551
|
+
"gasData",
|
|
1552
|
+
"messageVersion",
|
|
1553
|
+
"sender",
|
|
1554
|
+
"transaction"
|
|
1555
|
+
],
|
|
1556
|
+
"additionalProperties": false,
|
|
1557
|
+
"description": "Transaction data"
|
|
1558
|
+
},
|
|
1559
|
+
"txSignatures": {
|
|
1560
|
+
"type": "array",
|
|
1561
|
+
"items": {
|
|
1562
|
+
"type": "string"
|
|
1563
|
+
},
|
|
1564
|
+
"description": "Transaction signatures"
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"required": [
|
|
1568
|
+
"data",
|
|
1569
|
+
"txSignatures"
|
|
1570
|
+
],
|
|
1571
|
+
"additionalProperties": false,
|
|
1572
|
+
"description": "Wow transaction block"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"type": "null"
|
|
1576
|
+
}
|
|
1577
|
+
],
|
|
1578
|
+
"description": "Transaction input data"
|
|
1579
|
+
},
|
|
1580
|
+
"type": {
|
|
1581
|
+
"type": "string",
|
|
1582
|
+
"const": "transaction",
|
|
1583
|
+
"description": "Discriminator for this result variant. Constraint: always 'transaction'. Example: 'transaction'"
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
"required": [
|
|
1587
|
+
"digest",
|
|
1588
|
+
"type"
|
|
1589
|
+
],
|
|
1590
|
+
"additionalProperties": false,
|
|
1591
|
+
"description": "Wow transaction block response"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"type": "object",
|
|
1595
|
+
"properties": {
|
|
1596
|
+
"type": {
|
|
1597
|
+
"type": "string",
|
|
1598
|
+
"const": "error",
|
|
1599
|
+
"description": "Discriminator for this result variant. Constraint: always 'error'. Example: 'error'"
|
|
1600
|
+
},
|
|
1601
|
+
"error": {
|
|
1602
|
+
"type": "string",
|
|
1603
|
+
"description": "Human-readable error message from the chain or SDK. Relation: enriched via enrichMoveError before classification. Example: 'Insufficient balance for gas'"
|
|
1604
|
+
},
|
|
1605
|
+
"error_code": {
|
|
1606
|
+
"type": "string",
|
|
1607
|
+
"enum": [
|
|
1608
|
+
"invalid_parameter",
|
|
1609
|
+
"guard_rejected",
|
|
1610
|
+
"state_conflict",
|
|
1611
|
+
"insufficient_balance",
|
|
1612
|
+
"object_not_found",
|
|
1613
|
+
"permission_denied",
|
|
1614
|
+
"immutable_violation",
|
|
1615
|
+
"network_error",
|
|
1616
|
+
"rate_limit",
|
|
1617
|
+
"gas_exceeded",
|
|
1618
|
+
"bcs_error",
|
|
1619
|
+
"signature_error",
|
|
1620
|
+
"config_error",
|
|
1621
|
+
"wip_verification_failed",
|
|
1622
|
+
"unknown"
|
|
1623
|
+
],
|
|
1624
|
+
"description": "Error classification for programmatic recovery. Constraint: enum of 15 values (must match ErrorCode in semantic.ts). Relation: drives Recover Loop strategy selection. Example: 'insufficient_balance'"
|
|
1625
|
+
},
|
|
1626
|
+
"retryable": {
|
|
1627
|
+
"type": "boolean",
|
|
1628
|
+
"description": "Whether the same call can be retried as-is. Constraint: true for network_error, rate_limit, gas_exceeded, and insufficient_balance. Example: true"
|
|
1629
|
+
},
|
|
1630
|
+
"recovery_hint": {
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"description": "Recovery suggestion for AI or user. Relation: paired with error_code to guide Recover Loop. Example: 'Claim faucet tokens then retry'"
|
|
1633
|
+
},
|
|
1634
|
+
"related_object": {
|
|
1635
|
+
"type": "string",
|
|
1636
|
+
"description": "Object ID related to the error, if any. Example: '0x123...'"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
"required": [
|
|
1640
|
+
"type",
|
|
1641
|
+
"error"
|
|
1642
|
+
],
|
|
1643
|
+
"additionalProperties": false,
|
|
1644
|
+
"description": "Error result. Contains the raw error message plus structured classification (error_code/retryable/recovery_hint) so AI can choose a recovery strategy without parsing the error string."
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"type": "object",
|
|
1648
|
+
"properties": {
|
|
1649
|
+
"type": {
|
|
1650
|
+
"type": "string",
|
|
1651
|
+
"const": "data",
|
|
1652
|
+
"description": "Discriminator for this result variant. Constraint: always 'data'. Example: 'data'"
|
|
1653
|
+
},
|
|
1654
|
+
"data": {
|
|
1655
|
+
"type": "array",
|
|
1656
|
+
"items": {
|
|
1657
|
+
"type": "object",
|
|
1658
|
+
"properties": {
|
|
1659
|
+
"object": {
|
|
1660
|
+
"type": "string",
|
|
1661
|
+
"description": "Object ID"
|
|
1662
|
+
},
|
|
1663
|
+
"type": {
|
|
1664
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/0/properties/submission/items/properties/submission/items/properties/object_type",
|
|
1665
|
+
"description": "Object type"
|
|
1666
|
+
},
|
|
1667
|
+
"type_raw": {
|
|
1668
|
+
"type": "string",
|
|
1669
|
+
"description": "Raw object type"
|
|
1670
|
+
},
|
|
1671
|
+
"owner": {
|
|
1672
|
+
"anyOf": [
|
|
1673
|
+
{
|
|
1674
|
+
"$ref": "#/definitions/onchain_operations/properties/result/anyOf/1/properties/objectChanges/anyOf/0/items/anyOf/2/properties/owner/anyOf/0"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"type": "null"
|
|
1678
|
+
}
|
|
1679
|
+
],
|
|
1680
|
+
"description": "Object owner"
|
|
1681
|
+
},
|
|
1682
|
+
"version": {
|
|
1683
|
+
"type": [
|
|
1684
|
+
"string",
|
|
1685
|
+
"number"
|
|
1686
|
+
],
|
|
1687
|
+
"description": "Object version"
|
|
1688
|
+
},
|
|
1689
|
+
"previousTransaction": {
|
|
1690
|
+
"type": "string",
|
|
1691
|
+
"description": "Previous transaction ID"
|
|
1692
|
+
},
|
|
1693
|
+
"cache_expire": {
|
|
1694
|
+
"anyOf": [
|
|
1695
|
+
{
|
|
1696
|
+
"type": "number"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"type": "string",
|
|
1700
|
+
"const": "INFINITE"
|
|
1701
|
+
}
|
|
1702
|
+
],
|
|
1703
|
+
"description": "Cache expiration time"
|
|
1704
|
+
},
|
|
1705
|
+
"query_name": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"description": "Original query name or address used to retrieve this object"
|
|
1708
|
+
},
|
|
1709
|
+
"content_raw": {
|
|
1710
|
+
"description": "Raw content data for unknown object types"
|
|
1711
|
+
},
|
|
1712
|
+
"_guard_node_comments": {
|
|
1713
|
+
"type": "array",
|
|
1714
|
+
"items": {
|
|
1715
|
+
"type": "object",
|
|
1716
|
+
"properties": {
|
|
1717
|
+
"type": {
|
|
1718
|
+
"type": "string"
|
|
1719
|
+
},
|
|
1720
|
+
"description": {
|
|
1721
|
+
"type": "string"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
"required": [
|
|
1725
|
+
"type",
|
|
1726
|
+
"description"
|
|
1727
|
+
],
|
|
1728
|
+
"additionalProperties": false
|
|
1729
|
+
},
|
|
1730
|
+
"description": "Additional comments for Guard node instructions"
|
|
1731
|
+
},
|
|
1732
|
+
"change": {
|
|
1733
|
+
"anyOf": [
|
|
1734
|
+
{
|
|
1735
|
+
"type": "string",
|
|
1736
|
+
"const": "created"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"type": "string",
|
|
1740
|
+
"const": "mutated"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"type": "string"
|
|
1744
|
+
}
|
|
1745
|
+
],
|
|
1746
|
+
"description": "What happened to this object in the operation. Constraint: 'created' | 'mutated' | custom string. Example: 'created'"
|
|
1747
|
+
}
|
|
1748
|
+
},
|
|
1749
|
+
"required": [
|
|
1750
|
+
"object",
|
|
1751
|
+
"change"
|
|
1752
|
+
],
|
|
1753
|
+
"additionalProperties": true,
|
|
1754
|
+
"description": "One object record in a query result. Contains the object's basic info plus how it changed in this operation."
|
|
1755
|
+
},
|
|
1756
|
+
"description": "Array of object records returned by a query operation. Example: [{id:'0x...', change:'created'}]"
|
|
1757
|
+
}
|
|
1758
|
+
},
|
|
1759
|
+
"required": [
|
|
1760
|
+
"type",
|
|
1761
|
+
"data"
|
|
1762
|
+
],
|
|
1763
|
+
"additionalProperties": false
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"type": "object",
|
|
1767
|
+
"properties": {
|
|
1768
|
+
"type": {
|
|
1769
|
+
"type": "string",
|
|
1770
|
+
"const": "null",
|
|
1771
|
+
"description": "Discriminator for this result variant. Constraint: always 'null'. Example: 'null'"
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"required": [
|
|
1775
|
+
"type"
|
|
1776
|
+
],
|
|
1777
|
+
"additionalProperties": false
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"type": "object",
|
|
1781
|
+
"properties": {
|
|
1782
|
+
"type": {
|
|
1783
|
+
"type": "string",
|
|
1784
|
+
"const": "pending_confirmation",
|
|
1785
|
+
"description": "Discriminator. The operation was NOT executed; it is blocked pending user confirmation. Re-call with env.confirmed=true to proceed, or modify/cancel."
|
|
1786
|
+
},
|
|
1787
|
+
"preview": {
|
|
1788
|
+
"type": "object",
|
|
1789
|
+
"properties": {
|
|
1790
|
+
"level": {
|
|
1791
|
+
"type": "string",
|
|
1792
|
+
"enum": [
|
|
1793
|
+
"none",
|
|
1794
|
+
"standard",
|
|
1795
|
+
"amount",
|
|
1796
|
+
"publish",
|
|
1797
|
+
"irreversible"
|
|
1798
|
+
],
|
|
1799
|
+
"description": "Confirmation level. 'irreversible' = cannot be undone (arb verdict, payment). 'publish' = locks immutable fields. 'amount' = amount-sensitive. 'standard' = default-value warnings."
|
|
1800
|
+
},
|
|
1801
|
+
"operation": {
|
|
1802
|
+
"type": "string",
|
|
1803
|
+
"description": "operation_type that triggered the gate. Example: 'payment'"
|
|
1804
|
+
},
|
|
1805
|
+
"object": {
|
|
1806
|
+
"anyOf": [
|
|
1807
|
+
{
|
|
1808
|
+
"type": "string"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"type": "object",
|
|
1812
|
+
"additionalProperties": {}
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"type": "null"
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"description": "Object name/id involved (string for existing, object for new creation). Example: 'myshop_service' or {name: 'myshop_service'}"
|
|
1819
|
+
},
|
|
1820
|
+
"network": {
|
|
1821
|
+
"type": "string",
|
|
1822
|
+
"description": "Network in use. Example: 'mainnet'"
|
|
1823
|
+
},
|
|
1824
|
+
"account": {
|
|
1825
|
+
"type": "string",
|
|
1826
|
+
"description": "Signing account ('' = default). Example: '' or '0xabc...'"
|
|
1827
|
+
},
|
|
1828
|
+
"amount": {
|
|
1829
|
+
"type": "object",
|
|
1830
|
+
"properties": {
|
|
1831
|
+
"value": {
|
|
1832
|
+
"type": "string",
|
|
1833
|
+
"description": "Smallest-unit value as string. Example: '2500000000'"
|
|
1834
|
+
},
|
|
1835
|
+
"token": {
|
|
1836
|
+
"type": "string",
|
|
1837
|
+
"description": "Coin type tag. Example: '0x2::wow::WOW'"
|
|
1838
|
+
},
|
|
1839
|
+
"human_readable": {
|
|
1840
|
+
"type": "string",
|
|
1841
|
+
"description": "Human-readable amount. Example: '2.5 WOW'"
|
|
1842
|
+
},
|
|
1843
|
+
"recipient": {
|
|
1844
|
+
"type": "string",
|
|
1845
|
+
"description": "Recipient address if known. Example: '0xdef...'"
|
|
1846
|
+
}
|
|
1847
|
+
},
|
|
1848
|
+
"required": [
|
|
1849
|
+
"value",
|
|
1850
|
+
"token",
|
|
1851
|
+
"human_readable"
|
|
1852
|
+
],
|
|
1853
|
+
"additionalProperties": false,
|
|
1854
|
+
"description": "Amount info for amount-level confirmations."
|
|
1855
|
+
},
|
|
1856
|
+
"immutable_after": {
|
|
1857
|
+
"type": "array",
|
|
1858
|
+
"items": {
|
|
1859
|
+
"type": "string"
|
|
1860
|
+
},
|
|
1861
|
+
"description": "Fields that become immutable after this op (for publish). Example: ['machine','order_allocators']"
|
|
1862
|
+
},
|
|
1863
|
+
"warnings": {
|
|
1864
|
+
"type": "array",
|
|
1865
|
+
"items": {
|
|
1866
|
+
"type": "string"
|
|
1867
|
+
},
|
|
1868
|
+
"description": "Default-value warnings. Example: ['Using default account (env.account=\"\")']"
|
|
1869
|
+
},
|
|
1870
|
+
"irreversible": {
|
|
1871
|
+
"type": "boolean",
|
|
1872
|
+
"description": "True when the operation cannot be reverted. Example: true"
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
"required": [
|
|
1876
|
+
"level",
|
|
1877
|
+
"operation"
|
|
1878
|
+
],
|
|
1879
|
+
"additionalProperties": false,
|
|
1880
|
+
"description": "Preview of the operation awaiting confirmation."
|
|
1881
|
+
},
|
|
1882
|
+
"rule_id": {
|
|
1883
|
+
"type": "string",
|
|
1884
|
+
"description": "Id of the confirmation rule that matched. Example: 'publish_immutable'"
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
"required": [
|
|
1888
|
+
"type",
|
|
1889
|
+
"preview"
|
|
1890
|
+
],
|
|
1891
|
+
"additionalProperties": false,
|
|
1892
|
+
"description": "Pending confirmation. The ConfirmGate blocked the operation. Read preview first; if user consents, re-invoke the SAME call with env.confirmed=true."
|
|
1893
|
+
}
|
|
1894
|
+
],
|
|
1895
|
+
"description": "Discriminated result. Check result.type first: 'transaction'|'submission'|'error'|'data'|'null'|'pending_confirmation'. Each variant has different fields."
|
|
1896
|
+
},
|
|
1897
|
+
"message": {
|
|
1898
|
+
"type": "string",
|
|
1899
|
+
"description": "Human-readable summary or hint. Constraint: always present for error/transaction results; may be omitted for data/null. Example: 'Transaction completed successfully'"
|
|
1900
|
+
},
|
|
1901
|
+
"semantic": {
|
|
1902
|
+
"type": "object",
|
|
1903
|
+
"properties": {
|
|
1904
|
+
"intent": {
|
|
1905
|
+
"type": "string",
|
|
1906
|
+
"description": "Inferred user intent / operation goal. Constraint: snake_case string. Relation: derived from operation_type + data signals. Example: 'publish_service'"
|
|
1907
|
+
},
|
|
1908
|
+
"status": {
|
|
1909
|
+
"type": "string",
|
|
1910
|
+
"enum": [
|
|
1911
|
+
"success",
|
|
1912
|
+
"partial",
|
|
1913
|
+
"failed",
|
|
1914
|
+
"pending_input"
|
|
1915
|
+
],
|
|
1916
|
+
"description": "Business-level status (not raw tx status). 'pending_input' = needs Guard submission. Example: 'success'"
|
|
1917
|
+
},
|
|
1918
|
+
"summary": {
|
|
1919
|
+
"type": "string",
|
|
1920
|
+
"description": "One-sentence human-readable summary of what happened. AI should read this first. Example: 'Successfully published Service my-shop with Machine bound'"
|
|
1921
|
+
},
|
|
1922
|
+
"created": {
|
|
1923
|
+
"type": "array",
|
|
1924
|
+
"items": {
|
|
1925
|
+
"type": "object",
|
|
1926
|
+
"properties": {
|
|
1927
|
+
"id": {
|
|
1928
|
+
"type": "string",
|
|
1929
|
+
"description": "Object ID (64-hex with 0x prefix). Identifies the on-chain object. Example: '0xa1d4...'"
|
|
1930
|
+
},
|
|
1931
|
+
"name": {
|
|
1932
|
+
"type": [
|
|
1933
|
+
"string",
|
|
1934
|
+
"null"
|
|
1935
|
+
],
|
|
1936
|
+
"description": "Local mark name if assigned, else null. Relation: resolved via local_mark_operation. Example: 'my-shop' or null"
|
|
1937
|
+
},
|
|
1938
|
+
"role": {
|
|
1939
|
+
"type": "string",
|
|
1940
|
+
"enum": [
|
|
1941
|
+
"Permission",
|
|
1942
|
+
"Guard",
|
|
1943
|
+
"Machine",
|
|
1944
|
+
"Progress",
|
|
1945
|
+
"Service",
|
|
1946
|
+
"Order",
|
|
1947
|
+
"Allocation",
|
|
1948
|
+
"Arbitration",
|
|
1949
|
+
"ArbCase",
|
|
1950
|
+
"Messenger",
|
|
1951
|
+
"Contact",
|
|
1952
|
+
"Demand",
|
|
1953
|
+
"Reward",
|
|
1954
|
+
"Personal",
|
|
1955
|
+
"Repository",
|
|
1956
|
+
"Treasury",
|
|
1957
|
+
"Discount",
|
|
1958
|
+
"Other"
|
|
1959
|
+
],
|
|
1960
|
+
"description": "Business role of the object in the dependency graph. Constraint: enum of 18 values. Relation: derived from objectType last segment; drives Plan/Verify Loop positioning. Example: 'Service'"
|
|
1961
|
+
},
|
|
1962
|
+
"relation": {
|
|
1963
|
+
"type": "object",
|
|
1964
|
+
"properties": {
|
|
1965
|
+
"parent": {
|
|
1966
|
+
"type": [
|
|
1967
|
+
"string",
|
|
1968
|
+
"null"
|
|
1969
|
+
],
|
|
1970
|
+
"description": "Parent object ID, if this object belongs to another (e.g. Machine belongs to Service). Example: '0x123...' or null"
|
|
1971
|
+
},
|
|
1972
|
+
"relation_type": {
|
|
1973
|
+
"type": "string",
|
|
1974
|
+
"enum": [
|
|
1975
|
+
"machine_of",
|
|
1976
|
+
"guard_of",
|
|
1977
|
+
"allocator_of",
|
|
1978
|
+
"permission_of",
|
|
1979
|
+
"progress_of",
|
|
1980
|
+
"allocation_of",
|
|
1981
|
+
"arb_of",
|
|
1982
|
+
"other"
|
|
1983
|
+
],
|
|
1984
|
+
"description": "How this object relates to its parent. Example: 'machine_of'"
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
"additionalProperties": false,
|
|
1988
|
+
"description": "Relationship to another object in the dependency graph"
|
|
1989
|
+
},
|
|
1990
|
+
"immutable": {
|
|
1991
|
+
"type": "boolean",
|
|
1992
|
+
"description": "Whether the object has entered an immutable state (e.g. Service published). Constraint: true after publish. Example: true"
|
|
1993
|
+
}
|
|
1994
|
+
},
|
|
1995
|
+
"required": [
|
|
1996
|
+
"id",
|
|
1997
|
+
"role"
|
|
1998
|
+
],
|
|
1999
|
+
"additionalProperties": false,
|
|
2000
|
+
"description": "An object tagged with its business role and relationship within the object dependency graph"
|
|
2001
|
+
},
|
|
2002
|
+
"description": "Objects newly created in this operation, tagged with roles"
|
|
2003
|
+
},
|
|
2004
|
+
"modified": {
|
|
2005
|
+
"type": "array",
|
|
2006
|
+
"items": {
|
|
2007
|
+
"$ref": "#/definitions/onchain_operations/properties/semantic/properties/created/items"
|
|
2008
|
+
},
|
|
2009
|
+
"description": "Objects mutated in this operation, tagged with roles"
|
|
2010
|
+
},
|
|
2011
|
+
"released": {
|
|
2012
|
+
"type": "array",
|
|
2013
|
+
"items": {
|
|
2014
|
+
"type": "object",
|
|
2015
|
+
"properties": {
|
|
2016
|
+
"amount": {
|
|
2017
|
+
"type": "string",
|
|
2018
|
+
"description": "Amount change as stringified integer (smallest unit). Negative=spend, positive=receive. Example: '-10000000000'"
|
|
2019
|
+
},
|
|
2020
|
+
"coinType": {
|
|
2021
|
+
"type": "string",
|
|
2022
|
+
"description": "Coin type tag (format: {address}::{module}::{struct}). Example: '0x2::wow::WOW'"
|
|
2023
|
+
},
|
|
2024
|
+
"role": {
|
|
2025
|
+
"type": "string",
|
|
2026
|
+
"enum": [
|
|
2027
|
+
"payment",
|
|
2028
|
+
"refund",
|
|
2029
|
+
"change",
|
|
2030
|
+
"compensation",
|
|
2031
|
+
"reward",
|
|
2032
|
+
"gas",
|
|
2033
|
+
"deposit",
|
|
2034
|
+
"release",
|
|
2035
|
+
"other"
|
|
2036
|
+
],
|
|
2037
|
+
"description": "Business role of this fund movement. Constraint: enum of 9 values. Relation: derived from operation context. Example: 'payment'"
|
|
2038
|
+
},
|
|
2039
|
+
"from": {
|
|
2040
|
+
"type": [
|
|
2041
|
+
"string",
|
|
2042
|
+
"null"
|
|
2043
|
+
],
|
|
2044
|
+
"description": "Sender address if known. Example: '0xabc...' or null"
|
|
2045
|
+
},
|
|
2046
|
+
"to": {
|
|
2047
|
+
"type": [
|
|
2048
|
+
"string",
|
|
2049
|
+
"null"
|
|
2050
|
+
],
|
|
2051
|
+
"description": "Recipient address if known. Example: '0xdef...' or null"
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"required": [
|
|
2055
|
+
"amount",
|
|
2056
|
+
"coinType",
|
|
2057
|
+
"role"
|
|
2058
|
+
],
|
|
2059
|
+
"additionalProperties": false,
|
|
2060
|
+
"description": "A fund movement tagged with its business role"
|
|
2061
|
+
},
|
|
2062
|
+
"description": "Fund movements in this operation, tagged with roles"
|
|
2063
|
+
},
|
|
2064
|
+
"events": {
|
|
2065
|
+
"type": "array",
|
|
2066
|
+
"items": {
|
|
2067
|
+
"type": "object",
|
|
2068
|
+
"properties": {
|
|
2069
|
+
"event_type": {
|
|
2070
|
+
"type": "string",
|
|
2071
|
+
"description": "Raw on-chain event type tag. Example: '0x2::service::ServicePublishedEvent'"
|
|
2072
|
+
},
|
|
2073
|
+
"business_meaning": {
|
|
2074
|
+
"type": "string",
|
|
2075
|
+
"description": "Human-readable business meaning. Example: 'Service has been published and is now immutable'"
|
|
2076
|
+
},
|
|
2077
|
+
"category": {
|
|
2078
|
+
"type": "string",
|
|
2079
|
+
"enum": [
|
|
2080
|
+
"lifecycle",
|
|
2081
|
+
"state_change",
|
|
2082
|
+
"fund_flow",
|
|
2083
|
+
"permission",
|
|
2084
|
+
"guard",
|
|
2085
|
+
"other"
|
|
2086
|
+
],
|
|
2087
|
+
"description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
|
|
2088
|
+
},
|
|
2089
|
+
"related_object": {
|
|
2090
|
+
"type": "string",
|
|
2091
|
+
"description": "Object ID the event relates to, if extractable. Example: '0x123...'"
|
|
2092
|
+
},
|
|
2093
|
+
"side_effect": {
|
|
2094
|
+
"type": "string",
|
|
2095
|
+
"description": "Side effect description for AI. Example: 'Customers can now place orders against this Service'"
|
|
2096
|
+
}
|
|
2097
|
+
},
|
|
2098
|
+
"required": [
|
|
2099
|
+
"event_type",
|
|
2100
|
+
"business_meaning",
|
|
2101
|
+
"category"
|
|
2102
|
+
],
|
|
2103
|
+
"additionalProperties": false,
|
|
2104
|
+
"description": "An on-chain event annotated with business semantics"
|
|
2105
|
+
},
|
|
2106
|
+
"description": "On-chain events annotated with business semantics (S-8)"
|
|
2107
|
+
},
|
|
2108
|
+
"next_actions": {
|
|
2109
|
+
"type": "array",
|
|
2110
|
+
"items": {
|
|
2111
|
+
"type": "object",
|
|
2112
|
+
"properties": {
|
|
2113
|
+
"action": {
|
|
2114
|
+
"type": "string",
|
|
2115
|
+
"description": "Recommended next action. Example: 'add sales products'"
|
|
2116
|
+
},
|
|
2117
|
+
"reason": {
|
|
2118
|
+
"type": "string",
|
|
2119
|
+
"description": "Why this action is recommended. Example: 'Service has no products; customers cannot order'"
|
|
2120
|
+
},
|
|
2121
|
+
"tool": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"description": "MCP tool to use, if applicable. Example: 'onchain_operations'"
|
|
2124
|
+
},
|
|
2125
|
+
"prerequisite": {
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"description": "Condition that must hold before this action. Example: 'Service must be created first'"
|
|
2128
|
+
},
|
|
2129
|
+
"priority": {
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"enum": [
|
|
2132
|
+
"required",
|
|
2133
|
+
"recommended",
|
|
2134
|
+
"optional"
|
|
2135
|
+
],
|
|
2136
|
+
"description": "Priority. Constraint: enum. Example: 'required'"
|
|
2137
|
+
}
|
|
2138
|
+
},
|
|
2139
|
+
"required": [
|
|
2140
|
+
"action",
|
|
2141
|
+
"reason",
|
|
2142
|
+
"priority"
|
|
2143
|
+
],
|
|
2144
|
+
"additionalProperties": false,
|
|
2145
|
+
"description": "A recommended next action with priority and rationale"
|
|
2146
|
+
},
|
|
2147
|
+
"description": "Recommended next actions to drive the workflow forward"
|
|
2148
|
+
},
|
|
2149
|
+
"warnings": {
|
|
2150
|
+
"type": "array",
|
|
2151
|
+
"items": {
|
|
2152
|
+
"type": "string"
|
|
2153
|
+
},
|
|
2154
|
+
"description": "Business-level warnings. Example: 'order_allocators not configured; order funds cannot be distributed'"
|
|
2155
|
+
},
|
|
2156
|
+
"experience": {
|
|
2157
|
+
"type": "object",
|
|
2158
|
+
"properties": {
|
|
2159
|
+
"advice": {
|
|
2160
|
+
"type": "string",
|
|
2161
|
+
"description": "Advice from past experience. Example: 'Last time you forgot to set buy_guard; add it before publishing'"
|
|
2162
|
+
},
|
|
2163
|
+
"avoid": {
|
|
2164
|
+
"type": "array",
|
|
2165
|
+
"items": {
|
|
2166
|
+
"type": "string"
|
|
2167
|
+
},
|
|
2168
|
+
"description": "Pitfalls to avoid based on history. Example: ['Guard rejection on delivery_proof']"
|
|
2169
|
+
},
|
|
2170
|
+
"relevance": {
|
|
2171
|
+
"type": "number",
|
|
2172
|
+
"minimum": 0,
|
|
2173
|
+
"maximum": 1,
|
|
2174
|
+
"description": "Relevance score 0-1 of the matched experience. Example: 0.85"
|
|
2175
|
+
},
|
|
2176
|
+
"matched_scenario": {
|
|
2177
|
+
"type": "string",
|
|
2178
|
+
"description": "Matched historical scenario. Example: 'publish_service_freelance'"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
"additionalProperties": false,
|
|
2182
|
+
"description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
|
|
2183
|
+
},
|
|
2184
|
+
"service_status": {
|
|
2185
|
+
"type": "object",
|
|
2186
|
+
"properties": {
|
|
2187
|
+
"active": {
|
|
2188
|
+
"type": "array",
|
|
2189
|
+
"items": {
|
|
2190
|
+
"type": "string"
|
|
2191
|
+
},
|
|
2192
|
+
"description": "Phase 2 services currently active (enabled). Example: ['confirm_gate','project_service','experience_layer']"
|
|
2193
|
+
},
|
|
2194
|
+
"inactive": {
|
|
2195
|
+
"type": "array",
|
|
2196
|
+
"items": {
|
|
2197
|
+
"type": "string"
|
|
2198
|
+
},
|
|
2199
|
+
"description": "Phase 2 services currently inactive (can be toggled via config_operation). Example: ['harness','graph_persist']"
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
"required": [
|
|
2203
|
+
"active"
|
|
2204
|
+
],
|
|
2205
|
+
"additionalProperties": false,
|
|
2206
|
+
"description": "Phase 2 runtime service status (populated when semantic_rich is enabled). Lets AI see active services in each response."
|
|
2207
|
+
},
|
|
2208
|
+
"customer_advice": {
|
|
2209
|
+
"type": "object",
|
|
2210
|
+
"properties": {
|
|
2211
|
+
"risk_score": {
|
|
2212
|
+
"type": "number",
|
|
2213
|
+
"minimum": 0,
|
|
2214
|
+
"maximum": 100,
|
|
2215
|
+
"description": "Composite risk score 0-100 (higher = safer). Relation: from risk-assessment.ts 4-dimension scoring. Example: 75"
|
|
2216
|
+
},
|
|
2217
|
+
"risk_level": {
|
|
2218
|
+
"type": "string",
|
|
2219
|
+
"enum": [
|
|
2220
|
+
"low",
|
|
2221
|
+
"medium_low",
|
|
2222
|
+
"medium_high",
|
|
2223
|
+
"high"
|
|
2224
|
+
],
|
|
2225
|
+
"description": "Risk level bucket. 'high' = strongly discourage purchase. Example: 'medium_high'"
|
|
2226
|
+
},
|
|
2227
|
+
"recommendations": {
|
|
2228
|
+
"type": "array",
|
|
2229
|
+
"items": {
|
|
2230
|
+
"type": "string"
|
|
2231
|
+
},
|
|
2232
|
+
"description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
|
|
2233
|
+
},
|
|
2234
|
+
"reminders": {
|
|
2235
|
+
"type": "array",
|
|
2236
|
+
"items": {
|
|
2237
|
+
"type": "object",
|
|
2238
|
+
"properties": {
|
|
2239
|
+
"id": {
|
|
2240
|
+
"type": "string",
|
|
2241
|
+
"description": "Reminder rule id. Example: 'high_risk_score'"
|
|
2242
|
+
},
|
|
2243
|
+
"stage": {
|
|
2244
|
+
"type": "string",
|
|
2245
|
+
"enum": [
|
|
2246
|
+
"browse",
|
|
2247
|
+
"evaluate",
|
|
2248
|
+
"preorder",
|
|
2249
|
+
"in_progress",
|
|
2250
|
+
"complete",
|
|
2251
|
+
"after_sale"
|
|
2252
|
+
],
|
|
2253
|
+
"description": "Order lifecycle stage when this reminder fires. Example: 'evaluate'"
|
|
2254
|
+
},
|
|
2255
|
+
"priority": {
|
|
2256
|
+
"type": "string",
|
|
2257
|
+
"enum": [
|
|
2258
|
+
"required",
|
|
2259
|
+
"recommended",
|
|
2260
|
+
"info",
|
|
2261
|
+
"reminder"
|
|
2262
|
+
],
|
|
2263
|
+
"description": "Priority. 'required' = blocks purchase; 'recommended' = strong caution. Example: 'required'"
|
|
2264
|
+
},
|
|
2265
|
+
"message": {
|
|
2266
|
+
"type": "string",
|
|
2267
|
+
"description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
|
|
2268
|
+
},
|
|
2269
|
+
"action": {
|
|
2270
|
+
"type": "string",
|
|
2271
|
+
"description": "Suggested next action. Example: 'require merchant to bind Arbitration before ordering'"
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
"required": [
|
|
2275
|
+
"id",
|
|
2276
|
+
"stage",
|
|
2277
|
+
"priority",
|
|
2278
|
+
"message"
|
|
2279
|
+
],
|
|
2280
|
+
"additionalProperties": false,
|
|
2281
|
+
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
2282
|
+
},
|
|
2283
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
|
|
2284
|
+
},
|
|
2285
|
+
"preference_match": {
|
|
2286
|
+
"type": "object",
|
|
2287
|
+
"properties": {
|
|
2288
|
+
"score": {
|
|
2289
|
+
"type": "number",
|
|
2290
|
+
"minimum": 0,
|
|
2291
|
+
"maximum": 100,
|
|
2292
|
+
"description": "Match score 0-100 (higher = better fit). Example: 75"
|
|
2293
|
+
},
|
|
2294
|
+
"matches": {
|
|
2295
|
+
"type": "array",
|
|
2296
|
+
"items": {
|
|
2297
|
+
"type": "string"
|
|
2298
|
+
},
|
|
2299
|
+
"description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
|
|
2300
|
+
},
|
|
2301
|
+
"mismatches": {
|
|
2302
|
+
"type": "array",
|
|
2303
|
+
"items": {
|
|
2304
|
+
"type": "string"
|
|
2305
|
+
},
|
|
2306
|
+
"description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
|
|
2307
|
+
}
|
|
2308
|
+
},
|
|
2309
|
+
"required": [
|
|
2310
|
+
"score",
|
|
2311
|
+
"matches",
|
|
2312
|
+
"mismatches"
|
|
2313
|
+
],
|
|
2314
|
+
"additionalProperties": false,
|
|
2315
|
+
"description": "Service-to-preference match (populated when user preferences exist). Example: {score:75, matches:[...], mismatches:[...]}"
|
|
2316
|
+
}
|
|
2317
|
+
},
|
|
2318
|
+
"required": [
|
|
2319
|
+
"recommendations",
|
|
2320
|
+
"reminders"
|
|
2321
|
+
],
|
|
2322
|
+
"additionalProperties": false,
|
|
2323
|
+
"description": "Buyer-side advice (Phase 3 C-3.3). Populated when customer_intelligence service is enabled AND operation is order/query on a Service. Contains risk_score, recommendations, reminders, and preference_match."
|
|
2324
|
+
},
|
|
2325
|
+
"evolution_context": {
|
|
2326
|
+
"type": "object",
|
|
2327
|
+
"properties": {
|
|
2328
|
+
"industry_signal": {
|
|
2329
|
+
"type": "string",
|
|
2330
|
+
"description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
|
|
2331
|
+
},
|
|
2332
|
+
"evolution_advice": {
|
|
2333
|
+
"type": "string",
|
|
2334
|
+
"description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
|
|
2335
|
+
},
|
|
2336
|
+
"confidence": {
|
|
2337
|
+
"type": "number",
|
|
2338
|
+
"minimum": 0,
|
|
2339
|
+
"maximum": 1,
|
|
2340
|
+
"description": "Confidence of the evolution context 0-1. <0.5 means no data yet. Example: 0.75"
|
|
2341
|
+
},
|
|
2342
|
+
"health_score": {
|
|
2343
|
+
"type": "number",
|
|
2344
|
+
"minimum": 0,
|
|
2345
|
+
"maximum": 100,
|
|
2346
|
+
"description": "Industry health score 0-100 if available. Example: 82"
|
|
2347
|
+
},
|
|
2348
|
+
"pending_suggestions": {
|
|
2349
|
+
"type": "integer",
|
|
2350
|
+
"minimum": 0,
|
|
2351
|
+
"description": "Count of pending industry update suggestions (filtered by role if role is set). Example: 3"
|
|
2352
|
+
},
|
|
2353
|
+
"intent": {
|
|
2354
|
+
"type": "string",
|
|
2355
|
+
"enum": [
|
|
2356
|
+
"default",
|
|
2357
|
+
"growth",
|
|
2358
|
+
"retention",
|
|
2359
|
+
"compliance",
|
|
2360
|
+
"efficiency",
|
|
2361
|
+
"trust_building",
|
|
2362
|
+
"custom"
|
|
2363
|
+
],
|
|
2364
|
+
"description": "Phase 4 P4-6.C: Current business intent driving the scoring model. Absent = 'default'. Example: 'growth'"
|
|
2365
|
+
},
|
|
2366
|
+
"role_advice": {
|
|
2367
|
+
"type": "array",
|
|
2368
|
+
"items": {
|
|
2369
|
+
"type": "string"
|
|
2370
|
+
},
|
|
2371
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
|
|
2372
|
+
},
|
|
2373
|
+
"role": {
|
|
2374
|
+
"type": "string",
|
|
2375
|
+
"enum": [
|
|
2376
|
+
"user",
|
|
2377
|
+
"merchant",
|
|
2378
|
+
"arbitrator"
|
|
2379
|
+
],
|
|
2380
|
+
"description": "Phase 4 P4-6.C: Role used for advice routing. Example: 'merchant'"
|
|
2381
|
+
}
|
|
2382
|
+
},
|
|
2383
|
+
"required": [
|
|
2384
|
+
"confidence"
|
|
2385
|
+
],
|
|
2386
|
+
"additionalProperties": false,
|
|
2387
|
+
"description": "Phase 4 industry evolution context (populated when industry_evolution service is enabled). Provides AI with industry health signals and evolution advice."
|
|
2388
|
+
},
|
|
2389
|
+
"guard_advice": {
|
|
2390
|
+
"type": "object",
|
|
2391
|
+
"properties": {
|
|
2392
|
+
"current_round": {
|
|
2393
|
+
"type": "string",
|
|
2394
|
+
"enum": [
|
|
2395
|
+
"R1",
|
|
2396
|
+
"R2",
|
|
2397
|
+
"R3",
|
|
2398
|
+
"R4",
|
|
2399
|
+
"R5",
|
|
2400
|
+
"R6",
|
|
2401
|
+
"R7",
|
|
2402
|
+
"R8",
|
|
2403
|
+
"R9",
|
|
2404
|
+
"R10"
|
|
2405
|
+
],
|
|
2406
|
+
"description": "Current R1-R10 dialogue round. R1=intent, R2=table, R3=tree, R4=rely, R5=binding, R6=review, R7=CREATE, R8=test, R9=bind, R10=verify. Example: 'R3'"
|
|
2407
|
+
},
|
|
2408
|
+
"puzzle_status": {
|
|
2409
|
+
"type": "object",
|
|
2410
|
+
"properties": {
|
|
2411
|
+
"intent": {
|
|
2412
|
+
"type": "boolean",
|
|
2413
|
+
"description": "Intent dimension complete (action + rule + failure conditions)"
|
|
2414
|
+
},
|
|
2415
|
+
"binding": {
|
|
2416
|
+
"type": "boolean",
|
|
2417
|
+
"description": "Binding dimension complete (host object + field + circular ref)"
|
|
2418
|
+
},
|
|
2419
|
+
"data": {
|
|
2420
|
+
"type": "boolean",
|
|
2421
|
+
"description": "Data dimension complete (table entries + witnesses)"
|
|
2422
|
+
},
|
|
2423
|
+
"query": {
|
|
2424
|
+
"type": "boolean",
|
|
2425
|
+
"description": "Query dimension complete (query instructions if needed)"
|
|
2426
|
+
},
|
|
2427
|
+
"logic": {
|
|
2428
|
+
"type": "boolean",
|
|
2429
|
+
"description": "Logic dimension complete (root node returns Bool)"
|
|
2430
|
+
},
|
|
2431
|
+
"constraints": {
|
|
2432
|
+
"type": "boolean",
|
|
2433
|
+
"description": "Constraints dimension complete (10 Pitfalls checked)"
|
|
2434
|
+
}
|
|
2435
|
+
},
|
|
2436
|
+
"required": [
|
|
2437
|
+
"intent",
|
|
2438
|
+
"binding",
|
|
2439
|
+
"data",
|
|
2440
|
+
"query",
|
|
2441
|
+
"logic",
|
|
2442
|
+
"constraints"
|
|
2443
|
+
],
|
|
2444
|
+
"additionalProperties": false,
|
|
2445
|
+
"description": "Information puzzle completeness (6 dimensions). Missing dimensions need user input before CREATE."
|
|
2446
|
+
},
|
|
2447
|
+
"matched_scene": {
|
|
2448
|
+
"type": "string",
|
|
2449
|
+
"description": "Matched Guard scene id from the 8 binding scenarios ledger. Example: 'machine_forward_guard'"
|
|
2450
|
+
},
|
|
2451
|
+
"scene_description": {
|
|
2452
|
+
"type": "string",
|
|
2453
|
+
"description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
|
|
2454
|
+
},
|
|
2455
|
+
"scene_constraints": {
|
|
2456
|
+
"type": "array",
|
|
2457
|
+
"items": {
|
|
2458
|
+
"type": "string"
|
|
2459
|
+
},
|
|
2460
|
+
"description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
|
|
2461
|
+
},
|
|
2462
|
+
"suggested_patterns": {
|
|
2463
|
+
"type": "array",
|
|
2464
|
+
"items": {
|
|
2465
|
+
"type": "string"
|
|
2466
|
+
},
|
|
2467
|
+
"description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
|
|
2468
|
+
},
|
|
2469
|
+
"available_queries": {
|
|
2470
|
+
"type": "array",
|
|
2471
|
+
"items": {
|
|
2472
|
+
"type": "object",
|
|
2473
|
+
"properties": {
|
|
2474
|
+
"id": {
|
|
2475
|
+
"type": "integer",
|
|
2476
|
+
"description": "Query instruction ID. Example: 1253"
|
|
2477
|
+
},
|
|
2478
|
+
"name": {
|
|
2479
|
+
"type": "string",
|
|
2480
|
+
"description": "Query instruction name. Example: 'progress.current'"
|
|
2481
|
+
},
|
|
2482
|
+
"objectType": {
|
|
2483
|
+
"type": "string",
|
|
2484
|
+
"description": "Target object type. Example: 'Progress'"
|
|
2485
|
+
},
|
|
2486
|
+
"returnType": {
|
|
2487
|
+
"type": "string",
|
|
2488
|
+
"description": "Return value type. Example: 'String'"
|
|
2489
|
+
},
|
|
2490
|
+
"description": {
|
|
2491
|
+
"type": "string",
|
|
2492
|
+
"description": "Query description"
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
"required": [
|
|
2496
|
+
"id",
|
|
2497
|
+
"name",
|
|
2498
|
+
"objectType",
|
|
2499
|
+
"returnType"
|
|
2500
|
+
],
|
|
2501
|
+
"additionalProperties": false,
|
|
2502
|
+
"description": "A Guard query instruction available for the current context (subset of GUARDQUERY 375 entries)."
|
|
2503
|
+
},
|
|
2504
|
+
"description": "Available query instructions for the current context (subset of 375 GUARDQUERY entries)"
|
|
2505
|
+
},
|
|
2506
|
+
"risk_warnings": {
|
|
2507
|
+
"type": "array",
|
|
2508
|
+
"items": {
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
},
|
|
2511
|
+
"description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
|
|
2512
|
+
},
|
|
2513
|
+
"pending_questions": {
|
|
2514
|
+
"type": "array",
|
|
2515
|
+
"items": {
|
|
2516
|
+
"type": "string"
|
|
2517
|
+
},
|
|
2518
|
+
"description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
|
|
2519
|
+
},
|
|
2520
|
+
"confirmation_text": {
|
|
2521
|
+
"type": "string",
|
|
2522
|
+
"description": "Structured semantic confirmation text for user review (generated when puzzle is complete). User must explicitly confirm before CREATE."
|
|
2523
|
+
},
|
|
2524
|
+
"test_result": {
|
|
2525
|
+
"type": "object",
|
|
2526
|
+
"properties": {
|
|
2527
|
+
"status": {
|
|
2528
|
+
"type": "string",
|
|
2529
|
+
"enum": [
|
|
2530
|
+
"pass",
|
|
2531
|
+
"fail",
|
|
2532
|
+
"not_tested"
|
|
2533
|
+
]
|
|
2534
|
+
},
|
|
2535
|
+
"failure_node": {
|
|
2536
|
+
"type": "string",
|
|
2537
|
+
"description": "Node that caused failure (if fail)"
|
|
2538
|
+
},
|
|
2539
|
+
"passport_id": {
|
|
2540
|
+
"type": "string",
|
|
2541
|
+
"description": "Generated Passport ID (if pass)"
|
|
2542
|
+
}
|
|
2543
|
+
},
|
|
2544
|
+
"required": [
|
|
2545
|
+
"status"
|
|
2546
|
+
],
|
|
2547
|
+
"additionalProperties": false,
|
|
2548
|
+
"description": "gen_passport static test result. Must pass before CREATE."
|
|
2549
|
+
},
|
|
2550
|
+
"risk_assessment": {
|
|
2551
|
+
"type": "object",
|
|
2552
|
+
"properties": {
|
|
2553
|
+
"overall_risk": {
|
|
2554
|
+
"type": "string",
|
|
2555
|
+
"enum": [
|
|
2556
|
+
"critical",
|
|
2557
|
+
"high",
|
|
2558
|
+
"medium",
|
|
2559
|
+
"low",
|
|
2560
|
+
"info"
|
|
2561
|
+
],
|
|
2562
|
+
"description": "Overall risk level (highest from all risks)"
|
|
2563
|
+
},
|
|
2564
|
+
"risk_count": {
|
|
2565
|
+
"type": "integer",
|
|
2566
|
+
"description": "Total number of detected risks"
|
|
2567
|
+
},
|
|
2568
|
+
"critical_count": {
|
|
2569
|
+
"type": "integer",
|
|
2570
|
+
"description": "Number of critical risks"
|
|
2571
|
+
},
|
|
2572
|
+
"high_count": {
|
|
2573
|
+
"type": "integer",
|
|
2574
|
+
"description": "Number of high risks"
|
|
2575
|
+
},
|
|
2576
|
+
"needs_human_review": {
|
|
2577
|
+
"type": "boolean",
|
|
2578
|
+
"description": "Whether human review is required (critical or 2+ high risks)"
|
|
2579
|
+
},
|
|
2580
|
+
"top_risks": {
|
|
2581
|
+
"type": "array",
|
|
2582
|
+
"items": {
|
|
2583
|
+
"type": "string"
|
|
2584
|
+
},
|
|
2585
|
+
"description": "Top risk titles (critical and high, max 3)"
|
|
2586
|
+
},
|
|
2587
|
+
"stakeholder_advice": {
|
|
2588
|
+
"type": "object",
|
|
2589
|
+
"additionalProperties": {
|
|
2590
|
+
"type": "array",
|
|
2591
|
+
"items": {
|
|
2592
|
+
"type": "string"
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
"description": "Per-stakeholder advice. Key=stakeholder (customer/provider/arbitrator/claimant), value=advice list"
|
|
2596
|
+
}
|
|
2597
|
+
},
|
|
2598
|
+
"required": [
|
|
2599
|
+
"overall_risk",
|
|
2600
|
+
"risk_count",
|
|
2601
|
+
"critical_count",
|
|
2602
|
+
"high_count",
|
|
2603
|
+
"needs_human_review",
|
|
2604
|
+
"top_risks"
|
|
2605
|
+
],
|
|
2606
|
+
"additionalProperties": false,
|
|
2607
|
+
"description": "Business-layer risk assessment (game theory, data source trust, logic gaps). Populated during Guard design to warn about business risks beyond syntax."
|
|
2608
|
+
}
|
|
2609
|
+
},
|
|
2610
|
+
"additionalProperties": false,
|
|
2611
|
+
"description": "Phase 5 Guard capability advice (populated when user intent involves Guard). Provides puzzle status, scene matching, suggested patterns, available queries, risk warnings, and confirmation text. AI uses this to guide Guard design dialogue (R1-R10)."
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
"required": [
|
|
2615
|
+
"intent",
|
|
2616
|
+
"status",
|
|
2617
|
+
"summary"
|
|
2618
|
+
],
|
|
2619
|
+
"additionalProperties": false,
|
|
2620
|
+
"description": "Business semantic summary. AI should read semantic first; fall back to parsing result only when semantic is absent. Relation: populated by MCP server from operation context; undefined when intent cannot be confidently inferred or for non-transaction tools. Example: {intent:'publish_service', status:'success', summary:'...'}"
|
|
2621
|
+
},
|
|
2622
|
+
"harness_report": {
|
|
2623
|
+
"type": "object",
|
|
2624
|
+
"properties": {
|
|
2625
|
+
"verify": {
|
|
2626
|
+
"type": "object",
|
|
2627
|
+
"properties": {
|
|
2628
|
+
"status": {
|
|
2629
|
+
"type": "string",
|
|
2630
|
+
"enum": [
|
|
2631
|
+
"pass",
|
|
2632
|
+
"warn",
|
|
2633
|
+
"fail"
|
|
2634
|
+
],
|
|
2635
|
+
"description": "Overall verify status. Constraint: 'fail' if any mismatch has severity 'fail'; 'warn' if only warns; 'pass' if no mismatches. Example: 'fail'"
|
|
2636
|
+
},
|
|
2637
|
+
"mismatches": {
|
|
2638
|
+
"type": "array",
|
|
2639
|
+
"items": {
|
|
2640
|
+
"type": "object",
|
|
2641
|
+
"properties": {
|
|
2642
|
+
"dimension": {
|
|
2643
|
+
"type": "string",
|
|
2644
|
+
"enum": [
|
|
2645
|
+
"created",
|
|
2646
|
+
"modified",
|
|
2647
|
+
"released",
|
|
2648
|
+
"state",
|
|
2649
|
+
"event"
|
|
2650
|
+
],
|
|
2651
|
+
"description": "Verify dimension that mismatched. Example: 'created'"
|
|
2652
|
+
},
|
|
2653
|
+
"expected": {
|
|
2654
|
+
"type": "string",
|
|
2655
|
+
"description": "What the Expect Loop declared. Example: 'Service object created'"
|
|
2656
|
+
},
|
|
2657
|
+
"actual": {
|
|
2658
|
+
"type": "string",
|
|
2659
|
+
"description": "What actually happened. Example: 'No object created'"
|
|
2660
|
+
},
|
|
2661
|
+
"severity": {
|
|
2662
|
+
"type": "string",
|
|
2663
|
+
"enum": [
|
|
2664
|
+
"pass",
|
|
2665
|
+
"warn",
|
|
2666
|
+
"fail"
|
|
2667
|
+
],
|
|
2668
|
+
"description": "Severity: 'fail' blocks progress, 'warn' is advisory, 'pass' never appears here. Example: 'fail'"
|
|
2669
|
+
},
|
|
2670
|
+
"detail": {
|
|
2671
|
+
"type": "string",
|
|
2672
|
+
"description": "Human-readable explanation of the mismatch. Example: 'Expected Service creation but transaction succeeded without object change'"
|
|
2673
|
+
}
|
|
2674
|
+
},
|
|
2675
|
+
"required": [
|
|
2676
|
+
"dimension",
|
|
2677
|
+
"expected",
|
|
2678
|
+
"actual",
|
|
2679
|
+
"severity",
|
|
2680
|
+
"detail"
|
|
2681
|
+
],
|
|
2682
|
+
"additionalProperties": false,
|
|
2683
|
+
"description": "One mismatch between expected and actual result. AI should read severity first to decide whether to halt."
|
|
2684
|
+
},
|
|
2685
|
+
"description": "List of mismatches found. Empty array when status is 'pass'. Example: [{dimension:'created', expected:'...', actual:'...', severity:'fail', detail:'...'}]"
|
|
2686
|
+
},
|
|
2687
|
+
"summary": {
|
|
2688
|
+
"type": "string",
|
|
2689
|
+
"description": "Human-readable summary of the verify result. Example: '2 mismatches found: created dimension failed, event dimension warned'"
|
|
2690
|
+
},
|
|
2691
|
+
"timestamp": {
|
|
2692
|
+
"type": "string",
|
|
2693
|
+
"description": "ISO 8601 timestamp when verify ran. Example: '2026-07-14T10:30:00.000Z'"
|
|
2694
|
+
}
|
|
2695
|
+
},
|
|
2696
|
+
"required": [
|
|
2697
|
+
"status",
|
|
2698
|
+
"mismatches",
|
|
2699
|
+
"summary",
|
|
2700
|
+
"timestamp"
|
|
2701
|
+
],
|
|
2702
|
+
"additionalProperties": false,
|
|
2703
|
+
"description": "Verify Loop report comparing expected vs actual."
|
|
2704
|
+
},
|
|
2705
|
+
"recovery": {
|
|
2706
|
+
"type": "object",
|
|
2707
|
+
"properties": {
|
|
2708
|
+
"strategy": {
|
|
2709
|
+
"type": "string",
|
|
2710
|
+
"enum": [
|
|
2711
|
+
"retry",
|
|
2712
|
+
"claim_faucet",
|
|
2713
|
+
"fill_submission",
|
|
2714
|
+
"recreate",
|
|
2715
|
+
"switch_account",
|
|
2716
|
+
"query_and_retry",
|
|
2717
|
+
"adjust_params",
|
|
2718
|
+
"escalate_human",
|
|
2719
|
+
"stop"
|
|
2720
|
+
],
|
|
2721
|
+
"description": "Recovery strategy chosen by the Recover Loop. Constraint: 9 strategies matching error_code table. Example: 'claim_faucet'"
|
|
2722
|
+
},
|
|
2723
|
+
"should_retry": {
|
|
2724
|
+
"type": "boolean",
|
|
2725
|
+
"description": "Whether AI should retry the original operation after applying the strategy. Constraint: false for 'stop' and 'escalate_human'. Example: true"
|
|
2726
|
+
},
|
|
2727
|
+
"adjusted_params": {
|
|
2728
|
+
"type": "object",
|
|
2729
|
+
"additionalProperties": {},
|
|
2730
|
+
"description": "Suggested parameter adjustments for 'adjust_params' strategy. Example: {amount: '100000000'}"
|
|
2731
|
+
},
|
|
2732
|
+
"user_prompt": {
|
|
2733
|
+
"type": "string",
|
|
2734
|
+
"description": "Prompt to show the user when recovery is semi-automatic or manual. Example: 'Please switch to an account with provider permission'"
|
|
2735
|
+
},
|
|
2736
|
+
"max_attempts": {
|
|
2737
|
+
"type": "integer",
|
|
2738
|
+
"description": "Maximum attempts for this error_code type. Example: 3"
|
|
2739
|
+
},
|
|
2740
|
+
"current_attempt": {
|
|
2741
|
+
"type": "integer",
|
|
2742
|
+
"description": "Current attempt count (1-indexed). Example: 1"
|
|
2743
|
+
},
|
|
2744
|
+
"detail": {
|
|
2745
|
+
"type": "string",
|
|
2746
|
+
"description": "Human-readable explanation of the recovery decision. Example: 'Insufficient balance detected; claim faucet tokens then retry'"
|
|
2747
|
+
}
|
|
2748
|
+
},
|
|
2749
|
+
"required": [
|
|
2750
|
+
"strategy",
|
|
2751
|
+
"should_retry",
|
|
2752
|
+
"max_attempts",
|
|
2753
|
+
"current_attempt",
|
|
2754
|
+
"detail"
|
|
2755
|
+
],
|
|
2756
|
+
"additionalProperties": false,
|
|
2757
|
+
"description": "Recover Loop action. Present only when verify.status is 'fail' or 'warn', or when an error occurred."
|
|
2758
|
+
}
|
|
2759
|
+
},
|
|
2760
|
+
"required": [
|
|
2761
|
+
"verify"
|
|
2762
|
+
],
|
|
2763
|
+
"additionalProperties": false,
|
|
2764
|
+
"description": "L4 Harness report (Verify + Recover). Present only when the Harness is injected and an Expected Result was declared for this operation. Relation: produced by handler.ts calling harness.verify() and harness.recover(). Example: {verify:{status:'fail', mismatches:[...]}, recovery:{strategy:'recreate'}}"
|
|
2765
|
+
},
|
|
2766
|
+
"schema_warning": {
|
|
2767
|
+
"type": "object",
|
|
2768
|
+
"properties": {
|
|
2769
|
+
"compatible": {
|
|
2770
|
+
"type": "boolean",
|
|
2771
|
+
"description": "Whether the client schema version is compatible with the server."
|
|
2772
|
+
},
|
|
2773
|
+
"warnings": {
|
|
2774
|
+
"type": "array",
|
|
2775
|
+
"items": {
|
|
2776
|
+
"type": "string"
|
|
2777
|
+
},
|
|
2778
|
+
"description": "Schema compatibility warnings or errors."
|
|
2779
|
+
},
|
|
2780
|
+
"client_version": {
|
|
2781
|
+
"type": "string",
|
|
2782
|
+
"description": "The client schema version that was checked."
|
|
2783
|
+
},
|
|
2784
|
+
"server_versions": {
|
|
2785
|
+
"type": "object",
|
|
2786
|
+
"properties": {
|
|
2787
|
+
"sdk": {
|
|
2788
|
+
"type": "string",
|
|
2789
|
+
"description": "Server-side SDK schema version."
|
|
2790
|
+
},
|
|
2791
|
+
"mcp": {
|
|
2792
|
+
"type": "string",
|
|
2793
|
+
"description": "Server-side MCP tool schema version."
|
|
2794
|
+
}
|
|
2795
|
+
},
|
|
2796
|
+
"required": [
|
|
2797
|
+
"sdk",
|
|
2798
|
+
"mcp"
|
|
2799
|
+
],
|
|
2800
|
+
"additionalProperties": false,
|
|
2801
|
+
"description": "Server-side schema versions."
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
"required": [
|
|
2805
|
+
"compatible",
|
|
2806
|
+
"warnings",
|
|
2807
|
+
"server_versions"
|
|
2808
|
+
],
|
|
2809
|
+
"additionalProperties": false,
|
|
2810
|
+
"description": "Schema compatibility warning. Present only when client_schema_version is provided in env and a mismatch is detected."
|
|
2811
|
+
}
|
|
2812
|
+
},
|
|
2813
|
+
"required": [
|
|
2814
|
+
"result"
|
|
2815
|
+
],
|
|
2816
|
+
"additionalProperties": false,
|
|
2817
|
+
"description": "Unified MCP tool output. result.type discriminates 6 outcomes: 'transaction' (raw Wow response), 'submission' (needs Guard data), 'error' (failed with error_code), 'data' (query result), 'null' (no-op), 'pending_confirmation' (ConfirmGate blocked — re-call with env.confirmed=true). When semantic is present, prefer it over raw result parsing. When harness_report is present, check verify.status first and follow recovery.strategy if status is 'fail'."
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
}
|