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

heroesVersionnumber
json
"number"
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"
        }
      }
    ]
  }
}
realmsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "basicInfo": "string"
        }
      },
      {
        "_type": "partial",
        "fields": {
          "known": "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",
          "known": "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"
              }
            ]
          },
          "areas": {
            "_type": "record",
            "domain": "string",
            "codomain": {
              "_type": "intersection",
              "parts": [
                {
                  "_type": "partial",
                  "fields": {
                    "description": "string",
                    "paths": {
                      "_type": "array",
                      "of": "string"
                    }
                  }
                },
                {
                  "_type": "partial",
                  "fields": {
                    "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",
          "known": "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",
          "known": "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",
          "basicInfo": "string",
          "hiddenInfo": "string",
          "visualDescription": "string",
          "portraitUrl": "string",
          "portraitFocusX": "number",
          "portraitFocusY": "number",
          "portraitZoom": "number",
          "personality": {
            "_type": "array",
            "of": "string"
          },
          "abilities": {
            "_type": "array",
            "of": "string"
          },
          "known": "boolean",
          "detailType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "basic"
              },
              {
                "_type": "literal",
                "value": "detailed"
              }
            ]
          },
          "level": "number",
          "hpMax": "number",
          "hpCurrent": "number",
          "healthMultiplier": "number",
          "worldVoiceId": "string",
          "vulnerabilities": {
            "_type": "array",
            "of": "string"
          },
          "resistances": {
            "_type": "array",
            "of": "string"
          },
          "immunities": {
            "_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"
        }
      }
    ]
  }
}
triggersrecord<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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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"
              }
            ]
          }
        }
      }
    ]
  }
}
worldLorerecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "text": "string"
        }
      }
    ]
  }
}
questsrecord<string, ...>
json
{
  "_type": "record",
  "domain": "string",
  "codomain": {
    "_type": "intersection",
    "parts": [
      {
        "_type": "partial",
        "fields": {
          "name": "string",
          "questSource": "string",
          "detailType": {
            "_type": "union",
            "of": [
              {
                "_type": "literal",
                "value": "basic"
              },
              {
                "_type": "literal",
                "value": "detailed"
              }
            ]
          }
        }
      },
      {
        "_type": "partial",
        "fields": {
          "questLocation": "string",
          "completionCondition": {
            "_type": "union",
            "of": [
              {
                "_type": "intersection",
                "parts": [
                  {
                    "_type": "partial",
                    "fields": {
                      "type": {
                        "_type": "union",
                        "of": [
                          {
                            "_type": "literal",
                            "value": "story"
                          }
                        ]
                      },
                      "query": "string"
                    }
                  }
                ]
              },
              {
                "_type": "intersection",
                "parts": [
                  {
                    "_type": "partial",
                    "fields": {
                      "type": {
                        "_type": "union",
                        "of": [
                          {
                            "_type": "literal",
                            "value": "narrative-event-completed"
                          }
                        ]
                      },
                      "eventId": "string"
                    }
                  }
                ]
              }
            ]
          },
          "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"
        }
      }
    ]
  }
}
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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "action"
                            }
                          ]
                        },
                        "query": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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"
              }
            ]
          }
        }
      }
    ]
  }
}
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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "story"
                            }
                          ]
                        },
                        "instruction": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-progress"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-reveal"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-objective-complete"
                            }
                          ]
                        },
                        "questId": "string",
                        "objectiveId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-next-step-clear"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-next-step-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-complete"
                            }
                          ]
                        },
                        "questId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "narrative-event-start"
                            }
                          ]
                        },
                        "eventId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-set"
                            }
                          ]
                        },
                        "trackId": "string"
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "music-track-clear"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-realm"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-region"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-location"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "party-area"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "fields": {
                        "operator": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "set"
                            }
                          ]
                        },
                        "value": "string",
                        "type": {
                          "_type": "union",
                          "of": [
                            {
                              "_type": "literal",
                              "value": "quest-init"
                            }
                          ]
                        }
                      }
                    }
                  ]
                },
                {
                  "_type": "intersection",
                  "parts": [
                    {
                      "_type": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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"
                            }
                          ]
                        }
                      }
                    }
                  ]
                }
              ]
            }
          }
        }
      }
    ]
  }
}
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"
      }
    }
  ]
}
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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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": "partial",
                      "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"
      }
    }
  ]
}
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"
}
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"
        }
      }
    ]
  }
}