{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "snapshot": {
      "type": "object",
      "properties": {
        "releases": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "quest": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "evaluatorProtocol": {
                "type": "number",
                "const": 2
              },
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "presentation": {
                "default": {},
                "type": "object",
                "properties": {
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "action": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "link"
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                }
                              },
                              "required": ["kind", "url", "label"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": ["title"]
                    }
                  },
                  "image": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "imageAlt": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "requirements": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "account"
                            },
                            "provider": {
                              "type": "string",
                              "enum": ["google", "apple", "x", "discord"]
                            }
                          },
                          "required": ["kind", "provider"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "wallet"
                            },
                            "chain": {
                              "type": "string",
                              "enum": ["solana", "eip155", "cosmos"]
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "quiz": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "prompt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "choices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 500
                              }
                            },
                            "required": ["id", "label"]
                          }
                        }
                      },
                      "required": ["id", "prompt", "choices"]
                    }
                  },
                  "instructions": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "video": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "poster": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "captions": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "maxLength": 2000
                          },
                          "language": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 20
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "required": ["url", "language", "label"]
                      }
                    },
                    "required": ["url"]
                  }
                }
              },
              "integrations": {
                "default": [],
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": ["discord", "x"]
                }
              },
              "integrationModules": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-z][a-z0-9-]{0,63}$"
                }
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string",
                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                },
                "additionalProperties": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "point-ledger"
                        },
                        "default": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            {
                              "type": "string",
                              "const": ""
                            }
                          ]
                        }
                      },
                      "required": ["label", "kind", "default"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "datetime"
                        },
                        "default": {}
                      },
                      "required": ["label", "kind", "default"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "resource"
                        },
                        "default": {
                          "anyOf": [
                            {
                              "type": "string",
                              "const": ""
                            },
                            {
                              "type": "string",
                              "pattern": "^\\S{1,200}$"
                            }
                          ]
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "const": "domino"
                                },
                                "resource": {
                                  "type": "string",
                                  "const": "point-ledger"
                                }
                              },
                              "required": ["provider", "resource"]
                            },
                            {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "provider": {
                                      "type": "string",
                                      "const": "discord"
                                    },
                                    "resource": {
                                      "type": "string",
                                      "const": "channel"
                                    },
                                    "types": {
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "enum": ["text", "announcement"]
                                      }
                                    },
                                    "postable": {
                                      "type": "boolean",
                                      "const": true
                                    }
                                  },
                                  "required": ["provider", "resource", "types"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "provider": {
                                      "type": "string",
                                      "const": "discord"
                                    },
                                    "resource": {
                                      "type": "string",
                                      "const": "role"
                                    },
                                    "assignable": {
                                      "default": false,
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "provider",
                                    "resource",
                                    "assignable"
                                  ]
                                }
                              ]
                            }
                          ]
                        }
                      },
                      "required": ["label", "kind", "default", "source"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "quiz"
                        },
                        "default": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "prompt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 1000
                              },
                              "choices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 100,
                                      "pattern": "^[a-zA-Z0-9_-]+$"
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 500
                                    }
                                  },
                                  "required": ["id", "label"]
                                }
                              },
                              "correct": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              }
                            },
                            "required": ["id", "prompt", "choices", "correct"]
                          }
                        }
                      },
                      "required": ["label", "kind", "default"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "text"
                        },
                        "default": {
                          "type": "string"
                        },
                        "minLength": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxLength": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "multiline": {
                          "type": "boolean"
                        },
                        "picker": {
                          "type": "string"
                        },
                        "decimals": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "secret": {
                          "type": "boolean",
                          "const": true
                        }
                      },
                      "required": [
                        "label",
                        "kind",
                        "default",
                        "minLength",
                        "maxLength",
                        "multiline"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "integer"
                        },
                        "default": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "min": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "max": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["label", "kind", "default", "min", "max"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "boolean"
                        },
                        "default": {
                          "type": "boolean"
                        }
                      },
                      "required": ["label", "kind", "default"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1
                        },
                        "description": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string",
                          "const": "choice"
                        },
                        "default": {
                          "type": "string"
                        },
                        "options": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        }
                      },
                      "required": ["label", "kind", "default", "options"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "values": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "prompt": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 1000
                          },
                          "choices": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 500
                                }
                              },
                              "required": ["id", "label"]
                            }
                          },
                          "correct": {
                            "type": "string",
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          }
                        },
                        "required": ["id", "prompt", "choices", "correct"]
                      }
                    }
                  ]
                }
              },
              "rewards": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "default": "points",
                          "type": "string",
                          "const": "points"
                        },
                        "balance": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "amount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["kind", "balance", "amount"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "tier"
                        },
                        "reward": {
                          "type": "object",
                          "properties": {
                            "badge": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "group": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            "tiers": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  },
                                  "title": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  }
                                },
                                "required": ["id", "title"]
                              }
                            },
                            "inventory": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "untracked"
                                }
                              },
                              "required": ["kind"]
                            },
                            "fulfillment": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "staff-handover"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "automatic"
                                    }
                                  },
                                  "required": ["kind"],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "title",
                            "tiers",
                            "inventory",
                            "fulfillment"
                          ]
                        },
                        "tier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        }
                      },
                      "required": ["kind", "reward", "tier"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "integration"
                        },
                        "provider": {
                          "type": "string",
                          "const": "discord"
                        },
                        "action": {
                          "type": "string",
                          "const": "grant-role"
                        },
                        "roleId": {
                          "type": "string",
                          "pattern": "^[0-9]{1,20}$"
                        }
                      },
                      "required": ["kind", "provider", "action", "roleId"]
                    }
                  ]
                }
              },
              "announcements": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "type": "string",
                          "const": "telegram"
                        },
                        "chat": {
                          "type": "string",
                          "pattern": "^-?[1-9][0-9]{0,19}$"
                        },
                        "action": {
                          "type": "string",
                          "const": "post-message"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "replyToTriggeringMessage": {
                          "type": "boolean"
                        }
                      },
                      "required": ["provider", "chat", "action", "text"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "type": "string",
                          "const": "discord"
                        },
                        "channel": {
                          "type": "string",
                          "pattern": "^[0-9]{1,20}$"
                        },
                        "action": {
                          "type": "string",
                          "const": "post-message"
                        },
                        "text": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "replyToTriggeringMessage": {
                          "type": "boolean"
                        }
                      },
                      "required": ["provider", "channel", "action", "text"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "humanReview": {
                "type": "boolean"
              },
              "trigger": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "const": "text"
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "default": true,
                            "type": "boolean"
                          },
                          "minLength": {
                            "default": 1,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxLength": {
                            "default": 10000,
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["required", "minLength", "maxLength"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input", "constraints"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "const": "url"
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "default": true,
                            "type": "boolean"
                          },
                          "allowedHosts": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            }
                          }
                        },
                        "required": ["required"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input", "constraints"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "enum": ["photo", "quiz", "none"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "automatic"
                      },
                      "tracker": {
                        "type": "object",
                        "properties": {
                          "tracker": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "on": {
                            "type": "string",
                            "enum": [
                              "new-record",
                              "new-observation",
                              "data-changed"
                            ]
                          },
                          "where": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "maxLength": 200,
                                        "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                      },
                                      "equals": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1000
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["path", "equals"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "maxLength": 200,
                                        "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                      },
                                      "gt": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "gte": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "lt": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "lte": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["path"]
                                  }
                                ]
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "path": {
                                          "type": "string",
                                          "maxLength": 200,
                                          "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                        },
                                        "equals": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 1000
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        }
                                      },
                                      "required": ["path", "equals"]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "path": {
                                          "type": "string",
                                          "maxLength": 200,
                                          "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                        },
                                        "gt": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "gte": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "lt": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "lte": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        }
                                      },
                                      "required": ["path"]
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          "beneficiary": {
                            "type": "string",
                            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,39}$"
                          },
                          "enrollment": {
                            "type": "string",
                            "enum": ["none", "required"]
                          },
                          "since": {
                            "type": "string",
                            "enum": ["activation", "window", "enrollment"]
                          },
                          "historical": {
                            "type": "string",
                            "enum": ["staff", "claim", "automatic"]
                          },
                          "content": {
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": ["tracker", "source", "on", "beneficiary"]
                      }
                    },
                    "required": ["kind"]
                  }
                ]
              },
              "performance": {
                "type": "object",
                "properties": {
                  "metrics": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[a-z][a-zA-Z0-9]{0,39}$"
                    }
                  },
                  "maxAgeMs": {
                    "default": 3600000,
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["metrics", "maxAgeMs"]
              },
              "requires": {
                "default": [],
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "completion"
                            },
                            "quest": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "scope": {
                              "type": "string",
                              "const": "ever"
                            }
                          },
                          "required": ["kind", "quest", "scope"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "completion"
                            },
                            "quest": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "scope": {
                              "type": "string",
                              "const": "period"
                            },
                            "period": {
                              "type": "string",
                              "enum": ["day", "week", "month"]
                            }
                          },
                          "required": ["kind", "quest", "scope", "period"],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "balance"
                        },
                        "balance": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "minimum": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": ["kind", "balance", "minimum"],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "group"
                        },
                        "group": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "title": {
                          "type": "string"
                        }
                      },
                      "required": ["kind", "group", "title"],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "campaign": {
                "type": "object",
                "properties": {
                  "key": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "window": {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "until": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["from", "until"]
                  },
                  "enrollment": {
                    "default": "none",
                    "type": "string",
                    "enum": ["none", "required"]
                  }
                },
                "required": ["key", "title", "enrollment"]
              },
              "availability": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "until": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": ["from", "until"]
              },
              "completion": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "streak"
                      },
                      "days": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["kind", "days"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "progress"
                      },
                      "goal": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "count"
                          },
                          "count": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["kind", "count"]
                      },
                      "window": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "lifetime"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "calendar"
                              },
                              "period": {
                                "type": "string",
                                "enum": ["day", "week", "month"]
                              },
                              "latenessMs": {
                                "default": 604800000,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["kind", "period", "latenessMs"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "durationMs": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["kind", "durationMs"],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "repeat": {
                        "default": "once",
                        "type": "string",
                        "enum": ["once", "repeat"]
                      }
                    },
                    "required": ["kind", "goal", "window", "repeat"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "once"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "keyed"
                      },
                      "across": {
                        "type": "string",
                        "const": "members"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  }
                ]
              },
              "visibility": {
                "default": "visible",
                "type": "string",
                "enum": ["visible", "hidden"]
              },
              "profile": {
                "default": {
                  "visible": false
                },
                "type": "object",
                "properties": {
                  "visible": {
                    "type": "boolean"
                  }
                },
                "required": ["visible"]
              },
              "budgets": {
                "default": [],
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
                    },
                    "scope": {
                      "type": "string",
                      "enum": ["member", "project"]
                    },
                    "period": {
                      "type": "string",
                      "enum": ["lifetime", "day", "week", "month"]
                    },
                    "limit": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "cost": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": "string",
                              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
                            }
                          },
                          "required": ["balance"]
                        }
                      ]
                    }
                  },
                  "required": ["id", "scope", "period", "limit", "cost"]
                }
              },
              "authorBudgets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
                    },
                    "scope": {
                      "type": "string",
                      "const": "author"
                    },
                    "period": {
                      "type": "string",
                      "enum": ["lifetime", "day", "week", "month"]
                    },
                    "limit": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "cost": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "object",
                          "properties": {
                            "balance": {
                              "type": "string",
                              "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]{0,199}$"
                            }
                          },
                          "required": ["balance"]
                        }
                      ]
                    }
                  },
                  "required": ["id", "scope", "period", "limit", "cost"]
                }
              },
              "retryCooldownMs": {
                "type": "integer",
                "minimum": 1000,
                "maximum": 9007199254740991
              },
              "completionCooldownMs": {
                "type": "integer",
                "minimum": 1000,
                "maximum": 9007199254740991
              },
              "rewardEntries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "data": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "$ref": "#/$defs/__schema0"
                      }
                    }
                  },
                  "required": ["type", "data"]
                }
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "code": {
                "type": "string"
              },
              "runtime": {
                "type": "object",
                "properties": {
                  "digest": {
                    "type": "string",
                    "pattern": "^[0-9a-f]{64}$"
                  },
                  "sdkVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": ["digest", "sdkVersion"]
              },
              "provider": {
                "type": "string",
                "enum": [
                  "fixture-pass",
                  "fixture-fail",
                  "fixture-unclear",
                  "fixture-error",
                  "workers-ai"
                ]
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "createdAt": {
                "type": "number"
              },
              "origin": {
                "type": "object",
                "properties": {
                  "typeVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "required": ["typeVersion"]
              },
              "lifecycle": {
                "default": "active",
                "type": "string",
                "enum": ["active", "paused", "archived"]
              },
              "configuration": {
                "type": "object",
                "properties": {
                  "defaults": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "prompt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 1000
                              },
                              "choices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 100,
                                      "pattern": "^[a-zA-Z0-9_-]+$"
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 500
                                    }
                                  },
                                  "required": ["id", "label"]
                                }
                              },
                              "correct": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              }
                            },
                            "required": ["id", "prompt", "choices", "correct"]
                          }
                        }
                      ]
                    }
                  },
                  "overrides": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        },
                        {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "prompt": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 1000
                              },
                              "choices": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string",
                                      "maxLength": 100,
                                      "pattern": "^[a-zA-Z0-9_-]+$"
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 500
                                    }
                                  },
                                  "required": ["id", "label"]
                                }
                              },
                              "correct": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              }
                            },
                            "required": ["id", "prompt", "choices", "correct"]
                          }
                        }
                      ]
                    }
                  },
                  "preserved": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "presentation": {
                    "type": "object",
                    "properties": {
                      "steps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 4000
                            },
                            "action": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "link"
                                    },
                                    "url": {
                                      "type": "string",
                                      "maxLength": 2000
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 120
                                    }
                                  },
                                  "required": ["kind", "url", "label"],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": ["title"]
                        }
                      },
                      "image": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "imageAlt": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "requirements": {
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "account"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": ["google", "apple", "x", "discord"]
                                }
                              },
                              "required": ["kind", "provider"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "wallet"
                                },
                                "chain": {
                                  "type": "string",
                                  "enum": ["solana", "eip155", "cosmos"]
                                }
                              },
                              "required": ["kind"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    }
                  },
                  "presentationDefaults": {
                    "type": "object",
                    "properties": {
                      "steps": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "title": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 4000
                            },
                            "action": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "link"
                                    },
                                    "url": {
                                      "type": "string",
                                      "maxLength": 2000
                                    },
                                    "label": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 120
                                    }
                                  },
                                  "required": ["kind", "url", "label"],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": ["title"]
                        }
                      },
                      "image": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "imageAlt": {
                        "type": "string",
                        "maxLength": 500
                      },
                      "requirements": {
                        "type": "array",
                        "items": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "account"
                                },
                                "provider": {
                                  "type": "string",
                                  "enum": ["google", "apple", "x", "discord"]
                                }
                              },
                              "required": ["kind", "provider"],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "wallet"
                                },
                                "chain": {
                                  "type": "string",
                                  "enum": ["solana", "eip155", "cosmos"]
                                }
                              },
                              "required": ["kind"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    }
                  }
                },
                "required": ["defaults", "overrides", "preserved"]
              },
              "solanaIdls": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "program": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "idl": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "$ref": "#/$defs/__schema1"
                      }
                    }
                  },
                  "required": ["program", "source", "idl"]
                }
              },
              "withheldSettings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "quest",
              "evaluatorProtocol",
              "title",
              "presentation",
              "integrations",
              "fields",
              "values",
              "rewards",
              "humanReview",
              "trigger",
              "requires",
              "completion",
              "visibility",
              "profile",
              "budgets",
              "code",
              "provider",
              "id",
              "createdAt",
              "lifecycle"
            ]
          }
        },
        "completions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "default": "once",
                "type": "string"
              },
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "quest": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "member": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "source": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "required": ["kind", "id"]
              }
            },
            "required": ["key", "id", "quest", "member"]
          }
        },
        "entitlements": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "available"
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "handing-over"
                      },
                      "handover": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "startedAt": {
                        "type": "number"
                      },
                      "allocation": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": ["item", "label"],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "handover",
                      "startedAt"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "collected"
                      },
                      "handover": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "startedAt": {
                        "type": "number"
                      },
                      "allocation": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": ["item", "label"],
                        "additionalProperties": {}
                      },
                      "collectedAt": {
                        "type": "number"
                      },
                      "recovery": {
                        "type": "object",
                        "properties": {
                          "completion": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "reason": {
                            "type": "string"
                          },
                          "flaggedAt": {
                            "type": "number"
                          },
                          "remainingTier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "completion",
                          "reason",
                          "flaggedAt",
                          "remainingTier"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "handover",
                      "startedAt",
                      "collectedAt"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "void"
                      },
                      "voidedAt": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "voidedAt"
                    ],
                    "additionalProperties": {}
                  }
                ]
              },
              {}
            ]
          }
        },
        "attempts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "release": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "quest": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "member": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "evidence": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "input": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "quiz"
                      },
                      "release": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "answers": {}
                    },
                    "required": ["kind", "answers"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "text"
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 10000
                      }
                    },
                    "required": ["kind", "value"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "url"
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 2048
                      }
                    },
                    "required": ["kind", "value"]
                  }
                ]
              },
              "status": {
                "type": "string"
              },
              "reason": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retries": {
                "type": "number"
              },
              "generation": {
                "type": "number"
              },
              "completion": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewRewards": {
                "default": null,
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "default": "points",
                              "type": "string",
                              "const": "points"
                            },
                            "balance": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            },
                            "amount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["kind", "balance", "amount"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "tier"
                            },
                            "reward": {
                              "type": "object",
                              "properties": {
                                "badge": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "group": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                "tiers": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "id": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 100,
                                        "pattern": "^[a-zA-Z0-9_-]+$"
                                      },
                                      "title": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 120
                                      }
                                    },
                                    "required": ["id", "title"]
                                  }
                                },
                                "inventory": {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "untracked"
                                    }
                                  },
                                  "required": ["kind"]
                                },
                                "fulfillment": {
                                  "oneOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "staff-handover"
                                        }
                                      },
                                      "required": ["kind"],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "const": "automatic"
                                        }
                                      },
                                      "required": ["kind"],
                                      "additionalProperties": false
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id",
                                "title",
                                "tiers",
                                "inventory",
                                "fulfillment"
                              ]
                            },
                            "tier": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 100,
                              "pattern": "^[a-zA-Z0-9_-]+$"
                            }
                          },
                          "required": ["kind", "reward", "tier"]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "integration"
                            },
                            "provider": {
                              "type": "string",
                              "const": "discord"
                            },
                            "action": {
                              "type": "string",
                              "const": "grant-role"
                            },
                            "roleId": {
                              "type": "string",
                              "pattern": "^[0-9]{1,20}$"
                            }
                          },
                          "required": ["kind", "provider", "action", "roleId"]
                        }
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "evaluationRun": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "deferCount": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "deferUntil": {
                "default": null,
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nextEvaluationAt": {
                "default": null,
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "code": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "codeSource": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "progress": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "current": {
                        "type": "number",
                        "minimum": 0
                      },
                      "target": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      }
                    },
                    "required": ["current", "target", "reason"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requestedReview": {
                "default": false,
                "type": "boolean"
              },
              "createdAt": {
                "type": "number"
              }
            },
            "required": [
              "id",
              "release",
              "quest",
              "member",
              "evidence",
              "status",
              "reason",
              "retries",
              "generation",
              "completion",
              "reviewRewards",
              "evaluationRun",
              "deferCount",
              "deferUntil",
              "nextEvaluationAt",
              "code",
              "progress",
              "requestedReview",
              "createdAt"
            ]
          }
        },
        "balances": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "member": {
                "type": "string"
              },
              "balance": {
                "type": "string"
              },
              "earned": {
                "type": "number"
              },
              "held": {
                "type": "number"
              },
              "available": {
                "type": "number"
              }
            },
            "required": ["member", "balance", "earned", "held", "available"]
          }
        },
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "number"
              },
              "attempt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "actor": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "at": {
                "type": "number"
              }
            },
            "required": ["id", "attempt", "kind", "detail", "actor", "at"]
          }
        }
      },
      "required": [
        "releases",
        "completions",
        "entitlements",
        "attempts",
        "balances",
        "events"
      ]
    },
    "member": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "test": {
          "type": "boolean"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "accounts": {
          "default": [],
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": ["account", "wallet"]
              },
              "provider": {
                "type": "string"
              },
              "subject": {
                "type": "string"
              },
              "signInEnabled": {
                "type": "boolean"
              },
              "profile": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string"
                  },
                  "emailVerified": {
                    "default": false,
                    "type": "boolean"
                  },
                  "imageUrl": {
                    "type": "string",
                    "format": "uri"
                  }
                },
                "required": ["emailVerified"]
              },
              "status": {
                "type": "string",
                "enum": ["connected", "needs-reconnect"]
              },
              "reason": {
                "type": "string",
                "enum": ["revoked", "expired", "missing-scope"]
              }
            },
            "required": ["kind", "provider", "subject", "signInEnabled"]
          }
        },
        "appIdentities": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              "subject": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              }
            },
            "required": ["kind", "subject"]
          }
        },
        "attempts": {
          "type": "number"
        },
        "completions": {
          "type": "number"
        },
        "rewards": {
          "type": "number"
        },
        "lastActivity": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "erasedAt": {
          "type": "number"
        },
        "bannedAt": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "accounts",
        "attempts",
        "completions",
        "rewards",
        "lastActivity"
      ]
    },
    "progress": {
      "type": "object",
      "properties": {
        "member": {
          "type": "string",
          "minLength": 1,
          "maxLength": 100,
          "pattern": "^[a-zA-Z0-9_-]+$"
        },
        "quests": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "quest": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "key": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "release": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "title": {
                "type": "string"
              },
              "presentation": {
                "default": {},
                "type": "object",
                "properties": {
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 4000
                        },
                        "action": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "link"
                                },
                                "url": {
                                  "type": "string",
                                  "maxLength": 2000
                                },
                                "label": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                }
                              },
                              "required": ["kind", "url", "label"],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "required": ["title"]
                    }
                  },
                  "image": {
                    "type": "string",
                    "maxLength": 2000
                  },
                  "imageAlt": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "requirements": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "account"
                            },
                            "provider": {
                              "type": "string",
                              "enum": ["google", "apple", "x", "discord"]
                            }
                          },
                          "required": ["kind", "provider"],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "wallet"
                            },
                            "chain": {
                              "type": "string",
                              "enum": ["solana", "eip155", "cosmos"]
                            }
                          },
                          "required": ["kind"],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "quiz": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "prompt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1000
                        },
                        "choices": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 500
                              }
                            },
                            "required": ["id", "label"]
                          }
                        }
                      },
                      "required": ["id", "prompt", "choices"]
                    }
                  },
                  "instructions": {
                    "type": "string",
                    "maxLength": 4000
                  },
                  "video": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "poster": {
                        "type": "string",
                        "maxLength": 2000
                      },
                      "captions": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string",
                            "maxLength": 2000
                          },
                          "language": {
                            "type": "string",
                            "minLength": 2,
                            "maxLength": 20
                          },
                          "label": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "required": ["url", "language", "label"]
                      }
                    },
                    "required": ["url"]
                  }
                }
              },
              "connections": {
                "default": [],
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": ["google", "apple", "x", "discord"]
                }
              },
              "trigger": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "const": "text"
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "default": true,
                            "type": "boolean"
                          },
                          "minLength": {
                            "default": 1,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maxLength": {
                            "default": 10000,
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["required", "minLength", "maxLength"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input", "constraints"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "const": "url"
                      },
                      "constraints": {
                        "type": "object",
                        "properties": {
                          "required": {
                            "default": true,
                            "type": "boolean"
                          },
                          "allowedHosts": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 253
                            }
                          }
                        },
                        "required": ["required"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input", "constraints"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "manual"
                      },
                      "input": {
                        "type": "string",
                        "enum": ["photo", "quiz", "none"]
                      },
                      "actor": {
                        "type": "string",
                        "enum": ["member", "staff"]
                      }
                    },
                    "required": ["kind", "input"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "automatic"
                      },
                      "tracker": {
                        "type": "object",
                        "properties": {
                          "tracker": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "source": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                          },
                          "on": {
                            "type": "string",
                            "enum": [
                              "new-record",
                              "new-observation",
                              "data-changed"
                            ]
                          },
                          "where": {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "maxLength": 200,
                                        "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                      },
                                      "equals": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 1000
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["path", "equals"]
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "path": {
                                        "type": "string",
                                        "maxLength": 200,
                                        "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                      },
                                      "gt": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "gte": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "lt": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      },
                                      "lte": {
                                        "anyOf": [
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "object",
                                            "properties": {
                                              "setting": {
                                                "type": "string",
                                                "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                              }
                                            },
                                            "required": ["setting"]
                                          }
                                        ]
                                      }
                                    },
                                    "required": ["path"]
                                  }
                                ]
                              },
                              {
                                "type": "array",
                                "items": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "path": {
                                          "type": "string",
                                          "maxLength": 200,
                                          "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                        },
                                        "equals": {
                                          "anyOf": [
                                            {
                                              "type": "string",
                                              "maxLength": 1000
                                            },
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "boolean"
                                            }
                                          ]
                                        }
                                      },
                                      "required": ["path", "equals"]
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "path": {
                                          "type": "string",
                                          "maxLength": 200,
                                          "pattern": "^[^.\\s]+(\\.[^.\\s]+)*$"
                                        },
                                        "gt": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "gte": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "lt": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        },
                                        "lte": {
                                          "anyOf": [
                                            {
                                              "type": "number"
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "setting": {
                                                  "type": "string",
                                                  "pattern": "^[a-zA-Z][a-zA-Z0-9_]*$"
                                                }
                                              },
                                              "required": ["setting"]
                                            }
                                          ]
                                        }
                                      },
                                      "required": ["path"]
                                    }
                                  ]
                                }
                              }
                            ]
                          },
                          "beneficiary": {
                            "type": "string",
                            "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,39}$"
                          },
                          "enrollment": {
                            "type": "string",
                            "enum": ["none", "required"]
                          },
                          "since": {
                            "type": "string",
                            "enum": ["activation", "window", "enrollment"]
                          },
                          "historical": {
                            "type": "string",
                            "enum": ["staff", "claim", "automatic"]
                          },
                          "content": {
                            "type": "boolean",
                            "const": true
                          }
                        },
                        "required": ["tracker", "source", "on", "beneficiary"]
                      }
                    },
                    "required": ["kind"]
                  }
                ]
              },
              "availability": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "available"
                      },
                      "input": {
                        "type": "string",
                        "enum": ["photo", "quiz", "none", "text", "url"]
                      }
                    },
                    "required": ["kind", "input"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "completed"
                      }
                    },
                    "required": ["kind"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "locked"
                      },
                      "missing": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "completion"
                                },
                                "quest": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "scope": {
                                  "type": "string",
                                  "const": "ever"
                                }
                              },
                              "required": ["kind", "quest", "title", "scope"]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "completion"
                                },
                                "quest": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "scope": {
                                  "type": "string",
                                  "const": "period"
                                },
                                "period": {
                                  "type": "string",
                                  "enum": ["day", "week", "month"]
                                },
                                "resetsAt": {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "kind",
                                "quest",
                                "title",
                                "scope",
                                "period",
                                "resetsAt"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "balance"
                                },
                                "balance": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "minimum": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "current": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "kind",
                                "balance",
                                "title",
                                "minimum",
                                "current"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "group"
                                },
                                "group": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["kind", "group", "title"]
                            }
                          ]
                        }
                      }
                    },
                    "required": ["kind", "missing"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "blocked"
                      },
                      "reason": {
                        "type": "string",
                        "enum": [
                          "budget-exhausted",
                          "connection-required",
                          "wallet-required",
                          "paused",
                          "outside-window",
                          "enrollment-required"
                        ]
                      },
                      "window": {
                        "type": "string",
                        "enum": ["tracker", "quest"]
                      },
                      "resetsAt": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["kind", "reason"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "staff-required"
                      }
                    },
                    "required": ["kind"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "automatic"
                      }
                    },
                    "required": ["kind"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "checking"
                      },
                      "attempt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      }
                    },
                    "required": ["kind", "attempt"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "needs-review"
                      },
                      "attempt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      }
                    },
                    "required": ["kind", "attempt"]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "retryable"
                      },
                      "attempt": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      }
                    },
                    "required": ["kind", "attempt"]
                  }
                ]
              },
              "completed": {
                "type": "boolean"
              },
              "completion": {
                "default": {
                  "kind": "once"
                },
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "streak"
                      },
                      "days": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["kind", "days"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "progress"
                      },
                      "goal": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "count"
                          },
                          "count": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["kind", "count"]
                      },
                      "window": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "lifetime"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "calendar"
                              },
                              "period": {
                                "type": "string",
                                "enum": ["day", "week", "month"]
                              },
                              "latenessMs": {
                                "default": 604800000,
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["kind", "period", "latenessMs"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rolling"
                              },
                              "durationMs": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["kind", "durationMs"],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "repeat": {
                        "default": "once",
                        "type": "string",
                        "enum": ["once", "repeat"]
                      }
                    },
                    "required": ["kind", "goal", "window", "repeat"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "once"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "keyed"
                      },
                      "across": {
                        "type": "string",
                        "const": "members"
                      }
                    },
                    "required": ["kind"],
                    "additionalProperties": false
                  }
                ]
              },
              "streak": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "goal": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "current": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "best": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "today": {
                        "type": "string"
                      },
                      "todayQualified": {
                        "type": "boolean"
                      },
                      "timeZone": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100
                      },
                      "nextBoundary": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "pendingTimeZone": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "timeZone": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100
                              },
                              "effectiveAt": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["timeZone", "effectiveAt"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "days": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "day": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "date": {
                              "type": "string"
                            },
                            "timeZone": {
                              "type": "string"
                            },
                            "occurredAt": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": ["day", "date", "timeZone", "occurredAt"]
                        }
                      },
                      "milestone": {
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "pending"
                              }
                            },
                            "required": ["status"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "awarded"
                              },
                              "completion": {
                                "type": "string"
                              },
                              "achievedAt": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["status", "completion", "achievedAt"],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "status": {
                                "type": "string",
                                "const": "budget-exhausted"
                              },
                              "budget": {
                                "type": "string"
                              },
                              "achievedAt": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["status", "budget", "achievedAt"],
                            "additionalProperties": false
                          }
                        ]
                      }
                    },
                    "required": [
                      "goal",
                      "current",
                      "best",
                      "today",
                      "todayQualified",
                      "timeZone",
                      "nextBoundary",
                      "pendingTimeZone",
                      "days",
                      "milestone"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "counter": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "goal": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "current": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "window": {
                        "type": "object",
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "start": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "end": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": ["key", "start", "end"]
                      },
                      "repeat": {
                        "type": "string",
                        "enum": ["once", "repeat"]
                      },
                      "settled": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "latest": {
                        "anyOf": [
                          {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  },
                                  "ordinal": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "achievedAt": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "window": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "const": "revoked"
                                  },
                                  "completion": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  },
                                  "revokedAt": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "id",
                                  "ordinal",
                                  "achievedAt",
                                  "window",
                                  "status",
                                  "completion",
                                  "revokedAt"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  },
                                  "ordinal": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "achievedAt": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "window": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "const": "awarded"
                                  },
                                  "completion": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  }
                                },
                                "required": [
                                  "id",
                                  "ordinal",
                                  "achievedAt",
                                  "window",
                                  "status",
                                  "completion"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  },
                                  "ordinal": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "achievedAt": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "window": {
                                    "type": "string"
                                  },
                                  "status": {
                                    "type": "string",
                                    "const": "budget-exhausted"
                                  },
                                  "budget": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 100,
                                    "pattern": "^[a-zA-Z0-9_-]+$"
                                  }
                                },
                                "required": [
                                  "id",
                                  "ordinal",
                                  "achievedAt",
                                  "window",
                                  "status",
                                  "budget"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "goal",
                      "current",
                      "window",
                      "repeat",
                      "settled",
                      "latest"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "progress": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "current": {
                        "type": "number",
                        "minimum": 0
                      },
                      "target": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "reason": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2000
                      }
                    },
                    "required": ["current", "target", "reason"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "completionCount": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "visibility": {
                "default": "visible",
                "type": "string",
                "enum": ["visible", "hidden"]
              },
              "missing": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "completion"
                        },
                        "quest": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "title": {
                          "type": "string"
                        },
                        "scope": {
                          "type": "string",
                          "const": "ever"
                        }
                      },
                      "required": ["kind", "quest", "title", "scope"]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "completion"
                        },
                        "quest": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "title": {
                          "type": "string"
                        },
                        "scope": {
                          "type": "string",
                          "const": "period"
                        },
                        "period": {
                          "type": "string",
                          "enum": ["day", "week", "month"]
                        },
                        "resetsAt": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "kind",
                        "quest",
                        "title",
                        "scope",
                        "period",
                        "resetsAt"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "balance"
                        },
                        "balance": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "title": {
                          "type": "string"
                        },
                        "minimum": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "current": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "kind",
                        "balance",
                        "title",
                        "minimum",
                        "current"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "group"
                        },
                        "group": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        "title": {
                          "type": "string"
                        }
                      },
                      "required": ["kind", "group", "title"]
                    }
                  ]
                }
              },
              "campaign": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      "window": {
                        "type": "object",
                        "properties": {
                          "from": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "until": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": ["from", "until"]
                      },
                      "enrollment": {
                        "default": "none",
                        "type": "string",
                        "enum": ["none", "required"]
                      },
                      "enrolledAt": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "withdrawnAt": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "withdrawalReason": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "key",
                      "title",
                      "enrollment",
                      "enrolledAt",
                      "withdrawnAt",
                      "withdrawalReason"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "window": {
                "default": null,
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "from": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "until": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": ["from", "until"]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "budgets": {
                "default": [],
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "scope": {
                      "type": "string",
                      "enum": ["member", "project"]
                    },
                    "period": {
                      "type": "string",
                      "enum": ["day", "week", "month", "lifetime"]
                    },
                    "remaining": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "resetsAt": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": ["id", "scope", "period", "remaining", "resetsAt"]
                }
              },
              "retryAt": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "nextAvailableAt": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "attempt": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "release": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "quest": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "evidence": {
                        "anyOf": [
                          {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "input": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "quiz"
                              },
                              "release": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "answers": {}
                            },
                            "required": ["kind", "answers"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "text"
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 10000
                              }
                            },
                            "required": ["kind", "value"]
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "url"
                              },
                              "value": {
                                "type": "string",
                                "maxLength": 2048
                              }
                            },
                            "required": ["kind", "value"]
                          }
                        ]
                      },
                      "status": {
                        "type": "string"
                      },
                      "reason": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "retries": {
                        "type": "number"
                      },
                      "generation": {
                        "type": "number"
                      },
                      "completion": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reviewRewards": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "default": "points",
                                      "type": "string",
                                      "const": "points"
                                    },
                                    "balance": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "pattern": "^[a-zA-Z0-9_-]+$"
                                    },
                                    "amount": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": ["kind", "balance", "amount"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "tier"
                                    },
                                    "reward": {
                                      "type": "object",
                                      "properties": {
                                        "badge": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "pattern": "^[a-zA-Z0-9_-]+$"
                                        },
                                        "group": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "pattern": "^[a-zA-Z0-9_-]+$"
                                        },
                                        "id": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 100,
                                          "pattern": "^[a-zA-Z0-9_-]+$"
                                        },
                                        "title": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 120
                                        },
                                        "tiers": {
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "id": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 100,
                                                "pattern": "^[a-zA-Z0-9_-]+$"
                                              },
                                              "title": {
                                                "type": "string",
                                                "minLength": 1,
                                                "maxLength": 120
                                              }
                                            },
                                            "required": ["id", "title"]
                                          }
                                        },
                                        "inventory": {
                                          "type": "object",
                                          "properties": {
                                            "kind": {
                                              "type": "string",
                                              "const": "untracked"
                                            }
                                          },
                                          "required": ["kind"]
                                        },
                                        "fulfillment": {
                                          "oneOf": [
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "staff-handover"
                                                }
                                              },
                                              "required": ["kind"],
                                              "additionalProperties": false
                                            },
                                            {
                                              "type": "object",
                                              "properties": {
                                                "kind": {
                                                  "type": "string",
                                                  "const": "automatic"
                                                }
                                              },
                                              "required": ["kind"],
                                              "additionalProperties": false
                                            }
                                          ]
                                        }
                                      },
                                      "required": [
                                        "id",
                                        "title",
                                        "tiers",
                                        "inventory",
                                        "fulfillment"
                                      ]
                                    },
                                    "tier": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 100,
                                      "pattern": "^[a-zA-Z0-9_-]+$"
                                    }
                                  },
                                  "required": ["kind", "reward", "tier"]
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "integration"
                                    },
                                    "provider": {
                                      "type": "string",
                                      "const": "discord"
                                    },
                                    "action": {
                                      "type": "string",
                                      "const": "grant-role"
                                    },
                                    "roleId": {
                                      "type": "string",
                                      "pattern": "^[0-9]{1,20}$"
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "provider",
                                    "action",
                                    "roleId"
                                  ]
                                }
                              ]
                            }
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "evaluationRun": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "deferCount": {
                        "default": 0,
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "deferUntil": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "nextEvaluationAt": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "code": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "codeSource": {
                        "anyOf": [
                          {
                            "type": "string"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "progress": {
                        "default": null,
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "current": {
                                "type": "number",
                                "minimum": 0
                              },
                              "target": {
                                "type": "number",
                                "exclusiveMinimum": 0
                              },
                              "reason": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              }
                            },
                            "required": ["current", "target", "reason"]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "requestedReview": {
                        "default": false,
                        "type": "boolean"
                      },
                      "createdAt": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "release",
                      "quest",
                      "member",
                      "evidence",
                      "status",
                      "reason",
                      "retries",
                      "generation",
                      "completion",
                      "reviewRewards",
                      "evaluationRun",
                      "deferCount",
                      "deferUntil",
                      "nextEvaluationAt",
                      "code",
                      "progress",
                      "requestedReview",
                      "createdAt"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "quest",
              "title",
              "presentation",
              "connections",
              "trigger",
              "availability",
              "completed",
              "completion",
              "progress",
              "completionCount",
              "visibility",
              "missing",
              "campaign",
              "window",
              "budgets",
              "attempt"
            ]
          }
        },
        "entitlements": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "available"
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "handing-over"
                      },
                      "handover": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "startedAt": {
                        "type": "number"
                      },
                      "allocation": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": ["item", "label"],
                        "additionalProperties": {}
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "handover",
                      "startedAt"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "collected"
                      },
                      "handover": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "startedAt": {
                        "type": "number"
                      },
                      "allocation": {
                        "type": "object",
                        "properties": {
                          "item": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "label": {
                            "type": "string"
                          }
                        },
                        "required": ["item", "label"],
                        "additionalProperties": {}
                      },
                      "collectedAt": {
                        "type": "number"
                      },
                      "recovery": {
                        "type": "object",
                        "properties": {
                          "completion": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "reason": {
                            "type": "string"
                          },
                          "flaggedAt": {
                            "type": "number"
                          },
                          "remainingTier": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "completion",
                          "reason",
                          "flaggedAt",
                          "remainingTier"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "handover",
                      "startedAt",
                      "collectedAt"
                    ],
                    "additionalProperties": {}
                  },
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "member": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "reward": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100,
                            "pattern": "^[a-zA-Z0-9_-]+$"
                          },
                          "title": {
                            "type": "string"
                          },
                          "tiers": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 100,
                                  "pattern": "^[a-zA-Z0-9_-]+$"
                                },
                                "title": {
                                  "type": "string"
                                }
                              },
                              "required": ["id", "title"],
                              "additionalProperties": {}
                            }
                          },
                          "inventory": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          },
                          "fulfillment": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              }
                            },
                            "required": ["kind"],
                            "additionalProperties": {}
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "tiers",
                          "inventory",
                          "fulfillment"
                        ],
                        "additionalProperties": {}
                      },
                      "earnedTier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "tier": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 100,
                        "pattern": "^[a-zA-Z0-9_-]+$"
                      },
                      "revision": {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "status": {
                        "type": "string",
                        "const": "void"
                      },
                      "voidedAt": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "id",
                      "member",
                      "reward",
                      "earnedTier",
                      "tier",
                      "revision",
                      "status",
                      "voidedAt"
                    ],
                    "additionalProperties": {}
                  }
                ]
              },
              {}
            ]
          }
        }
      },
      "required": ["member", "quests", "entitlements"]
    },
    "revocationShortfalls": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "completion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "quest": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "revokedAt": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "unreversedPoints": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "additionalProperties": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          }
        },
        "required": ["completion", "quest", "revokedAt", "unreversedPoints"]
      }
    },
    "revokedCompletions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "completion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "quest": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "key": {
            "type": "string"
          },
          "revokedAt": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reason": {
            "type": "string"
          },
          "revocation": {
            "type": "object",
            "properties": {
              "completion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "quest": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "member": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              "source": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100,
                    "pattern": "^[a-zA-Z0-9_-]+$"
                  }
                },
                "required": ["kind", "id"]
              },
              "revokedAt": {
                "type": "number"
              },
              "occurrenceFreed": {
                "type": "boolean"
              },
              "badges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "badge": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "stillAwarded": {
                      "type": "boolean"
                    }
                  },
                  "required": ["badge", "stillAwarded"]
                }
              },
              "groups": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "group": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "stillMember": {
                      "type": "boolean"
                    }
                  },
                  "required": ["group", "stillMember"]
                }
              },
              "points": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "entry": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "balance": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "reversal": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 100,
                          "pattern": "^[a-zA-Z0-9_-]+$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reversed": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "unreversed": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "entry",
                    "balance",
                    "reversal",
                    "reversed",
                    "unreversed"
                  ]
                }
              },
              "entitlements": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "entitlement": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "reward": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "outcome": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "status": {
                      "type": "string"
                    }
                  },
                  "required": ["entitlement", "reward", "outcome", "status"]
                }
              },
              "deliveries": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "delivery": {
                      "type": "string"
                    },
                    "roleId": {
                      "type": "string"
                    },
                    "outcome": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    },
                    "stillGranted": {
                      "type": "boolean"
                    }
                  },
                  "required": ["delivery", "roleId", "outcome", "stillGranted"]
                }
              },
              "referrals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "program": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "outcome": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64
                    }
                  },
                  "required": ["program", "outcome"]
                }
              },
              "streakMilestone": {
                "type": "boolean"
              },
              "budgets": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "budget": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100,
                      "pattern": "^[a-zA-Z0-9_-]+$"
                    },
                    "released": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": ["budget", "released"]
                }
              }
            },
            "required": [
              "completion",
              "quest",
              "member",
              "revokedAt",
              "occurrenceFreed",
              "points",
              "entitlements",
              "deliveries",
              "referrals",
              "streakMilestone"
            ]
          }
        },
        "required": ["completion", "quest", "key", "revokedAt"]
      }
    },
    "campaignEnrollments": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "campaign": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "member": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          },
          "enrolledAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "withdrawnAt": {
            "default": null,
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "withdrawalReason": {
            "default": null,
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "campaign",
          "member",
          "enrolledAt",
          "withdrawnAt",
          "withdrawalReason"
        ]
      }
    },
    "passes": {
      "default": [],
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "attempt": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[a-zA-Z0-9_-]+$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": ["provider", "event", "subject", "attempt"]
      }
    },
    "wallets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string",
            "enum": ["solana", "eip155", "cosmos"]
          },
          "network": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "type": "string"
          },
          "verifiedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "revision": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "signIn": {
            "type": "boolean"
          },
          "imported": {
            "type": "boolean"
          },
          "vouchedBy": {
            "type": "object",
            "properties": {
              "integration": {
                "type": "string"
              },
              "integrationName": {
                "type": "string"
              }
            },
            "required": ["integration", "integrationName"]
          },
          "source": {
            "type": "string"
          },
          "import": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["linked", "unlinked"]
          },
          "unlinkedAt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "unlinkedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "chain",
          "network",
          "address",
          "verifiedAt",
          "revision",
          "signIn",
          "status",
          "unlinkedAt",
          "unlinkedBy"
        ]
      }
    },
    "balanceChecks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "decimals": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "total": {
            "type": "string",
            "pattern": "^(0|[1-9][0-9]*)$"
          },
          "wallets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                },
                "amount": {
                  "type": "string",
                  "pattern": "^(0|[1-9][0-9]*)$"
                }
              },
              "required": ["address", "amount"]
            }
          },
          "observedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "attempt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-zA-Z0-9_-]+$"
          }
        },
        "required": [
          "chain",
          "token",
          "decimals",
          "total",
          "wallets",
          "observedAt",
          "attempt"
        ]
      }
    },
    "profile": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "name": {
              "type": "string"
            },
            "avatar": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "const": "upload"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "seed": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": ["source", "url", "seed"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "const": "account"
                    },
                    "provider": {
                      "type": "string",
                      "enum": ["x", "discord", "google"]
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "seed": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": ["source", "provider", "url", "seed"],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "const": "generated"
                    },
                    "seed": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "required": ["source", "seed"],
                  "additionalProperties": false
                }
              ]
            },
            "displayName": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "avatarChoice": {
              "type": "string",
              "enum": ["default", "upload", "account", "generated"]
            },
            "avatarProvider": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": ["x", "discord", "google"]
                },
                {
                  "type": "null"
                }
              ]
            },
            "hidden": {
              "type": "boolean"
            },
            "locked": {
              "type": "boolean"
            },
            "visibility": {
              "type": "string",
              "enum": ["private", "participants", "public"]
            },
            "member": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "lockedAt": {
              "anyOf": [
                {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                {
                  "type": "null"
                }
              ]
            },
            "lockedBy": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "lockedReason": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "updatedAt": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "id",
            "name",
            "avatar",
            "displayName",
            "avatarChoice",
            "avatarProvider",
            "hidden",
            "locked",
            "visibility",
            "member",
            "lockedAt",
            "lockedBy",
            "lockedReason",
            "updatedAt"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "identities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64
          },
          "subject": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "linkedAt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 8640000000000000
              },
              {
                "type": "null"
              }
            ]
          },
          "imported": {
            "type": "boolean"
          },
          "vouchedBy": {
            "type": "object",
            "properties": {
              "integration": {
                "type": "string"
              },
              "integrationName": {
                "type": "string"
              }
            },
            "required": ["integration", "integrationName"]
          },
          "testLinked": {
            "type": "boolean"
          },
          "source": {
            "type": "string"
          },
          "import": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": ["linked", "unlinked"]
          },
          "unlinkedAt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "unlinkedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "subject",
          "revision",
          "linkedAt",
          "status",
          "unlinkedAt",
          "unlinkedBy"
        ]
      }
    },
    "creatorAccounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "provider": {},
          "subject": {
            "type": "string",
            "minLength": 1
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "linkedAt": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": ["connected", "needs-reconnect"]
          },
          "reason": {
            "type": "string"
          },
          "profile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "username": {
                    "type": "string"
                  },
                  "imageUrl": {
                    "type": "string"
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "provider",
          "subject",
          "revision",
          "linkedAt",
          "status",
          "profile"
        ]
      }
    },
    "referral": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "inviter": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "acceptedAt": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "suspended": {
              "type": "boolean"
            },
            "import": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100,
                  "pattern": "^[a-zA-Z0-9_-]+$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": ["inviter", "acceptedAt", "suspended", "import"]
        },
        {
          "type": "null"
        }
      ]
    },
    "ban": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "member": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100,
              "pattern": "^[a-zA-Z0-9_-]+$"
            },
            "reason": {
              "type": "string"
            },
            "bannedAt": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "bannedBy": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            },
            "rollback": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string"
                },
                "finishedAt": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "outcome": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "attemptsRejected": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "completionsRevoked": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "completionsRestored": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "completionsKept": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "completion": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "code": {
                                "type": "string"
                              }
                            },
                            "required": ["completion", "code"]
                          }
                        },
                        "entriesReversed": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "referralAccounts": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "points": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ledger": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "reversed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "unreversed": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["ledger", "reversed", "unreversed"]
                          }
                        },
                        "referralDebt": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "ledger": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 100,
                                "pattern": "^[a-zA-Z0-9_-]+$"
                              },
                              "amount": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": ["ledger", "amount"]
                          }
                        }
                      },
                      "required": [
                        "attemptsRejected",
                        "completionsRevoked",
                        "completionsRestored",
                        "completionsKept",
                        "entriesReversed",
                        "referralAccounts",
                        "points",
                        "referralDebt"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "completions": {
                  "type": "boolean"
                },
                "referralPayouts": {
                  "type": "boolean"
                },
                "pointAwards": {
                  "type": "boolean"
                }
              },
              "required": [
                "status",
                "finishedAt",
                "outcome",
                "completions",
                "referralPayouts",
                "pointAwards"
              ]
            },
            "unban": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "reason": {
                      "type": "string"
                    },
                    "unbannedAt": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "by": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "restoreCompletions": {
                      "type": "boolean"
                    },
                    "restore": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "status": {
                              "type": "string"
                            },
                            "finishedAt": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "outcome": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "attemptsRejected": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "completionsRevoked": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "completionsRestored": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "completionsKept": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "completion": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100,
                                            "pattern": "^[a-zA-Z0-9_-]+$"
                                          },
                                          "code": {
                                            "type": "string"
                                          }
                                        },
                                        "required": ["completion", "code"]
                                      }
                                    },
                                    "entriesReversed": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "referralAccounts": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "points": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "ledger": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100,
                                            "pattern": "^[a-zA-Z0-9_-]+$"
                                          },
                                          "reversed": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          },
                                          "unreversed": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": [
                                          "ledger",
                                          "reversed",
                                          "unreversed"
                                        ]
                                      }
                                    },
                                    "referralDebt": {
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "ledger": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 100,
                                            "pattern": "^[a-zA-Z0-9_-]+$"
                                          },
                                          "amount": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 9007199254740991
                                          }
                                        },
                                        "required": ["ledger", "amount"]
                                      }
                                    }
                                  },
                                  "required": [
                                    "attemptsRejected",
                                    "completionsRevoked",
                                    "completionsRestored",
                                    "completionsKept",
                                    "entriesReversed",
                                    "referralAccounts",
                                    "points",
                                    "referralDebt"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": ["status", "finishedAt", "outcome"]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "reason",
                    "unbannedAt",
                    "by",
                    "restoreCompletions",
                    "restore"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "id",
            "member",
            "reason",
            "bannedAt",
            "bannedBy",
            "rollback",
            "unban"
          ]
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "snapshot",
    "member",
    "progress",
    "revocationShortfalls",
    "campaignEnrollments",
    "passes",
    "wallets",
    "balanceChecks",
    "profile",
    "identities"
  ],
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    },
    "__schema1": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema1"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema1"
          }
        }
      ]
    }
  }
}
