@datasworn-community/core 0.2.11 → 0.2.13-experimental.19.6ea45f538803
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/cjs/Datasworn.d.ts +74 -6
- package/dist/cjs/Datasworn.d.ts.map +1 -1
- package/dist/cjs/DataswornSource.d.ts +75 -7
- package/dist/cjs/DataswornSource.d.ts.map +1 -1
- package/dist/cjs/DataswornVersion.d.ts +1 -1
- package/dist/cjs/DataswornVersion.js +1 -1
- package/dist/cjs/IdElements/TypeId.d.ts +4 -3
- package/dist/cjs/IdElements/TypeId.d.ts.map +1 -1
- package/dist/cjs/IdElements/TypeId.js +5 -2
- package/dist/cjs/IdElements/TypeId.js.map +1 -1
- package/dist/cjs/TypeNode.d.ts +2 -0
- package/dist/cjs/TypeNode.d.ts.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/Datasworn.d.ts +74 -6
- package/dist/esm/Datasworn.d.ts.map +1 -1
- package/dist/esm/DataswornSource.d.ts +75 -7
- package/dist/esm/DataswornSource.d.ts.map +1 -1
- package/dist/esm/DataswornVersion.d.ts +1 -1
- package/dist/esm/DataswornVersion.js +1 -1
- package/dist/esm/IdElements/TypeId.d.ts +4 -3
- package/dist/esm/IdElements/TypeId.d.ts.map +1 -1
- package/dist/esm/IdElements/TypeId.js +5 -2
- package/dist/esm/IdElements/TypeId.js.map +1 -1
- package/dist/esm/TypeNode.d.ts +2 -0
- package/dist/esm/TypeNode.d.ts.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/json/datasworn-source.schema.json +129 -6
- package/json/datasworn.schema.json +128 -5
- package/migration/0.3.0/Datasworn.d.ts +5341 -0
- package/migration/0.3.0/DataswornSource.d.ts +5355 -0
- package/migration/0.3.0/datasworn-source.schema.json +11543 -0
- package/migration/0.3.0/datasworn.schema.json +11477 -0
- package/migration/0.3.0/id_regex_map.json +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://ironswornrpg.com/datasworn.schema.json",
|
|
4
4
|
"$ref": "#/definitions/RulesPackage",
|
|
5
|
-
"title": "Datasworn v0.
|
|
5
|
+
"title": "Datasworn v0.3.0",
|
|
6
6
|
"description": "Describes game rules compatible with the Ironsworn tabletop role-playing game by Shawn Tomkin.",
|
|
7
7
|
"definitions": {
|
|
8
8
|
"ActionRollMethod": {
|
|
@@ -126,6 +126,9 @@
|
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"$ref": "#/definitions/TruthOptionId"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"$ref": "#/definitions/WorldId"
|
|
129
132
|
}
|
|
130
133
|
]
|
|
131
134
|
},
|
|
@@ -237,6 +240,9 @@
|
|
|
237
240
|
},
|
|
238
241
|
{
|
|
239
242
|
"$ref": "#/definitions/TruthOptionIdWildcard"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"$ref": "#/definitions/WorldIdWildcard"
|
|
240
246
|
}
|
|
241
247
|
]
|
|
242
248
|
},
|
|
@@ -5328,7 +5334,7 @@
|
|
|
5328
5334
|
"datasworn_version": {
|
|
5329
5335
|
"description": "The version of the Datasworn format used by this data.",
|
|
5330
5336
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
|
|
5331
|
-
"const": "0.
|
|
5337
|
+
"const": "0.3.0",
|
|
5332
5338
|
"type": "string"
|
|
5333
5339
|
},
|
|
5334
5340
|
"description": {
|
|
@@ -5449,6 +5455,17 @@
|
|
|
5449
5455
|
}
|
|
5450
5456
|
}
|
|
5451
5457
|
},
|
|
5458
|
+
"worlds": {
|
|
5459
|
+
"default": {},
|
|
5460
|
+
"remarks": "Deserialize as a dictionary object.",
|
|
5461
|
+
"description": "A dictionary object of named worlds and their associated setting truths.",
|
|
5462
|
+
"type": "object",
|
|
5463
|
+
"patternProperties": {
|
|
5464
|
+
"^[a-z][a-z0-9_]*$": {
|
|
5465
|
+
"$ref": "#/definitions/World"
|
|
5466
|
+
}
|
|
5467
|
+
}
|
|
5468
|
+
},
|
|
5452
5469
|
"rarities": {
|
|
5453
5470
|
"default": {},
|
|
5454
5471
|
"remarks": "Deserialize as a dictionary object.",
|
|
@@ -6584,7 +6601,8 @@
|
|
|
6584
6601
|
"delve_site_domain",
|
|
6585
6602
|
"delve_site_theme",
|
|
6586
6603
|
"rarity",
|
|
6587
|
-
"truth"
|
|
6604
|
+
"truth",
|
|
6605
|
+
"world"
|
|
6588
6606
|
]
|
|
6589
6607
|
},
|
|
6590
6608
|
"Npc": {
|
|
@@ -9142,7 +9160,7 @@
|
|
|
9142
9160
|
"datasworn_version": {
|
|
9143
9161
|
"description": "The version of the Datasworn format used by this data.",
|
|
9144
9162
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",
|
|
9145
|
-
"const": "0.
|
|
9163
|
+
"const": "0.3.0",
|
|
9146
9164
|
"type": "string"
|
|
9147
9165
|
},
|
|
9148
9166
|
"description": {
|
|
@@ -9263,6 +9281,17 @@
|
|
|
9263
9281
|
}
|
|
9264
9282
|
}
|
|
9265
9283
|
},
|
|
9284
|
+
"worlds": {
|
|
9285
|
+
"default": {},
|
|
9286
|
+
"remarks": "Deserialize as a dictionary object.",
|
|
9287
|
+
"description": "A dictionary object of named worlds and their associated setting truths.",
|
|
9288
|
+
"type": "object",
|
|
9289
|
+
"patternProperties": {
|
|
9290
|
+
"^[a-z][a-z0-9_]*$": {
|
|
9291
|
+
"$ref": "#/definitions/World"
|
|
9292
|
+
}
|
|
9293
|
+
}
|
|
9294
|
+
},
|
|
9266
9295
|
"rarities": {
|
|
9267
9296
|
"default": {},
|
|
9268
9297
|
"remarks": "Deserialize as a dictionary object.",
|
|
@@ -10247,6 +10276,9 @@
|
|
|
10247
10276
|
{
|
|
10248
10277
|
"$ref": "#/definitions/TruthId"
|
|
10249
10278
|
},
|
|
10279
|
+
{
|
|
10280
|
+
"$ref": "#/definitions/WorldId"
|
|
10281
|
+
},
|
|
10250
10282
|
{
|
|
10251
10283
|
"type": "array",
|
|
10252
10284
|
"items": {
|
|
@@ -10295,6 +10327,9 @@
|
|
|
10295
10327
|
},
|
|
10296
10328
|
{
|
|
10297
10329
|
"$ref": "#/definitions/TruthIdWildcard"
|
|
10330
|
+
},
|
|
10331
|
+
{
|
|
10332
|
+
"$ref": "#/definitions/WorldIdWildcard"
|
|
10298
10333
|
}
|
|
10299
10334
|
]
|
|
10300
10335
|
}
|
|
@@ -10518,7 +10553,9 @@
|
|
|
10518
10553
|
"#/definitions/TruthOptionOracleRollableRowId",
|
|
10519
10554
|
"#/definitions/TruthOptionOracleRollableRowIdWildcard",
|
|
10520
10555
|
"#/definitions/WebpImageUrl",
|
|
10521
|
-
"#/definitions/WebUrl"
|
|
10556
|
+
"#/definitions/WebUrl",
|
|
10557
|
+
"#/definitions/WorldId",
|
|
10558
|
+
"#/definitions/WorldIdWildcard"
|
|
10522
10559
|
]
|
|
10523
10560
|
}
|
|
10524
10561
|
}
|
|
@@ -11349,6 +11386,92 @@
|
|
|
11349
11386
|
"format": "uri",
|
|
11350
11387
|
"description": "An absolute URL pointing to a website.",
|
|
11351
11388
|
"type": "string"
|
|
11389
|
+
},
|
|
11390
|
+
"World": {
|
|
11391
|
+
"title": "World",
|
|
11392
|
+
"description": "A named world and its associated set of setting truths.",
|
|
11393
|
+
"type": "object",
|
|
11394
|
+
"required": [
|
|
11395
|
+
"_id",
|
|
11396
|
+
"name",
|
|
11397
|
+
"_source",
|
|
11398
|
+
"truths",
|
|
11399
|
+
"type"
|
|
11400
|
+
],
|
|
11401
|
+
"properties": {
|
|
11402
|
+
"_id": {
|
|
11403
|
+
"$ref": "#/definitions/WorldId",
|
|
11404
|
+
"description": "The unique Datasworn ID for this node."
|
|
11405
|
+
},
|
|
11406
|
+
"_comment": {
|
|
11407
|
+
"$ref": "#/definitions/Documentation"
|
|
11408
|
+
},
|
|
11409
|
+
"name": {
|
|
11410
|
+
"description": "The primary name/label for this node.",
|
|
11411
|
+
"$ref": "#/definitions/Label"
|
|
11412
|
+
},
|
|
11413
|
+
"canonical_name": {
|
|
11414
|
+
"description": "The name of this node as it appears on the page in the book, if it's different from `name`.",
|
|
11415
|
+
"$ref": "#/definitions/Label"
|
|
11416
|
+
},
|
|
11417
|
+
"_source": {
|
|
11418
|
+
"description": "Attribution for the original source (such as a book or website) of this node, including the author and licensing information.",
|
|
11419
|
+
"$ref": "#/definitions/SourceInfo"
|
|
11420
|
+
},
|
|
11421
|
+
"suggestions": {
|
|
11422
|
+
"$ref": "#/definitions/Suggestions"
|
|
11423
|
+
},
|
|
11424
|
+
"tags": {
|
|
11425
|
+
"$ref": "#/definitions/Tags"
|
|
11426
|
+
},
|
|
11427
|
+
"replaces": {
|
|
11428
|
+
"description": "This node replaces all nodes that match these wildcards. References to the replaced nodes can be considered equivalent to this node.",
|
|
11429
|
+
"type": "array",
|
|
11430
|
+
"items": {
|
|
11431
|
+
"$ref": "#/definitions/WorldIdWildcard"
|
|
11432
|
+
}
|
|
11433
|
+
},
|
|
11434
|
+
"color": {
|
|
11435
|
+
"description": "An optional thematic color associated with this node. For an example, see \"Basic Creature Form\" (Starforged p. 337).",
|
|
11436
|
+
"$ref": "#/definitions/CssColor"
|
|
11437
|
+
},
|
|
11438
|
+
"images": {
|
|
11439
|
+
"type": "array",
|
|
11440
|
+
"items": {
|
|
11441
|
+
"description": "Extra images associated with this node.",
|
|
11442
|
+
"$ref": "#/definitions/WebpImageUrl"
|
|
11443
|
+
}
|
|
11444
|
+
},
|
|
11445
|
+
"icon": {
|
|
11446
|
+
"description": "An SVG icon associated with this collection.",
|
|
11447
|
+
"$ref": "#/definitions/SvgImageUrl"
|
|
11448
|
+
},
|
|
11449
|
+
"truths": {
|
|
11450
|
+
"minItems": 1,
|
|
11451
|
+
"uniqueItems": true,
|
|
11452
|
+
"description": "The set of setting truths that make up this world, in presentation order.",
|
|
11453
|
+
"type": "array",
|
|
11454
|
+
"items": {
|
|
11455
|
+
"$ref": "#/definitions/TruthId"
|
|
11456
|
+
}
|
|
11457
|
+
},
|
|
11458
|
+
"type": {
|
|
11459
|
+
"const": "world",
|
|
11460
|
+
"type": "string"
|
|
11461
|
+
}
|
|
11462
|
+
}
|
|
11463
|
+
},
|
|
11464
|
+
"WorldId": {
|
|
11465
|
+
"title": "WorldId",
|
|
11466
|
+
"description": "A unique ID representing a World object.",
|
|
11467
|
+
"pattern": "^world:([a-z][a-z0-9_]*\\/[a-z][a-z0-9_]*)$",
|
|
11468
|
+
"type": "string"
|
|
11469
|
+
},
|
|
11470
|
+
"WorldIdWildcard": {
|
|
11471
|
+
"title": "WorldIdWildcard",
|
|
11472
|
+
"description": "A wildcarded WorldId that can be used to match multiple World objects.",
|
|
11473
|
+
"pattern": "^world:((?:[a-z][a-z0-9_]*|\\*)\\/[a-z][a-z0-9_]*|\\/\\*|\\/\\*\\*)$",
|
|
11474
|
+
"type": "string"
|
|
11352
11475
|
}
|
|
11353
11476
|
}
|
|
11354
11477
|
}
|