@wowok/agent-mcp 2.2.13 → 2.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +42 -98
- package/dist/schema-query/index.d.ts +29 -0
- package/dist/schema-query/index.js +149 -0
- package/dist/schemas/account_operation.schema.json +255 -0
- package/dist/schemas/guard2file.schema.json +71 -0
- package/dist/schemas/index.json +139 -0
- package/dist/schemas/local_info_operation.schema.json +142 -0
- package/dist/schemas/local_mark_operation.schema.json +119 -0
- package/dist/schemas/machineNode2file.schema.json +71 -0
- package/dist/schemas/messenger_operation.schema.json +1393 -0
- package/dist/schemas/onchain_events.schema.json +113 -0
- package/dist/schemas/onchain_operations.schema.json +376 -0
- package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
- package/dist/schemas/onchain_operations_contact.schema.json +853 -0
- package/dist/schemas/onchain_operations_demand.schema.json +984 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
- package/dist/schemas/onchain_operations_guard.schema.json +713 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
- package/dist/schemas/onchain_operations_order.schema.json +830 -0
- package/dist/schemas/onchain_operations_payment.schema.json +717 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
- package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
- package/dist/schemas/onchain_operations_progress.schema.json +751 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
- package/dist/schemas/onchain_operations_reward.schema.json +955 -0
- package/dist/schemas/onchain_operations_service.schema.json +1411 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
- package/dist/schemas/onchain_table_data.schema.json +35 -0
- package/dist/schemas/operations/guard.json +163 -0
- package/dist/schemas/operations/permission.json +22 -0
- package/dist/schemas/query_toolkit.schema.json +32 -0
- package/dist/schemas/schema_query.schema.json +33 -0
- package/dist/schemas/wip_file.schema.json +27 -0
- package/dist/schemas/wowok_buildin_info.schema.json +487 -0
- package/package.json +7 -5
- package/dist/docs/index.d.ts +0 -3
- package/dist/docs/index.js +0 -2
- package/dist/docs/loader.d.ts +0 -12
- package/dist/docs/loader.js +0 -177
- package/dist/docs/search.d.ts +0 -17
- package/dist/docs/search.js +0 -325
- package/dist/docs/types.d.ts +0 -55
- package/dist/docs/types.js +0 -1
- package/docs/README.md +0 -249
- package/docs/WIP.md +0 -388
- package/docs/WTS.md +0 -536
- package/docs/docs/account.md +0 -914
- package/docs/docs/allocation.md +0 -635
- package/docs/docs/arbitration.md +0 -1804
- package/docs/docs/arbitration_state_machine.md +0 -270
- package/docs/docs/contact.md +0 -709
- package/docs/docs/demand.md +0 -948
- package/docs/docs/guard.md +0 -1465
- package/docs/docs/localinfo.md +0 -432
- package/docs/docs/localmark.md +0 -583
- package/docs/docs/machine.md +0 -2490
- package/docs/docs/messenger.md +0 -2098
- package/docs/docs/onchain_events.md +0 -267
- package/docs/docs/order.md +0 -1001
- package/docs/docs/payment.md +0 -512
- package/docs/docs/permission.md +0 -1438
- package/docs/docs/personal.md +0 -742
- package/docs/docs/progress.md +0 -1748
- package/docs/docs/query.md +0 -467
- package/docs/docs/repository.md +0 -1043
- package/docs/docs/reward.md +0 -833
- package/docs/docs/service.md +0 -2130
- package/docs/docs/stage-01-introduction.md +0 -243
- package/docs/docs/stage-02-trust.md +0 -302
- package/docs/docs/stage-03-collaboration.md +0 -337
- package/docs/docs/stage-04-transaction.md +0 -277
- package/docs/docs/stage-05-business.md +0 -151
- package/docs/docs/stage-06-personal.md +0 -203
- package/docs/docs/stage-07-query.md +0 -572
- package/docs/docs/stage-08-examples.md +0 -184
- package/docs/docs/treasury.md +0 -1149
- package/docs/docs/wowok_buildin_info.md +0 -740
- package/docs/examples/Insurance/Insurance.md +0 -594
- package/docs/examples/Insurance/Insurance_TestResults.md +0 -481
- package/docs/examples/Insurance/insurance_complete_guard_v1.json +0 -50
- package/docs/examples/MyShop/MyShop.md +0 -1353
- package/docs/examples/MyShop/MyShop_TestResults.md +0 -1003
- package/docs/examples/MyShop_Advanced/MyShop_Advanced.md +0 -1898
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_MerchantSystem_TestResults.md +0 -1297
- package/docs/examples/MyShop_Advanced/MyShop_Advanced_OrderFlow_TestResults.md +0 -743
- package/docs/examples/MyShop_Advanced/machine_nodes.json +0 -222
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature.md +0 -776
- package/docs/examples/ThreeBody_Signature/ThreeBody_Signature_TestResults.md +0 -599
- package/docs/examples/Travel/Travel.md +0 -1157
- package/docs/examples/Travel/Travel_TestResults.md +0 -743
- package/docs/examples/Travel/calc-weather-timestamps.js +0 -8
- package/docs/examples/Travel/travel_machine_v2_export.json +0 -104
- package/docs/examples/Travel/weather_check_guard_v1.json +0 -51
- package/docs/skills/WOWOK.md +0 -650
- package/docs/skills/onchain_operations/_common.md +0 -406
- package/docs/skills/onchain_operations/_index.md +0 -196
- package/docs/skills/onchain_operations/allocation.md +0 -28
- package/docs/skills/onchain_operations/arbitration.md +0 -106
- package/docs/skills/onchain_operations/contact.md +0 -40
- package/docs/skills/onchain_operations/demand.md +0 -53
- package/docs/skills/onchain_operations/gen_passport.md +0 -23
- package/docs/skills/onchain_operations/guard.md +0 -56
- package/docs/skills/onchain_operations/machine.md +0 -89
- package/docs/skills/onchain_operations/order.md +0 -56
- package/docs/skills/onchain_operations/payment.md +0 -24
- package/docs/skills/onchain_operations/permission.md +0 -68
- package/docs/skills/onchain_operations/personal.md +0 -58
- package/docs/skills/onchain_operations/progress.md +0 -38
- package/docs/skills/onchain_operations/repository.md +0 -70
- package/docs/skills/onchain_operations/reward.md +0 -38
- package/docs/skills/onchain_operations/service.md +0 -78
- package/docs/skills/onchain_operations/treasury.md +0 -68
- package/docs/skills/schema-account_operation.md +0 -402
- package/docs/skills/schema-guard2file.md +0 -153
- package/docs/skills/schema-local_info_operation.md +0 -160
- package/docs/skills/schema-local_mark_operation.md +0 -148
- package/docs/skills/schema-machineNode2file.md +0 -155
- package/docs/skills/schema-messenger_operation.md +0 -547
- package/docs/skills/schema-onchain_events.md +0 -201
- package/docs/skills/schema-onchain_table_data.md +0 -334
- package/docs/skills/schema-query_toolkit.md +0 -395
- package/docs/skills/schema-wip_file.md +0 -240
- package/docs/skills/schema-wowok_buildin_info.md +0 -296
- package/docs/wip-examples/three_body.html +0 -57
- package/docs/wip-examples/three_body.wip +0 -30
|
@@ -0,0 +1,1572 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/onchain_operations_repository.json",
|
|
4
|
+
"title": "Repository Operation",
|
|
5
|
+
"description": "On-chain repository operation schema",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"operation_type": {
|
|
9
|
+
"const": "repository"
|
|
10
|
+
},
|
|
11
|
+
"data": {
|
|
12
|
+
"$ref": "#/definitions/data",
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
14
|
+
},
|
|
15
|
+
"env": {
|
|
16
|
+
"$ref": "#/definitions/env",
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
},
|
|
19
|
+
"submission": {
|
|
20
|
+
"$ref": "#/definitions/submission",
|
|
21
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"operation_type",
|
|
26
|
+
"data"
|
|
27
|
+
],
|
|
28
|
+
"definitions": {
|
|
29
|
+
"data": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"object": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Use when the Permission object already exists."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"name": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "The name of the object"
|
|
44
|
+
},
|
|
45
|
+
"tags": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"description": "The tags of the object"
|
|
51
|
+
},
|
|
52
|
+
"onChain": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."
|
|
55
|
+
},
|
|
56
|
+
"replaceExistName": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
|
|
59
|
+
},
|
|
60
|
+
"permission": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
64
|
+
"description": "String format: Reference an EXISTING object by its name (local mark) or on-chain object ID. Example: 'my-object' or '0x1234...'"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"name": {
|
|
70
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
|
|
71
|
+
},
|
|
72
|
+
"tags": {
|
|
73
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/tags"
|
|
74
|
+
},
|
|
75
|
+
"onChain": {
|
|
76
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/onChain"
|
|
77
|
+
},
|
|
78
|
+
"replaceExistName": {
|
|
79
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/replaceExistName"
|
|
80
|
+
},
|
|
81
|
+
"description": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "The description of the object"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "Object format: CREATE a NEW object with name, optional description, and visibility settings. Extends NamedObjectSchema with an additional 'description' field for detailed object information."
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"description": "Two ways to specify an object: (1) STRING - Reference an EXISTING object by name or ID; (2) OBJECT - CREATE a NEW object with full configuration including optional name, tags, description, and visibility settings (local private by default, or public on-chain with onChain:true)."
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"description": "Object format: CREATE a NEW object with Permission-based access control. Includes optional name, tags, visibility settings, AND a Permission object (which itself can be referenced by string or created as a new object). Use this to create objects with managed access permissions."
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"description": "Two ways to specify a Permission-managed object: (1) STRING - Reference an EXISTING Permission object by name or ID; (2) OBJECT - CREATE a NEW object with Permission access control, where the Permission can also be either referenced (string) or newly created (object). This is used when you need permission management but don't need to specify a token type."
|
|
98
|
+
},
|
|
99
|
+
"description": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"description": "Description string (max 4000 bcs characters)"
|
|
102
|
+
},
|
|
103
|
+
"policies": {
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"op": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": [
|
|
111
|
+
"add",
|
|
112
|
+
"set"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"policy": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "object",
|
|
119
|
+
"properties": {
|
|
120
|
+
"name": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "Policy rule name"
|
|
123
|
+
},
|
|
124
|
+
"description": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Policy rule description"
|
|
127
|
+
},
|
|
128
|
+
"write_guard": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "object",
|
|
132
|
+
"properties": {
|
|
133
|
+
"guard": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Guard object ID"
|
|
136
|
+
},
|
|
137
|
+
"id_from_submission": {
|
|
138
|
+
"type": "integer",
|
|
139
|
+
"minimum": 0,
|
|
140
|
+
"maximum": 255,
|
|
141
|
+
"description": "Guard Table data index, whose corresponding value (or address) is the ID of the data to be written. If null, user must specify the ID separately."
|
|
142
|
+
},
|
|
143
|
+
"data_from_submission": {
|
|
144
|
+
"$ref": "#/definitions/data/properties/policies/anyOf/0/properties/policy/items/properties/write_guard/items/properties/id_from_submission",
|
|
145
|
+
"description": "Guard Table data index, whose corresponding value is the data to be written. If null, user must specify the data separately."
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"required": [
|
|
149
|
+
"guard"
|
|
150
|
+
],
|
|
151
|
+
"additionalProperties": false,
|
|
152
|
+
"description": "Guard object that needs verification when writing policy"
|
|
153
|
+
},
|
|
154
|
+
"description": "Guard object list that can be verified when writing data"
|
|
155
|
+
},
|
|
156
|
+
"quote_guard": {
|
|
157
|
+
"type": [
|
|
158
|
+
"string",
|
|
159
|
+
"null"
|
|
160
|
+
],
|
|
161
|
+
"description": "Guard object ID that needs verification when referencing this policy data on-chain (e.g., verifying if user has paid subscription). If null, no verification is needed for on-chain references. The Guard must have empty 'relies' field and 'rep' field true."
|
|
162
|
+
},
|
|
163
|
+
"id_from": {
|
|
164
|
+
"anyOf": [
|
|
165
|
+
{
|
|
166
|
+
"type": "number",
|
|
167
|
+
"const": 0,
|
|
168
|
+
"description": "None (0)"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "number",
|
|
172
|
+
"const": 1,
|
|
173
|
+
"description": "Clock (1)"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "number",
|
|
177
|
+
"const": 2,
|
|
178
|
+
"description": "Signer (2)"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "string",
|
|
182
|
+
"const": "None",
|
|
183
|
+
"description": "None"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "string",
|
|
187
|
+
"const": "Clock",
|
|
188
|
+
"description": "Clock"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "string",
|
|
192
|
+
"const": "Signer",
|
|
193
|
+
"description": "Signer"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": "string",
|
|
197
|
+
"const": "none",
|
|
198
|
+
"description": "none"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"type": "string",
|
|
202
|
+
"const": "clock",
|
|
203
|
+
"description": "clock"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "string",
|
|
207
|
+
"const": "signer",
|
|
208
|
+
"description": "signer"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"description": "Source of data ID when writing data. If None, user must specify the ID separately; if Clock, data ID is current timestamp; if Signer, data ID is user ID."
|
|
212
|
+
},
|
|
213
|
+
"value_type": {
|
|
214
|
+
"anyOf": [
|
|
215
|
+
{
|
|
216
|
+
"anyOf": [
|
|
217
|
+
{
|
|
218
|
+
"anyOf": [
|
|
219
|
+
{
|
|
220
|
+
"type": "number",
|
|
221
|
+
"const": 0,
|
|
222
|
+
"description": "Bool (0)"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "number",
|
|
226
|
+
"const": 1,
|
|
227
|
+
"description": "Address (1)"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "number",
|
|
231
|
+
"const": 2,
|
|
232
|
+
"description": "String (2)"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "number",
|
|
236
|
+
"const": 3,
|
|
237
|
+
"description": "U8 (3)"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "number",
|
|
241
|
+
"const": 4,
|
|
242
|
+
"description": "U16 (4)"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"type": "number",
|
|
246
|
+
"const": 5,
|
|
247
|
+
"description": "U32 (5)"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"type": "number",
|
|
251
|
+
"const": 6,
|
|
252
|
+
"description": "U64 (6)"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"type": "number",
|
|
256
|
+
"const": 7,
|
|
257
|
+
"description": "U128 (7)"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "number",
|
|
261
|
+
"const": 8,
|
|
262
|
+
"description": "U256 (8)"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "number",
|
|
266
|
+
"const": 9,
|
|
267
|
+
"description": "VecBool (9)"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"type": "number",
|
|
271
|
+
"const": 10,
|
|
272
|
+
"description": "VecAddress (10)"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"type": "number",
|
|
276
|
+
"const": 11,
|
|
277
|
+
"description": "VecString (11)"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"type": "number",
|
|
281
|
+
"const": 12,
|
|
282
|
+
"description": "VecU8 (12)"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"type": "number",
|
|
286
|
+
"const": 13,
|
|
287
|
+
"description": "VecU16 (13)"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "number",
|
|
291
|
+
"const": 14,
|
|
292
|
+
"description": "VecU32 (14)"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"type": "number",
|
|
296
|
+
"const": 15,
|
|
297
|
+
"description": "VecU64 (15)"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"type": "number",
|
|
301
|
+
"const": 16,
|
|
302
|
+
"description": "VecU128 (16)"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"type": "number",
|
|
306
|
+
"const": 17,
|
|
307
|
+
"description": "VecU256 (17)"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"type": "number",
|
|
311
|
+
"const": 18,
|
|
312
|
+
"description": "VecVecU8 (18)"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"type": "string",
|
|
316
|
+
"const": "Bool",
|
|
317
|
+
"description": "Bool"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"type": "string",
|
|
321
|
+
"const": "Address",
|
|
322
|
+
"description": "Address"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"type": "string",
|
|
326
|
+
"const": "String",
|
|
327
|
+
"description": "String"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"type": "string",
|
|
331
|
+
"const": "U8",
|
|
332
|
+
"description": "U8"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"type": "string",
|
|
336
|
+
"const": "U16",
|
|
337
|
+
"description": "U16"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"type": "string",
|
|
341
|
+
"const": "U32",
|
|
342
|
+
"description": "U32"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "string",
|
|
346
|
+
"const": "U64",
|
|
347
|
+
"description": "U64"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"type": "string",
|
|
351
|
+
"const": "U128",
|
|
352
|
+
"description": "U128"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"type": "string",
|
|
356
|
+
"const": "U256",
|
|
357
|
+
"description": "U256"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"type": "string",
|
|
361
|
+
"const": "VecBool",
|
|
362
|
+
"description": "VecBool"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"type": "string",
|
|
366
|
+
"const": "VecAddress",
|
|
367
|
+
"description": "VecAddress"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "string",
|
|
371
|
+
"const": "VecString",
|
|
372
|
+
"description": "VecString"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"type": "string",
|
|
376
|
+
"const": "VecU8",
|
|
377
|
+
"description": "VecU8"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "string",
|
|
381
|
+
"const": "VecU16",
|
|
382
|
+
"description": "VecU16"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"type": "string",
|
|
386
|
+
"const": "VecU32",
|
|
387
|
+
"description": "VecU32"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"type": "string",
|
|
391
|
+
"const": "VecU64",
|
|
392
|
+
"description": "VecU64"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"type": "string",
|
|
396
|
+
"const": "VecU128",
|
|
397
|
+
"description": "VecU128"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "string",
|
|
401
|
+
"const": "VecU256",
|
|
402
|
+
"description": "VecU256"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"type": "string",
|
|
406
|
+
"const": "VecVecU8",
|
|
407
|
+
"description": "VecVecU8"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"type": "string",
|
|
411
|
+
"const": "bool",
|
|
412
|
+
"description": "bool"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"type": "string",
|
|
416
|
+
"const": "address",
|
|
417
|
+
"description": "address"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"type": "string",
|
|
421
|
+
"const": "string",
|
|
422
|
+
"description": "string"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"type": "string",
|
|
426
|
+
"const": "u8",
|
|
427
|
+
"description": "u8"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"type": "string",
|
|
431
|
+
"const": "u16",
|
|
432
|
+
"description": "u16"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"type": "string",
|
|
436
|
+
"const": "u32",
|
|
437
|
+
"description": "u32"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"type": "string",
|
|
441
|
+
"const": "u64",
|
|
442
|
+
"description": "u64"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"type": "string",
|
|
446
|
+
"const": "u128",
|
|
447
|
+
"description": "u128"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"type": "string",
|
|
451
|
+
"const": "u256",
|
|
452
|
+
"description": "u256"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"type": "string",
|
|
456
|
+
"const": "vecbool",
|
|
457
|
+
"description": "vecbool"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "string",
|
|
461
|
+
"const": "vecaddress",
|
|
462
|
+
"description": "vecaddress"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "string",
|
|
466
|
+
"const": "vecstring",
|
|
467
|
+
"description": "vecstring"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"type": "string",
|
|
471
|
+
"const": "vecu8",
|
|
472
|
+
"description": "vecu8"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
"type": "string",
|
|
476
|
+
"const": "vecu16",
|
|
477
|
+
"description": "vecu16"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "string",
|
|
481
|
+
"const": "vecu32",
|
|
482
|
+
"description": "vecu32"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "string",
|
|
486
|
+
"const": "vecu64",
|
|
487
|
+
"description": "vecu64"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"type": "string",
|
|
491
|
+
"const": "vecu128",
|
|
492
|
+
"description": "vecu128"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"type": "string",
|
|
496
|
+
"const": "vecu256",
|
|
497
|
+
"description": "vecu256"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"type": "string",
|
|
501
|
+
"const": "vecvecu8",
|
|
502
|
+
"description": "vecvecu8"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"type": "number",
|
|
509
|
+
"const": 19,
|
|
510
|
+
"description": "Value (19)"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
"description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"type": "string",
|
|
517
|
+
"const": "Value",
|
|
518
|
+
"description": "Value"
|
|
519
|
+
}
|
|
520
|
+
],
|
|
521
|
+
"description": "Type of data value when writing data."
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"required": [
|
|
525
|
+
"name",
|
|
526
|
+
"description",
|
|
527
|
+
"write_guard",
|
|
528
|
+
"id_from",
|
|
529
|
+
"value_type"
|
|
530
|
+
],
|
|
531
|
+
"additionalProperties": false
|
|
532
|
+
},
|
|
533
|
+
"description": "Policy rule list."
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"op",
|
|
538
|
+
"policy"
|
|
539
|
+
],
|
|
540
|
+
"additionalProperties": false,
|
|
541
|
+
"description": "Add or set policy rules."
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "object",
|
|
545
|
+
"properties": {
|
|
546
|
+
"op": {
|
|
547
|
+
"type": "string",
|
|
548
|
+
"const": "remove"
|
|
549
|
+
},
|
|
550
|
+
"policy": {
|
|
551
|
+
"type": "array",
|
|
552
|
+
"items": {
|
|
553
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name"
|
|
554
|
+
},
|
|
555
|
+
"description": "Policy rule name list."
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"required": [
|
|
559
|
+
"op",
|
|
560
|
+
"policy"
|
|
561
|
+
],
|
|
562
|
+
"additionalProperties": false,
|
|
563
|
+
"description": "Remove policy rules."
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"type": "object",
|
|
567
|
+
"properties": {
|
|
568
|
+
"op": {
|
|
569
|
+
"type": "string",
|
|
570
|
+
"const": "clear"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
"required": [
|
|
574
|
+
"op"
|
|
575
|
+
],
|
|
576
|
+
"additionalProperties": false,
|
|
577
|
+
"description": "Clear policy rules."
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"description": "Policy list. Used to define data item write permissions and rules, as well as data item read permissions."
|
|
581
|
+
},
|
|
582
|
+
"data_add": {
|
|
583
|
+
"anyOf": [
|
|
584
|
+
{
|
|
585
|
+
"type": "object",
|
|
586
|
+
"properties": {
|
|
587
|
+
"name": {
|
|
588
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
589
|
+
"description": "Data item name."
|
|
590
|
+
},
|
|
591
|
+
"write_guard": {
|
|
592
|
+
"$ref": "#/definitions/data/properties/object/anyOf/0",
|
|
593
|
+
"description": "Guard ID or name. Used to specify the policy write permissions and rules corresponding to this Guard."
|
|
594
|
+
},
|
|
595
|
+
"data": {
|
|
596
|
+
"anyOf": [
|
|
597
|
+
{
|
|
598
|
+
"anyOf": [
|
|
599
|
+
{
|
|
600
|
+
"type": "boolean"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"anyOf": [
|
|
604
|
+
{
|
|
605
|
+
"type": "object",
|
|
606
|
+
"properties": {
|
|
607
|
+
"name_or_address": {
|
|
608
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard",
|
|
609
|
+
"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)."
|
|
610
|
+
},
|
|
611
|
+
"local_mark_first": {
|
|
612
|
+
"type": "boolean",
|
|
613
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"additionalProperties": false,
|
|
617
|
+
"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."
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
"type": "string"
|
|
621
|
+
}
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"type": "string"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"type": "number"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"type": "array",
|
|
632
|
+
"items": {
|
|
633
|
+
"type": "boolean"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"anyOf": [
|
|
638
|
+
{
|
|
639
|
+
"type": "object",
|
|
640
|
+
"properties": {
|
|
641
|
+
"entities": {
|
|
642
|
+
"type": "array",
|
|
643
|
+
"items": {
|
|
644
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0/anyOf/1/anyOf/0"
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"check_all_founded": {
|
|
648
|
+
"type": "boolean",
|
|
649
|
+
"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"
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
"required": [
|
|
653
|
+
"entities"
|
|
654
|
+
],
|
|
655
|
+
"additionalProperties": false,
|
|
656
|
+
"description": "Used to batch find account or object IDs by name"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"type": "array",
|
|
660
|
+
"items": {
|
|
661
|
+
"type": "string"
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"type": "array",
|
|
668
|
+
"items": {
|
|
669
|
+
"type": "string"
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"type": "array",
|
|
674
|
+
"items": {
|
|
675
|
+
"type": "number"
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"type": "array",
|
|
680
|
+
"items": {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {
|
|
683
|
+
"type": "number"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"description": "User available supported value type"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"type": "object",
|
|
692
|
+
"properties": {
|
|
693
|
+
"valueType": {
|
|
694
|
+
"anyOf": [
|
|
695
|
+
{
|
|
696
|
+
"$ref": "#/definitions/data/properties/policies/anyOf/0/properties/policy/items/properties/value_type/anyOf/0"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"$ref": "#/definitions/data/properties/policies/anyOf/0/properties/policy/items/properties/value_type/anyOf/1"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"description": "Value type"
|
|
703
|
+
},
|
|
704
|
+
"value": {
|
|
705
|
+
"anyOf": [
|
|
706
|
+
{
|
|
707
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/1"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
"description": "Value"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"required": [
|
|
717
|
+
"valueType",
|
|
718
|
+
"value"
|
|
719
|
+
],
|
|
720
|
+
"additionalProperties": false,
|
|
721
|
+
"description": "Value container with type and value"
|
|
722
|
+
}
|
|
723
|
+
],
|
|
724
|
+
"description": "Supported value type"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"required": [
|
|
728
|
+
"name",
|
|
729
|
+
"data"
|
|
730
|
+
],
|
|
731
|
+
"additionalProperties": false,
|
|
732
|
+
"description": "Specify data items by name and data. ID is the on-chain timestamp or signer ID (depending on how write_guard specifies the ID source)."
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"type": "object",
|
|
736
|
+
"properties": {
|
|
737
|
+
"name": {
|
|
738
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
739
|
+
"description": "Data item name. Must match the name in PolicyRule."
|
|
740
|
+
},
|
|
741
|
+
"items": {
|
|
742
|
+
"type": "array",
|
|
743
|
+
"items": {
|
|
744
|
+
"type": "object",
|
|
745
|
+
"properties": {
|
|
746
|
+
"data": {
|
|
747
|
+
"type": "array",
|
|
748
|
+
"items": {
|
|
749
|
+
"type": "object",
|
|
750
|
+
"properties": {
|
|
751
|
+
"id": {
|
|
752
|
+
"anyOf": [
|
|
753
|
+
{
|
|
754
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data/anyOf/0/anyOf/1/anyOf/0"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"type": "integer"
|
|
758
|
+
}
|
|
759
|
+
],
|
|
760
|
+
"description": "Data item ID. If a number (such as time) is specified, it will be automatically converted to an address or ID type."
|
|
761
|
+
},
|
|
762
|
+
"data": {
|
|
763
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/data"
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"required": [
|
|
767
|
+
"id",
|
|
768
|
+
"data"
|
|
769
|
+
],
|
|
770
|
+
"additionalProperties": false,
|
|
771
|
+
"description": "Data ID and value."
|
|
772
|
+
},
|
|
773
|
+
"description": "Data item list."
|
|
774
|
+
},
|
|
775
|
+
"write_guard": {
|
|
776
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard",
|
|
777
|
+
"description": "Guard ID or name. Used to specify the policy write permissions and rules corresponding to this Guard."
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"required": [
|
|
781
|
+
"data"
|
|
782
|
+
],
|
|
783
|
+
"additionalProperties": false,
|
|
784
|
+
"description": "List of data items to write."
|
|
785
|
+
},
|
|
786
|
+
"description": "List of data items to add. Each data item contains name, ID, and data parts, where name and ID together form the unique key for the data."
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"required": [
|
|
790
|
+
"name",
|
|
791
|
+
"items"
|
|
792
|
+
],
|
|
793
|
+
"additionalProperties": false,
|
|
794
|
+
"description": "Add data by name and data item list. Each data item contains name, ID, and data parts, where name and ID together form the unique key for the data."
|
|
795
|
+
}
|
|
796
|
+
],
|
|
797
|
+
"description": "Add data items"
|
|
798
|
+
},
|
|
799
|
+
"data_remove": {
|
|
800
|
+
"anyOf": [
|
|
801
|
+
{
|
|
802
|
+
"type": "object",
|
|
803
|
+
"properties": {
|
|
804
|
+
"name": {
|
|
805
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
806
|
+
"description": "Data item name."
|
|
807
|
+
},
|
|
808
|
+
"write_guard": {
|
|
809
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard",
|
|
810
|
+
"description": "Guard ID or name. Used to specify the policy write permissions and rules corresponding to this Guard."
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"required": [
|
|
814
|
+
"name"
|
|
815
|
+
],
|
|
816
|
+
"additionalProperties": false,
|
|
817
|
+
"description": "Specify data items by name and ID. ID is the on-chain timestamp or signer ID (depending on how write_guard specifies the ID source)."
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"type": "object",
|
|
821
|
+
"properties": {
|
|
822
|
+
"name": {
|
|
823
|
+
"$ref": "#/definitions/data/properties/object/anyOf/1/properties/name",
|
|
824
|
+
"description": "Data item name. Must match the name in PolicyRule."
|
|
825
|
+
},
|
|
826
|
+
"items": {
|
|
827
|
+
"type": "array",
|
|
828
|
+
"items": {
|
|
829
|
+
"type": "object",
|
|
830
|
+
"properties": {
|
|
831
|
+
"id": {
|
|
832
|
+
"type": "array",
|
|
833
|
+
"items": {
|
|
834
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/1/properties/items/items/properties/data/items/properties/id"
|
|
835
|
+
},
|
|
836
|
+
"description": "Data item ID list."
|
|
837
|
+
},
|
|
838
|
+
"write_guard": {
|
|
839
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard",
|
|
840
|
+
"description": "Guard ID or name. Used to verify permission to delete data."
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
"required": [
|
|
844
|
+
"id"
|
|
845
|
+
],
|
|
846
|
+
"additionalProperties": false,
|
|
847
|
+
"description": "Delete data items by name and ID list."
|
|
848
|
+
},
|
|
849
|
+
"description": "List of data items to delete."
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"required": [
|
|
853
|
+
"name",
|
|
854
|
+
"items"
|
|
855
|
+
],
|
|
856
|
+
"additionalProperties": false
|
|
857
|
+
}
|
|
858
|
+
],
|
|
859
|
+
"description": "Delete data items"
|
|
860
|
+
},
|
|
861
|
+
"rewards": {
|
|
862
|
+
"anyOf": [
|
|
863
|
+
{
|
|
864
|
+
"type": "object",
|
|
865
|
+
"properties": {
|
|
866
|
+
"op": {
|
|
867
|
+
"type": "string",
|
|
868
|
+
"enum": [
|
|
869
|
+
"add",
|
|
870
|
+
"set"
|
|
871
|
+
]
|
|
872
|
+
},
|
|
873
|
+
"objects": {
|
|
874
|
+
"type": "array",
|
|
875
|
+
"items": {
|
|
876
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard"
|
|
877
|
+
},
|
|
878
|
+
"description": "List of object IDs or names to add or set"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"required": [
|
|
882
|
+
"op",
|
|
883
|
+
"objects"
|
|
884
|
+
],
|
|
885
|
+
"additionalProperties": false
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"type": "object",
|
|
889
|
+
"properties": {
|
|
890
|
+
"op": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"const": "remove"
|
|
893
|
+
},
|
|
894
|
+
"objects": {
|
|
895
|
+
"type": "array",
|
|
896
|
+
"items": {
|
|
897
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard"
|
|
898
|
+
},
|
|
899
|
+
"description": "List of object IDs or names to remove"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"required": [
|
|
903
|
+
"op",
|
|
904
|
+
"objects"
|
|
905
|
+
],
|
|
906
|
+
"additionalProperties": false
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"type": "object",
|
|
910
|
+
"properties": {
|
|
911
|
+
"op": {
|
|
912
|
+
"type": "string",
|
|
913
|
+
"const": "clear"
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"required": [
|
|
917
|
+
"op"
|
|
918
|
+
],
|
|
919
|
+
"additionalProperties": false
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
"description": "Reward object list. Used for data contribution incentives."
|
|
923
|
+
},
|
|
924
|
+
"owner_receive": {
|
|
925
|
+
"anyOf": [
|
|
926
|
+
{
|
|
927
|
+
"type": "array",
|
|
928
|
+
"items": {
|
|
929
|
+
"type": "object",
|
|
930
|
+
"properties": {
|
|
931
|
+
"id": {
|
|
932
|
+
"type": "string",
|
|
933
|
+
"minLength": 1,
|
|
934
|
+
"description": "Received object ID"
|
|
935
|
+
},
|
|
936
|
+
"type": {
|
|
937
|
+
"type": "string",
|
|
938
|
+
"minLength": 1,
|
|
939
|
+
"description": "Object type"
|
|
940
|
+
},
|
|
941
|
+
"content_raw": {
|
|
942
|
+
"description": "Raw content data"
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"required": [
|
|
946
|
+
"id",
|
|
947
|
+
"type"
|
|
948
|
+
],
|
|
949
|
+
"additionalProperties": false,
|
|
950
|
+
"description": "Received normal object record"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"type": "object",
|
|
955
|
+
"properties": {
|
|
956
|
+
"balance": {
|
|
957
|
+
"type": [
|
|
958
|
+
"number",
|
|
959
|
+
"string"
|
|
960
|
+
],
|
|
961
|
+
"description": "Balance type"
|
|
962
|
+
},
|
|
963
|
+
"token_type": {
|
|
964
|
+
"type": "string",
|
|
965
|
+
"description": "Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."
|
|
966
|
+
},
|
|
967
|
+
"received": {
|
|
968
|
+
"type": "array",
|
|
969
|
+
"items": {
|
|
970
|
+
"type": "object",
|
|
971
|
+
"properties": {
|
|
972
|
+
"id": {
|
|
973
|
+
"type": "string",
|
|
974
|
+
"description": "Received CoinWrapper object ID"
|
|
975
|
+
},
|
|
976
|
+
"balance": {
|
|
977
|
+
"$ref": "#/definitions/data/properties/owner_receive/anyOf/1/properties/balance"
|
|
978
|
+
},
|
|
979
|
+
"payment": {
|
|
980
|
+
"type": "string",
|
|
981
|
+
"description": "Payment object ID"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"required": [
|
|
985
|
+
"id",
|
|
986
|
+
"balance",
|
|
987
|
+
"payment"
|
|
988
|
+
],
|
|
989
|
+
"additionalProperties": false,
|
|
990
|
+
"description": "Received CoinWrapper object record"
|
|
991
|
+
},
|
|
992
|
+
"description": "Received records of Coin objects"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"required": [
|
|
996
|
+
"balance",
|
|
997
|
+
"token_type",
|
|
998
|
+
"received"
|
|
999
|
+
],
|
|
1000
|
+
"additionalProperties": false,
|
|
1001
|
+
"description": "Received record of Coin objects"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"const": "recently"
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
"description": "Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."
|
|
1009
|
+
},
|
|
1010
|
+
"um": {
|
|
1011
|
+
"anyOf": [
|
|
1012
|
+
{
|
|
1013
|
+
"$ref": "#/definitions/data/properties/data_add/anyOf/0/properties/write_guard"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"type": "null"
|
|
1017
|
+
}
|
|
1018
|
+
],
|
|
1019
|
+
"description": "Contact object."
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
"required": [
|
|
1023
|
+
"object"
|
|
1024
|
+
],
|
|
1025
|
+
"additionalProperties": false,
|
|
1026
|
+
"description": "On-chain Repository operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Repository. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation."
|
|
1027
|
+
},
|
|
1028
|
+
"env": {
|
|
1029
|
+
"type": "object",
|
|
1030
|
+
"properties": {
|
|
1031
|
+
"account": {
|
|
1032
|
+
"type": "string",
|
|
1033
|
+
"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).",
|
|
1034
|
+
"default": ""
|
|
1035
|
+
},
|
|
1036
|
+
"permission_guard": {
|
|
1037
|
+
"type": "array",
|
|
1038
|
+
"items": {
|
|
1039
|
+
"type": "string"
|
|
1040
|
+
},
|
|
1041
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
1042
|
+
},
|
|
1043
|
+
"no_cache": {
|
|
1044
|
+
"type": "boolean",
|
|
1045
|
+
"description": "Whether to disable caching."
|
|
1046
|
+
},
|
|
1047
|
+
"network": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"enum": [
|
|
1050
|
+
"localnet",
|
|
1051
|
+
"testnet"
|
|
1052
|
+
],
|
|
1053
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
1054
|
+
},
|
|
1055
|
+
"referrer": {
|
|
1056
|
+
"$ref": "#/definitions/env/properties/account",
|
|
1057
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
"additionalProperties": false,
|
|
1061
|
+
"description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
|
|
1062
|
+
},
|
|
1063
|
+
"submission": {
|
|
1064
|
+
"type": "object",
|
|
1065
|
+
"properties": {
|
|
1066
|
+
"type": {
|
|
1067
|
+
"type": "string",
|
|
1068
|
+
"const": "submission",
|
|
1069
|
+
"description": "Type of call response: submission"
|
|
1070
|
+
},
|
|
1071
|
+
"guard": {
|
|
1072
|
+
"type": "array",
|
|
1073
|
+
"items": {
|
|
1074
|
+
"type": "object",
|
|
1075
|
+
"properties": {
|
|
1076
|
+
"object": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"description": "Guard object name or ID."
|
|
1079
|
+
},
|
|
1080
|
+
"impack": {
|
|
1081
|
+
"type": "boolean",
|
|
1082
|
+
"description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
|
|
1083
|
+
}
|
|
1084
|
+
},
|
|
1085
|
+
"required": [
|
|
1086
|
+
"object",
|
|
1087
|
+
"impack"
|
|
1088
|
+
],
|
|
1089
|
+
"additionalProperties": false
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"submission": {
|
|
1093
|
+
"type": "array",
|
|
1094
|
+
"items": {
|
|
1095
|
+
"type": "object",
|
|
1096
|
+
"properties": {
|
|
1097
|
+
"guard": {
|
|
1098
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
1099
|
+
"description": "Guard object name or ID."
|
|
1100
|
+
},
|
|
1101
|
+
"submission": {
|
|
1102
|
+
"type": "array",
|
|
1103
|
+
"items": {
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"identifier": {
|
|
1107
|
+
"type": "integer",
|
|
1108
|
+
"minimum": 0,
|
|
1109
|
+
"maximum": 255,
|
|
1110
|
+
"description": "Identifier (0-255) for data lookup in Guard table."
|
|
1111
|
+
},
|
|
1112
|
+
"b_submission": {
|
|
1113
|
+
"type": "boolean",
|
|
1114
|
+
"description": "Whether user submission is required for this data"
|
|
1115
|
+
},
|
|
1116
|
+
"value_type": {
|
|
1117
|
+
"anyOf": [
|
|
1118
|
+
{
|
|
1119
|
+
"type": "number",
|
|
1120
|
+
"const": 0,
|
|
1121
|
+
"description": "Bool (0)"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"type": "number",
|
|
1125
|
+
"const": 1,
|
|
1126
|
+
"description": "Address (1)"
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
"type": "number",
|
|
1130
|
+
"const": 2,
|
|
1131
|
+
"description": "String (2)"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"type": "number",
|
|
1135
|
+
"const": 3,
|
|
1136
|
+
"description": "U8 (3)"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"type": "number",
|
|
1140
|
+
"const": 4,
|
|
1141
|
+
"description": "U16 (4)"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"type": "number",
|
|
1145
|
+
"const": 5,
|
|
1146
|
+
"description": "U32 (5)"
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
"type": "number",
|
|
1150
|
+
"const": 6,
|
|
1151
|
+
"description": "U64 (6)"
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"type": "number",
|
|
1155
|
+
"const": 7,
|
|
1156
|
+
"description": "U128 (7)"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"type": "number",
|
|
1160
|
+
"const": 8,
|
|
1161
|
+
"description": "U256 (8)"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"type": "number",
|
|
1165
|
+
"const": 9,
|
|
1166
|
+
"description": "VecBool (9)"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"type": "number",
|
|
1170
|
+
"const": 10,
|
|
1171
|
+
"description": "VecAddress (10)"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"type": "number",
|
|
1175
|
+
"const": 11,
|
|
1176
|
+
"description": "VecString (11)"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"type": "number",
|
|
1180
|
+
"const": 12,
|
|
1181
|
+
"description": "VecU8 (12)"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"type": "number",
|
|
1185
|
+
"const": 13,
|
|
1186
|
+
"description": "VecU16 (13)"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"type": "number",
|
|
1190
|
+
"const": 14,
|
|
1191
|
+
"description": "VecU32 (14)"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"type": "number",
|
|
1195
|
+
"const": 15,
|
|
1196
|
+
"description": "VecU64 (15)"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"type": "number",
|
|
1200
|
+
"const": 16,
|
|
1201
|
+
"description": "VecU128 (16)"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"type": "number",
|
|
1205
|
+
"const": 17,
|
|
1206
|
+
"description": "VecU256 (17)"
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"type": "number",
|
|
1210
|
+
"const": 18,
|
|
1211
|
+
"description": "VecVecU8 (18)"
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"type": "string",
|
|
1215
|
+
"const": "Bool",
|
|
1216
|
+
"description": "Bool"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"type": "string",
|
|
1220
|
+
"const": "Address",
|
|
1221
|
+
"description": "Address"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"type": "string",
|
|
1225
|
+
"const": "String",
|
|
1226
|
+
"description": "String"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"type": "string",
|
|
1230
|
+
"const": "U8",
|
|
1231
|
+
"description": "U8"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"type": "string",
|
|
1235
|
+
"const": "U16",
|
|
1236
|
+
"description": "U16"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"type": "string",
|
|
1240
|
+
"const": "U32",
|
|
1241
|
+
"description": "U32"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"const": "U64",
|
|
1246
|
+
"description": "U64"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"type": "string",
|
|
1250
|
+
"const": "U128",
|
|
1251
|
+
"description": "U128"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"type": "string",
|
|
1255
|
+
"const": "U256",
|
|
1256
|
+
"description": "U256"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"const": "VecBool",
|
|
1261
|
+
"description": "VecBool"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"const": "VecAddress",
|
|
1266
|
+
"description": "VecAddress"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"type": "string",
|
|
1270
|
+
"const": "VecString",
|
|
1271
|
+
"description": "VecString"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"type": "string",
|
|
1275
|
+
"const": "VecU8",
|
|
1276
|
+
"description": "VecU8"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"type": "string",
|
|
1280
|
+
"const": "VecU16",
|
|
1281
|
+
"description": "VecU16"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"const": "VecU32",
|
|
1286
|
+
"description": "VecU32"
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"type": "string",
|
|
1290
|
+
"const": "VecU64",
|
|
1291
|
+
"description": "VecU64"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"type": "string",
|
|
1295
|
+
"const": "VecU128",
|
|
1296
|
+
"description": "VecU128"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"type": "string",
|
|
1300
|
+
"const": "VecU256",
|
|
1301
|
+
"description": "VecU256"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"const": "VecVecU8",
|
|
1306
|
+
"description": "VecVecU8"
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
"type": "string",
|
|
1310
|
+
"const": "bool",
|
|
1311
|
+
"description": "bool"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"type": "string",
|
|
1315
|
+
"const": "address",
|
|
1316
|
+
"description": "address"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"type": "string",
|
|
1320
|
+
"const": "string",
|
|
1321
|
+
"description": "string"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"type": "string",
|
|
1325
|
+
"const": "u8",
|
|
1326
|
+
"description": "u8"
|
|
1327
|
+
},
|
|
1328
|
+
{
|
|
1329
|
+
"type": "string",
|
|
1330
|
+
"const": "u16",
|
|
1331
|
+
"description": "u16"
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"type": "string",
|
|
1335
|
+
"const": "u32",
|
|
1336
|
+
"description": "u32"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"type": "string",
|
|
1340
|
+
"const": "u64",
|
|
1341
|
+
"description": "u64"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"const": "u128",
|
|
1346
|
+
"description": "u128"
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
"type": "string",
|
|
1350
|
+
"const": "u256",
|
|
1351
|
+
"description": "u256"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"const": "vecbool",
|
|
1356
|
+
"description": "vecbool"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"type": "string",
|
|
1360
|
+
"const": "vecaddress",
|
|
1361
|
+
"description": "vecaddress"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"type": "string",
|
|
1365
|
+
"const": "vecstring",
|
|
1366
|
+
"description": "vecstring"
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"type": "string",
|
|
1370
|
+
"const": "vecu8",
|
|
1371
|
+
"description": "vecu8"
|
|
1372
|
+
},
|
|
1373
|
+
{
|
|
1374
|
+
"type": "string",
|
|
1375
|
+
"const": "vecu16",
|
|
1376
|
+
"description": "vecu16"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "string",
|
|
1380
|
+
"const": "vecu32",
|
|
1381
|
+
"description": "vecu32"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"type": "string",
|
|
1385
|
+
"const": "vecu64",
|
|
1386
|
+
"description": "vecu64"
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"type": "string",
|
|
1390
|
+
"const": "vecu128",
|
|
1391
|
+
"description": "vecu128"
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"type": "string",
|
|
1395
|
+
"const": "vecu256",
|
|
1396
|
+
"description": "vecu256"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"type": "string",
|
|
1400
|
+
"const": "vecvecu8",
|
|
1401
|
+
"description": "vecvecu8"
|
|
1402
|
+
}
|
|
1403
|
+
],
|
|
1404
|
+
"description": "Type of the value"
|
|
1405
|
+
},
|
|
1406
|
+
"value": {
|
|
1407
|
+
"anyOf": [
|
|
1408
|
+
{
|
|
1409
|
+
"type": "boolean"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"anyOf": [
|
|
1413
|
+
{
|
|
1414
|
+
"type": "object",
|
|
1415
|
+
"properties": {
|
|
1416
|
+
"name_or_address": {
|
|
1417
|
+
"$ref": "#/definitions/submission/properties/guard/items/properties/object",
|
|
1418
|
+
"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)."
|
|
1419
|
+
},
|
|
1420
|
+
"local_mark_first": {
|
|
1421
|
+
"type": "boolean",
|
|
1422
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
"additionalProperties": false,
|
|
1426
|
+
"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."
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"type": "string"
|
|
1430
|
+
}
|
|
1431
|
+
]
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"type": "string"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"type": "number"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"type": "array",
|
|
1441
|
+
"items": {
|
|
1442
|
+
"type": "boolean"
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
"anyOf": [
|
|
1447
|
+
{
|
|
1448
|
+
"type": "object",
|
|
1449
|
+
"properties": {
|
|
1450
|
+
"entities": {
|
|
1451
|
+
"type": "array",
|
|
1452
|
+
"items": {
|
|
1453
|
+
"$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
"check_all_founded": {
|
|
1457
|
+
"type": "boolean",
|
|
1458
|
+
"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"
|
|
1459
|
+
}
|
|
1460
|
+
},
|
|
1461
|
+
"required": [
|
|
1462
|
+
"entities"
|
|
1463
|
+
],
|
|
1464
|
+
"additionalProperties": false,
|
|
1465
|
+
"description": "Used to batch find account or object IDs by name"
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"type": "array",
|
|
1469
|
+
"items": {
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
]
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"type": "array",
|
|
1477
|
+
"items": {
|
|
1478
|
+
"type": "string"
|
|
1479
|
+
}
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"type": "array",
|
|
1483
|
+
"items": {
|
|
1484
|
+
"type": "number"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"type": "array",
|
|
1489
|
+
"items": {
|
|
1490
|
+
"type": "array",
|
|
1491
|
+
"items": {
|
|
1492
|
+
"type": "number"
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
],
|
|
1497
|
+
"description": "The actual value data"
|
|
1498
|
+
},
|
|
1499
|
+
"name": {
|
|
1500
|
+
"type": "string",
|
|
1501
|
+
"default": "",
|
|
1502
|
+
"description": "Name or description of this data"
|
|
1503
|
+
},
|
|
1504
|
+
"object_type": {
|
|
1505
|
+
"type": "string",
|
|
1506
|
+
"enum": [
|
|
1507
|
+
"Permission",
|
|
1508
|
+
"Repository",
|
|
1509
|
+
"Arb",
|
|
1510
|
+
"Arbitration",
|
|
1511
|
+
"Service",
|
|
1512
|
+
"Machine",
|
|
1513
|
+
"Order",
|
|
1514
|
+
"Progress",
|
|
1515
|
+
"Payment",
|
|
1516
|
+
"Treasury",
|
|
1517
|
+
"Guard",
|
|
1518
|
+
"Demand",
|
|
1519
|
+
"Passport",
|
|
1520
|
+
"Allocation",
|
|
1521
|
+
"Resource",
|
|
1522
|
+
"Reward",
|
|
1523
|
+
"Discount",
|
|
1524
|
+
"EntityRegistrar",
|
|
1525
|
+
"EntityLinker",
|
|
1526
|
+
"Proof",
|
|
1527
|
+
"WReceivedObject",
|
|
1528
|
+
"Contact",
|
|
1529
|
+
"TableItem_ProgressHistory",
|
|
1530
|
+
"TableItem_PermissionPerm",
|
|
1531
|
+
"TableItem_DemandPresenter",
|
|
1532
|
+
"TableItem_MachineNode",
|
|
1533
|
+
"TableItem_TreasuryHistory",
|
|
1534
|
+
"TableItem_RepositoryData",
|
|
1535
|
+
"TableItem_RewardRecord",
|
|
1536
|
+
"TableItem_EntityLinker",
|
|
1537
|
+
"TableItem_AddressMark",
|
|
1538
|
+
"TableItem_EntityRegistrar"
|
|
1539
|
+
],
|
|
1540
|
+
"description": "Object type when value_type is Address and represents a specific object"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
"required": [
|
|
1544
|
+
"identifier",
|
|
1545
|
+
"b_submission",
|
|
1546
|
+
"value_type"
|
|
1547
|
+
],
|
|
1548
|
+
"additionalProperties": false,
|
|
1549
|
+
"description": "Guard table item"
|
|
1550
|
+
},
|
|
1551
|
+
"description": "User-submitted data required for Guard verification."
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
"required": [
|
|
1555
|
+
"guard",
|
|
1556
|
+
"submission"
|
|
1557
|
+
],
|
|
1558
|
+
"additionalProperties": false,
|
|
1559
|
+
"description": "Permission guard submission data."
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
"required": [
|
|
1564
|
+
"type",
|
|
1565
|
+
"guard",
|
|
1566
|
+
"submission"
|
|
1567
|
+
],
|
|
1568
|
+
"additionalProperties": false,
|
|
1569
|
+
"description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
}
|