5etools-utils 0.16.35 → 0.16.36

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.
@@ -1,9 +1,112 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "type": "object",
6
6
  "$defs": {
7
+ "_deckSpreadOutcomesCardMap": {
8
+ "type": "object",
9
+ "propertyNames": {
10
+ "pattern": "^[^A-Z|]+\\|[^A-Z|]+\\|[^A-Z|]+$"
11
+ },
12
+ "additionalProperties": {
13
+ "type": "string"
14
+ },
15
+ "minProperties": 1
16
+ },
17
+ "_deckSpreadOutcomesCorpusMap": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "$ref": "#/$defs/_deckSpreadOutcomesCardMap"
21
+ },
22
+ "minProperties": 1
23
+ },
24
+ "_deckSpreadOutcomes": {
25
+ "type": "object",
26
+ "properties": {
27
+ "adventure": {
28
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
29
+ },
30
+ "book": {
31
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
32
+ }
33
+ },
34
+ "minProperties": 1,
35
+ "additionalProperties": false
36
+ },
37
+ "_deckSpreadPosition": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "entries": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "entry.json"
47
+ },
48
+ "minItems": 1
49
+ },
50
+ "suits": {
51
+ "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
52
+ "type": "array",
53
+ "items": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "minItems": 1,
60
+ "uniqueItems": true
61
+ },
62
+ "outcomes": {
63
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
64
+ "$ref": "#/$defs/_deckSpreadOutcomes"
65
+ }
66
+ },
67
+ "required": [
68
+ "name",
69
+ "entries"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "_deckSpread": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string"
78
+ },
79
+ "source": {
80
+ "$ref": "util.json#/$defs/source"
81
+ },
82
+ "page": {
83
+ "$ref": "util.json#/$defs/page"
84
+ },
85
+ "entries": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "entry.json"
89
+ }
90
+ },
91
+ "positions": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/_deckSpreadPosition"
95
+ },
96
+ "minItems": 1
97
+ },
98
+ "outcomes": {
99
+ "$comment": "Card outcomes shared by all positions.",
100
+ "$ref": "#/$defs/_deckSpreadOutcomes"
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "source",
106
+ "positions"
107
+ ],
108
+ "additionalProperties": false
109
+ },
7
110
  "deckData": {
8
111
  "type": "object",
9
112
  "properties": {
@@ -65,6 +168,14 @@
65
168
  "$ref": "entry.json"
66
169
  }
67
170
  },
171
+ "spreads": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "#/$defs/_deckSpread"
175
+ },
176
+ "minItems": 1,
177
+ "uniqueItems": true
178
+ },
68
179
  "back": {
69
180
  "$ref": "entry.json#/$defs/entryImage"
70
181
  },
@@ -139,6 +250,14 @@
139
250
  "$ref": "entry.json"
140
251
  }
141
252
  },
253
+ "spreads": {
254
+ "type": "array",
255
+ "items": {
256
+ "$ref": "#/$defs/_deckSpread"
257
+ },
258
+ "minItems": 1,
259
+ "uniqueItems": true
260
+ },
142
261
  "back": {
143
262
  "$ref": "entry.json#/$defs/entryImage"
144
263
  },
@@ -216,6 +335,14 @@
216
335
  "$ref": "entry.json"
217
336
  }
218
337
  },
338
+ "spreads": {
339
+ "type": "array",
340
+ "items": {
341
+ "$ref": "#/$defs/_deckSpread"
342
+ },
343
+ "minItems": 1,
344
+ "uniqueItems": true
345
+ },
219
346
  "back": {
220
347
  "$ref": "entry.json#/$defs/entryImage"
221
348
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.10.00",
6
+ "version": "1.10.1",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3741,34 +3741,76 @@
3741
3741
  "additionalProperties": false
3742
3742
  },
