{
	"$schema": "https://json-schema.org/draft/2020-12/schema",
	"$id": "util-foundry.json",
	"title": "Util: Foundry",
	"version": "1.3.2",
	"$defs": {
		"entryDataObject": {
			"description": "Additional \"5etools-type\" data to be stored on the entry.",
			"type": "object",
			"properties": {
				"languageProficiencies": {
					"$ref": "util.json#/$defs/languageProficiencies"
				},
				"skillProficiencies": {
					"$ref": "util.json#/$defs/skillProficiencies"
				},
				"weaponProficiencies": {
					"$ref": "util.json#/$defs/weaponProficiencies"
				},
				"itemMasteries": {
					"$ref": "util.json#/$defs/itemMasteries"
				},
				"itemMasteriesProgression": {
					"$ref": "util.json#/$defs/itemMasteriesProgression"
				},
				"armorProficiencies": {
					"$ref": "util.json#/$defs/armorProficiencies"
				},
				"toolProficiencies": {
					"$ref": "util.json#/$defs/toolProficiencies"
				},
				"savingThrowProficiencies": {
					"$ref": "util.json#/$defs/savingThrowProficiencies"
				},
				"skillToolLanguageProficiencies": {
					"$ref": "util.json#/$defs/skillToolLanguageProficiencies"
				},
				"expertise": {
					"$ref": "util.json#/$defs/expertise"
				},
				"resist": {
					"$ref": "util.json#/$defs/damageResistArrayPlayer"
				},
				"immune": {
					"$ref": "util.json#/$defs/damageImmunityArrayPlayer"
				},
				"vulnerable": {
					"$ref": "util.json#/$defs/damageVulnerabilityArrayPlayer"
				},
				"conditionImmune": {
					"$ref": "util.json#/$defs/conditionImmunityArrayPlayer"
				},
				"resources": {
					"$ref": "util.json#/$defs/resourcesArray"
				},
				"senses": {
					"$ref": "util.json#/$defs/sensesArray"
				},
				"additionalSpells": {
					"$ref": "util-additionalspells.json#/$defs/additionalSpellsArray"
				}
			},
			"additionalProperties": false,
			"markdownDescription": "Additional &quot;5etools-type&quot; data to be stored on the entry."
		},
		"foundryId": {
			"type": "string",
			"minLength": 16,
			"maxLength": 16,
			"pattern": "^[A-Za-z0-9]+$"
		},
		"foundryIdShort": {
			"type": "string",
			"minLength": 1,
			"maxLength": 16,
			"pattern": "^[A-Za-z0-9]+$"
		},
		"foundryTokenScale": {
			"type": "number",
			"minimum": 0.2,
			"maximum": 3,
			"multipleOf": 0.1
		},
		"foundryTokenSubjectScale": {
			"type": "number",
			"minimum": 0.8,
			"maximum": 3,
			"multipleOf": 0.1
		},
		"foundryIdentifier": {
			"type": "string",
			"pattern": "^[-A-Za-z0-9]+$"
		},
		"foundrySystemObject": {
			"type": "object"
		},
		"foundryFlagsObject": {
			"type": "object"
		},
		"foundryAdvancementObject": {
			"type": "object"
		},
		"foundryAdvancementsArray": {
			"type": "array",
			"minItems": 1,
			"items": {
				"$ref": "#/$defs/foundryAdvancementObject"
			},
			"uniqueItems": true
		},
		"foundryPrototypeTokenObject": {
			"type": "object"
		},
		"foundryImg": {
			"type": "string"
		},
		"_foundrySkill": {
			"type": "string",
			"enum": [
				"acr",
				"ani",
				"arc",
				"ath",
				"dec",
				"his",
				"ins",
				"itm",
				"inv",
				"med",
				"nat",
				"prc",
				"prf",
				"per",
				"rel",
				"slt",
				"ste",
				"sur"
			]
		},
		"_foundryTool": {
			"type": "string",
			"enum": [
				"alchemist",
				"bagpipes",
				"brewer",
				"calligrapher",
				"card",
				"carpenter",
				"cartographer",
				"chess",
				"cobbler",
				"cook",
				"dice",
				"disg",
				"drum",
				"dulcimer",
				"flute",
				"forg",
				"glassblower",
				"herb",
				"horn",
				"jeweler",
				"leatherworker",
				"lute",
				"lyre",
				"mason",
				"navg",
				"painter",
				"panflute",
				"pois",
				"potter",
				"shawm",
				"smith",
				"thief",
				"tinker",
				"viol",
				"weaver",
				"woodcarver"
			]
		},
		"_foundryConsumesName": {
			"description": "Foundry-specific consumption links. Consider upgrading to \"consumesName\" in future.",
			"markdownDescription": "Foundry-specific consumption links. Consider upgrading to &quot;consumesName&quot; in future.",
			"type": "string",
			"enum": [
				"Bardic Inspiration",
				"Superiority Die",
				"Ki",
				"Channel Divinity",
				"Psionic Energy Die",
				"Wild Shape",
				"Sorcery Point",
				"Arcane Shot",
				"Focus Point",
				"Rage",
				"Soul Fragment",
				"Favored Enemy",
				"Innate Sorcery",
				"Soul Trinket"
			]
		},
		"_foundryIdRef": {
			"type": "object",
			"properties": {
				"foundryId": {
					"$ref": "#/$defs/foundryIdShort"
				},
				"level": {
					"type": "object",
					"properties": {
						"min": {
							"type": "integer"
						},
						"max": {
							"type": "integer"
						}
					},
					"additionalProperties": false,
					"minProperties": 1
				},
				"onSave": {
					"type": "boolean"
				}
			},
			"required": [
				"foundryId"
			]
		},
		"foundrySubEntitiesObject": {
			"description": "A 5etools-data-like object of additional entities to import.",
			"type": "object",
			"properties": {
				"item": {
					"$ref": "items.json#/$defs/subEntityItemArray"
				}
			},
			"minProperties": 1,
			"markdownDescription": "A 5etools-data-like object of additional entities to import."
		},
		"_foundryActivityProfileBase": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"types": {
					"type": "array",
					"items": {
						"type": "string"
					},
					"minItems": 1,
					"uniqueItems": true
				},
				"movement": {
					"type": "array",
					"items": {
						"type": "string"
					},
					"minItems": 1,
					"uniqueItems": true
				},
				"sizes": {
					"type": "array",
					"items": {
						"type": "string"
					},
					"minItems": 1,
					"uniqueItems": true
				},
				"count": {
					"type": [
						"integer",
						"string"
					]
				},
				"level": {
					"type": "object",
					"properties": {
						"min": {
							"type": "integer"
						},
						"max": {
							"type": "integer"
						}
					}
				}
			}
		},
		"_foundryActivityProfile": {
			"anyOf": [
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"types": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"movement": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"sizes": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"count": {
							"type": [
								"integer",
								"string"
							]
						},
						"level": {
							"type": "object",
							"properties": {
								"min": {
									"type": "integer"
								},
								"max": {
									"type": "integer"
								}
							}
						}
					},
					"additionalProperties": false,
					"unevaluatedProperties": {
						"not": {
							"anyOf": [
								{
									"required": [
										"cr"
									]
								},
								{
									"required": [
										"uuid"
									]
								}
							]
						}
					}
				},
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"types": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"movement": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"sizes": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"count": {
							"type": [
								"integer",
								"string"
							]
						},
						"level": {
							"type": "object",
							"properties": {
								"min": {
									"type": "integer"
								},
								"max": {
									"type": "integer"
								}
							}
						},
						"cr": {
							"type": "string"
						}
					},
					"additionalProperties": false,
					"required": [
						"cr"
					]
				},
				{
					"type": "object",
					"properties": {
						"name": {
							"type": "string"
						},
						"types": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"movement": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"sizes": {
							"type": "array",
							"items": {
								"type": "string"
							},
							"minItems": 1,
							"uniqueItems": true
						},
						"count": {
							"type": [
								"integer",
								"string"
							]
						},
						"level": {
							"type": "object",
							"properties": {
								"min": {
									"type": "integer"
								},
								"max": {
									"type": "integer"
								}
							}
						},
						"uuid": {
							"type": "string",
							"pattern": "^@creature\\[.*\\]$"
						}
					},
					"additionalProperties": false,
					"required": [
						"uuid"
					]
				}
			]
		},
		"_foundryActivityProfiles": {
			"type": "array",
			"items": {
				"$ref": "#/$defs/_foundryActivityProfile"
			}
		},
		"_foundryActivityObject_base": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_attack": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "attack"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_damage": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "damage"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_save": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "save"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_check": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "check"
				},
				"check": {
					"type": "object",
					"properties": {
						"associated": {
							"type": "array",
							"items": {
								"oneOf": [
									{
										"$ref": "#/$defs/_foundrySkill"
									},
									{
										"$ref": "#/$defs/_foundryTool"
									}
								]
							}
						},
						"ability": {
							"oneOf": [
								{
									"$ref": "util.json#/$defs/abilityScoreAbbreviation"
								},
								{
									"const": "spellcasting"
								}
							]
						}
					}
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_heal": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "heal"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_cast": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "cast"
				},
				"spell": {
					"type": "object",
					"properties": {
						"uuid": {
							"type": "string"
						}
					}
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_enchant": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef",
						"type": "object",
						"properties": {
							"foundryId": {
								"$ref": "#/$defs/foundryIdShort"
							},
							"level": {
								"type": "object",
								"properties": {
									"min": {
										"type": "integer"
									},
									"max": {
										"type": "integer"
									}
								},
								"additionalProperties": false,
								"minProperties": 1
							},
							"onSave": {
								"type": "boolean"
							},
							"riders": {
								"type": "object",
								"properties": {
									"activity": {
										"type": "array",
										"items": {
											"$ref": "#/$defs/_foundryIdRef"
										}
									},
									"effect": {
										"type": "array",
										"items": {
											"$ref": "#/$defs/_foundryIdRef"
										}
									},
									"item": {
										"type": "array",
										"items": {
											"type": "string",
											"minLength": 1
										},
										"minItems": 1,
										"uniqueItems": true
									}
								},
								"minProperties": 1
							}
						},
						"required": [
							"foundryId"
						]
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "enchant"
				},
				"enchant": {
					"type": "object",
					"properties": {
						"self": {
							"const": true
						}
					}
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_summon": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "summon"
				},
				"profiles": {
					"$ref": "#/$defs/_foundryActivityProfiles"
				},
				"creatureSizes": {
					"type": "array",
					"items": {
						"type": "string",
						"minLength": 1
					},
					"minItems": 1,
					"uniqueItems": true
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_transform": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "transform"
				},
				"profiles": {
					"$ref": "#/$defs/_foundryActivityProfiles"
				},
				"transform": {
					"type": "object",
					"properties": {
						"customize": {
							"const": true
						}
					}
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_teleport": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "teleport"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_forward": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "forward"
				},
				"activity": {
					"$ref": "#/$defs/_foundryIdRef"
				}
			},
			"required": [
				"type"
			]
		},
		"_foundryActivityObject_utility": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, when linking a \"rider\".",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, when linking a &quot;rider&quot;."
				},
				"img": {
					"type": "string"
				},
				"description": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionEntries": {
					"description": "If supplied, will be used to populate \"description.value\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.value&quot;."
				},
				"descriptionChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "string",
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"descriptionEntriesChat": {
					"description": "If supplied, will be used to populate \"description.chatFlavor\".",
					"type": "array",
					"items": {
						"$ref": "entry.json"
					},
					"markdownDescription": "If supplied, will be used to populate &quot;description.chatFlavor&quot;."
				},
				"consumption": {
					"type": "object",
					"properties": {
						"targets": {
							"type": "array",
							"items": {
								"type": "object",
								"properties": {
									"target": {
										"oneOf": [
											{
												"type": "string"
											},
											{
												"description": "A link to an importable entity",
												"type": "object",
												"properties": {
													"prop": {
														"type": "string"
													},
													"uid": {
														"type": "string"
													}
												},
												"required": [
													"prop",
													"uid"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to an importable entity"
											},
											{
												"description": "A link to a 5etools-style resource",
												"type": "object",
												"properties": {
													"consumes": {
														"type": "object",
														"properties": {
															"name": {
																"$ref": "#/$defs/_foundryConsumesName"
															}
														},
														"required": [
															"name"
														],
														"additionalProperties": false
													}
												},
												"required": [
													"consumes"
												],
												"additionalProperties": false,
												"markdownDescription": "A link to a 5etools-style resource"
											}
										]
									}
								}
							}
						}
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/_foundryIdRef"
					}
				},
				"_id": false,
				"sort": false,
				"template": false,
				"affects": false,
				"type": {
					"const": "utility"
				}
			},
			"required": [
				"type"
			]
		},
		"foundryActivityObject": {
			"anyOf": [
				{
					"$ref": "#/$defs/_foundryActivityObject_attack"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_damage"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_save"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_check"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_heal"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_cast"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_summon"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_enchant"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_transform"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_teleport"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_utility"
				},
				{
					"$ref": "#/$defs/_foundryActivityObject_forward"
				}
			]
		},
		"_foundryEffectObject": {
			"type": "object",
			"properties": {
				"foundryId": {
					"description": "Use only when required. For example, linking from an activity profile/enchantment rider.",
					"$ref": "#/$defs/foundryIdShort",
					"markdownDescription": "Use only when required. For example, linking from an activity profile/enchantment rider."
				},
				"name": {
					"type": "string"
				},
				"img": {
					"type": "string"
				},
				"showIcon": {
					"type": "integer",
					"enum": [
						0,
						2
					]
				},
				"description": {
					"type": "string"
				},
				"descriptionEntries": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"changes": {
					"type": "array",
					"items": {
						"type": "object",
						"properties": {
							"key": {
								"type": "string"
							},
							"mode": {
								"type": [
									"string",
									"integer"
								]
							},
							"value": true,
							"priority": {
								"type": [
									"string",
									"integer"
								]
							},
							"conditions": {
								"oneOf": [
									{
										"type": "object",
										"minProperties": 1
									},
									{
										"type": "array",
										"minItems": 1,
										"items": {
											"type": "object"
										}
									}
								]
							},
							"replacement": {
								"enum": [
									"origin",
									"target"
								]
							},
							"phase": {
								"type": "string",
								"minLength": 1,
								"examples": [
									"initial",
									"final"
								]
							}
						},
						"required": [
							"key",
							"mode",
							"value"
						],
						"additionalProperties": false
					}
				},
				"statuses": {
					"description": "Dumped via e.g. `copy(Object.keys(CONFIG.DND5E.conditionTypes).sort())`",
					"type": "array",
					"items": {
						"type": "string",
						"enum": [
							"bleeding",
							"blinded",
							"burning",
							"charmed",
							"cursed",
							"deafened",
							"dehydration",
							"diseased",
							"exhaustion",
							"falling",
							"frightened",
							"grappled",
							"incapacitated",
							"invisible",
							"malnutrition",
							"paralyzed",
							"petrified",
							"poisoned",
							"prone",
							"restrained",
							"silenced",
							"stunned",
							"suffocation",
							"surprised",
							"transformed",
							"unconscious",
							"coverHalf",
							"coverThreeQuarters",
							"dead",
							"dodging",
							"ethereal",
							"hiding",
							"marked",
							"stable",
							"flying"
						]
					},
					"markdownDescription": "Dumped via e.g. copy(Object.keys(CONFIG.DND5E.conditionTypes).sort())"
				},
				"flags": {
					"type": "object"
				},
				"duration": {
					"type": "object"
				},
				"disabled": {
					"const": true
				},
				"transfer": {
					"const": true
				},
				"system": {
					"type": "object",
					"properties": {
						"rider": {
							"type": "object",
							"properties": {
								"activities": {
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"foundryId": {
												"$ref": "#/$defs/foundryIdShort"
											}
										},
										"required": [
											"foundryId"
										],
										"additionalProperties": false
									},
									"minItems": 1,
									"uniqueItems": true
								},
								"effects": {
									"type": "array",
									"items": {
										"oneOf": [
											{
												"type": "string",
												"minLength": 1
											},
											{
												"type": "object",
												"properties": {
													"foundryId": {
														"$ref": "#/$defs/foundryIdShort"
													}
												},
												"required": [
													"foundryId"
												],
												"additionalProperties": false
											}
										]
									},
									"minItems": 1,
									"uniqueItems": true
								},
								"items": {
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									},
									"minItems": 1,
									"uniqueItems": true
								}
							},
							"additionalProperties": false,
							"minProperties": 1
						}
					},
					"required": [
						"rider"
					],
					"additionalProperties": false
				},
				"enchantmentLevelMin": {
					"type": "number",
					"minimum": 0,
					"maximum": 20
				},
				"enchantmentLevelMax": {
					"type": "number",
					"minimum": 0,
					"maximum": 20
				},
				"type": {
					"type": "string",
					"enum": [
						"enchantment"
					]
				}
			},
			"additionalProperties": false
		},
		"foundryEffectObject": {
			"anyOf": [
				{
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"changes"
							]
						}
					]
				},
				{
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"statuses"
							]
						}
					]
				},
				{
					"description": "An enchantment with direct riders (dnd5e 6.1.x+).",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"type",
								"system"
							]
						}
					],
					"markdownDescription": "An enchantment with direct riders (dnd5e 6.1.x+)."
				},
				{
					"description": "An effect with no functional changes, but a name. Should only be used for effects which cannot be otherwise automated.",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"name"
							]
						}
					],
					"markdownDescription": "An effect with no functional changes, but a name. Should only be used for effects which cannot be otherwise automated."
				},
				{
					"description": "An effect with no functional changes, but a duration. Should only be used for effects which cannot be otherwise automated.",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"duration"
							]
						}
					],
					"markdownDescription": "An effect with no functional changes, but a duration. Should only be used for effects which cannot be otherwise automated."
				},
				{
					"description": "An effect with no functional changes, but descriptive text. Should only be used for effects which cannot be otherwise automated.",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"description"
							]
						}
					],
					"markdownDescription": "An effect with no functional changes, but descriptive text. Should only be used for effects which cannot be otherwise automated."
				},
				{
					"description": "An effect with no functional changes, but descriptive text. Should only be used for effects which cannot be otherwise automated.",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"required": [
								"descriptionEntries"
							]
						}
					],
					"markdownDescription": "An effect with no functional changes, but descriptive text. Should only be used for effects which cannot be otherwise automated."
				},
				{
					"description": "An effect with no functional changes, but an enchantment link.",
					"allOf": [
						{
							"$ref": "#/$defs/_foundryEffectObject"
						},
						{
							"type": "object",
							"properties": {
								"type": {
									"const": "enchantment"
								}
							},
							"required": [
								"foundryId",
								"type"
							]
						}
					],
					"markdownDescription": "An effect with no functional changes, but an enchantment link."
				}
			]
		},
		"foundryActivitiesArray": {
			"type": "array",
			"items": {
				"$ref": "#/$defs/foundryActivityObject"
			},
			"uniqueItems": true
		},
		"foundryEffectsArray": {
			"type": "array",
			"items": {
				"$ref": "#/$defs/foundryEffectObject"
			},
			"minItems": 1,
			"uniqueItems": true
		},
		"foundrySideDataGenericObject": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"identifier": {
					"$ref": "#/$defs/foundryIdentifier"
				},
				"system": {
					"$ref": "#/$defs/foundrySystemObject"
				},
				"activities": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryActivityObject"
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryEffectObject"
					}
				},
				"flags": {
					"$ref": "#/$defs/foundryFlagsObject"
				},
				"advice": {
					"$ref": "entry.json"
				},
				"img": {
					"type": "string"
				},
				"advancement": {
					"$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
				},
				"ignoreSrdActivities": {
					"const": true
				},
				"ignoreSrdEffects": {
					"const": true
				},
				"migrationVersion": {
					"type": "integer"
				},
				"_merge": {
					"$ref": "#/$defs/foundryMergeObject"
				}
			},
			"required": [
				"name",
				"source"
			],
			"additionalProperties": false
		},
		"foundrySideDataGenericArray": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"$ref": "#/$defs/foundrySideDataGenericObject"
			}
		},
		"foundrySideDataGenericFeatureObject": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"identifier": {
					"$ref": "#/$defs/foundryIdentifier"
				},
				"system": {
					"$ref": "#/$defs/foundrySystemObject"
				},
				"activities": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryActivityObject"
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryEffectObject"
					}
				},
				"flags": {
					"$ref": "#/$defs/foundryFlagsObject"
				},
				"advice": {
					"$ref": "entry.json"
				},
				"img": {
					"type": "string"
				},
				"advancement": {
					"$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
				},
				"ignoreSrdActivities": {
					"const": true
				},
				"ignoreSrdEffects": {
					"const": true
				},
				"migrationVersion": {
					"type": "integer"
				},
				"_merge": {
					"$ref": "#/$defs/foundryMergeObject"
				},
				"entries": {
					"type": "array",
					"items": {
						"$ref": "entry.json"
					}
				},
				"isIgnored": {
					"const": true
				},
				"subEntities": {
					"$ref": "#/$defs/foundrySubEntitiesObject"
				}
			},
			"required": [
				"name",
				"source"
			],
			"additionalProperties": false
		},
		"foundrySideDataGenericFeatureArray": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"$ref": "#/$defs/foundrySideDataGenericFeatureObject"
			}
		},
		"foundrySideDataGenericActorObject": {
			"type": "object",
			"properties": {
				"name": {
					"type": "string"
				},
				"source": {
					"$ref": "util.json#/$defs/source"
				},
				"identifier": {
					"$ref": "#/$defs/foundryIdentifier"
				},
				"system": {
					"$ref": "#/$defs/foundrySystemObject"
				},
				"activities": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryActivityObject"
					}
				},
				"effects": {
					"type": "array",
					"items": {
						"$ref": "#/$defs/foundryEffectObject"
					}
				},
				"flags": {
					"$ref": "#/$defs/foundryFlagsObject"
				},
				"advice": {
					"$ref": "entry.json"
				},
				"img": {
					"type": "string"
				},
				"advancement": {
					"$ref": "util-foundry.json#/$defs/foundryAdvancementsArray"
				},
				"ignoreSrdActivities": {
					"const": true
				},
				"ignoreSrdEffects": {
					"const": true
				},
				"migrationVersion": {
					"type": "integer"
				},
				"_merge": {
					"$ref": "#/$defs/foundryMergeObject"
				},
				"prototypeToken": {
					"$ref": "#/$defs/foundryPrototypeTokenObject"
				}
			},
			"required": [
				"name",
				"source"
			],
			"additionalProperties": false
		},
		"foundrySideDataGenericActorArray": {
			"type": "array",
			"minItems": 1,
			"uniqueItems": true,
			"items": {
				"$ref": "#/$defs/foundrySideDataGenericActorObject"
			}
		},
		"foundryMergeObject": {
			"description": "If our \"X\" (e.g. \"system\") should be merged with any base \"X\", rather than overwriting.",
			"type": "object",
			"properties": {
				"system": {
					"const": true
				},
				"chooseSystem": {
					"const": true
				},
				"effects": {
					"const": true
				},
				"flags": {
					"const": true
				},
				"chooseFlags": {
					"const": true
				},
				"activities": {
					"const": true
				}
			},
			"minProperties": 1,
			"markdownDescription": "If our &quot;X&quot; (e.g. &quot;system&quot;) should be merged with any base &quot;X&quot;, rather than overwriting."
		}
	}
}