Skip to main content
UnofficialWIKI
Builder
▶Mods
  • Modding
▶World
  • Story Overview
  • World Lore
  • Story Starts
  • Items
  • Factions
  • NPCs
  • Premade Characters
  • Voices
  • Regions
  • Locations
  • Areas
  • Advanced
  • Quests
  • Narrative Events
  • NPC Types
  • Realms
  • Arcs
▶Mechanics
  • Success Levels
  • Relationship Stages
  • Attributes
  • Resources
  • Skills
  • Skill Settings
  • Level Progression
  • Traits
  • Trait Categories
  • Death Rules
  • End of Game Rules
  • Item Settings
  • Abilities
  • Advanced
  • Triggers
  • Combat Settings
▶AI
  • AI Instructions
  • Image Prompts
  • Character Background
  • Conversation Starters
  • NPC Chat Replies
  • Encounters
  • Initial Start
  • Location Details
  • NPC Chat Summary
  • NPC Details
  • NPC Updates
  • Region Details
  • Story
  • Item Generation/Usage
  • Advanced
  • Action Info
  • Learned Abilities
  • New NPC
  • NPC Intents
  • Story Memory
▶Other
  • Game Modes
  • Narrator Style
  • Music
  • Character Creation
  • Name Filter Settings
  • Image Model
  • Advanced
  • Location Settings
  • Tip Settings
  • Other Settings
  • NPC Author Seeds
  • NPC Archetypes
  • Location Archetypes
  • Region Archetypes
  • Encounter Elements
  • Random Character Names
  • Character Creation Music
▶Appendix
  • Scripting Patterns
  • Advanced AI Instruction Techniques
  • Voice Catalog
  • Size Limits
  • Methodology
▶Guides
  • Welcome to Community Guides
  • Build a World with an AI Agent
  • Build a Fantasy Map From AI Map Pieces
  • + Add guide
▶Tools
  • Validator
  • Trigger Workbench
  • Narrative Event Workbench
  • Schema explorer
  • Field index
  • API
Tools›Schema explorer

Schema explorer

Browse the live V37 schema section by section. Each card shows the schema shape for one section straight from the codec, so you can verify a field name, its type, or whether a value is required.

Unofficial Voyage - a community reference, not affiliated with Latitude.API
Buy me a coffeePlay

Raw JSON: /schema.json (the entire codec).

arcsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "id": "string",
          "theme": "string",
          "surfacePremise": "string",
          "expectedConclusion": "string",
          "status": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "active"
              },
              {
                "_type": "literal",
                "value": "resolved"
              },
              {
                "_type": "literal",
                "value": "dormant"
              }
            ]
          },
          "minQuestsForConclusion": "number"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "title": "string",
          "secrets": {
            "_type": "array",
            "of": "string"
          }
        }
      }
    ]
  }
}
narrativeEventsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "title": "string",
          "beats": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "targetTurns": "number",
          "onCompleteEffects": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-set"
                            }
                          ]
                        },
                        "questId": "string",
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-set"
                            }
                          ]
                        },
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "\"dawn\" | \"morning\" | \"noon\" | \"afternoon\" | \"evening\" | \"night\" | \"midnight\""
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-experience"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-skill"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-attribute"
                            }
                          ]
                        },
                        "attribute": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-portrait"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveHere"
                            },
                            {
                              "_type": "literal",
                              "value": "moveAway"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveTo"
                            }
                          ]
                        },
                        "location": "string",
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-hidden"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-image"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-add"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-remove"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-accept"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-plan"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "win-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "lose-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "end-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              ]
            }
          }
        }
      }
    ]
  }
}
questTriggersrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "conditions": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story-text"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action-text"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action-success-level"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "undefined"
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game-tick"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story-start"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "skill-value"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-item"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship-stage"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health-percent"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-scene"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-realm"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-region"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-location"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-area"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-combat"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-type"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quests-completed"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-status"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-status"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                }
              ]
            }
          },
          "effects": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-set"
                            }
                          ]
                        },
                        "questId": "string",
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-set"
                            }
                          ]
                        },
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "\"dawn\" | \"morning\" | \"noon\" | \"afternoon\" | \"evening\" | \"night\" | \"midnight\""
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-experience"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-skill"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-attribute"
                            }
                          ]
                        },
                        "attribute": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-portrait"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveHere"
                            },
                            {
                              "_type": "literal",
                              "value": "moveAway"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveTo"
                            }
                          ]
                        },
                        "location": "string",
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-hidden"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-image"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-add"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-remove"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-accept"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-plan"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "win-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "lose-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "end-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              ]
            }
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "script": "string",
          "recurring": "boolean",
          "scope": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "party"
              },
              {
                "_type": "literal",
                "value": "player"
              }
            ]
          },
          "phase": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "planning"
              },
              {
                "_type": "literal",
                "value": "state"
              }
            ]
          }
        }
      }
    ]
  }
}
questsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "questSource": "string",
          "questLocation": "string",
          "detailType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "basic"
              },
              {
                "_type": "literal",
                "value": "detailed"
              }
            ]
          },
          "status": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "hidden"
              },
              {
                "_type": "literal",
                "value": "planned"
              },
              {
                "_type": "literal",
                "value": "available"
              },
              {
                "_type": "literal",
                "value": "expired"
              },
              {
                "_type": "literal",
                "value": "accepted"
              },
              {
                "_type": "literal",
                "value": "completed"
              },
              {
                "_type": "literal",
                "value": "abandoned"
              },
              {
                "_type": "literal",
                "value": "rejected"
              }
            ]
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "completionCondition": {
            "_type": "union",
            "of": [
              {
                "_type": "intersection",
                "parts": [
                  {
                    "_type": "required",
                    "fields": {
                      "type": {
                        "_type": "union",
                        "of": [
                          {
                            "_type": "literal",
                            "value": "story"
                          }
                        ]
                      },
                      "query": "string"
                    }
                  }
                ]
              },
              {
                "_type": "intersection",
                "parts": [
                  {
                    "_type": "required",
                    "fields": {
                      "type": {
                        "_type": "union",
                        "of": [
                          {
                            "_type": "literal",
                            "value": "narrative-event-completed"
                          }
                        ]
                      },
                      "eventId": "string"
                    }
                  }
                ]
              }
            ]
          },
          "onCompleteEffects": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-set"
                            }
                          ]
                        },
                        "questId": "string",
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-set"
                            }
                          ]
                        },
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "\"dawn\" | \"morning\" | \"noon\" | \"afternoon\" | \"evening\" | \"night\" | \"midnight\""
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-experience"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-skill"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-attribute"
                            }
                          ]
                        },
                        "attribute": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-portrait"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveHere"
                            },
                            {
                              "_type": "literal",
                              "value": "moveAway"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveTo"
                            }
                          ]
                        },
                        "location": "string",
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-hidden"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-image"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-add"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-remove"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-accept"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-plan"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "win-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "lose-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "end-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              ]
            }
          },
          "questStatement": "string",
          "mainObjective": "string",
          "questDesignBrief": "string",
          "objectives": {
            "_type": "record",
            "domain": "string",
            "codomain": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "id": "string",
                    "text": "string",
                    "status": {
                      "_type": "union",
                      "of": [
                        {
                          "_type": "literal",
                          "value": "hidden"
                        },
                        {
                          "_type": "literal",
                          "value": "active"
                        },
                        {
                          "_type": "literal",
                          "value": "completed"
                        }
                      ]
                    }
                  }
                }
              ]
            }
          },
          "activeObjectiveId": "string",
          "nextStep": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "text": "string",
                  "source": {
                    "_type": "union",
                    "of": [
                      {
                        "_type": "literal",
                        "value": "objective"
                      },
                      {
                        "_type": "literal",
                        "value": "narrative-event"
                      }
                    ]
                  }
                }
              }
            ]
          },
          "spatialRelationship": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "existingLocalArea"
              },
              {
                "_type": "literal",
                "value": "newLocalArea"
              },
              {
                "_type": "literal",
                "value": "nearbyNewLocation"
              },
              {
                "_type": "literal",
                "value": "distantNewLocation"
              },
              {
                "_type": "literal",
                "value": "existingLocationNewAreas"
              }
            ]
          },
          "conclusive": "boolean"
        }
      }
    ]
  }
}
heroesVersionliteral: 37
json
{
  "_type": "literal",
  "value": 37
}
modsarray
json
{
  "_type": "array",
  "of": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "shortId": "string",
          "version": {
            "_type": "union",
            "of": [
              "number",
              "undefined"
            ]
          }
        }
      }
    ]
  }
}
itemTypesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "category": "string",
          "description": "string",
          "bonuses": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "type": {
                      "_type": "union",
                      "of": [
                        {
                          "_type": "literal",
                          "value": "resource"
                        },
                        {
                          "_type": "literal",
                          "value": "stat"
                        },
                        {
                          "_type": "literal",
                          "value": "attribute"
                        },
                        {
                          "_type": "literal",
                          "value": "skill"
                        }
                      ]
                    },
                    "variable": "string",
                    "value": "number"
                  }
                }
              ]
            }
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "imageFocusX": "number",
          "imageFocusY": "number",
          "imageUrl": "string",
          "imageZoom": "number",
          "slot": "string",
          "mediaContent": "string",
          "needsMediaGeneration": "boolean"
        }
      }
    ]
  }
}
realmsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "basicInfo": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "initialKnown": "boolean"
        }
      }
    ]
  }
}
regionsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "basicInfo": "string",
          "x": "number",
          "y": "number"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "realm": "string",
          "factions": {
            "_type": "array",
            "of": "string"
          },
          "hiddenInfo": "string",
          "initialKnown": "boolean",
          "npcLevelRange": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "min": "number",
                  "max": "number"
                }
              }
            ]
          },
          "images": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "map": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "crop": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "focus": {
                                    "_type": "intersection",
                                    "parts": [
                                      {
                                        "_type": "partial",
                                        "fields": {
                                          "x": "number",
                                          "y": "number"
                                        }
                                      }
                                    ]
                                  },
                                  "zoom": "number"
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "_type": "partial",
                        "fields": {
                          "imageUrl": "string"
                        }
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    ]
  }
}
locationsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "basicInfo": "string",
          "x": "number",
          "y": "number",
          "region": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "radius": "number",
          "complexityType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "simple"
              },
              {
                "_type": "literal",
                "value": "complex"
              },
              {
                "_type": "literal",
                "value": "wilderness"
              }
            ]
          },
          "detailType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "basic"
              },
              {
                "_type": "literal",
                "value": "detailed"
              }
            ]
          },
          "hidden": "boolean",
          "areas": {
            "_type": "record",
            "domain": "string",
            "codomain": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "description": "string",
                    "paths": {
                      "_type": "array",
                      "of": "string"
                    }
                  }
                },
                {
                  "_type": "partial",
                  "fields": {
                    "name": "string",
                    "images": {
                      "_type": "intersection",
                      "parts": [
                        {
                          "_type": "partial",
                          "fields": {
                            "establishingShot": {
                              "_type": "intersection",
                              "parts": [
                                {
                                  "_type": "partial",
                                  "fields": {
                                    "crop": {
                                      "_type": "intersection",
                                      "parts": [
                                        {
                                          "_type": "partial",
                                          "fields": {
                                            "focus": {
                                              "_type": "intersection",
                                              "parts": [
                                                {
                                                  "_type": "partial",
                                                  "fields": {
                                                    "x": "number",
                                                    "y": "number"
                                                  }
                                                }
                                              ]
                                            },
                                            "zoom": "number"
                                          }
                                        }
                                      ]
                                    }
                                  }
                                },
                                {
                                  "_type": "partial",
                                  "fields": {
                                    "imageUrl": "string"
                                  }
                                }
                              ]
                            }
                          }
                        }
                      ]
                    },
                    "visualTags": {
                      "_type": "array",
                      "of": "string"
                    }
                  }
                }
              ]
            }
          },
          "factions": {
            "_type": "array",
            "of": "string"
          },
          "visualTags": {
            "_type": "array",
            "of": "string"
          },
          "hiddenInfo": "string",
          "initialKnown": "boolean",
          "npcLevelRange": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "min": "number",
                  "max": "number"
                }
              }
            ]
          },
          "images": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "establishingShot": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "crop": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "focus": {
                                    "_type": "intersection",
                                    "parts": [
                                      {
                                        "_type": "partial",
                                        "fields": {
                                          "x": "number",
                                          "y": "number"
                                        }
                                      }
                                    ]
                                  },
                                  "zoom": "number"
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "_type": "partial",
                        "fields": {
                          "imageUrl": "string"
                        }
                      }
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    ]
  }
}
factionsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "basicInfo": "string",
          "factionType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "minor"
              },
              {
                "_type": "literal",
                "value": "major"
              }
            ]
          },
          "hiddenInfo": "string",
          "initialKnown": "boolean"
        }
      }
    ]
  }
}
npcsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "type": "string",
          "currentLocation": "string",
          "currentArea": "string",
          "properName": "string",
          "gender": "string",
          "tier": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "trivial"
              },
              {
                "_type": "literal",
                "value": "weak"
              },
              {
                "_type": "literal",
                "value": "average"
              },
              {
                "_type": "literal",
                "value": "strong"
              },
              {
                "_type": "literal",
                "value": "elite"
              },
              {
                "_type": "literal",
                "value": "boss"
              },
              {
                "_type": "literal",
                "value": "mythic"
              }
            ]
          },
          "faction": "string",
          "initialRelationship": "number",
          "basicInfo": "string",
          "hiddenInfo": "string",
          "visualDescription": "string",
          "portraitUrl": "string",
          "portraits": {
            "_type": "record",
            "domain": "string",
            "codomain": "string"
          },
          "portraitFocusX": "number",
          "portraitFocusY": "number",
          "portraitZoom": "number",
          "personality": {
            "_type": "array",
            "of": "string"
          },
          "abilities": {
            "_type": "array",
            "of": "string"
          },
          "initialKnown": "boolean",
          "detailType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "basic"
              },
              {
                "_type": "literal",
                "value": "detailed"
              }
            ]
          },
          "level": "number",
          "hpMax": "number",
          "hpCurrent": "number",
          "healthMultiplier": "number",
          "successBonus": "number",
          "damageModifier": "number",
          "damageReductionModifier": "number",
          "worldVoiceId": "string",
          "vulnerabilities": {
            "_type": "array",
            "of": "string"
          },
          "resistances": {
            "_type": "array",
            "of": "string"
          },
          "immunities": {
            "_type": "array",
            "of": "string"
          },
          "portraitHistory": {
            "_type": "array",
            "of": "string"
          },
          "cutoutUrl": "string",
          "cutoutSourceUrl": "string",
          "voiceTag": "string"
        }
      }
    ]
  }
}
npcTypesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "vulnerabilities": {
            "_type": "array",
            "of": "string"
          },
          "resistances": {
            "_type": "array",
            "of": "string"
          },
          "immunities": {
            "_type": "array",
            "of": "string"
          },
          "description": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "successBonus": "number"
        }
      }
    ]
  }
}
worldLorerecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "text": "string"
        }
      }
    ]
  }
}
skillSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "trainingCooldown": "number",
        "skillXPRewards": {
          "_type": "record",
          "domain": "string",
          "codomain": "number"
        },
        "skillBonusModifier": "number",
        "xpFromNewSkill": "number",
        "maxSkillLevel": "number",
        "maxSkillSuccessLevel": "number",
        "charXPPerSkillLevel": "number",
        "baseXPFromSkillUpgrade": "number",
        "additionalXPRequiredPerSkillLevel": "number",
        "startingXPToLevelUpSkill": "number",
        "baseChanceToLearnNewSkill": "number",
        "skillLearningBonusModifier": "number",
        "skillTypeDifficultyBonus": {
          "_type": "record",
          "domain": "string",
          "codomain": "number"
        },
        "newSkillGenerationEnabled": "boolean"
      }
    }
  ]
}
successLevelSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "firstSuccessfulTierId": "string",
        "tiers": {
          "_type": "array",
          "of": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "id": "string",
                  "name": "string",
                  "minScore": {
                    "_type": "union",
                    "of": [
                      "number",
                      "undefined"
                    ]
                  },
                  "maxScore": {
                    "_type": "union",
                    "of": [
                      "number",
                      "undefined"
                    ]
                  },
                  "prompt": "string"
                }
              },
              {
                "_type": "partial",
                "fields": {
                  "imageUrl": {
                    "_type": "union",
                    "of": [
                      "string",
                      "undefined"
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    }
  ]
}
attributeSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "attributeNames": {
          "_type": "array",
          "of": "string"
        },
        "startingAttributeValue": "number",
        "startingAttributePoints": "number",
        "attributeStatModifiers": {
          "_type": "record",
          "domain": "string",
          "codomain": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "variable": "string",
                  "amount": "number"
                }
              }
            ]
          }
        },
        "maxStartingAttribute": "number",
        "lowAttributeThreshold": "number",
        "lowAttributeTraits": {
          "_type": "record",
          "domain": "string",
          "codomain": "string"
        },
        "attributeBonusModifier": "number"
      }
    },
    {
      "_type": "partial",
      "fields": {
        "attributeDamageModifiers": {
          "_type": "record",
          "domain": "string",
          "codomain": "number"
        },
        "attributeDamageReductionModifiers": {
          "_type": "record",
          "domain": "string",
          "codomain": "number"
        }
      }
    }
  ]
}
combatSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "minCombatXP": "number",
        "baseCombatXP": "number",
        "abilityCooldown": "number",
        "abilityBonus": "number",
        "npcDailyHealingAmount": "number",
        "damageTypes": {
          "_type": "array",
          "of": "string"
        },
        "damageTypePresentation": {
          "_type": "record",
          "domain": "string",
          "codomain": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "emoji": "string"
                }
              }
            ]
          }
        }
      }
    }
  ]
}
locationSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "regionSize": "number",
        "simpleRadius": "number",
        "complexRadius": "number",
        "regionLocationCount": "number",
        "avgTravelDistance": "number",
        "minTravelDistance": "number",
        "newRegionGenerationEnabled": "boolean",
        "encountersEnabled": "boolean"
      }
    },
    {
      "_type": "partial",
      "fields": {
        "regionMapBorderFeatheringEnabled": "boolean"
      }
    }
  ]
}
itemSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "currencyName": "string",
        "itemCategories": {
          "_type": "array",
          "of": "string"
        },
        "itemSlots": {
          "_type": "array",
          "of": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "slot": "string",
                  "category": "string",
                  "quantity": "number"
                }
              }
            ]
          }
        },
        "startingItems": {
          "_type": "array",
          "of": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "item": "string",
                  "quantity": "number"
                }
              }
            ]
          }
        }
      }
    }
  ]
}
otherSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "npcHealthPerLevel": "number",
        "npcMinHealth": "number"
      }
    },
    {
      "_type": "partial",
      "fields": {
        "visualNovelModeByDefault": "boolean"
      }
    }
  ]
}
progressionSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "startingCharacterLevelUpRequirement": "number",
        "extraRequiredXPPerCharacterLevel": "number",
        "maxCharacterLevel": "number",
        "abilityPointEveryLevels": "number",
        "abilityPointsPerGrant": "number",
        "attributePointEveryLevels": "number",
        "attributePointsPerGrant": "number",
        "maxAttributeValue": "number",
        "traitPickEveryLevels": "number",
        "traitPicksPerGrant": "number",
        "locationDiscoveryXP": "number",
        "levelUpTraitPool": {
          "_type": "array",
          "of": "string"
        },
        "milestoneTitles": {
          "_type": "array",
          "of": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "levelGranted": "number",
                  "title": "string"
                }
              }
            ]
          }
        }
      }
    }
  ]
}
tipSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "tips": {
          "_type": "array",
          "of": "string"
        },
        "tipDisplayEnabled": "boolean",
        "tipTurnInterval": "number",
        "tipMinimumTurns": "number",
        "tipMaximumTurns": "number"
      }
    }
  ]
}
resourceSettingsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "initialValue": "number",
          "maxValue": "number",
          "rechargeRate": "number",
          "restRechargeMultiplier": "number",
          "color": "string",
          "gainPerLevel": "number"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "usageInstructions": "string",
          "isHealth": "boolean"
        }
      }
    ]
  }
}
storySettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "worldBackground": "string"
      }
    },
    {
      "_type": "partial",
      "fields": {
        "questGenerationGuidance": "string"
      }
    }
  ]
}
skillsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "required",
        "fields": {
          "name": "string",
          "attribute": "string",
          "type": "string",
          "description": "string",
          "startingItems": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "item": "string",
                    "quantity": "number"
                  }
                }
              ]
            }
          }
        }
      }
    ]
  }
}
abilitiesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "description": "string",
          "requirements": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "resource"
                            },
                            {
                              "_type": "literal",
                              "value": "attribute"
                            },
                            {
                              "_type": "literal",
                              "value": "skill"
                            },
                            {
                              "_type": "literal",
                              "value": "trait"
                            }
                          ]
                        },
                        "variable": "string",
                        "amount": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "characterLevel"
                            }
                          ]
                        },
                        "amount": "number"
                      }
                    }
                  ]
                }
              ]
            }
          },
          "bonus": "number",
          "cooldown": "number"
        }
      }
    ]
  }
}
storyStartsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "description": "string",
          "storyStart": "string",
          "locations": {
            "_type": "array",
            "of": "string"
          },
          "locationAreas": {
            "_type": "array",
            "of": "string"
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "allowPlayerInput": "boolean",
          "startingQuests": {
            "_type": "array",
            "of": "string"
          },
          "startingItems": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "item": "string",
                    "quantity": "number"
                  }
                }
              ]
            }
          },
          "isDefault": "boolean",
          "startingPartyNPCs": {
            "_type": "array",
            "of": "string"
          },
          "firstQuest": "string",
          "questGenerationGuidance": "string"
        }
      }
    ]
  }
}
narratorStylestring
json
"string"
gameModesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "description": "string",
          "instructions": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "difficulty": "string",
          "askTheNarratorPrompt": "string",
          "npcIntentInstructions": "string"
        }
      }
    ]
  }
}
encounterElementsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": "string"
}
traitsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "description": "string",
          "traitNarrativeEffects": "string",
          "skills": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "skill": "string",
                    "modifier": "number"
                  }
                }
              ]
            }
          },
          "attributes": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "attribute": "string",
                    "modifier": "number"
                  }
                }
              ]
            }
          },
          "resources": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "resource": "string",
                    "modifier": "number"
                  }
                }
              ]
            }
          },
          "startingItems": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "item": "string",
                    "quantity": "number"
                  }
                }
              ]
            }
          },
          "abilities": {
            "_type": "array",
            "of": "string"
          },
          "unlockedBy": {
            "_type": "array",
            "of": "string"
          },
          "excludedBy": {
            "_type": "array",
            "of": "string"
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "requirements": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "resource"
                            },
                            {
                              "_type": "literal",
                              "value": "attribute"
                            },
                            {
                              "_type": "literal",
                              "value": "skill"
                            },
                            {
                              "_type": "literal",
                              "value": "trait"
                            }
                          ]
                        },
                        "variable": "string",
                        "amount": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "characterLevel"
                            }
                          ]
                        },
                        "amount": "number"
                      }
                    }
                  ]
                }
              ]
            }
          },
          "vulnerabilities": {
            "_type": "array",
            "of": "string"
          },
          "resistances": {
            "_type": "array",
            "of": "string"
          },
          "immunities": {
            "_type": "array",
            "of": "string"
          }
        }
      }
    ]
  }
}
traitCategoriesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "maxSelections": "number",
          "traits": {
            "_type": "array",
            "of": "string"
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "description": "string",
          "subcategories": {
            "_type": "array",
            "of": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "name": "string",
                    "traits": {
                      "_type": "array",
                      "of": "string"
                    }
                  }
                },
                {
                  "_type": "partial",
                  "fields": {
                    "description": "string"
                  }
                }
              ]
            }
          }
        }
      }
    ]
  }
}
characterCreationSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "customizationEnabled": "boolean",
        "premadeCustomizationEnabled": "boolean"
      }
    }
  ]
}
premadeCharactersarray
json
{
  "_type": "array",
  "of": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "gender": "string",
          "description": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "attributes": {
            "_type": "record",
            "domain": "string",
            "codomain": "number"
          },
          "traits": {
            "_type": "array",
            "of": "string"
          },
          "backstory": "string",
          "portraitUrl": "string",
          "portraitFocusX": "number",
          "portraitFocusY": "number",
          "portraitZoom": "number",
          "replacesNpc": "string",
          "generatedBackground": "string",
          "generatedAppearance": "string",
          "voiceTag": "string",
          "worldVoiceId": "string"
        }
      }
    ]
  }
}
randomNamesobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "male": {
          "_type": "array",
          "of": "string"
        },
        "female": {
          "_type": "array",
          "of": "string"
        }
      }
    }
  ]
}
gameplayMusicSettingsobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "characterCreationTrackId": "string",
        "tracks": {
          "_type": "record",
          "domain": "string",
          "codomain": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "required",
                "fields": {
                  "variants": {
                    "_type": "array",
                    "of": {
                      "_type": "intersection",
                      "parts": [
                        {
                          "_type": "partial",
                          "fields": {
                            "url": "string",
                            "narrationUrl": "string",
                            "gameplayUrl": "string"
                          }
                        }
                      ]
                    }
                  }
                }
              },
              {
                "_type": "partial",
                "fields": {
                  "matchTags": {
                    "_type": "array",
                    "of": "string"
                  },
                  "cues": {
                    "_type": "array",
                    "of": {
                      "_type": "union",
                      "of": [
                        {
                          "_type": "literal",
                          "value": "character-creation"
                        },
                        {
                          "_type": "literal",
                          "value": "combat"
                        },
                        {
                          "_type": "literal",
                          "value": "travel"
                        },
                        {
                          "_type": "literal",
                          "value": "near-death"
                        },
                        {
                          "_type": "literal",
                          "value": "dying"
                        },
                        {
                          "_type": "literal",
                          "value": "dead"
                        },
                        {
                          "_type": "literal",
                          "value": "recovery"
                        }
                      ]
                    }
                  }
                }
              }
            ]
          }
        }
      }
    }
  ]
}
relationshipStagesarray
json
{
  "_type": "array",
  "of": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "minScore": "number",
          "maxScore": "number"
        }
      }
    ]
  }
}
deathobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "permadeath": "boolean",
        "instructions": "string"
      }
    }
  ]
}
endGameobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "required",
      "fields": {
        "win": {
          "_type": "intersection",
          "parts": [
            {
              "_type": "required",
              "fields": {
                "endCondition": {
                  "_type": "union",
                  "of": [
                    {
                      "_type": "literal",
                      "value": "win"
                    }
                  ]
                },
                "instructions": "string"
              }
            }
          ]
        },
        "lose": {
          "_type": "intersection",
          "parts": [
            {
              "_type": "required",
              "fields": {
                "endCondition": {
                  "_type": "union",
                  "of": [
                    {
                      "_type": "literal",
                      "value": "lose"
                    }
                  ]
                },
                "instructions": "string"
              }
            }
          ]
        },
        "end": {
          "_type": "intersection",
          "parts": [
            {
              "_type": "required",
              "fields": {
                "endCondition": {
                  "_type": "union",
                  "of": [
                    {
                      "_type": "literal",
                      "value": "end"
                    }
                  ]
                },
                "instructions": "string"
              }
            }
          ]
        }
      }
    }
  ]
}
aiInstructionsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "record",
    "domain": "string",
    "codomain": "string"
  }
}
nameFilterSettingsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "required",
        "fields": {
          "replacements": {
            "_type": "array",
            "of": "string"
          }
        }
      }
    ]
  }
}
authorSeedsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": "string"
}
characterArchetypesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": "string"
}
locationArchetypesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": "string"
}
regionArchetypesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": "string"
}
triggerDefinitionsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "conditions": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story-text"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action-text"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action-success-level"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "undefined"
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game-tick"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story-start"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "skill-value"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-item"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship-stage"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health-percent"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-scene"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-realm"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-region"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-location"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-area"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-combat"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-type"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quests-completed"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-status"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-status"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            },
                            {
                              "_type": "literal",
                              "value": "regex"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThan"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThan"
                            },
                            {
                              "_type": "literal",
                              "value": "greaterThanOrEqual"
                            },
                            {
                              "_type": "literal",
                              "value": "lessThanOrEqual"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "equals"
                            },
                            {
                              "_type": "literal",
                              "value": "notEquals"
                            }
                          ]
                        },
                        "value": "boolean",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "contains"
                            },
                            {
                              "_type": "literal",
                              "value": "notContains"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "read-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                }
              ]
            }
          },
          "effects": {
            "_type": "array",
            "of": {
              "_type": "union",
              "of": [
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-set"
                            }
                          ]
                        },
                        "questId": "string",
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-set"
                            }
                          ]
                        },
                        "text": "string",
                        "source": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "objective"
                            },
                            {
                              "_type": "literal",
                              "value": "narrative-event"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "time-of-day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "\"dawn\" | \"morning\" | \"noon\" | \"afternoon\" | \"evening\" | \"night\" | \"midnight\""
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "day"
                            }
                          ]
                        },
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-resource"
                            }
                          ]
                        },
                        "resource": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-level"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-experience"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-skill"
                            }
                          ]
                        },
                        "skill": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-attribute"
                            }
                          ]
                        },
                        "attribute": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-relationship"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-health"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-in-party"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-portrait"
                            }
                          ]
                        },
                        "npc": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveHere"
                            },
                            {
                              "_type": "literal",
                              "value": "moveAway"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "npc-placement"
                            }
                          ]
                        },
                        "npc": "string",
                        "operation": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "moveTo"
                            }
                          ]
                        },
                        "location": "string",
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "known-entity"
                            }
                          ]
                        },
                        "entity": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-hidden"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "location-image"
                            }
                          ]
                        },
                        "location": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "area": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "player-traits"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-add"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "item-remove"
                            }
                          ]
                        },
                        "item": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "target": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "allPlayers"
                            },
                            {
                              "_type": "literal",
                              "value": "satisfyingPlayers"
                            }
                          ]
                        },
                        "quantity": "number"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-accept"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-plan"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-string"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "subtract"
                            },
                            {
                              "_type": "literal",
                              "value": "multiply"
                            },
                            {
                              "_type": "literal",
                              "value": "divide"
                            },
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "number",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-number"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "toggle"
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-boolean"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "value": "boolean"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            },
                            {
                              "_type": "literal",
                              "value": "add"
                            },
                            {
                              "_type": "literal",
                              "value": "remove"
                            }
                          ]
                        },
                        "value": {
                          "_type": "union",
                          "of": [
                            "string",
                            "number",
                            "boolean",
                            {
                              "_type": "array",
                              "of": {
                                "_type": "union",
                                "of": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          ]
                        },
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "write-array"
                            }
                          ]
                        },
                        "key": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "win-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "lose-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "required",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "end-game"
                            }
                          ]
                        }
                      }
                    },
                    {
                      "_type": "partial",
                      "fields": {
                        "endScope": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "game"
                            },
                            {
                              "_type": "literal",
                              "value": "players"
                            }
                          ]
                        },
                        "othersOutcome": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "won"
                            },
                            {
                              "_type": "literal",
                              "value": "lost"
                            },
                            {
                              "_type": "literal",
                              "value": "ended"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              ]
            }
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "script": "string",
          "recurring": "boolean",
          "scope": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "party"
              },
              {
                "_type": "literal",
                "value": "player"
              }
            ]
          },
          "phase": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "planning"
              },
              {
                "_type": "literal",
                "value": "state"
              }
            ]
          }
        }
      }
    ]
  }
}
compatibilityRevisionnumber
json
"number"
unassignedAreasrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "description": "string",
          "paths": {
            "_type": "array",
            "of": "string"
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "images": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "establishingShot": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "crop": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "focus": {
                                    "_type": "intersection",
                                    "parts": [
                                      {
                                        "_type": "partial",
                                        "fields": {
                                          "x": "number",
                                          "y": "number"
                                        }
                                      }
                                    ]
                                  },
                                  "zoom": "number"
                                }
                              }
                            ]
                          }
                        }
                      },
                      {
                        "_type": "partial",
                        "fields": {
                          "imageUrl": "string"
                        }
                      }
                    ]
                  }
                }
              }
            ]
          },
          "visualTags": {
            "_type": "array",
            "of": "string"
          }
        }
      }
    ]
  }
}
imagePromptConfigurationobject (required + optional)
json
{
  "_type": "intersection",
  "parts": [
    {
      "_type": "partial",
      "fields": {
        "npcs": "string",
        "locations": "string",
        "areas": "string",
        "regions": "string",
        "items": "string"
      }
    }
  ]
}
imageModelSourcestring
json
"string"
characterCreationMusicunion
json
{
  "_type": "union",
  "of": [
    {
      "_type": "literal",
      "value": "fantasy"
    },
    {
      "_type": "literal",
      "value": "nonfantasy"
    }
  ]
}
worldVoicesrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "label": "string",
          "voiceTag": "string",
          "instructions": "string",
          "speed": "number",
          "effects": {
            "_type": "intersection",
            "parts": [
              {
                "_type": "partial",
                "fields": {
                  "pitch": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "semitones": "number"
                        }
                      }
                    ]
                  },
                  "reverb": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "space": {
                            "_type": "union",
                            "of": [
                              {
                                "_type": "literal",
                                "value": "room"
                              },
                              {
                                "_type": "literal",
                                "value": "hall"
                              },
                              {
                                "_type": "literal",
                                "value": "cavern"
                              }
                            ]
                          },
                          "mix": "number"
                        }
                      }
                    ]
                  },
                  "echo": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "delayMs": "number",
                          "feedback": "number",
                          "mix": "number"
                        }
                      }
                    ]
                  },
                  "eq": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "highPass": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number"
                                }
                              }
                            ]
                          },
                          "lowShelf": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number",
                                  "gainDb": "number"
                                }
                              }
                            ]
                          },
                          "bell1": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number",
                                  "gainDb": "number",
                                  "q": "number"
                                }
                              }
                            ]
                          },
                          "bell2": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number",
                                  "gainDb": "number",
                                  "q": "number"
                                }
                              }
                            ]
                          },
                          "highShelf": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number",
                                  "gainDb": "number"
                                }
                              }
                            ]
                          },
                          "lowPass": {
                            "_type": "intersection",
                            "parts": [
                              {
                                "_type": "partial",
                                "fields": {
                                  "enabled": "boolean",
                                  "frequency": "number"
                                }
                              }
                            ]
                          }
                        }
                      }
                    ]
                  },
                  "distortion": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "drive": "number"
                        }
                      }
                    ]
                  },
                  "output": {
                    "_type": "intersection",
                    "parts": [
                      {
                        "_type": "partial",
                        "fields": {
                          "enabled": "boolean",
                          "gainDb": "number",
                          "compressor": "boolean"
                        }
                      }
                    ]
                  }
                }
              }
            ]
          },
          "exposeInCharacterCreation": "boolean"
        }
      }
    ]
  }
}