{
  "openapi": "3.1.1",
  "info": {
    "title": "FeedHub Edge REST API",
    "version": "1.1.0"
  },
  "paths": {
    "/local/v1/sports/{id}": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read a Sport by ID",
        "description": "Reads a locally held reference or asks FeedHub for it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Sport"
                },
                "example": {
                  "id": "0198af28-fa00-7000-8000-000000000002",
                  "key": "football",
                  "name": "Football",
                  "updatedAt": "2026-01-15T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Edge does not hold the requested resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "Edge does not hold the requested resource.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "Edge does not hold the requested resource."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. Edge does not hold the reference and FeedHub did not answer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "Edge does not hold the reference and FeedHub did not answer.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "Edge does not hold the reference and FeedHub did not answer."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/sports": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List sports",
        "description": "Records at or below Edge's catch-up watermark, ordered by updatedAt and ID. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Inclusive ISO 8601 timestamp with Z or an offset. Omit to start from the beginning.",
            "explode": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor for this list and updatedSince. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SportListPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "0198af28-fa00-7000-8000-000000000002",
                      "key": "football",
                      "name": "Football",
                      "updatedAt": "2026-01-15T12:00:00Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "updatedSince must be an ISO 8601 timestamp with Z or an offset. The cursor is malformed, belongs to a different list or was issued with a different updatedSince. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-updated-since",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-updated-since": {
                    "summary": "updatedSince must be an ISO 8601 timestamp with Z or an offset.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-updated-since",
                      "detail": "updatedSince must be an ISO 8601 timestamp with Z or an offset."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/countries/{id}": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read a Country by ID",
        "description": "Reads a locally held reference or asks FeedHub for it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Country"
                },
                "example": {
                  "id": "0198af28-fa00-7000-8000-000000000001",
                  "key": "GB-ENG",
                  "name": "England",
                  "updatedAt": "2026-01-15T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Edge does not hold the requested resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "Edge does not hold the requested resource.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "Edge does not hold the requested resource."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. Edge does not hold the reference and FeedHub did not answer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "Edge does not hold the reference and FeedHub did not answer.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "Edge does not hold the reference and FeedHub did not answer."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/countries": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List countries",
        "description": "Records at or below Edge's catch-up watermark, ordered by updatedAt and ID. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Inclusive ISO 8601 timestamp with Z or an offset. Omit to start from the beginning.",
            "explode": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor for this list and updatedSince. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CountryListPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "0198af28-fa00-7000-8000-000000000001",
                      "key": "GB-ENG",
                      "name": "England",
                      "updatedAt": "2026-01-15T12:00:00Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "updatedSince must be an ISO 8601 timestamp with Z or an offset. The cursor is malformed, belongs to a different list or was issued with a different updatedSince. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-updated-since",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-updated-since": {
                    "summary": "updatedSince must be an ISO 8601 timestamp with Z or an offset.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-updated-since",
                      "detail": "updatedSince must be an ISO 8601 timestamp with Z or an offset."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/tournaments/{id}": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read a Tournament by ID",
        "description": "Reads a locally held reference or asks FeedHub for it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Tournament"
                },
                "example": {
                  "id": "0198af28-fa00-7000-8000-000000000003",
                  "sportId": "0198af28-fa00-7000-8000-000000000002",
                  "countryId": null,
                  "name": "Premier League",
                  "updatedAt": "2026-01-15T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Edge does not hold the requested resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "Edge does not hold the requested resource.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "Edge does not hold the requested resource."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. Edge does not hold the reference and FeedHub did not answer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "Edge does not hold the reference and FeedHub did not answer.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "Edge does not hold the reference and FeedHub did not answer."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/tournaments": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List tournaments",
        "description": "Records at or below Edge's catch-up watermark, ordered by updatedAt and ID. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Inclusive ISO 8601 timestamp with Z or an offset. Omit to start from the beginning.",
            "explode": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor for this list and updatedSince. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TournamentListPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "0198af28-fa00-7000-8000-000000000003",
                      "sportId": "0198af28-fa00-7000-8000-000000000002",
                      "countryId": null,
                      "name": "Premier League",
                      "updatedAt": "2026-01-15T12:00:00Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "updatedSince must be an ISO 8601 timestamp with Z or an offset. The cursor is malformed, belongs to a different list or was issued with a different updatedSince. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-updated-since",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-updated-since": {
                    "summary": "updatedSince must be an ISO 8601 timestamp with Z or an offset.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-updated-since",
                      "detail": "updatedSince must be an ISO 8601 timestamp with Z or an offset."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/teams/{id}": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read a Team by ID",
        "description": "Reads a locally held reference or asks FeedHub for it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Team"
                },
                "example": {
                  "id": "0198af28-fa00-7000-8000-000000000001",
                  "name": "City FC",
                  "iconUrl": null,
                  "updatedAt": "2026-01-15T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Edge does not hold the requested resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "Edge does not hold the requested resource.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "Edge does not hold the requested resource."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. Edge does not hold the reference and FeedHub did not answer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "Edge does not hold the reference and FeedHub did not answer.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "Edge does not hold the reference and FeedHub did not answer."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/teams": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List teams",
        "description": "Records at or below Edge's catch-up watermark, ordered by updatedAt and ID. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Inclusive ISO 8601 timestamp with Z or an offset. Omit to start from the beginning.",
            "explode": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor for this list and updatedSince. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TeamListPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "0198af28-fa00-7000-8000-000000000001",
                      "name": "City FC",
                      "iconUrl": null,
                      "updatedAt": "2026-01-15T12:00:00Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "updatedSince must be an ISO 8601 timestamp with Z or an offset. The cursor is malformed, belongs to a different list or was issued with a different updatedSince. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-updated-since",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-updated-since": {
                    "summary": "updatedSince must be an ISO 8601 timestamp with Z or an offset.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-updated-since",
                      "detail": "updatedSince must be an ISO 8601 timestamp with Z or an offset."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/market-types/{id}": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read a MarketType by ID",
        "description": "Reads a locally held reference or asks FeedHub for it.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketType"
                },
                "example": {
                  "id": "0198af28-fa00-7000-8000-000000000004",
                  "key": "winner",
                  "name": "Winner",
                  "sportNames": [ ],
                  "updatedAt": "2026-01-15T12:00:00Z"
                }
              }
            }
          },
          "404": {
            "description": "Edge does not hold the requested resource.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "Edge does not hold the requested resource.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "Edge does not hold the requested resource."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. Edge does not hold the reference and FeedHub did not answer.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "Edge does not hold the reference and FeedHub did not answer.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "Edge does not hold the reference and FeedHub did not answer."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/market-types": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List market-types",
        "description": "Records at or below Edge's catch-up watermark, ordered by updatedAt and ID. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "updatedSince",
            "in": "query",
            "description": "Inclusive ISO 8601 timestamp with Z or an offset. Omit to start from the beginning.",
            "explode": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor for this list and updatedSince. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketTypeListPage"
                },
                "example": {
                  "items": [
                    {
                      "id": "0198af28-fa00-7000-8000-000000000004",
                      "key": "winner",
                      "name": "Winner",
                      "sportNames": [ ],
                      "updatedAt": "2026-01-15T12:00:00Z"
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "updatedSince must be an ISO 8601 timestamp with Z or an offset. The cursor is malformed, belongs to a different list or was issued with a different updatedSince. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-updated-since",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-updated-since": {
                    "summary": "updatedSince must be an ISO 8601 timestamp with Z or an offset.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-updated-since",
                      "detail": "updatedSince must be an ISO 8601 timestamp with Z or an offset."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to a different list or was issued with a different updatedSince."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/events": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "List active events",
        "description": "Locally held events in ID order, with finished and withdrawn events omitted. nextCursor is null on the last page.",
        "parameters": [
          {
            "name": "sportId",
            "in": "query",
            "description": "Repeat the parameter to select any listed sport. Blank values are ignored. Omit to include all sports Edge receives.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "isLive",
            "in": "query",
            "description": "Use true for live or false for prematch. Omit to include both.",
            "explode": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque nextCursor issued for these sports and live state. Omitted filters are carried forward.",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum items on this page. Defaults to 500.",
            "explode": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer",
              "default": 500
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveEventListPage"
                },
                "example": {
                  "items": [
                    {
                      "event": {
                        "eventId": "0198af28-fa00-7000-8000-000000000001",
                        "fetchedAt": "2026-01-15T12:00:00Z",
                        "isLive": true,
                        "isFinished": false,
                        "content": {
                          "gameStart": "2026-01-15T11:00:00Z",
                          "sportId": "0198af28-fa00-7000-8000-000000000002",
                          "countryId": null,
                          "tournamentId": "0198af28-fa00-7000-8000-000000000003",
                          "teamAId": null,
                          "teamBId": null,
                          "kind": "Match",
                          "name": null,
                          "prematchEventId": null,
                          "scoreFull": null,
                          "scorePeriod": null,
                          "scoreExtra": null,
                          "periodName": null,
                          "extraTime": null,
                          "pitch": null,
                          "timer": null
                        },
                        "manifest": [
                          {
                            "marketId": "0198af28-fa00-7000-8000-000000000005",
                            "contentHash": "fe28f3fab2814867"
                          }
                        ],
                        "changedMarketIds": null,
                        "schemaVersion": 1,
                        "messageId": "0198af28-fa00-7000-8000-000000000007",
                        "producedAt": "2026-01-15T12:00:00Z"
                      }
                    }
                  ],
                  "nextCursor": null
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Every sportId must be a UUID. isLive must be true or false. Edge does not receive a requested sport for the requested live state. The cursor is malformed, belongs to another list or was issued with different filters. limit must be an integer from 1 to 1000.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-sport-id",
                        "invalid-is-live",
                        "unbound-sport",
                        "invalid-cursor",
                        "invalid-limit"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-sport-id": {
                    "summary": "Every sportId must be a UUID.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-sport-id",
                      "detail": "Every sportId must be a UUID."
                    }
                  },
                  "invalid-is-live": {
                    "summary": "isLive must be true or false.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-is-live",
                      "detail": "isLive must be true or false."
                    }
                  },
                  "unbound-sport": {
                    "summary": "Edge does not receive a requested sport for the requested live state.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "unbound-sport",
                      "detail": "Edge does not receive a requested sport for the requested live state."
                    }
                  },
                  "invalid-cursor": {
                    "summary": "The cursor is malformed, belongs to another list or was issued with different filters.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-cursor",
                      "detail": "The cursor is malformed, belongs to another list or was issued with different filters."
                    }
                  },
                  "invalid-limit": {
                    "summary": "limit must be an integer from 1 to 1000.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-limit",
                      "detail": "limit must be an integer from 1 to 1000."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/events/{id}/markets": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read markets for an event",
        "description": "One item per snapshot with visible markets. An item's suspended flag is true while the event is withdrawn by index or any of the item's markets is suspended by index.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "UUID of the requested resource.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalEventMarkets"
                },
                "example": {
                  "items": [
                    {
                      "market": {
                        "eventId": "0198af28-fa00-7000-8000-000000000001",
                        "tournamentId": "0198af28-fa00-7000-8000-000000000003",
                        "snapshotKey": "0198af28-fa00-7000-8000-000000000008",
                        "group": null,
                        "markets": [
                          {
                            "marketId": "0198af28-fa00-7000-8000-000000000005",
                            "marketTypeId": "0198af28-fa00-7000-8000-000000000004",
                            "name": null,
                            "columns": 1,
                            "selections": [
                              [
                                {
                                  "selectionId": "0198af28-fa00-7000-8000-000000000006",
                                  "name": "Home",
                                  "value": "1.85",
                                  "isSuspended": false,
                                  "columnIndex": 0,
                                  "line": null,
                                  "participantId": null,
                                  "sortOrder": 0
                                }
                              ]
                            ],
                            "splitNumber": null
                          }
                        ],
                        "contentHash": "fe28f3fab2814867",
                        "fetchedAt": "2026-01-15T12:00:00Z",
                        "full": true,
                        "schemaVersion": 1,
                        "messageId": "0198af28-fa00-7000-8000-000000000007",
                        "producedAt": "2026-01-15T12:00:00Z"
                      },
                      "suspended": false
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The event is absent or hidden by publication policy.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        404
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "not-found"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "not-found": {
                    "summary": "The event is absent or hidden by publication policy.",
                    "value": {
                      "title": "Not Found",
                      "status": 404,
                      "code": "not-found",
                      "detail": "The event is absent or hidden by publication policy."
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet. FeedHub did not confirm managed publication membership for a held event that Edge could otherwise serve.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready",
                        "feedhub-unavailable"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  },
                  "feedhub-unavailable": {
                    "summary": "FeedHub did not confirm managed publication membership for a held event that Edge could otherwise serve.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "feedhub-unavailable",
                      "detail": "FeedHub did not confirm managed publication membership for a held event that Edge could otherwise serve."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/status": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Read Edge status",
        "description": "Returns the current status, including during initial bootstrap.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EdgeHealth"
                },
                "example": {
                  "status": "Degraded",
                  "reason": "Starting",
                  "since": "2026-01-15T12:00:00Z",
                  "edgeVersion": "1.1.0",
                  "wireVersions": [
                    1
                  ],
                  "lastFetchedAt": null,
                  "lagSeconds": null
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/ready": {
      "get": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Check Edge readiness",
        "description": "Returns Healthy after initial bootstrap, including while Edge is degraded.",
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                },
                "example": "Healthy"
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/local/v1/refresh": {
      "post": {
        "tags": [
          "Edge REST"
        ],
        "summary": "Refresh markets before betting",
        "description": "Returns one entry per event and a list of market IDs that could not be assigned to a visible event. An upstream failure still returns 200 with an Unknown entry for each affected held event.",
        "requestBody": {
          "description": "Send 1 to 100 market UUIDs before deduplication. Edge also accepts JSON media subtypes ending in +json.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarketsRefreshRequest"
              },
              "example": {
                "marketIds": [
                  "0198af28-fa00-7000-8000-000000000005"
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LocalRefreshResponse"
                },
                "examples": {
                  "served": {
                    "summary": "Fresh markets",
                    "value": {
                      "events": [
                        {
                          "eventId": "0198af28-fa00-7000-8000-000000000001",
                          "status": "Served",
                          "event": {
                            "eventId": "0198af28-fa00-7000-8000-000000000001",
                            "fetchedAt": "2026-01-15T12:00:00Z",
                            "isLive": true,
                            "isFinished": false,
                            "content": {
                              "gameStart": "2026-01-15T11:00:00Z",
                              "sportId": "0198af28-fa00-7000-8000-000000000002",
                              "countryId": null,
                              "tournamentId": "0198af28-fa00-7000-8000-000000000003",
                              "teamAId": null,
                              "teamBId": null,
                              "kind": "Match",
                              "name": null,
                              "prematchEventId": null,
                              "scoreFull": null,
                              "scorePeriod": null,
                              "scoreExtra": null,
                              "periodName": null,
                              "extraTime": null,
                              "pitch": null,
                              "timer": null
                            },
                            "manifest": [
                              {
                                "marketId": "0198af28-fa00-7000-8000-000000000005",
                                "contentHash": "fe28f3fab2814867"
                              }
                            ],
                            "changedMarketIds": null,
                            "schemaVersion": 1,
                            "messageId": "0198af28-fa00-7000-8000-000000000007",
                            "producedAt": "2026-01-15T12:00:00Z"
                          },
                          "markets": [
                            {
                              "eventId": "0198af28-fa00-7000-8000-000000000001",
                              "tournamentId": "0198af28-fa00-7000-8000-000000000003",
                              "snapshotKey": "0198af28-fa00-7000-8000-000000000008",
                              "group": null,
                              "markets": [
                                {
                                  "marketId": "0198af28-fa00-7000-8000-000000000005",
                                  "marketTypeId": "0198af28-fa00-7000-8000-000000000004",
                                  "name": null,
                                  "columns": 1,
                                  "selections": [
                                    [
                                      {
                                        "selectionId": "0198af28-fa00-7000-8000-000000000006",
                                        "name": "Home",
                                        "value": "1.85",
                                        "isSuspended": false,
                                        "columnIndex": 0,
                                        "line": null,
                                        "participantId": null,
                                        "sortOrder": 0
                                      }
                                    ]
                                  ],
                                  "splitNumber": null
                                }
                              ],
                              "contentHash": "fe28f3fab2814867",
                              "fetchedAt": "2026-01-15T12:00:00Z",
                              "full": true,
                              "schemaVersion": 1,
                              "messageId": "0198af28-fa00-7000-8000-000000000007",
                              "producedAt": "2026-01-15T12:00:00Z"
                            }
                          ]
                        }
                      ],
                      "unknownMarketIds": [ ]
                    }
                  },
                  "upstream-failure": {
                    "summary": "FeedHub refresh unavailable for a held event",
                    "value": {
                      "events": [
                        {
                          "heldFetchedAt": "2026-01-15T12:00:00Z",
                          "eventId": "0198af28-fa00-7000-8000-000000000001",
                          "status": "Unknown",
                          "event": null,
                          "markets": [ ]
                        }
                      ],
                      "unknownMarketIds": [ ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Send an object with 1 to 100 UUIDs in marketIds. Validation runs before bootstrap readiness.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        400
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "invalid-market-ids"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "invalid-market-ids": {
                    "summary": "Send an object with 1 to 100 UUIDs in marketIds. Validation runs before bootstrap readiness.",
                    "value": {
                      "title": "Bad Request",
                      "status": 400,
                      "code": "invalid-market-ids",
                      "detail": "Send an object with 1 to 100 UUIDs in marketIds. Validation runs before bootstrap readiness."
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request content type is unsupported.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        415
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    }
                  }
                },
                "example": {
                  "status": 415,
                  "title": "Unsupported Media Type"
                }
              }
            }
          },
          "503": {
            "description": "Edge's first bootstrap from FeedHub hasn't completed yet.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        503
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "edge-not-ready"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "edge-not-ready": {
                    "summary": "Edge's first bootstrap from FeedHub hasn't completed yet.",
                    "value": {
                      "title": "Service Unavailable",
                      "status": 503,
                      "code": "edge-not-ready",
                      "detail": "Edge's first bootstrap from FeedHub hasn't completed yet."
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected failure prevented Edge from answering.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "required": [
                    "title",
                    "status",
                    "code"
                  ],
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        500
                      ],
                      "type": "integer"
                    },
                    "detail": {
                      "type": "string"
                    },
                    "instance": {
                      "type": "string",
                      "format": "uri-reference"
                    },
                    "code": {
                      "enum": [
                        "internal-error"
                      ],
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "internal-error": {
                    "summary": "An unexpected failure prevented Edge from answering.",
                    "value": {
                      "title": "Internal Server Error",
                      "status": 500,
                      "code": "internal-error",
                      "detail": "An unexpected failure prevented Edge from answering."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActiveEvent": {
        "required": [
          "event"
        ],
        "type": "object",
        "properties": {
          "event": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EventSnapshot"
              }
            ]
          }
        }
      },
      "ActiveEventListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActiveEvent"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Country": {
        "required": [
          "id",
          "key",
          "name",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "CountryListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Country"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DegradedReason": {
        "type": "string",
        "description": "Open string. Known values are Starting, Liveness, LiveLag, Arrival, QueueLag. LiveLag may appear in older builds."
      },
      "EdgeHealth": {
        "required": [
          "status",
          "reason",
          "since",
          "edgeVersion",
          "wireVersions",
          "lastFetchedAt",
          "lagSeconds"
        ],
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "allOf": [
              {
                "description": "Open string. Known values are Ready, Degraded.",
                "$ref": "#/components/schemas/EdgeReadiness"
              }
            ],
            "description": "Open string. Known values are Ready, Degraded."
          },
          "reason": {
            "anyOf": [
              {
                "description": "Open string. Known values are Starting, Liveness, LiveLag, Arrival, QueueLag. LiveLag may appear in older builds.",
                "$ref": "#/components/schemas/DegradedReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "since": {
            "type": "string",
            "format": "date-time"
          },
          "edgeVersion": {
            "type": "string"
          },
          "wireVersions": {
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "lastFetchedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "lagSeconds": {
            "type": [
              "null",
              "number"
            ],
            "format": "double"
          }
        }
      },
      "EdgeReadiness": {
        "type": "string",
        "description": "Open string. Known values are Ready, Degraded."
      },
      "EventContent": {
        "required": [
          "gameStart",
          "sportId",
          "countryId",
          "tournamentId",
          "teamAId",
          "teamBId",
          "kind",
          "name",
          "prematchEventId",
          "scoreFull",
          "scorePeriod",
          "scoreExtra",
          "periodName",
          "extraTime",
          "pitch",
          "timer"
        ],
        "type": "object",
        "properties": {
          "gameStart": {
            "type": "string",
            "format": "date-time"
          },
          "sportId": {
            "type": "string",
            "format": "uuid"
          },
          "countryId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "tournamentId": {
            "type": "string",
            "format": "uuid"
          },
          "teamAId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "teamBId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "allOf": [
              {
                "description": "Open string. Known values are Match, Outright, Unrecognized.",
                "$ref": "#/components/schemas/EventKind"
              }
            ],
            "description": "Open string. Known values are Match, Outright, Unrecognized."
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "prematchEventId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "scoreFull": {
            "type": [
              "null",
              "string"
            ]
          },
          "scorePeriod": {
            "type": [
              "null",
              "string"
            ]
          },
          "scoreExtra": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodName": {
            "type": [
              "null",
              "string"
            ]
          },
          "extraTime": {
            "type": [
              "null",
              "string"
            ]
          },
          "pitch": {
            "type": [
              "null",
              "string"
            ]
          },
          "timer": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "EventKind": {
        "type": "string",
        "description": "Open string. Known values are Match, Outright, Unrecognized."
      },
      "EventResyncStatus": {
        "type": "string",
        "description": "Open string. Known values are Served, Unknown, Failed, Unrecognized."
      },
      "EventSnapshot": {
        "required": [
          "schemaVersion",
          "messageId",
          "producedAt",
          "eventId",
          "fetchedAt",
          "isLive",
          "isFinished",
          "content",
          "manifest",
          "changedMarketIds"
        ],
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "messageId": {
            "type": "string",
            "format": "uuid"
          },
          "producedAt": {
            "type": "string",
            "format": "date-time"
          },
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          },
          "isLive": {
            "type": "boolean"
          },
          "isFinished": {
            "type": "boolean"
          },
          "content": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EventContent"
              },
              {
                "type": "null"
              }
            ]
          },
          "manifest": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ManifestEntry"
            }
          },
          "changedMarketIds": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "LocalEventMarket": {
        "required": [
          "market",
          "suspended"
        ],
        "type": "object",
        "properties": {
          "market": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MarketSnapshot"
              }
            ]
          },
          "suspended": {
            "type": "boolean"
          }
        }
      },
      "LocalEventMarkets": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LocalEventMarket"
            }
          }
        }
      },
      "LocalRefreshResponse": {
        "required": [
          "events",
          "unknownMarketIds"
        ],
        "type": "object",
        "properties": {
          "events": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/RefreshedEvent"
                    }
                  ],
                  "not": {
                    "required": [
                      "heldFetchedAt"
                    ]
                  }
                },
                {
                  "description": "An upstream refresh failed for an event held by Edge.",
                  "$ref": "#/components/schemas/UnansweredEvent"
                }
              ]
            },
            "readOnly": true
          },
          "unknownMarketIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "ManifestEntry": {
        "required": [
          "marketId",
          "contentHash"
        ],
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string",
            "format": "uuid"
          },
          "contentHash": {
            "type": "string"
          }
        }
      },
      "Market": {
        "required": [
          "marketId",
          "marketTypeId",
          "name",
          "columns",
          "selections",
          "splitNumber"
        ],
        "type": "object",
        "properties": {
          "marketId": {
            "type": "string",
            "format": "uuid"
          },
          "marketTypeId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "columns": {
            "type": "integer",
            "format": "int32"
          },
          "selections": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/Selection"
              }
            }
          },
          "splitNumber": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          }
        }
      },
      "MarketGroup": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MarketSnapshot": {
        "required": [
          "schemaVersion",
          "messageId",
          "producedAt",
          "eventId",
          "tournamentId",
          "snapshotKey",
          "group",
          "markets",
          "contentHash",
          "fetchedAt",
          "full"
        ],
        "type": "object",
        "properties": {
          "schemaVersion": {
            "type": "integer",
            "format": "int32"
          },
          "messageId": {
            "type": "string",
            "format": "uuid"
          },
          "producedAt": {
            "type": "string",
            "format": "date-time"
          },
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "tournamentId": {
            "type": "string",
            "format": "uuid"
          },
          "snapshotKey": {
            "type": "string",
            "format": "uuid"
          },
          "group": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarketGroup"
              },
              {
                "type": "null"
              }
            ]
          },
          "markets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Market"
            }
          },
          "contentHash": {
            "type": "string"
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          },
          "full": {
            "type": "boolean"
          }
        }
      },
      "MarketType": {
        "required": [
          "id",
          "key",
          "name",
          "sportNames",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "sportNames": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketTypeSportName"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "MarketTypeListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketType"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MarketTypeSportName": {
        "required": [
          "sportId",
          "name"
        ],
        "type": "object",
        "properties": {
          "sportId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "MarketsRefreshRequest": {
        "required": [
          "marketIds"
        ],
        "type": "object",
        "properties": {
          "marketIds": {
            "maxItems": 100,
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        }
      },
      "RefreshedEvent": {
        "required": [
          "eventId",
          "status",
          "event",
          "markets"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "allOf": [
              {
                "description": "Open string. Known values are Served, Unknown, Failed, Unrecognized.",
                "$ref": "#/components/schemas/EventResyncStatus"
              }
            ],
            "description": "Open string. Known values are Served, Unknown, Failed, Unrecognized."
          },
          "event": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EventSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "markets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketSnapshot"
            }
          }
        }
      },
      "Selection": {
        "required": [
          "selectionId",
          "name",
          "value",
          "isSuspended",
          "columnIndex",
          "line",
          "participantId",
          "sortOrder"
        ],
        "type": "object",
        "properties": {
          "selectionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "value": {
            "type": "string",
            "format": "decimal"
          },
          "isSuspended": {
            "type": "boolean"
          },
          "columnIndex": {
            "type": [
              "null",
              "integer"
            ],
            "format": "int32"
          },
          "line": {
            "type": [
              "null",
              "string"
            ],
            "format": "decimal"
          },
          "participantId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "Sport": {
        "required": [
          "id",
          "key",
          "name",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SportListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Sport"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Team": {
        "required": [
          "id",
          "name",
          "iconUrl",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "iconUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TeamListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Team"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "Tournament": {
        "required": [
          "id",
          "sportId",
          "countryId",
          "name",
          "updatedAt"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "sportId": {
            "type": "string",
            "format": "uuid"
          },
          "countryId": {
            "type": [
              "null",
              "string"
            ],
            "format": "uuid"
          },
          "name": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TournamentListPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tournament"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UnansweredEvent": {
        "required": [
          "eventId",
          "status",
          "event",
          "markets",
          "heldFetchedAt"
        ],
        "type": "object",
        "properties": {
          "eventId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "Unknown"
            ],
            "type": "string"
          },
          "event": {
            "type": "null"
          },
          "markets": {
            "maxItems": 0,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MarketSnapshot"
            }
          },
          "heldFetchedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        },
        "description": "An upstream refresh failed for an event held by Edge."
      }
    }
  },
  "tags": [
    {
      "name": "Edge REST"
    }
  ]
}