@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,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/guard2file.json",
|
|
4
|
+
"title": "Guard to File",
|
|
5
|
+
"description": "Export Guard definition to JSON/Markdown file",
|
|
6
|
+
"$ref": "#/definitions/guard2file",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"guard2file": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"guard": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Guard object ID or name to export"
|
|
14
|
+
},
|
|
15
|
+
"file_path": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Output file path (absolute or relative)"
|
|
18
|
+
},
|
|
19
|
+
"format": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"json",
|
|
23
|
+
"markdown"
|
|
24
|
+
],
|
|
25
|
+
"description": "Output format: 'json' (default) or 'markdown'"
|
|
26
|
+
},
|
|
27
|
+
"env": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"account": {
|
|
31
|
+
"$ref": "#/definitions/guard2file/properties/guard",
|
|
32
|
+
"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).",
|
|
33
|
+
"default": ""
|
|
34
|
+
},
|
|
35
|
+
"permission_guard": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
41
|
+
},
|
|
42
|
+
"no_cache": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Whether to disable caching."
|
|
45
|
+
},
|
|
46
|
+
"network": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"localnet",
|
|
50
|
+
"testnet"
|
|
51
|
+
],
|
|
52
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
53
|
+
},
|
|
54
|
+
"referrer": {
|
|
55
|
+
"$ref": "#/definitions/guard2file/properties/env/properties/account",
|
|
56
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"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."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"guard",
|
|
65
|
+
"file_path"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"description": "Query a Guard object from the blockchain and export its definition to a JSON or Markdown file. The exported file can be edited and used to create new Guard objects."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "WoWok MCP Schema Index",
|
|
4
|
+
"description": "Index of all available JSON schemas for WoWok MCP tools",
|
|
5
|
+
"generatedAt": "2026-05-19T05:26:18.541Z",
|
|
6
|
+
"tools": [
|
|
7
|
+
{
|
|
8
|
+
"name": "onchain_operations",
|
|
9
|
+
"title": "On-chain Operations",
|
|
10
|
+
"path": "./onchain_operations.schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "account_operation",
|
|
14
|
+
"title": "Account Operations",
|
|
15
|
+
"path": "./account_operation.schema.json"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "local_mark_operation",
|
|
19
|
+
"title": "Local Mark Operations",
|
|
20
|
+
"path": "./local_mark_operation.schema.json"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "local_info_operation",
|
|
24
|
+
"title": "Local Info Operations",
|
|
25
|
+
"path": "./local_info_operation.schema.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "wip_file",
|
|
29
|
+
"title": "WIP File Operations",
|
|
30
|
+
"path": "./wip_file.schema.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "messenger_operation",
|
|
34
|
+
"title": "Messenger Operations",
|
|
35
|
+
"path": "./messenger_operation.schema.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "guard2file",
|
|
39
|
+
"title": "Guard to File",
|
|
40
|
+
"path": "./guard2file.schema.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "machineNode2file",
|
|
44
|
+
"title": "Machine Node to File",
|
|
45
|
+
"path": "./machineNode2file.schema.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "query_toolkit",
|
|
49
|
+
"title": "Data Query Toolkit",
|
|
50
|
+
"path": "./query_toolkit.schema.json"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "onchain_table_data",
|
|
54
|
+
"title": "On-chain Table Data Query",
|
|
55
|
+
"path": "./onchain_table_data.schema.json"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "onchain_events",
|
|
59
|
+
"title": "On-chain Events",
|
|
60
|
+
"path": "./onchain_events.schema.json"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "wowok_buildin_info",
|
|
64
|
+
"title": "WoWok Build-in Information",
|
|
65
|
+
"path": "./wowok_buildin_info.schema.json"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "schema_query",
|
|
69
|
+
"title": "Schema Query",
|
|
70
|
+
"path": "./schema_query.schema.json"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"operations": [
|
|
74
|
+
{
|
|
75
|
+
"name": "onchain_operations_permission",
|
|
76
|
+
"path": "./onchain_operations_permission.schema.json"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "onchain_operations_service",
|
|
80
|
+
"path": "./onchain_operations_service.schema.json"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "onchain_operations_machine",
|
|
84
|
+
"path": "./onchain_operations_machine.schema.json"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "onchain_operations_progress",
|
|
88
|
+
"path": "./onchain_operations_progress.schema.json"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "onchain_operations_guard",
|
|
92
|
+
"path": "./onchain_operations_guard.schema.json"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "onchain_operations_arbitration",
|
|
96
|
+
"path": "./onchain_operations_arbitration.schema.json"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "onchain_operations_repository",
|
|
100
|
+
"path": "./onchain_operations_repository.schema.json"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "onchain_operations_contact",
|
|
104
|
+
"path": "./onchain_operations_contact.schema.json"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "onchain_operations_treasury",
|
|
108
|
+
"path": "./onchain_operations_treasury.schema.json"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "onchain_operations_reward",
|
|
112
|
+
"path": "./onchain_operations_reward.schema.json"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"name": "onchain_operations_allocation",
|
|
116
|
+
"path": "./onchain_operations_allocation.schema.json"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "onchain_operations_personal",
|
|
120
|
+
"path": "./onchain_operations_personal.schema.json"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "onchain_operations_payment",
|
|
124
|
+
"path": "./onchain_operations_payment.schema.json"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "onchain_operations_demand",
|
|
128
|
+
"path": "./onchain_operations_demand.schema.json"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "onchain_operations_order",
|
|
132
|
+
"path": "./onchain_operations_order.schema.json"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "onchain_operations_gen_passport",
|
|
136
|
+
"path": "./onchain_operations_gen_passport.schema.json"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/local_info_operation.json",
|
|
4
|
+
"title": "Local Info Operations",
|
|
5
|
+
"description": "Manage sensitive personal information locally",
|
|
6
|
+
"$ref": "#/definitions/local_info_operation",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"local_info_operation": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"add": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"op": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "add",
|
|
17
|
+
"description": "Operation type: add info"
|
|
18
|
+
},
|
|
19
|
+
"data": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"default": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"maxLength": 300,
|
|
27
|
+
"description": "Primary/default value for this info (max 300 bcs characters)"
|
|
28
|
+
},
|
|
29
|
+
"contents": {
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"maxLength": 300
|
|
34
|
+
},
|
|
35
|
+
"maxItems": 50,
|
|
36
|
+
"description": "Additional content values (max 50 items, each max 300 bcs characters)"
|
|
37
|
+
},
|
|
38
|
+
"createdAt": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"description": "Unix timestamp (ms) when this info was created"
|
|
41
|
+
},
|
|
42
|
+
"updatedAt": {
|
|
43
|
+
"type": "number",
|
|
44
|
+
"description": "Unix timestamp (ms) when this info was last modified"
|
|
45
|
+
},
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"maxLength": 64,
|
|
49
|
+
"description": "Unique identifier for this info entry (max 64 bcs characters)"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"default",
|
|
54
|
+
"name"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"description": "LOCAL PRIVATE: Local info data structure for storing sensitive personal information like delivery addresses, phone numbers, etc. This data is stored ONLY on your device and NEVER published to the blockchain."
|
|
58
|
+
},
|
|
59
|
+
"minItems": 1,
|
|
60
|
+
"description": "Array of info data to add (at least 1 item)"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"op",
|
|
65
|
+
"data"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"description": "Add one or more info entries"
|
|
69
|
+
},
|
|
70
|
+
"remove": {
|
|
71
|
+
"type": "object",
|
|
72
|
+
"properties": {
|
|
73
|
+
"op": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"const": "remove",
|
|
76
|
+
"description": "Operation type: remove info"
|
|
77
|
+
},
|
|
78
|
+
"data": {
|
|
79
|
+
"type": "array",
|
|
80
|
+
"items": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"minItems": 1,
|
|
84
|
+
"description": "Array of info names to remove"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"op",
|
|
89
|
+
"data"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"description": "Remove info entries by name"
|
|
93
|
+
},
|
|
94
|
+
"reset": {
|
|
95
|
+
"type": "object",
|
|
96
|
+
"properties": {
|
|
97
|
+
"op": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"const": "reset",
|
|
100
|
+
"description": "Operation type: reset contents"
|
|
101
|
+
},
|
|
102
|
+
"name": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Name of info entry to reset"
|
|
105
|
+
},
|
|
106
|
+
"contents": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"description": "New content list to replace existing contents"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"required": [
|
|
115
|
+
"op",
|
|
116
|
+
"name",
|
|
117
|
+
"contents"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"description": "Reset the contents of an existing info entry"
|
|
121
|
+
},
|
|
122
|
+
"clear": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"op": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"const": "clear",
|
|
128
|
+
"description": "Operation type: clear all info"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": [
|
|
132
|
+
"op"
|
|
133
|
+
],
|
|
134
|
+
"additionalProperties": false,
|
|
135
|
+
"description": "Remove all info entries"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"description": "Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified."
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/local_mark_operation.json",
|
|
4
|
+
"title": "Local Mark Operations",
|
|
5
|
+
"description": "Manage ID names and tags stored locally",
|
|
6
|
+
"$ref": "#/definitions/local_mark_operation",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"local_mark_operation": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"add": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"op": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "add",
|
|
17
|
+
"description": "Operation type: add marks"
|
|
18
|
+
},
|
|
19
|
+
"data": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"name": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"value": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"maxLength": 64,
|
|
30
|
+
"description": "Mark name value (max 64 bcs characters)"
|
|
31
|
+
},
|
|
32
|
+
"replaceExistName": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"description": "If true, replace existing mark with same name; if false (default), throw error when name exists"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"required": [
|
|
39
|
+
"value"
|
|
40
|
+
],
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"description": "Mark naming configuration"
|
|
43
|
+
},
|
|
44
|
+
"address": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "Valid ID: 0x prefix + 64 hex characters, or builtin ID (0x5-0x9, @0xaaa, @0xaab, @0x403, @0xacc, @0xc)"
|
|
47
|
+
},
|
|
48
|
+
"tags": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"maxLength": 64
|
|
53
|
+
},
|
|
54
|
+
"maxItems": 50,
|
|
55
|
+
"description": "Tags for categorization (max 50 tags, each max 64 bcs characters)"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"required": [
|
|
59
|
+
"address"
|
|
60
|
+
],
|
|
61
|
+
"additionalProperties": false,
|
|
62
|
+
"description": "LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. For public on-chain marks, use the 'personal' tool instead."
|
|
63
|
+
},
|
|
64
|
+
"minItems": 1,
|
|
65
|
+
"description": "Array of mark data to add (at least 1 item)"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"op",
|
|
70
|
+
"data"
|
|
71
|
+
],
|
|
72
|
+
"additionalProperties": false,
|
|
73
|
+
"description": "Add one or more marks"
|
|
74
|
+
},
|
|
75
|
+
"remove": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"properties": {
|
|
78
|
+
"op": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"const": "remove",
|
|
81
|
+
"description": "Operation type: remove marks"
|
|
82
|
+
},
|
|
83
|
+
"names": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"minItems": 1,
|
|
89
|
+
"description": "Array of mark names or addresses to remove"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"required": [
|
|
93
|
+
"op",
|
|
94
|
+
"names"
|
|
95
|
+
],
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"description": "Remove marks by name or address"
|
|
98
|
+
},
|
|
99
|
+
"clear": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"properties": {
|
|
102
|
+
"op": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"const": "clear",
|
|
105
|
+
"description": "Operation type: clear all marks"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"op"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"description": "Remove all marks"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"additionalProperties": false,
|
|
116
|
+
"description": "Local mark operations. Exactly one operation type (add/remove/clear) must be specified."
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/machineNode2file.json",
|
|
4
|
+
"title": "Machine Node to File",
|
|
5
|
+
"description": "Export Machine node definition to JSON/Markdown file",
|
|
6
|
+
"$ref": "#/definitions/machineNode2file",
|
|
7
|
+
"definitions": {
|
|
8
|
+
"machineNode2file": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"machine": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Machine object ID or name to export"
|
|
14
|
+
},
|
|
15
|
+
"file_path": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Output file path (absolute or relative)"
|
|
18
|
+
},
|
|
19
|
+
"format": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"json",
|
|
23
|
+
"markdown"
|
|
24
|
+
],
|
|
25
|
+
"description": "Output format: 'json' (default) or 'markdown'"
|
|
26
|
+
},
|
|
27
|
+
"env": {
|
|
28
|
+
"type": "object",
|
|
29
|
+
"properties": {
|
|
30
|
+
"account": {
|
|
31
|
+
"$ref": "#/definitions/machineNode2file/properties/machine",
|
|
32
|
+
"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).",
|
|
33
|
+
"default": ""
|
|
34
|
+
},
|
|
35
|
+
"permission_guard": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
|
|
41
|
+
},
|
|
42
|
+
"no_cache": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Whether to disable caching."
|
|
45
|
+
},
|
|
46
|
+
"network": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"localnet",
|
|
50
|
+
"testnet"
|
|
51
|
+
],
|
|
52
|
+
"description": "Network entrypoint: Specifies which network the operation occurs on"
|
|
53
|
+
},
|
|
54
|
+
"referrer": {
|
|
55
|
+
"$ref": "#/definitions/machineNode2file/properties/env/properties/account",
|
|
56
|
+
"description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"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."
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"machine",
|
|
65
|
+
"file_path"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"description": "Query a Machine object from the blockchain and export its node definition to a JSON or Markdown file. The exported file can be edited and used to create new Machine objects."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|