@wowok/agent-mcp 2.3.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -15838
- package/dist/index.js +40 -394
- package/dist/schema/call/bridge-handler.d.ts +5 -0
- package/dist/schema/call/bridge-handler.js +234 -0
- package/dist/schema/call/bridge.d.ts +2212 -0
- package/dist/schema/call/bridge.js +408 -0
- package/dist/schema/call/handler.js +29 -15
- package/dist/schema/call/index.d.ts +1 -0
- package/dist/schema/call/index.js +1 -0
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -0
- package/dist/schema/messenger/index.d.ts +74 -74
- package/dist/schema/operations.d.ts +24302 -0
- package/dist/schema/operations.js +393 -0
- package/dist/schema-query/index.d.ts +3 -1
- package/dist/schema-query/index.js +63 -3
- package/dist/schemas/account_operation.output.json +1395 -0
- package/dist/schemas/bridge_operation.output.json +64 -0
- package/dist/schemas/bridge_operation.schema.json +547 -0
- package/dist/schemas/guard2file.output.json +84 -0
- package/dist/schemas/index.json +33 -14
- package/dist/schemas/local_info_operation.output.json +70 -0
- package/dist/schemas/local_mark_operation.output.json +114 -0
- package/dist/schemas/machineNode2file.output.json +89 -0
- package/dist/schemas/messenger_operation.output.json +1068 -0
- package/dist/schemas/onchain_events.output.json +513 -0
- package/dist/schemas/onchain_operations.output.json +1764 -0
- package/dist/schemas/onchain_operations.schema.json +8324 -49
- package/dist/schemas/onchain_table_data.output.json +1938 -0
- package/dist/schemas/onchain_table_data.schema.json +483 -22
- package/dist/schemas/query_toolkit.output.json +18 -0
- package/dist/schemas/query_toolkit.schema.json +454 -19
- package/dist/schemas/schema_query.output.json +42 -0
- package/dist/schemas/schema_query.schema.json +1 -0
- package/dist/schemas/wip_file.output.json +116 -0
- package/dist/schemas/wip_file.schema.json +163 -15
- package/dist/schemas/wowok_buildin_info.output.json +577 -0
- package/package.json +2 -2
|
@@ -6,30 +6,491 @@
|
|
|
6
6
|
"$ref": "#/definitions/onchain_table_data",
|
|
7
7
|
"definitions": {
|
|
8
8
|
"onchain_table_data": {
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"anyOf": [
|
|
12
|
+
{
|
|
13
|
+
"type": "object",
|
|
14
|
+
"properties": {
|
|
15
|
+
"query_type": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"const": "onchain_table"
|
|
18
|
+
},
|
|
19
|
+
"parent": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Parent object ID whose dynamic fields table to query"
|
|
22
|
+
},
|
|
23
|
+
"cursor": {
|
|
24
|
+
"type": [
|
|
25
|
+
"string",
|
|
26
|
+
"null"
|
|
27
|
+
],
|
|
28
|
+
"description": "Pagination cursor from previous page's nextCursor"
|
|
29
|
+
},
|
|
30
|
+
"limit": {
|
|
31
|
+
"type": [
|
|
32
|
+
"number",
|
|
33
|
+
"null"
|
|
34
|
+
],
|
|
35
|
+
"description": "Max items per page"
|
|
36
|
+
},
|
|
37
|
+
"no_cache": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
40
|
+
},
|
|
41
|
+
"network": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"enum": [
|
|
44
|
+
"localnet",
|
|
45
|
+
"testnet",
|
|
46
|
+
"mainnet"
|
|
47
|
+
],
|
|
48
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"query_type",
|
|
53
|
+
"parent"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"description": "Paginated query of an on-chain object's dynamic fields table — returns items with keys, types, and object IDs. Use to explore all entries (e.g., all orders in a Service, all records in a Repository). Returns: TableAnswer | undefined (items[], nextCursor, hasNextPage)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"query_type": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"const": "onchain_table_item_repository_data"
|
|
64
|
+
},
|
|
65
|
+
"parent": {
|
|
66
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
67
|
+
"description": "Parent Repository object ID"
|
|
68
|
+
},
|
|
69
|
+
"name": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Name/key of the record to retrieve from the repository"
|
|
72
|
+
},
|
|
73
|
+
"entity": {
|
|
74
|
+
"anyOf": [
|
|
75
|
+
{
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"name_or_address": {
|
|
79
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
80
|
+
"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)."
|
|
81
|
+
},
|
|
82
|
+
"local_mark_first": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"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."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "number"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"description": "Entity ID or address that owns/identifies the record"
|
|
95
|
+
},
|
|
96
|
+
"no_cache": {
|
|
97
|
+
"type": "boolean",
|
|
98
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
99
|
+
},
|
|
100
|
+
"network": {
|
|
101
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
102
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"required": [
|
|
106
|
+
"query_type",
|
|
107
|
+
"parent",
|
|
108
|
+
"name",
|
|
109
|
+
"entity"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"description": "Query a specific record from a Repository's on-chain key-value database by name and entity. Use to read stored data records. Returns: TableItem_RepositoryData | undefined"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"query_type": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"const": "onchain_table_item_permission_perm"
|
|
120
|
+
},
|
|
121
|
+
"parent": {
|
|
122
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
123
|
+
"description": "Parent Permission object ID"
|
|
124
|
+
},
|
|
125
|
+
"address": {
|
|
126
|
+
"anyOf": [
|
|
127
|
+
{
|
|
128
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"description": "User address or Guard ID whose permissions to check"
|
|
135
|
+
},
|
|
136
|
+
"no_cache": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
139
|
+
},
|
|
140
|
+
"network": {
|
|
141
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
142
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"query_type",
|
|
147
|
+
"parent",
|
|
148
|
+
"address"
|
|
149
|
+
],
|
|
150
|
+
"additionalProperties": false,
|
|
151
|
+
"description": "Query a permission entry from a Permission object's perm table — checks what operations a user/guard is allowed to perform. Use to verify access rights. Returns: TableItem_PermissionPerm | undefined"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"type": "object",
|
|
155
|
+
"properties": {
|
|
156
|
+
"query_type": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"const": "onchain_table_item_entity_registrar"
|
|
159
|
+
},
|
|
160
|
+
"address": {
|
|
161
|
+
"anyOf": [
|
|
162
|
+
{
|
|
163
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"description": "User address to look up in the global EntityRegistrar"
|
|
170
|
+
},
|
|
171
|
+
"no_cache": {
|
|
172
|
+
"type": "boolean",
|
|
173
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
174
|
+
},
|
|
175
|
+
"network": {
|
|
176
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
177
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"query_type",
|
|
182
|
+
"address"
|
|
183
|
+
],
|
|
184
|
+
"additionalProperties": false,
|
|
185
|
+
"description": "Query an entity's registration record from the global EntityRegistrar — verifies if an address is registered on the blockchain. Use to check registration status and details. Returns: TableItem_EntityRegistrar | undefined"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"type": "object",
|
|
189
|
+
"properties": {
|
|
190
|
+
"query_type": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"const": "onchain_table_item_entity_linker"
|
|
193
|
+
},
|
|
194
|
+
"address": {
|
|
195
|
+
"anyOf": [
|
|
196
|
+
{
|
|
197
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "string"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"description": "Entity address whose community votes/endorsements to query"
|
|
204
|
+
},
|
|
205
|
+
"no_cache": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
208
|
+
},
|
|
209
|
+
"network": {
|
|
210
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
211
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"required": [
|
|
215
|
+
"query_type",
|
|
216
|
+
"address"
|
|
217
|
+
],
|
|
218
|
+
"additionalProperties": false,
|
|
219
|
+
"description": "Query community votes/endorsements for an entity from the global EntityLinker — shows how others have voted on this entity. Use to check reputation and community trust. Returns: TableItem_EntityLinker | undefined"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "object",
|
|
223
|
+
"properties": {
|
|
224
|
+
"query_type": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"const": "onchain_table_item_reward_record"
|
|
227
|
+
},
|
|
228
|
+
"parent": {
|
|
229
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
230
|
+
"description": "Parent Reward object ID"
|
|
231
|
+
},
|
|
232
|
+
"address": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"name_or_address": {
|
|
236
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/name_or_address"
|
|
237
|
+
},
|
|
238
|
+
"local_mark_first": {
|
|
239
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/local_mark_first"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"additionalProperties": false,
|
|
243
|
+
"description": "User address that claimed the reward"
|
|
244
|
+
},
|
|
245
|
+
"no_cache": {
|
|
246
|
+
"type": "boolean",
|
|
247
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
248
|
+
},
|
|
249
|
+
"network": {
|
|
250
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
251
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": [
|
|
255
|
+
"query_type",
|
|
256
|
+
"parent",
|
|
257
|
+
"address"
|
|
258
|
+
],
|
|
259
|
+
"additionalProperties": false,
|
|
260
|
+
"description": "Query a reward claim record from a Reward object's table — checks if a user has claimed a specific incentive. Use to verify reward distribution status. Returns: TableItem_RewardRecord | undefined"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"anyOf": [
|
|
266
|
+
{
|
|
267
|
+
"type": "object",
|
|
268
|
+
"properties": {
|
|
269
|
+
"query_type": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"const": "onchain_table_item_demand_presenter"
|
|
272
|
+
},
|
|
273
|
+
"parent": {
|
|
274
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
275
|
+
"description": "Parent Demand object ID"
|
|
276
|
+
},
|
|
277
|
+
"address": {
|
|
278
|
+
"type": "object",
|
|
279
|
+
"properties": {
|
|
280
|
+
"name_or_address": {
|
|
281
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/name_or_address"
|
|
282
|
+
},
|
|
283
|
+
"local_mark_first": {
|
|
284
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/local_mark_first"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"additionalProperties": false,
|
|
288
|
+
"description": "Presenter address that submitted the demand"
|
|
289
|
+
},
|
|
290
|
+
"no_cache": {
|
|
291
|
+
"type": "boolean",
|
|
292
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
293
|
+
},
|
|
294
|
+
"network": {
|
|
295
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
296
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": [
|
|
300
|
+
"query_type",
|
|
301
|
+
"parent",
|
|
302
|
+
"address"
|
|
303
|
+
],
|
|
304
|
+
"additionalProperties": false,
|
|
305
|
+
"description": "Query a demand submission from a Demand object's table — Demands are service requests submitted by users. Use to check a specific demand's details. Returns: TableItem_DemandPresenter | undefined"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"query_type": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"const": "onchain_table_item_treasury_history"
|
|
313
|
+
},
|
|
314
|
+
"parent": {
|
|
315
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
316
|
+
"description": "Parent Treasury object ID"
|
|
317
|
+
},
|
|
318
|
+
"address": {
|
|
319
|
+
"type": "object",
|
|
320
|
+
"properties": {
|
|
321
|
+
"name_or_address": {
|
|
322
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/name_or_address"
|
|
323
|
+
},
|
|
324
|
+
"local_mark_first": {
|
|
325
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/local_mark_first"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"additionalProperties": false,
|
|
329
|
+
"description": "Payment ID whose treasury record to look up"
|
|
330
|
+
},
|
|
331
|
+
"no_cache": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
334
|
+
},
|
|
335
|
+
"network": {
|
|
336
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
337
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"query_type",
|
|
342
|
+
"parent",
|
|
343
|
+
"address"
|
|
344
|
+
],
|
|
345
|
+
"additionalProperties": false,
|
|
346
|
+
"description": "Query a payment record from a Treasury's history table by payment ID — Treasury manages funds and payment tracking. Use to look up payment details and status. Returns: TableItem_TreasuryHistory | undefined"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"type": "object",
|
|
350
|
+
"properties": {
|
|
351
|
+
"query_type": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"const": "onchain_table_item_machine_node"
|
|
354
|
+
},
|
|
355
|
+
"parent": {
|
|
356
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
357
|
+
"description": "Parent Machine object ID"
|
|
358
|
+
},
|
|
359
|
+
"key": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "Node name (string key) to query in the Machine's workflow definition"
|
|
362
|
+
},
|
|
363
|
+
"no_cache": {
|
|
364
|
+
"type": "boolean",
|
|
365
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
366
|
+
},
|
|
367
|
+
"network": {
|
|
368
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
369
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"required": [
|
|
373
|
+
"query_type",
|
|
374
|
+
"parent",
|
|
375
|
+
"key"
|
|
376
|
+
],
|
|
377
|
+
"additionalProperties": false,
|
|
378
|
+
"description": "Query a workflow node definition from a Machine object's table by node name — Machines define workflow templates. Use to inspect a specific node's configuration and logic. Returns: TableItem_MachineNode | undefined"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"query_type": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"const": "onchain_table_item_progress_history"
|
|
386
|
+
},
|
|
387
|
+
"parent": {
|
|
388
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
389
|
+
"description": "Parent Progress object ID"
|
|
390
|
+
},
|
|
391
|
+
"u64": {
|
|
392
|
+
"type": [
|
|
393
|
+
"number",
|
|
394
|
+
"string"
|
|
395
|
+
],
|
|
396
|
+
"description": "Sequence number (u64) of the progress step to query"
|
|
397
|
+
},
|
|
398
|
+
"no_cache": {
|
|
399
|
+
"type": "boolean",
|
|
400
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
401
|
+
},
|
|
402
|
+
"network": {
|
|
403
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
404
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"query_type",
|
|
409
|
+
"parent",
|
|
410
|
+
"u64"
|
|
411
|
+
],
|
|
412
|
+
"additionalProperties": false,
|
|
413
|
+
"description": "Query a progress step record from a Progress object's table by sequence number — Progress tracks order/workflow execution. Use to check the status of a specific execution step. Returns: TableItem_ProgressHistory | undefined"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"type": "object",
|
|
417
|
+
"properties": {
|
|
418
|
+
"query_type": {
|
|
419
|
+
"type": "string",
|
|
420
|
+
"const": "onchain_table_item_address_mark"
|
|
421
|
+
},
|
|
422
|
+
"parent": {
|
|
423
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
424
|
+
"description": "Parent AddressMark object ID"
|
|
425
|
+
},
|
|
426
|
+
"address": {
|
|
427
|
+
"type": "object",
|
|
428
|
+
"properties": {
|
|
429
|
+
"name_or_address": {
|
|
430
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/name_or_address"
|
|
431
|
+
},
|
|
432
|
+
"local_mark_first": {
|
|
433
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/1/properties/entity/anyOf/0/properties/local_mark_first"
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"additionalProperties": false,
|
|
437
|
+
"description": "Address whose PUBLIC on-chain name/tags to look up"
|
|
438
|
+
},
|
|
439
|
+
"no_cache": {
|
|
440
|
+
"type": "boolean",
|
|
441
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
442
|
+
},
|
|
443
|
+
"network": {
|
|
444
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
445
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"required": [
|
|
449
|
+
"query_type",
|
|
450
|
+
"parent",
|
|
451
|
+
"address"
|
|
452
|
+
],
|
|
453
|
+
"additionalProperties": false,
|
|
454
|
+
"description": "Query a PUBLIC on-chain name/tag mark for an address — unlike local marks, these are published on-chain. Use to look up public labels attached to any address. Returns: TableItem_AddressMark | undefined"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "object",
|
|
458
|
+
"properties": {
|
|
459
|
+
"query_type": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"const": "onchain_table_item_generic"
|
|
462
|
+
},
|
|
463
|
+
"parent": {
|
|
464
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/parent",
|
|
465
|
+
"description": "Parent object ID whose dynamic field to query"
|
|
466
|
+
},
|
|
467
|
+
"key_type": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"description": "Type of the key (e.g., 'address', 'u64', 'string', '0x2::object::ID')"
|
|
470
|
+
},
|
|
471
|
+
"key_value": {
|
|
472
|
+
"description": "Value of the key. Must match the key_type format"
|
|
473
|
+
},
|
|
474
|
+
"no_cache": {
|
|
475
|
+
"type": "boolean",
|
|
476
|
+
"description": "Set to true to bypass cache and fetch fresh on-chain data"
|
|
477
|
+
},
|
|
478
|
+
"network": {
|
|
479
|
+
"$ref": "#/definitions/onchain_table_data/anyOf/0/anyOf/0/properties/network",
|
|
480
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"required": [
|
|
484
|
+
"query_type",
|
|
485
|
+
"parent",
|
|
486
|
+
"key_type"
|
|
487
|
+
],
|
|
488
|
+
"additionalProperties": false,
|
|
489
|
+
"description": "Query a generic table item from ANY object's dynamic fields — supports arbitrary key types and values for non-WoWok objects. Use for custom objects and general-purpose table lookups. Returns: ObjectBase | undefined"
|
|
490
|
+
}
|
|
26
491
|
]
|
|
27
492
|
}
|
|
28
|
-
|
|
29
|
-
"required": [
|
|
30
|
-
"query_type"
|
|
31
|
-
],
|
|
32
|
-
"additionalProperties": false
|
|
493
|
+
]
|
|
33
494
|
}
|
|
34
495
|
}
|
|
35
496
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/query_toolkit.json",
|
|
4
|
+
"title": "Data Query Toolkit",
|
|
5
|
+
"description": "Query local and on-chain data",
|
|
6
|
+
"$ref": "#/definitions/query_toolkit",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"query_toolkit": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"result": {
|
|
12
|
+
"description": "Query result — type depends on query_type. Local queries return arrays (MarkData[], AccountData[], InfoData[], TokenTypeInfo[]). account_balance returns { address, balance? | coin? }. Onchain queries return typed objects or undefined. onchain_received returns ReceivedBalance | ReceivedNormal[]."
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|