@skyblock-finance/actions 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,147 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema",
3
+ "additionalProperties": false,
4
+ "definitions": {
5
+ "currencyAction": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "amount": {
9
+ "type": "number"
10
+ },
11
+ "id": {
12
+ "enum": ["bit", "coin", "gem", "mote", "north-star", "usd"],
13
+ "type": "string"
14
+ },
15
+ "type": {
16
+ "const": "currency"
17
+ }
18
+ },
19
+ "required": ["amount", "id", "type"]
20
+ },
21
+ "itemAction": {
22
+ "additionalProperties": false,
23
+ "properties": {
24
+ "amount": {
25
+ "type": "number"
26
+ },
27
+ "id": {
28
+ "type": "string"
29
+ },
30
+ "type": {
31
+ "const": "item"
32
+ }
33
+ },
34
+ "required": ["id", "amount", "type"],
35
+ "type": "object"
36
+ }
37
+ },
38
+ "properties": {
39
+ "$schema": {
40
+ "type": "string"
41
+ },
42
+ "actions": {
43
+ "items": {
44
+ "additionalProperties": false,
45
+ "properties": {
46
+ "inputs": {
47
+ "items": {
48
+ "oneOf": [
49
+ { "$ref": "#/definitions/currencyAction" },
50
+ { "$ref": "#/definitions/itemAction" }
51
+ ],
52
+ "type": "object"
53
+ },
54
+ "type": "array"
55
+ },
56
+ "outputs": {
57
+ "items": {
58
+ "oneOf": [
59
+ { "$ref": "#/definitions/currencyAction" },
60
+ { "$ref": "#/definitions/itemAction" }
61
+ ],
62
+ "type": "object"
63
+ },
64
+ "type": "array"
65
+ },
66
+ "place": {
67
+ "items": {
68
+ "oneOf": [
69
+ {
70
+ "additionalProperties": false,
71
+ "properties": {
72
+ "id": {
73
+ "type": "string"
74
+ },
75
+ "type": {
76
+ "const": "item"
77
+ }
78
+ },
79
+ "required": ["id", "type"],
80
+ "type": "object"
81
+ },
82
+ {
83
+ "additionalProperties": false,
84
+ "properties": {
85
+ "id": {
86
+ "type": "string"
87
+ },
88
+ "type": {
89
+ "const": "npc"
90
+ }
91
+ },
92
+ "required": ["id", "type"],
93
+ "type": "object"
94
+ },
95
+ {
96
+ "additionalProperties": false,
97
+ "properties": {
98
+ "type": {
99
+ "const": "website"
100
+ },
101
+ "url": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "required": ["type", "url"],
106
+ "type": "object"
107
+ },
108
+ {
109
+ "additionalProperties": false,
110
+ "properties": {
111
+ "grid": {
112
+ "items": {
113
+ "maxLength": 9,
114
+ "minLength": 9,
115
+ "oneOf": [
116
+ { "$ref": "#/definitions/itemAction" },
117
+ { "type": "null" }
118
+ ]
119
+ },
120
+ "type": "array"
121
+ },
122
+ "type": {
123
+ "const": "workbench"
124
+ }
125
+ },
126
+ "required": ["type"],
127
+ "type": "object"
128
+ }
129
+ ],
130
+ "type": "object"
131
+ },
132
+ "type": "array"
133
+ },
134
+ "requirements": {
135
+ "items": {},
136
+ "type": "array"
137
+ }
138
+ },
139
+ "required": ["inputs", "outputs", "place"],
140
+ "type": "object"
141
+ },
142
+ "type": "array"
143
+ }
144
+ },
145
+ "required": ["actions"],
146
+ "type": "object"
147
+ }