3743
3743
  "entryWrapped": {
3744
- "type": "object",
3745
- "properties": {
3746
- "name": {
3747
- "type": "string"
3748
- },
3749
- "type": {
3750
- "type": "string",
3751
- "const": "wrapper"
3752
- },
3753
- "source": {
3754
- "$ref": "util.json#/$defs/source"
3755
- },
3756
- "page": {
3757
- "$ref": "util.json#/$defs/page"
3758
- },
3759
- "data": {
3760
- "$ref": "#/$defs/_entryDataData"
3761
- },
3762
- "id": {
3763
- "type": "string"
3744
+ "oneOf": [
3745
+ {
3746
+ "type": "object",
3747
+ "properties": {
3748
+ "name": {
3749
+ "type": "string"
3750
+ },
3751
+ "type": {
3752
+ "type": "string",
3753
+ "const": "wrapper"
3754
+ },
3755
+ "source": {
3756
+ "$ref": "util.json#/$defs/source"
3757
+ },
3758
+ "page": {
3759
+ "$ref": "util.json#/$defs/page"
3760
+ },
3761
+ "data": {
3762
+ "$ref": "#/$defs/_entryDataData"
3763
+ },
3764
+ "id": {
3765
+ "type": "string"
3766
+ },
3767
+ "wrapped": {
3768
+ "$ref": "#"
3769
+ }
3770
+ },
3771
+ "required": [
3772
+ "type",
3773
+ "wrapped"
3774
+ ],
3775
+ "additionalProperties": false
3764
3776
  },
3765
- "wrapped": {}
3766
- },
3767
- "required": [
3768
- "type",
3769
- "wrapped"
3770
- ],
3771
- "additionalProperties": false
3777
+ {
3778
+ "type": "object",
3779
+ "properties": {
3780
+ "name": {
3781
+ "type": "string"
3782
+ },
3783
+ "type": {
3784
+ "type": "string",
3785
+ "const": "wrapper"
3786
+ },
3787
+ "source": {
3788
+ "$ref": "util.json#/$defs/source"
3789
+ },
3790
+ "page": {
3791
+ "$ref": "util.json#/$defs/page"
3792
+ },
3793
+ "data": {
3794
+ "$ref": "#/$defs/_entryDataData"
3795
+ },
3796
+ "id": {
3797
+ "type": "string"
3798
+ },
3799
+ "wrappeds": {
3800
+ "type": "array",
3801
+ "items": {
3802
+ "$ref": "#"
3803
+ },
3804
+ "minItems": 1
3805
+ }
3806
+ },
3807
+ "required": [
3808
+ "type",
3809
+ "wrappeds"
3810
+ ],
3811
+ "additionalProperties": false
3812
+ }
3813
+ ]
3772
3814
  },
3773
3815
  "dataDamImmune": {
3774
3816
  "oneOf": [
@@ -1,9 +1,112 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "type": "object",
6
6
  "$defs": {
7
+ "_deckSpreadOutcomesCardMap": {
8
+ "type": "object",
9
+ "propertyNames": {
10
+ "pattern": "^[^A-Z|]+\\|[^A-Z|]+\\|[^A-Z|]+$"
11
+ },
12
+ "additionalProperties": {
13
+ "type": "string"
14
+ },
15
+ "minProperties": 1
16
+ },
17
+ "_deckSpreadOutcomesCorpusMap": {
18
+ "type": "object",
19
+ "additionalProperties": {
20
+ "$ref": "#/$defs/_deckSpreadOutcomesCardMap"
21
+ },
22
+ "minProperties": 1
23
+ },
24
+ "_deckSpreadOutcomes": {
25
+ "type": "object",
26
+ "properties": {
27
+ "adventure": {
28
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
29
+ },
30
+ "book": {
31
+ "$ref": "#/$defs/_deckSpreadOutcomesCorpusMap"
32
+ }
33
+ },
34
+ "minProperties": 1,
35
+ "additionalProperties": false
36
+ },
37
+ "_deckSpreadPosition": {
38
+ "type": "object",
39
+ "properties": {
40
+ "name": {
41
+ "type": "string"
42
+ },
43
+ "entries": {
44
+ "type": "array",
45
+ "items": {
46
+ "$ref": "entry.json"
47
+ },
48
+ "minItems": 1
49
+ },
50
+ "suits": {
51
+ "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
52
+ "type": "array",
53
+ "items": {
54
+ "type": [
55
+ "string",
56
+ "null"
57
+ ]
58
+ },
59
+ "minItems": 1,
60
+ "uniqueItems": true
61
+ },
62
+ "outcomes": {
63
+ "$comment": "Card outcomes specific to this position. These override spread-level outcomes.",
64
+ "$ref": "#/$defs/_deckSpreadOutcomes"
65
+ }
66
+ },
67
+ "required": [
68
+ "name",
69
+ "entries"
70
+ ],
71
+ "additionalProperties": false
72
+ },
73
+ "_deckSpread": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string"
78
+ },
79
+ "source": {
80
+ "$ref": "util.json#/$defs/source"
81
+ },
82
+ "page": {
83
+ "$ref": "util.json#/$defs/page"
84
+ },
85
+ "entries": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "entry.json"
89
+ }
90
+ },
91
+ "positions": {
92
+ "type": "array",
93
+ "items": {
94
+ "$ref": "#/$defs/_deckSpreadPosition"
95
+ },
96
+ "minItems": 1
97
+ },
98
+ "outcomes": {
99
+ "$comment": "Card outcomes shared by all positions.",
100
+ "$ref": "#/$defs/_deckSpreadOutcomes"
101
+ }
102
+ },
103
+ "required": [
104
+ "name",
105
+ "source",
106
+ "positions"
107
+ ],
108
+ "additionalProperties": false
109
+ },
7
110
  "deckData": {
8
111
  "type": "object",
9
112
  "properties": {
@@ -65,6 +168,14 @@
65
168
  "$ref": "entry.json"
66
169
  }
67
170
  },
171
+ "spreads": {
172
+ "type": "array",
173
+ "items": {
174
+ "$ref": "#/$defs/_deckSpread"
175
+ },
176
+ "minItems": 1,
177
+ "uniqueItems": true
178
+ },
68
179
  "back": {
69
180
  "$ref": "entry.json#/$defs/entryImage"
70
181
  },
@@ -139,6 +250,14 @@
139
250
  "$ref": "entry.json"
140
251
  }
141
252
  },
253
+ "spreads": {
254
+ "type": "array",
255
+ "items": {
256
+ "$ref": "#/$defs/_deckSpread"
257
+ },
258
+ "minItems": 1,
259
+ "uniqueItems": true
260
+ },
142
261
  "back": {
143
262
  "$ref": "entry.json#/$defs/entryImage"
144
263
  },
@@ -216,6 +335,14 @@
216
335
  "$ref": "entry.json"
217
336
  }
218
337
  },
338
+ "spreads": {
339
+ "type": "array",
340
+ "items": {
341
+ "$ref": "#/$defs/_deckSpread"
342
+ },
343
+ "minItems": 1,
344
+ "uniqueItems": true
345
+ },
219
346
  "back": {
220
347
  "$ref": "entry.json#/$defs/entryImage"
221
348
  },
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.10.00",
6
+ "version": "1.10.1",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3741,34 +3741,76 @@
3741
3741
  "additionalProperties": false
3742
3742
  },
3743
3743
  "entryWrapped": {
3744
- "type": "object",
3745
- "properties": {
3746
- "name": {
3747
- "type": "string"
3748
- },
3749
- "type": {
3750
- "type": "string",
3751
- "const": "wrapper"
3752
- },
3753
- "source": {
3754
- "$ref": "util.json#/$defs/source"
3755
- },
3756
- "page": {
3757
- "$ref": "util.json#/$defs/page"
3758
- },
3759
- "data": {
3760
- "$ref": "#/$defs/_entryDataData"
3761
- },
3762
- "id": {
3763
- "type": "string"
3744
+ "oneOf": [
3745
+ {
3746
+ "type": "object",
3747
+ "properties": {
3748
+ "name": {
3749
+ "type": "string"
3750
+ },
3751
+ "type": {
3752
+ "type": "string",
3753
+ "const": "wrapper"
3754
+ },
3755
+ "source": {
3756
+ "$ref": "util.json#/$defs/source"
3757
+ },
3758
+ "page": {
3759
+ "$ref": "util.json#/$defs/page"
3760
+ },
3761
+ "data": {
3762
+ "$ref": "#/$defs/_entryDataData"
3763
+ },
3764
+ "id": {
3765
+ "type": "string"
3766
+ },
3767
+ "wrapped": {
3768
+ "$ref": "#"
3769
+ }
3770
+ },
3771
+ "required": [
3772
+ "type",
3773
+ "wrapped"
3774
+ ],
3775
+ "additionalProperties": false
3764
3776
  },
3765
- "wrapped": {}
3766
- },
3767
- "required": [
3768
- "type",
3769
- "wrapped"
3770
- ],
3771
- "additionalProperties": false
3777
+ {
3778
+ "type": "object",
3779
+ "properties": {
3780
+ "name": {
3781
+ "type": "string"
3782
+ },
3783
+ "type": {
3784
+ "type": "string",
3785
+ "const": "wrapper"
3786
+ },
3787
+ "source": {
3788
+ "$ref": "util.json#/$defs/source"
3789
+ },
3790
+ "page": {
3791
+ "$ref": "util.json#/$defs/page"
3792
+ },
3793
+ "data": {
3794
+ "$ref": "#/$defs/_entryDataData"
3795
+ },
3796
+ "id": {
3797
+ "type": "string"
3798
+ },
3799
+ "wrappeds": {
3800
+ "type": "array",
3801
+ "items": {
3802
+ "$ref": "#"
3803
+ },
3804
+ "minItems": 1
3805
+ }
3806
+ },
3807
+ "required": [
3808
+ "type",
3809
+ "wrappeds"
3810
+ ],
3811
+ "additionalProperties": false
3812
+ }
3813
+ ]
3772
3814
  },
3773
3815
  "dataDamImmune": {
3774
3816
  "oneOf": [