Files

9306 lines
212 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:openbmh:modern-ui:draft1",
"title": "Modern UI JSON DTO design draft, not an implemented engine protocol",
"description": "Synthetic integration contract proposal. Existing engine APIs require adapters and open decisions documented alongside.",
"$defs": {
"Id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]*:[A-Za-z0-9_./:@-]+$",
"maxLength": 256
},
"Revision": {
"type": "string",
"pattern": "^(0|[1-9][0-9]*)$",
"maxLength": 20
},
"ManagerInputName": {
"type": "string",
"minLength": 1,
"maxLength": 24,
"pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f]+$"
},
"Date": {
"type": "string",
"format": "date",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
"Text": {
"type": "object",
"properties": {
"key": {
"anyOf": [
{
"type": "string",
"maxLength": 160
},
{
"type": "null"
}
]
},
"text": {
"type": "string",
"maxLength": 10000
},
"locale": {
"enum": [
"de",
"en"
]
},
"args": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"integer",
"boolean",
"null"
]
},
"maxProperties": 200
}
},
"required": [
"key",
"text",
"locale",
"args"
],
"additionalProperties": false
},
"Money": {
"type": "object",
"properties": {
"minor": {
"type": "string",
"pattern": "^(0|-?[1-9][0-9]*)$",
"maxLength": 20
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"minorUnits": {
"type": "integer",
"minimum": 0,
"maximum": 4
}
},
"required": [
"minor",
"currency",
"minorUnits"
],
"additionalProperties": false
},
"Availability": {
"type": "object",
"properties": {
"status": {
"enum": [
"available",
"partial",
"unavailable"
]
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"missingFields": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200
},
"minItems": 0,
"maxItems": 100
}
},
"required": [
"status",
"reasonCode",
"missingFields"
],
"additionalProperties": false
},
"Metric": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"unit": {
"enum": [
"count",
"points",
"percent",
"rating",
"stars",
"seconds",
"celsius",
"capacity",
"ratio"
]
},
"scale": {
"anyOf": [
{
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"step": {
"type": "number",
"exclusiveMinimum": 0
}
},
"required": [
"min",
"max",
"step"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"availability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"value",
"unit",
"scale",
"availability"
],
"additionalProperties": false
},
"Team": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"club",
"national"
]
},
"name": {
"type": "string",
"maxLength": 512
},
"shortName": {
"type": "string",
"maxLength": 100
},
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"crestAssetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"nameAsOf": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"kind",
"name",
"shortName",
"nationId",
"crestAssetId",
"nameAsOf"
],
"additionalProperties": false
},
"Player": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string",
"maxLength": 512
},
"photoAssetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"nationIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 4
},
"positions": {
"anyOf": [
{
"type": "array",
"items": {
"enum": [
"gk",
"def",
"mid",
"fwd"
]
},
"minItems": 0,
"maxItems": 4
},
{
"type": "null"
}
]
},
"shirtNumber": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 99
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"photoAssetId",
"nationIds",
"positions",
"shirtNumber"
],
"additionalProperties": false
},
"Competition": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"kind": {
"enum": [
"league",
"domestic_cup",
"international_club",
"national_tournament",
"friendly",
"indoor",
"relegation"
]
},
"editionId": {
"$ref": "#/$defs/Id"
},
"stageId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"rulesId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"id",
"name",
"kind",
"editionId",
"stageId",
"nationId",
"rulesId"
],
"additionalProperties": false
},
"Season": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"startDate": {
"$ref": "#/$defs/Date"
},
"endDate": {
"$ref": "#/$defs/Date"
},
"label": {
"type": "string",
"maxLength": 20
},
"completed": {
"type": "boolean"
}
},
"required": [
"id",
"startDate",
"endDate",
"label",
"completed"
],
"additionalProperties": false
},
"Employment": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"managerId": {
"$ref": "#/$defs/Id"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"role": {
"enum": [
"club_manager",
"national_coach"
]
},
"from": {
"$ref": "#/$defs/Date"
},
"until": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
},
"endReason": {
"anyOf": [
{
"enum": [
"resigned",
"dismissed",
"retired",
"career_end"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"managerId",
"teamId",
"role",
"from",
"until",
"endReason"
],
"additionalProperties": false
},
"Manager": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 3
},
"name": {
"type": "string",
"maxLength": 100
},
"control": {
"enum": [
"human",
"ai",
"archived"
]
},
"status": {
"enum": [
"active",
"resigned",
"dismissed",
"retired"
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"portraitGuiKey": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"portraitStyle": {
"enum": [
"photo",
"painted"
]
},
"strengthChoice": {
"type": "integer",
"minimum": 0,
"maximum": 2
},
"employments": {
"type": "array",
"items": {
"$ref": "#/$defs/Employment"
},
"minItems": 0,
"maxItems": 200
},
"runtimeSlot": {
"type": "integer",
"minimum": 0,
"maximum": 4,
"description": "Optional runtime record slot; record 4 is a preserved club record while coaching. slot remains the logical human slot."
}
},
"required": [
"id",
"slot",
"name",
"control",
"status",
"teamId",
"portraitGuiKey",
"portraitStyle",
"strengthChoice",
"employments"
],
"additionalProperties": false
},
"Ownership": {
"type": "object",
"properties": {
"teamId": {
"$ref": "#/$defs/Id"
},
"controller": {
"enum": [
"human",
"ai"
]
},
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"sinceRevision": {
"$ref": "#/$defs/Revision"
}
},
"required": [
"teamId",
"controller",
"managerId",
"sinceRevision"
],
"additionalProperties": false
},
"Scope": {
"type": "object",
"properties": {
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"role": {
"enum": [
"club",
"national",
"observer",
"session"
]
},
"scopeId": {
"$ref": "#/$defs/Id"
},
"allowedCommands": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"minItems": 0,
"maxItems": 100
}
},
"required": [
"managerId",
"teamId",
"role",
"scopeId",
"allowedCommands"
],
"additionalProperties": false
},
"Page": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"cursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"nextCursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"snapshotRevision": {
"$ref": "#/$defs/Revision"
},
"total": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"sort": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"maxLength": 100
},
"direction": {
"enum": [
"asc",
"desc"
]
}
},
"required": [
"field",
"direction"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 5
}
},
"required": [
"limit",
"cursor",
"nextCursor",
"snapshotRevision",
"total",
"sort"
],
"additionalProperties": false
},
"Coverage": {
"type": "object",
"properties": {
"status": {
"enum": [
"complete",
"partial",
"none"
]
},
"missing": {
"type": "array",
"items": {
"enum": [
"actors",
"lineup_classification",
"events",
"periods",
"seconds",
"referee",
"attendance",
"weather",
"discipline",
"shootout_order"
]
},
"minItems": 0,
"maxItems": 20
},
"basis": {
"enum": [
"engine_recorded",
"legacy_archive",
"synthetic_fixture",
"corrected_projection"
]
}
},
"required": [
"status",
"missing",
"basis"
],
"additionalProperties": false
},
"Meta": {
"type": "object",
"properties": {
"contractVersion": {
"const": "bmh-modern-ui@draft1"
},
"draft": {
"const": true
},
"sourceRevision": {
"type": "string",
"maxLength": 64
},
"careerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"worldId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"worldRevision": {
"type": "string",
"maxLength": 100
},
"stateRevision": {
"$ref": "#/$defs/Revision"
},
"projectionRevision": {
"$ref": "#/$defs/Revision"
},
"locale": {
"enum": [
"de",
"en"
]
},
"date": {
"$ref": "#/$defs/Date"
},
"season": {
"$ref": "#/$defs/Season"
},
"scope": {
"$ref": "#/$defs/Scope"
},
"availability": {
"$ref": "#/$defs/Availability"
},
"currency": {
"type": "object",
"properties": {
"code": {
"type": "string",
"pattern": "^[A-Z]{3}$"
},
"minorUnits": {
"type": "integer",
"minimum": 0,
"maximum": 4
}
},
"required": [
"code",
"minorUnits"
],
"additionalProperties": false
}
},
"required": [
"contractVersion",
"draft",
"sourceRevision",
"careerId",
"worldId",
"worldRevision",
"stateRevision",
"projectionRevision",
"locale",
"date",
"season",
"scope",
"availability",
"currency"
],
"additionalProperties": false
},
"Session": {
"type": "object",
"properties": {
"kind": {
"const": "session"
},
"sessionState": {
"enum": [
"setup",
"opening",
"desktop",
"live",
"postmatch",
"ended"
]
},
"activeManagerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"managers": {
"type": "array",
"items": {
"$ref": "#/$defs/Manager"
},
"minItems": 0,
"maxItems": 4
},
"humanOwnership": {
"type": "array",
"items": {
"$ref": "#/$defs/Ownership"
},
"minItems": 0,
"maxItems": 4
},
"archivedManagerIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 200
},
"archivedManagerCount": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"terminationReason": {
"anyOf": [
{
"enum": [
"last_human_resigned",
"career_completed",
"user_ended",
"engine_failure"
]
},
{
"type": "null"
}
]
},
"mode": {
"enum": [
"club",
"national",
"mixed"
]
},
"canAdvance": {
"type": "boolean"
},
"blockingReason": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"sessionState",
"activeManagerId",
"managers",
"humanOwnership",
"archivedManagerIds",
"archivedManagerCount",
"terminationReason",
"mode",
"canAdvance",
"blockingReason"
],
"additionalProperties": false
},
"Quote": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"ownerManagerId": {
"$ref": "#/$defs/Id"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"scopeId": {
"$ref": "#/$defs/Id"
},
"expiresOn": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
},
"total": {
"$ref": "#/$defs/Money"
},
"totalBasis": {
"enum": [
"immediate",
"month",
"season",
"term"
]
},
"chargesNow": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"breakdown": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 100
},
"amount": {
"$ref": "#/$defs/Money"
}
},
"required": [
"code",
"amount"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
},
"allowed": {
"type": "boolean"
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"ownerManagerId",
"teamId",
"expectedRevision",
"scopeId",
"expiresOn",
"total",
"totalBasis",
"chargesNow",
"breakdown",
"allowed",
"reasonCode"
],
"additionalProperties": false
},
"ManagerArchive": {
"type": "object",
"properties": {
"kind": {
"const": "manager_archive"
},
"managers": {
"type": "array",
"items": {
"$ref": "#/$defs/Manager"
},
"minItems": 0,
"maxItems": 200
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"managers",
"page"
],
"additionalProperties": false
},
"ManagerMenu": {
"type": "object",
"properties": {
"kind": {
"const": "manager_menu"
},
"activeManagerId": {
"$ref": "#/$defs/Id"
},
"humanCount": {
"type": "integer",
"minimum": 1,
"maximum": 4
},
"canJoin": {
"type": "boolean"
},
"clubSearch": {
"$ref": "#/$defs/Availability"
},
"resignPreview": {
"type": "object",
"properties": {
"confirmationToken": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"managerId": {
"$ref": "#/$defs/Id"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"aiHandover": {
"type": "boolean"
},
"lastHumanEndsSession": {
"type": "boolean"
},
"nextActiveManagerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"terminationReason": {
"anyOf": [
{
"enum": [
"last_human_resigned"
]
},
{
"type": "null"
}
]
}
},
"required": [
"confirmationToken",
"expectedRevision",
"managerId",
"teamId",
"aiHandover",
"lastHumanEndsSession",
"nextActiveManagerId",
"terminationReason"
],
"additionalProperties": false
}
},
"required": [
"kind",
"activeManagerId",
"humanCount",
"canJoin",
"clubSearch",
"resignPreview"
],
"additionalProperties": false
},
"Accounts": {
"type": "object",
"properties": {
"cash": {
"$ref": "#/$defs/Money"
},
"savings": {
"$ref": "#/$defs/Money"
},
"debt": {
"$ref": "#/$defs/Money"
},
"netAssets": {
"$ref": "#/$defs/Money"
}
},
"required": [
"cash",
"savings",
"debt",
"netAssets"
],
"additionalProperties": false
},
"Fixture": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"matchId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"competition": {
"$ref": "#/$defs/Competition"
},
"seasonId": {
"$ref": "#/$defs/Id"
},
"originalDate": {
"$ref": "#/$defs/Date"
},
"scheduledDate": {
"$ref": "#/$defs/Date"
},
"roundId": {
"$ref": "#/$defs/Id"
},
"home": {
"$ref": "#/$defs/Team"
},
"away": {
"$ref": "#/$defs/Team"
},
"status": {
"enum": [
"scheduled",
"postponed",
"live",
"completed",
"cancelled"
]
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"home": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"away": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"required": [
"home",
"away"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"matchId",
"competition",
"seasonId",
"originalDate",
"scheduledDate",
"roundId",
"home",
"away",
"status",
"result"
],
"additionalProperties": false
},
"Desktop": {
"type": "object",
"properties": {
"kind": {
"const": "desktop"
},
"manager": {
"$ref": "#/$defs/Manager"
},
"team": {
"$ref": "#/$defs/Team"
},
"accounts": {
"anyOf": [
{
"$ref": "#/$defs/Accounts"
},
{
"type": "null"
}
]
},
"nextFixture": {
"anyOf": [
{
"$ref": "#/$defs/Fixture"
},
{
"type": "null"
}
]
},
"menuAvailability": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Availability"
},
"maxProperties": 200
},
"nextAction": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"next_manager",
"next_day",
"kickoff",
"opening",
"national_selection",
"none"
]
},
"enabled": {
"type": "boolean"
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"kind",
"enabled",
"reasonCode"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 100
},
"severity": {
"enum": [
"info",
"warning",
"blocking"
]
},
"text": {
"$ref": "#/$defs/Text"
},
"targetReadKind": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"code",
"severity",
"text",
"targetReadKind"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 50
},
"widgets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"metric": {
"anyOf": [
{
"$ref": "#/$defs/Metric"
},
{
"type": "null"
}
]
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"$ref": "#/$defs/Date"
},
"metric": {
"anyOf": [
{
"$ref": "#/$defs/Metric"
},
{
"type": "null"
}
]
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
}
},
"required": [
"date",
"metric",
"money"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"entityId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"metric",
"money",
"series",
"entityId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 48
}
},
"required": [
"kind",
"manager",
"team",
"accounts",
"nextFixture",
"menuAvailability",
"nextAction",
"warnings",
"widgets"
],
"additionalProperties": false
},
"SquadEntry": {
"type": "object",
"properties": {
"player": {
"$ref": "#/$defs/Player"
},
"clubId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"squadTeamId": {
"$ref": "#/$defs/Id"
},
"role": {
"enum": [
"starter",
"bench",
"none"
]
},
"availability": {
"enum": [
"fit",
"injured",
"suspended",
"unknown"
]
},
"injuryRemaining": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"unit": {
"enum": [
"days",
"weeks",
"matches",
"unknown"
]
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"suspensionRemaining": {
"type": "object",
"properties": {
"value": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"unit": {
"enum": [
"days",
"weeks",
"matches",
"unknown"
]
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"age": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 100
},
{
"type": "null"
}
]
},
"metrics": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
},
"salaryMonthly": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"contractUntil": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
}
},
"required": [
"player",
"clubId",
"squadTeamId",
"role",
"availability",
"injuryRemaining",
"suspensionRemaining",
"age",
"metrics",
"salaryMonthly",
"contractUntil"
],
"additionalProperties": false
},
"Squad": {
"type": "object",
"properties": {
"kind": {
"const": "squad"
},
"team": {
"$ref": "#/$defs/Team"
},
"players": {
"type": "array",
"items": {
"$ref": "#/$defs/SquadEntry"
},
"minItems": 0,
"maxItems": 100
},
"rosterSize": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"rosterLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 100
},
{
"type": "null"
}
]
},
"onFieldCount": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
},
"onFieldLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 24
},
{
"type": "null"
}
]
},
"benchLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"team",
"players",
"rosterSize",
"rosterLimit",
"onFieldCount",
"onFieldLimit",
"benchLimit",
"page"
],
"additionalProperties": false
},
"Lineup": {
"type": "object",
"properties": {
"kind": {
"const": "lineup"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"formationId": {
"$ref": "#/$defs/Id"
},
"order": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 100
},
"positions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"x": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"y": {
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"playerId",
"x",
"y"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 24
},
"takers": {
"type": "object",
"properties": {
"penalty": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"freeKick": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"corner": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"penalty",
"freeKick",
"corner"
],
"additionalProperties": false
},
"instructions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"values": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
}
},
"required": [
"playerId",
"values"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 100
},
"savedFormations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"editable": {
"type": "boolean"
}
},
"required": [
"id",
"name",
"editable"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"liveScopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"teamId",
"formationId",
"order",
"positions",
"takers",
"instructions",
"savedFormations",
"liveScopeToken"
],
"additionalProperties": false
},
"Tactics": {
"type": "object",
"properties": {
"kind": {
"const": "tactics"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"controls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
},
"value": {
"type": [
"integer",
"boolean",
"string"
]
},
"choices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"type": [
"integer",
"string"
]
},
"label": {
"$ref": "#/$defs/Text"
}
},
"required": [
"value",
"label"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
},
"range": {
"anyOf": [
{
"type": "object",
"properties": {
"min": {
"type": "integer",
"minimum": -100,
"maximum": 2147483647
},
"max": {
"type": "integer",
"minimum": -100,
"maximum": 2147483647
},
"step": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
}
},
"required": [
"min",
"max",
"step"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"label",
"value",
"choices",
"range"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 40
},
"liveScopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"teamId",
"controls",
"liveScopeToken"
],
"additionalProperties": false
},
"Training": {
"type": "object",
"properties": {
"kind": {
"const": "training"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"exercises": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"allocation": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"unit": {
"enum": [
"sessions",
"points"
]
}
},
"required": [
"id",
"allocation",
"max",
"unit"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
},
"types": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"allocation": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"max": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"required": [
"id",
"allocation",
"max"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"budget": {
"$ref": "#/$defs/Metric"
},
"playerPlans": {
"type": "array",
"items": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"focusId": {
"$ref": "#/$defs/Id"
},
"intensity": {
"$ref": "#/$defs/Metric"
},
"automatic": {
"type": "boolean"
}
},
"required": [
"playerId",
"focusId",
"intensity",
"automatic"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 100
},
"automation": {
"type": "object",
"additionalProperties": {
"type": "boolean"
},
"maxProperties": 200
}
},
"required": [
"kind",
"teamId",
"exercises",
"types",
"budget",
"playerPlans",
"automation"
],
"additionalProperties": false
},
"Camps": {
"type": "object",
"properties": {
"kind": {
"const": "camps"
},
"maps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"guiAssetKey": {
"$ref": "#/$defs/Id"
},
"width": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"height": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"name",
"guiAssetKey",
"width",
"height"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"camps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"mapId": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"place": {
"type": "string",
"maxLength": 512
},
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"position": {
"anyOf": [
{
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"space": {
"enum": [
"normalized",
"map_pixels"
]
}
},
"required": [
"x",
"y",
"space"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"quality": {
"type": "object",
"properties": {
"pitch": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"fitness": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"catering": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"lodging": {
"type": "integer",
"minimum": 0,
"maximum": 6
}
},
"required": [
"pitch",
"fitness",
"catering",
"lodging"
],
"additionalProperties": false
},
"guiImageKey": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"worldImageAssetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"quote": {
"$ref": "#/$defs/Quote"
}
},
"required": [
"id",
"mapId",
"name",
"place",
"nationId",
"position",
"quality",
"guiImageKey",
"worldImageAssetId",
"quote"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"focus": {
"type": "object",
"properties": {
"condition": {
"type": "integer",
"minimum": 0,
"maximum": 15
},
"technique": {
"type": "integer",
"minimum": 0,
"maximum": 15
},
"play": {
"type": "integer",
"minimum": 0,
"maximum": 15
},
"recovery": {
"$ref": "#/$defs/Metric"
}
},
"required": [
"condition",
"technique",
"play",
"recovery"
],
"additionalProperties": false
},
"staysThisSeason": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"seasonLimit": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"bookedThisWeek": {
"type": "boolean"
}
},
"required": [
"kind",
"maps",
"camps",
"focus",
"staysThisSeason",
"seasonLimit",
"bookedThisWeek"
],
"additionalProperties": false
},
"TableRow": {
"type": "object",
"properties": {
"rank": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
"team": {
"$ref": "#/$defs/Team"
},
"played": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"won": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"drawn": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"lost": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"goalsFor": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"goalsAgainst": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"points": {
"type": "integer",
"minimum": -100000,
"maximum": 2147483647
},
"pointAdjustment": {
"type": "integer",
"minimum": -100000,
"maximum": 2147483647
},
"zone": {
"anyOf": [
{
"enum": [
"champion",
"promotion",
"playoff",
"continental",
"relegation"
]
},
{
"type": "null"
}
]
}
},
"required": [
"rank",
"team",
"played",
"won",
"drawn",
"lost",
"goalsFor",
"goalsAgainst",
"points",
"pointAdjustment",
"zone"
],
"additionalProperties": false
},
"Reports": {
"type": "object",
"properties": {
"kind": {
"const": "reports"
},
"competition": {
"$ref": "#/$defs/Competition"
},
"fixtures": {
"type": "array",
"items": {
"$ref": "#/$defs/Fixture"
},
"minItems": 0,
"maxItems": 200
},
"table": {
"type": "array",
"items": {
"$ref": "#/$defs/TableRow"
},
"minItems": 0,
"maxItems": 200
},
"strengths": {
"type": "array",
"items": {
"type": "object",
"properties": {
"team": {
"$ref": "#/$defs/Team"
},
"metrics": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
}
},
"required": [
"team",
"metrics"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"page": {
"$ref": "#/$defs/Page"
},
"tieBreakPolicyId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"kind",
"competition",
"fixtures",
"table",
"strengths",
"page",
"tieBreakPolicyId"
],
"additionalProperties": false
},
"Calendar": {
"type": "object",
"properties": {
"kind": {
"const": "calendar"
},
"from": {
"$ref": "#/$defs/Date"
},
"until": {
"$ref": "#/$defs/Date"
},
"days": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"$ref": "#/$defs/Date"
},
"fixtureIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 100
},
"eventKinds": {
"type": "array",
"items": {
"enum": [
"league",
"cup",
"national",
"friendly",
"indoor",
"training_camp",
"other"
]
},
"minItems": 0,
"maxItems": 20
},
"canSchedule": {
"type": "boolean"
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"date",
"fixtureIds",
"eventKinds",
"canSchedule",
"reasonCode"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 400
},
"fixtures": {
"type": "array",
"items": {
"$ref": "#/$defs/Fixture"
},
"minItems": 0,
"maxItems": 200
}
},
"required": [
"kind",
"from",
"until",
"days",
"fixtures"
],
"additionalProperties": false
},
"Scheduling": {
"type": "object",
"properties": {
"kind": {
"const": "scheduling"
},
"kindOfPlan": {
"enum": [
"friendly",
"reschedule"
]
},
"fixtures": {
"type": "array",
"items": {
"$ref": "#/$defs/Fixture"
},
"minItems": 0,
"maxItems": 200
},
"opponents": {
"type": "array",
"items": {
"$ref": "#/$defs/Team"
},
"minItems": 0,
"maxItems": 200
},
"venues": {
"type": "array",
"items": {
"enum": [
"home",
"away",
"neutral"
]
},
"minItems": 0,
"maxItems": 3
},
"availableDates": {
"type": "array",
"items": {
"$ref": "#/$defs/Date"
},
"minItems": 0,
"maxItems": 400
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
},
"originalFixtureId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"originalDate": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"kindOfPlan",
"fixtures",
"opponents",
"venues",
"availableDates",
"quote",
"originalFixtureId",
"originalDate"
],
"additionalProperties": false
},
"Transfer": {
"type": "object",
"properties": {
"kind": {
"const": "transfer"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"market": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"player": {
"$ref": "#/$defs/Player"
},
"ownerTeam": {
"anyOf": [
{
"$ref": "#/$defs/Team"
},
{
"type": "null"
}
]
},
"offerKind": {
"enum": [
"purchase",
"sale",
"loan",
"return",
"poach"
]
},
"price": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"salaryMonthly": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"termMonths": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 120
},
{
"type": "null"
}
]
},
"availability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"id",
"player",
"ownerTeam",
"offerKind",
"price",
"salaryMonthly",
"termMonths",
"availability"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"pendingOrders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"playerId": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"purchase",
"sale",
"loan",
"return",
"poach"
]
},
"status": {
"enum": [
"draft",
"submitted",
"accepted",
"rejected",
"cancelled"
]
},
"quoteId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"playerId",
"kind",
"status",
"quoteId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"search": {
"type": "object",
"properties": {
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"competitionId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"positions": {
"type": "array",
"items": {
"enum": [
"gk",
"def",
"mid",
"fwd"
]
},
"minItems": 0,
"maxItems": 4
},
"maxFee": {
"$ref": "#/$defs/Money"
},
"criteria": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
}
},
"required": [
"nationId",
"competitionId",
"teamId",
"positions",
"maxFee",
"criteria"
],
"additionalProperties": false
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"teamId",
"market",
"pendingOrders",
"search",
"quote",
"page"
],
"additionalProperties": false
},
"Contracts": {
"type": "object",
"properties": {
"kind": {
"const": "contracts"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"players": {
"type": "array",
"items": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"salaryMonthly": {
"$ref": "#/$defs/Money"
},
"remainingMonths": {
"type": "integer",
"minimum": 0,
"maximum": 120
},
"insuranceMonths": {
"type": "integer",
"minimum": 0,
"maximum": 24
},
"insuranceFee": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"offerAllowed": {
"type": "boolean"
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"playerId",
"salaryMonthly",
"remainingMonths",
"insuranceMonths",
"insuranceFee",
"offerAllowed",
"reasonCode"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 100
},
"teamBonuses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"amount": {
"$ref": "#/$defs/Money"
},
"basis": {
"enum": [
"match",
"win",
"goal",
"season",
"title"
]
}
},
"required": [
"id",
"amount",
"basis"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"teamId",
"players",
"teamBonuses",
"quote"
],
"additionalProperties": false
},
"FinanceEntry": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"transactionId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"effectiveDate": {
"$ref": "#/$defs/Date"
},
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"teamId": {
"$ref": "#/$defs/Id"
},
"account": {
"enum": [
"cash",
"savings",
"debt",
"assets"
]
},
"category": {
"type": "string",
"maxLength": 100
},
"amount": {
"$ref": "#/$defs/Money"
},
"counterpartyId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"fixtureId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"reversalOf": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"text": {
"$ref": "#/$defs/Text"
}
},
"required": [
"id",
"transactionId",
"date",
"effectiveDate",
"managerId",
"teamId",
"account",
"category",
"amount",
"counterpartyId",
"fixtureId",
"reversalOf",
"text"
],
"additionalProperties": false
},
"Bank": {
"type": "object",
"properties": {
"kind": {
"const": "bank"
},
"accounts": {
"$ref": "#/$defs/Accounts"
},
"savingsRateAnnual": {
"$ref": "#/$defs/Metric"
},
"properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"ownedUnits": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"buyPrice": {
"$ref": "#/$defs/Money"
},
"sellPrice": {
"$ref": "#/$defs/Money"
},
"rentMonthly": {
"$ref": "#/$defs/Money"
}
},
"required": [
"id",
"name",
"ownedUnits",
"buyPrice",
"sellPrice",
"rentMonthly"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"stocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/Text"
},
"ownedUnits": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"unitPrice": {
"$ref": "#/$defs/Money"
},
"series": {
"type": "array",
"items": {
"$ref": "#/$defs/Money"
},
"minItems": 0,
"maxItems": 200
}
},
"required": [
"id",
"name",
"ownedUnits",
"unitPrice",
"series"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"credit": {
"type": "object",
"properties": {
"outstanding": {
"$ref": "#/$defs/Money"
},
"limit": {
"$ref": "#/$defs/Money"
},
"rateAnnual": {
"$ref": "#/$defs/Metric"
},
"schedule": {
"type": "array",
"items": {
"type": "object",
"properties": {
"dueOn": {
"$ref": "#/$defs/Date"
},
"principal": {
"$ref": "#/$defs/Money"
},
"interest": {
"$ref": "#/$defs/Money"
},
"balanceAfter": {
"$ref": "#/$defs/Money"
}
},
"required": [
"dueOn",
"principal",
"interest",
"balanceAfter"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
}
},
"required": [
"outstanding",
"limit",
"rateAnnual",
"schedule"
],
"additionalProperties": false
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"accounts",
"savingsRateAnnual",
"properties",
"stocks",
"credit",
"quote"
],
"additionalProperties": false
},
"Balance": {
"type": "object",
"properties": {
"kind": {
"const": "balance"
},
"accounts": {
"$ref": "#/$defs/Accounts"
},
"ledger": {
"type": "array",
"items": {
"$ref": "#/$defs/FinanceEntry"
},
"minItems": 0,
"maxItems": 200
},
"forecast": {
"type": "array",
"items": {
"type": "object",
"properties": {
"periodStart": {
"$ref": "#/$defs/Date"
},
"periodEnd": {
"$ref": "#/$defs/Date"
},
"category": {
"type": "string",
"maxLength": 100
},
"amount": {
"$ref": "#/$defs/Money"
},
"scenarioId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"periodStart",
"periodEnd",
"category",
"amount",
"scenarioId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"actualThrough": {
"$ref": "#/$defs/Date"
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"accounts",
"ledger",
"forecast",
"actualThrough",
"page"
],
"additionalProperties": false
},
"Advertising": {
"type": "object",
"properties": {
"kind": {
"const": "advertising"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"slots": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"boards",
"shirt",
"tv"
]
},
"sponsorId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"sponsorName": {
"anyOf": [
{
"$ref": "#/$defs/Text"
},
{
"type": "null"
}
]
},
"monthly": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"remainingMonths": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"available": {
"type": "boolean"
}
},
"required": [
"id",
"kind",
"sponsorId",
"sponsorName",
"monthly",
"remainingMonths",
"available"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 50
},
"offers": {
"type": "array",
"items": {
"$ref": "#/$defs/Quote"
},
"minItems": 0,
"maxItems": 200
},
"budgets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
},
"amount": {
"$ref": "#/$defs/Money"
},
"period": {
"enum": [
"month",
"season"
]
}
},
"required": [
"id",
"label",
"amount",
"period"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
}
},
"required": [
"kind",
"teamId",
"slots",
"offers",
"budgets"
],
"additionalProperties": false
},
"Environment": {
"type": "object",
"properties": {
"kind": {
"const": "environment"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"services": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
},
"stars": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"monthlyCost": {
"$ref": "#/$defs/Money"
},
"effect": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"id",
"label",
"stars",
"monthlyCost",
"effect"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
},
"youthCandidates": {
"type": "array",
"items": {
"$ref": "#/$defs/Player"
},
"minItems": 0,
"maxItems": 200
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"teamId",
"services",
"youthCandidates",
"quote"
],
"additionalProperties": false
},
"Stadium": {
"type": "object",
"properties": {
"kind": {
"const": "stadium"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"stadiumId": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string",
"maxLength": 512
},
"capacity": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"blocks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"seats": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"standing": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"covered": {
"type": "boolean"
},
"condition": {
"$ref": "#/$defs/Metric"
},
"projectId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"seats",
"standing",
"covered",
"condition",
"projectId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 30
},
"facilities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"level": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"maxLevel": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"guiAssetRole": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"level",
"maxLevel",
"guiAssetRole"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 40
},
"ticketPrice": {
"$ref": "#/$defs/Money"
},
"attendanceSeries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fixtureId": {
"$ref": "#/$defs/Id"
},
"attendance": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"capacity": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
}
},
"required": [
"fixtureId",
"attendance",
"capacity"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"teamId",
"stadiumId",
"name",
"capacity",
"blocks",
"facilities",
"ticketPrice",
"attendanceSeries",
"quote"
],
"additionalProperties": false
},
"Toto": {
"type": "object",
"properties": {
"kind": {
"const": "toto"
},
"couponId": {
"$ref": "#/$defs/Id"
},
"fixtures": {
"type": "array",
"items": {
"$ref": "#/$defs/Fixture"
},
"minItems": 0,
"maxItems": 11
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"picks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fixtureId": {
"$ref": "#/$defs/Id"
},
"pick": {
"anyOf": [
{
"enum": [
"home",
"draw",
"away"
]
},
{
"type": "null"
}
]
}
},
"required": [
"fixtureId",
"pick"
],
"additionalProperties": false
},
"minItems": 11,
"maxItems": 11
},
"hits": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 11
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"picks",
"hits"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 6
},
"stake": {
"$ref": "#/$defs/Money"
},
"fee": {
"$ref": "#/$defs/Money"
},
"payout": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"status": {
"enum": [
"draft",
"submitted",
"settled"
]
},
"quote": {
"anyOf": [
{
"$ref": "#/$defs/Quote"
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"couponId",
"fixtures",
"columns",
"stake",
"fee",
"payout",
"status",
"quote"
],
"additionalProperties": false
},
"PressMoney": {
"type": "object",
"properties": {
"minor": {
"type": "string",
"pattern": "^(0|-?[1-9][0-9]*)$",
"maxLength": 20
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$"
}
},
"required": [
"minor",
"currency"
],
"additionalProperties": false
},
"PressScope": {
"type": "object",
"properties": {
"kind": {
"enum": [
"club",
"national",
"global"
]
},
"id": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"name": {
"type": "string",
"maxLength": 512
}
},
"required": [
"kind",
"id",
"name"
],
"additionalProperties": false
},
"PressEvent": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"type": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"scope": {
"$ref": "#/$defs/PressScope"
},
"data": {
"type": "object",
"properties": {
"team": {
"$ref": "#/$defs/Team"
},
"opponent": {
"$ref": "#/$defs/Team"
},
"player": {
"$ref": "#/$defs/Player"
},
"manager": {
"$ref": "#/$defs/Manager"
},
"score": {
"$ref": "#/$defs/Score"
},
"amount": {
"$ref": "#/$defs/PressMoney"
},
"percent": {
"type": "number",
"minimum": 0,
"maximum": 100
},
"count": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"competition": {
"$ref": "#/$defs/Competition"
},
"transactionId": {
"$ref": "#/$defs/Id"
}
},
"required": [],
"additionalProperties": false
},
"variant": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"type",
"date",
"scope",
"data",
"variant"
],
"additionalProperties": false
},
"ArticleSnapshot": {
"type": "object",
"properties": {
"headline": {
"type": "string",
"maxLength": 500
},
"lead": {
"type": "string",
"maxLength": 2000
},
"paragraphs": {
"type": "array",
"items": {
"type": "string",
"maxLength": 10000
},
"minItems": 0,
"maxItems": 50
}
},
"required": [
"headline",
"lead",
"paragraphs"
],
"additionalProperties": false
},
"Article": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"sourceEventId": {
"$ref": "#/$defs/Id"
},
"type": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"scope": {
"$ref": "#/$defs/PressScope"
},
"dedupeKey": {
"type": "string",
"maxLength": 512
},
"snapshots": {
"type": "object",
"properties": {
"de": {
"$ref": "#/$defs/ArticleSnapshot"
},
"en": {
"$ref": "#/$defs/ArticleSnapshot"
}
},
"required": [
"de",
"en"
],
"additionalProperties": false
},
"read": {
"type": "boolean"
},
"deleted": {
"type": "boolean"
}
},
"required": [
"id",
"sourceEventId",
"type",
"date",
"scope",
"dedupeKey",
"snapshots",
"read",
"deleted"
],
"additionalProperties": false
},
"News": {
"type": "object",
"properties": {
"kind": {
"const": "news"
},
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/PressEvent"
},
"minItems": 0,
"maxItems": 200
},
"articles": {
"type": "array",
"items": {
"$ref": "#/$defs/Article"
},
"minItems": 0,
"maxItems": 200
},
"dedupePolicyId": {
"$ref": "#/$defs/Id"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"ownerManagerId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"sender": {
"$ref": "#/$defs/Text"
},
"subject": {
"$ref": "#/$defs/Text"
},
"paragraphs": {
"type": "array",
"items": {
"$ref": "#/$defs/Text"
},
"minItems": 0,
"maxItems": 50
},
"category": {
"type": "string",
"maxLength": 100
},
"read": {
"type": "boolean"
},
"folder": {
"enum": [
"inbox",
"archive",
"trash"
]
},
"entityIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 30
},
"actionIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 20
}
},
"required": [
"id",
"ownerManagerId",
"date",
"sender",
"subject",
"paragraphs",
"category",
"read",
"folder",
"entityIds",
"actionIds"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"unreadCount": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"events",
"articles",
"dedupePolicyId",
"messages",
"unreadCount",
"page"
],
"additionalProperties": false
},
"Settings": {
"type": "object",
"properties": {
"kind": {
"const": "settings"
},
"definitions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
},
"scope": {
"enum": [
"ui_global",
"career",
"manager",
"team"
]
},
"type": {
"enum": [
"boolean",
"choice",
"range"
]
},
"value": {
"type": [
"integer",
"boolean",
"string",
"null"
]
},
"allowedValues": {
"type": "array",
"items": {
"type": [
"integer",
"boolean",
"string"
]
},
"minItems": 0,
"maxItems": 100
},
"availability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"id",
"label",
"scope",
"type",
"value",
"allowedValues",
"availability"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
}
},
"required": [
"kind",
"definitions"
],
"additionalProperties": false
},
"Files": {
"type": "object",
"properties": {
"kind": {
"const": "files"
},
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"name": {
"type": "string",
"maxLength": 100
},
"kind": {
"enum": [
"career",
"desktop_view"
]
},
"modifiedAt": {
"type": "string",
"format": "date-time"
},
"seasonId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"managerIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 4
},
"previewAssetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"token": {
"$ref": "#/$defs/Id"
},
"isDefault": {
"type": "boolean"
}
},
"required": [
"id",
"worldId",
"careerId",
"name",
"kind",
"modifiedAt",
"seasonId",
"date",
"managerIds",
"previewAssetId",
"token",
"isDefault"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"page": {
"$ref": "#/$defs/Page"
},
"provider": {
"enum": [
"ui_demo",
"engine_career",
"ui_preferences"
]
}
},
"required": [
"kind",
"entries",
"page",
"provider"
],
"additionalProperties": false
},
"Opening": {
"type": "object",
"properties": {
"kind": {
"const": "opening"
},
"phase": {
"enum": [
"uefa",
"champions",
"winners",
"draw",
"overview",
"done"
]
},
"entrants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"competitionId": {
"$ref": "#/$defs/Id"
},
"teamIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 200
}
},
"required": [
"competitionId",
"teamIds"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"pairings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fixtureId": {
"$ref": "#/$defs/Id"
},
"homeId": {
"$ref": "#/$defs/Id"
},
"awayId": {
"$ref": "#/$defs/Id"
},
"revealed": {
"type": "boolean"
}
},
"required": [
"fixtureId",
"homeId",
"awayId",
"revealed"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"pendingPresentationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"canContinue": {
"type": "boolean"
}
},
"required": [
"kind",
"phase",
"entrants",
"pairings",
"pendingPresentationId",
"canContinue"
],
"additionalProperties": false
},
"Clock": {
"type": "object",
"properties": {
"periodId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"elapsedSeconds": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"minute": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 999
},
{
"type": "null"
}
]
},
"stoppageSeconds": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"precision": {
"enum": [
"second",
"minute",
"unknown"
]
},
"label": {
"$ref": "#/$defs/Text"
}
},
"required": [
"periodId",
"elapsedSeconds",
"minute",
"stoppageSeconds",
"precision",
"label"
],
"additionalProperties": false
},
"Score": {
"type": "object",
"properties": {
"home": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"away": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
}
},
"required": [
"home",
"away"
],
"additionalProperties": false
},
"Result": {
"type": "object",
"properties": {
"status": {
"enum": [
"scheduled",
"live",
"completed",
"abandoned",
"voided"
]
},
"decision": {
"enum": [
"regulation",
"extra_time",
"shootout",
"administrative",
"unknown"
]
},
"regulation": {
"anyOf": [
{
"$ref": "#/$defs/Score"
},
{
"type": "null"
}
]
},
"extra": {
"anyOf": [
{
"$ref": "#/$defs/Score"
},
{
"type": "null"
}
]
},
"final": {
"anyOf": [
{
"$ref": "#/$defs/Score"
},
{
"type": "null"
}
]
},
"shootout": {
"anyOf": [
{
"$ref": "#/$defs/Score"
},
{
"type": "null"
}
]
},
"extraTimePlayed": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"winnerTeamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"countedForTable": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"status",
"decision",
"regulation",
"extra",
"final",
"shootout",
"extraTimePlayed",
"winnerTeamId",
"countedForTable"
],
"additionalProperties": false
},
"Event": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"eventRevision": {
"$ref": "#/$defs/Revision"
},
"sequence": {
"$ref": "#/$defs/Revision"
},
"kind": {
"enum": [
"goal",
"own_goal",
"miss",
"chance",
"save",
"attack",
"yellow",
"second_yellow",
"red",
"injury",
"substitution",
"shootout_kick",
"period_start",
"period_end",
"var_correction",
"score_adjustment"
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"actorPlayerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"otherPlayerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"clock": {
"$ref": "#/$defs/Clock"
},
"goalKind": {
"anyOf": [
{
"enum": [
"open_play",
"penalty",
"free_kick",
"set_piece_unknown",
"follow_up",
"corner",
"own_goal",
"unknown"
]
},
{
"type": "null"
}
]
},
"scored": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"recipientTeamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"supersedesEventId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"text": {
"$ref": "#/$defs/Text"
}
},
"required": [
"id",
"eventRevision",
"sequence",
"kind",
"teamId",
"actorPlayerId",
"otherPlayerId",
"clock",
"goalKind",
"scored",
"recipientTeamId",
"supersedesEventId",
"text"
],
"additionalProperties": false
},
"HistoricalLineup": {
"type": "object",
"properties": {
"teamId": {
"$ref": "#/$defs/Id"
},
"starters": {
"type": "array",
"items": {
"$ref": "#/$defs/Player"
},
"minItems": 0,
"maxItems": 24
},
"bench": {
"type": "array",
"items": {
"$ref": "#/$defs/Player"
},
"minItems": 0,
"maxItems": 24
},
"classificationKnown": {
"type": "boolean"
},
"rosterSize": {
"type": "integer",
"minimum": 0,
"maximum": 48
},
"onFieldCount": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
},
"onFieldLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 24
},
{
"type": "null"
}
]
},
"coverage": {
"$ref": "#/$defs/Coverage"
}
},
"required": [
"teamId",
"starters",
"bench",
"classificationKnown",
"rosterSize",
"onFieldCount",
"onFieldLimit",
"coverage"
],
"additionalProperties": false
},
"Match": {
"type": "object",
"properties": {
"kind": {
"const": "match"
},
"id": {
"$ref": "#/$defs/Id"
},
"fixtureId": {
"$ref": "#/$defs/Id"
},
"seasonId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"competition": {
"$ref": "#/$defs/Competition"
},
"roundId": {
"$ref": "#/$defs/Id"
},
"mode": {
"enum": [
"outdoor",
"indoor"
]
},
"home": {
"$ref": "#/$defs/Team"
},
"away": {
"$ref": "#/$defs/Team"
},
"managerIdsBySide": {
"type": "object",
"properties": {
"home": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"away": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"home",
"away"
],
"additionalProperties": false
},
"result": {
"$ref": "#/$defs/Result"
},
"clock": {
"$ref": "#/$defs/Clock"
},
"onFieldCounts": {
"type": "object",
"properties": {
"home": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
},
"away": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
}
},
"required": [
"home",
"away"
],
"additionalProperties": false
},
"rules": {
"type": "object",
"properties": {
"rulesId": {
"$ref": "#/$defs/Id"
},
"periods": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"first_half",
"second_half",
"extra_first",
"extra_second",
"indoor_period",
"shootout"
]
},
"nominalSeconds": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"kind",
"nominalSeconds"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 10
},
"rosterLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 100
},
{
"type": "null"
}
]
},
"onFieldLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 24
},
{
"type": "null"
}
]
},
"benchLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 24
},
{
"type": "null"
}
]
},
"substitutionLimit": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 100
},
{
"type": "null"
}
]
},
"directShootout": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
}
},
"required": [
"rulesId",
"periods",
"rosterLimit",
"onFieldLimit",
"benchLimit",
"substitutionLimit",
"directShootout"
],
"additionalProperties": false
},
"referee": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"name": {
"type": "string",
"maxLength": 512
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"attendance": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"weather": {
"anyOf": [
{
"type": "object",
"properties": {
"temperatureCelsius": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"rainScale0To7": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 7
},
{
"type": "null"
}
]
}
},
"required": [
"temperatureCelsius",
"rainScale0To7"
],
"additionalProperties": false
},
{
"type": "null"
}
]
},
"lineups": {
"type": "array",
"items": {
"$ref": "#/$defs/HistoricalLineup"
},
"minItems": 0,
"maxItems": 2
},
"events": {
"type": "array",
"items": {
"$ref": "#/$defs/Event"
},
"minItems": 0,
"maxItems": 20000
},
"coverage": {
"$ref": "#/$defs/Coverage"
},
"countingPolicyId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"kind",
"id",
"fixtureId",
"seasonId",
"date",
"competition",
"roundId",
"mode",
"home",
"away",
"managerIdsBySide",
"result",
"clock",
"onFieldCounts",
"rules",
"referee",
"attendance",
"weather",
"lineups",
"events",
"coverage",
"countingPolicyId"
],
"additionalProperties": false
},
"Live": {
"type": "object",
"properties": {
"kind": {
"const": "live"
},
"presentationId": {
"$ref": "#/$defs/Id"
},
"scopeToken": {
"$ref": "#/$defs/Id"
},
"lastSequence": {
"$ref": "#/$defs/Revision"
},
"managerGames": {
"type": "array",
"items": {
"type": "object",
"properties": {
"managerId": {
"$ref": "#/$defs/Id"
},
"matchId": {
"$ref": "#/$defs/Id"
},
"teamId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"managerId",
"matchId",
"teamId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 4
},
"watchedMatchIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 1,
"maxItems": 4
},
"focusMatchId": {
"$ref": "#/$defs/Id"
},
"matches": {
"type": "array",
"items": {
"$ref": "#/$defs/Match"
},
"minItems": 1,
"maxItems": 4
},
"paused": {
"type": "boolean"
},
"canIntervene": {
"type": "boolean"
},
"availableCommands": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"minItems": 0,
"maxItems": 30
},
"eventPage": {
"$ref": "#/$defs/Page"
},
"resyncRequired": {
"type": "boolean"
}
},
"required": [
"kind",
"presentationId",
"scopeToken",
"lastSequence",
"managerGames",
"watchedMatchIds",
"focusMatchId",
"matches",
"paused",
"canIntervene",
"availableCommands",
"eventPage",
"resyncRequired"
],
"additionalProperties": false
},
"Postmatch": {
"type": "object",
"properties": {
"kind": {
"const": "postmatch"
},
"presentationId": {
"$ref": "#/$defs/Id"
},
"stage": {
"enum": [
"results",
"report",
"eleven",
"overview",
"table"
]
},
"matches": {
"type": "array",
"items": {
"$ref": "#/$defs/Match"
},
"minItems": 0,
"maxItems": 200
},
"teamOfRound": {
"type": "array",
"items": {
"type": "object",
"properties": {
"player": {
"$ref": "#/$defs/Player"
},
"team": {
"$ref": "#/$defs/Team"
},
"position": {
"enum": [
"gk",
"def",
"mid",
"fwd"
]
},
"metric": {
"$ref": "#/$defs/Metric"
},
"selectionRuleId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"player",
"team",
"position",
"metric",
"selectionRuleId"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 24
},
"tables": {
"type": "array",
"items": {
"$ref": "#/$defs/Reports"
},
"minItems": 0,
"maxItems": 20
},
"totals": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
},
"continueToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"continueAvailability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"kind",
"presentationId",
"stage",
"matches",
"teamOfRound",
"tables",
"totals",
"continueToken",
"continueAvailability"
],
"additionalProperties": false
},
"StatRow": {
"type": "object",
"properties": {
"label": {
"$ref": "#/$defs/Text"
},
"team": {
"anyOf": [
{
"$ref": "#/$defs/Team"
},
{
"type": "null"
}
]
},
"player": {
"anyOf": [
{
"$ref": "#/$defs/Player"
},
{
"type": "null"
}
]
},
"manager": {
"anyOf": [
{
"$ref": "#/$defs/Manager"
},
{
"type": "null"
}
]
},
"periodId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"fromSecond": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"untilSecond": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"entityId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"rank": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"metrics": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
},
"money": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Money"
},
"maxProperties": 200
},
"coverage": {
"$ref": "#/$defs/Coverage"
}
},
"required": [
"label",
"team",
"player",
"manager",
"periodId",
"fromSecond",
"untilSecond",
"entityId",
"teamId",
"managerId",
"rank",
"metrics",
"money",
"coverage"
],
"additionalProperties": false
},
"Statistics": {
"type": "object",
"properties": {
"kind": {
"const": "statistics"
},
"section": {
"enum": [
"fairplay",
"player_stats",
"achievements",
"highscore",
"opportunities",
"transfer_history",
"analytics",
"all_time_table",
"world_cup",
"season_finance",
"streaks_records",
"winners",
"minute_buckets"
]
},
"scope": {
"type": "object",
"properties": {
"seasonIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 200
},
"competitionIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 200
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"asOf": {
"$ref": "#/$defs/Date"
},
"ruleId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"seasonIds",
"competitionIds",
"teamId",
"managerId",
"nationId",
"asOf",
"ruleId"
],
"additionalProperties": false
},
"rows": {
"type": "array",
"items": {
"$ref": "#/$defs/StatRow"
},
"minItems": 0,
"maxItems": 200
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"metricId": {
"$ref": "#/$defs/Id"
},
"unit": {
"type": "string",
"maxLength": 40
},
"points": {
"type": "array",
"items": {
"type": "object",
"properties": {
"date": {
"$ref": "#/$defs/Date"
},
"value": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"money": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"coverage": {
"$ref": "#/$defs/Coverage"
}
},
"required": [
"date",
"value",
"money",
"coverage"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"relativeBase": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
}
},
"required": [
"metricId",
"unit",
"points",
"relativeBase"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 20
},
"page": {
"$ref": "#/$defs/Page"
},
"provenance": {
"type": "array",
"items": {
"enum": [
"almanac",
"manager_history",
"finance_ledger",
"transfer_ledger",
"rules_snapshot",
"current_team_state",
"external_highscores",
"correction_ledger"
]
},
"minItems": 1,
"maxItems": 8
}
},
"required": [
"kind",
"section",
"scope",
"rows",
"series",
"page",
"provenance"
],
"additionalProperties": false
},
"Almanac": {
"type": "object",
"properties": {
"kind": {
"const": "almanac"
},
"query": {
"enum": [
"index",
"calendar",
"day",
"match"
]
},
"seasonIds": {
"type": "array",
"items": {
"$ref": "#/$defs/Id"
},
"minItems": 0,
"maxItems": 200
},
"dates": {
"type": "array",
"items": {
"$ref": "#/$defs/Date"
},
"minItems": 0,
"maxItems": 400
},
"matches": {
"type": "array",
"items": {
"$ref": "#/$defs/Match"
},
"minItems": 0,
"maxItems": 200
},
"tables": {
"type": "array",
"items": {
"$ref": "#/$defs/Reports"
},
"minItems": 0,
"maxItems": 20
},
"page": {
"$ref": "#/$defs/Page"
},
"correctionRevision": {
"$ref": "#/$defs/Revision"
}
},
"required": [
"kind",
"query",
"seasonIds",
"dates",
"matches",
"tables",
"page",
"correctionRevision"
],
"additionalProperties": false
},
"Correction": {
"type": "object",
"properties": {
"kind": {
"const": "correction"
},
"id": {
"$ref": "#/$defs/Id"
},
"targetId": {
"$ref": "#/$defs/Id"
},
"operation": {
"enum": [
"replace",
"void",
"restore"
]
},
"supersedesId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"recordedOn": {
"$ref": "#/$defs/Date"
},
"effectiveOn": {
"$ref": "#/$defs/Date"
},
"reason": {
"$ref": "#/$defs/Text"
},
"archiveDigest": {
"anyOf": [
{
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
{
"type": "null"
}
]
},
"replacementMatch": {
"anyOf": [
{
"$ref": "#/$defs/Match"
},
{
"type": "null"
}
]
},
"effectiveProjectionRevision": {
"$ref": "#/$defs/Revision"
}
},
"required": [
"kind",
"id",
"targetId",
"operation",
"supersedesId",
"recordedOn",
"effectiveOn",
"reason",
"archiveDigest",
"replacementMatch",
"effectiveProjectionRevision"
],
"additionalProperties": false
},
"OwnershipChange": {
"type": "object",
"properties": {
"kind": {
"const": "ownership_change"
},
"managerId": {
"$ref": "#/$defs/Id"
},
"archivedIdentity": {
"$ref": "#/$defs/Manager"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"aiHandover": {
"type": "boolean"
},
"activeManagerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"humanOwnership": {
"type": "array",
"items": {
"$ref": "#/$defs/Ownership"
},
"minItems": 0,
"maxItems": 4
},
"sessionState": {
"enum": [
"desktop",
"ended"
]
},
"terminationReason": {
"anyOf": [
{
"enum": [
"last_human_resigned"
]
},
{
"type": "null"
}
]
}
},
"required": [
"kind",
"managerId",
"archivedIdentity",
"teamId",
"aiHandover",
"activeManagerId",
"humanOwnership",
"sessionState",
"terminationReason"
],
"additionalProperties": false
},
"Library": {
"type": "object",
"properties": {
"kind": {
"const": "library"
},
"activeWorldId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"entries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"worldId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"name": {
"type": "string",
"maxLength": 512
},
"format": {
"enum": [
"classic",
"modern",
"invalid"
]
},
"version": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"description": {
"$ref": "#/$defs/Text"
},
"installed": {
"type": "boolean"
},
"availability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"id",
"worldId",
"name",
"format",
"version",
"description",
"installed",
"availability"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"activeWorldId",
"entries",
"page"
],
"additionalProperties": false
},
"Entry": {
"type": "object",
"properties": {
"kind": {
"const": "entry"
},
"setup": {
"type": "object",
"properties": {
"durationOptions": {
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"minItems": 1,
"maxItems": 100
},
"difficultyOptions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
}
},
"required": [
"id",
"label"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 100
},
"modeOptions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"label": {
"$ref": "#/$defs/Text"
}
},
"required": [
"id",
"label"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 20
},
"minManagers": {
"const": 1
},
"maxManagers": {
"const": 4
},
"leagueAvailable": {
"type": "boolean"
},
"nationalAvailable": {
"type": "boolean"
}
},
"required": [
"durationOptions",
"difficultyOptions",
"modeOptions",
"minManagers",
"maxManagers",
"leagueAvailable",
"nationalAvailable"
],
"additionalProperties": false
},
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"team": {
"$ref": "#/$defs/Team"
},
"competitionId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"manageable": {
"type": "boolean"
},
"reasonCode": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
}
},
"required": [
"team",
"competitionId",
"manageable",
"reasonCode"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 200
},
"portraits": {
"type": "array",
"items": {
"type": "object",
"properties": {
"guiKey": {
"$ref": "#/$defs/Id"
},
"style": {
"enum": [
"photo",
"painted"
]
},
"available": {
"type": "boolean"
}
},
"required": [
"guiKey",
"style",
"available"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 100
},
"page": {
"$ref": "#/$defs/Page"
}
},
"required": [
"kind",
"setup",
"teams",
"portraits",
"page"
],
"additionalProperties": false
},
"Entity": {
"type": "object",
"properties": {
"kind": {
"const": "entity"
},
"team": {
"anyOf": [
{
"$ref": "#/$defs/Team"
},
{
"type": "null"
}
]
},
"player": {
"anyOf": [
{
"$ref": "#/$defs/Player"
},
{
"type": "null"
}
]
},
"squad": {
"type": "array",
"items": {
"$ref": "#/$defs/SquadEntry"
},
"minItems": 0,
"maxItems": 100
},
"metrics": {
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/Metric"
},
"maxProperties": 200
},
"biography": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"$ref": "#/$defs/Text"
},
"value": {
"anyOf": [
{
"$ref": "#/$defs/Text"
},
{
"type": "null"
}
]
}
},
"required": [
"label",
"value"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 100
},
"contracts": {
"anyOf": [
{
"$ref": "#/$defs/Contracts"
},
{
"type": "null"
}
]
},
"historyAvailability": {
"$ref": "#/$defs/Availability"
}
},
"required": [
"kind",
"team",
"player",
"squad",
"metrics",
"biography",
"contracts",
"historyAvailability"
],
"additionalProperties": false
},
"Query": {
"type": "object",
"properties": {
"messageType": {
"const": "query"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"library",
"entry",
"entity",
"session",
"manager_archive",
"manager_menu",
"desktop",
"squad",
"lineup",
"tactics",
"training",
"camps",
"reports",
"calendar",
"scheduling",
"transfer",
"contracts",
"bank",
"balance",
"advertising",
"environment",
"stadium",
"toto",
"news",
"settings",
"files",
"opening",
"match",
"live",
"postmatch",
"statistics",
"almanac",
"club_search"
]
},
"managerId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"teamId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"atRevision": {
"anyOf": [
{
"$ref": "#/$defs/Revision"
},
{
"type": "null"
}
]
},
"filters": {
"type": "object",
"properties": {
"seasonId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"competitionId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"matchId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"fixtureId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"nationId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"from": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
},
"until": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
},
"section": {
"anyOf": [
{
"type": "string",
"maxLength": 100
},
{
"type": "null"
}
]
},
"search": {
"type": "string",
"maxLength": 200
}
},
"required": [
"seasonId",
"competitionId",
"matchId",
"fixtureId",
"nationId",
"from",
"until",
"section",
"search"
],
"additionalProperties": false
},
"page": {
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"cursor": {
"anyOf": [
{
"type": "string",
"maxLength": 2048
},
{
"type": "null"
}
]
},
"sort": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"maxLength": 100
},
"direction": {
"enum": [
"asc",
"desc"
]
}
},
"required": [
"field",
"direction"
],
"additionalProperties": false
},
"minItems": 0,
"maxItems": 5
}
},
"required": [
"limit",
"cursor",
"sort"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"kind",
"managerId",
"teamId",
"atRevision",
"filters",
"page"
],
"additionalProperties": false
},
"Command": {
"oneOf": [
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "quote.request"
},
"payload": {
"type": "object",
"properties": {
"domain": {
"enum": [
"camp",
"transfer",
"contract",
"advertising",
"bank",
"stadium",
"environment",
"ticket",
"friendly",
"reschedule",
"toto"
]
},
"targetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"parameters": {
"type": "object",
"properties": {
"amount": {
"anyOf": [
{
"$ref": "#/$defs/Money"
},
{
"type": "null"
}
]
},
"units": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"months": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 120
},
{
"type": "null"
}
]
},
"optionId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"date": {
"anyOf": [
{
"$ref": "#/$defs/Date"
},
{
"type": "null"
}
]
}
},
"required": [
"amount",
"units",
"months",
"optionId",
"date"
],
"additionalProperties": false
}
},
"required": [
"domain",
"targetId",
"parameters"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "career.start"
},
"payload": {
"type": "object",
"properties": {
"setup": {
"type": "object",
"properties": {
"players": {
"type": "integer",
"minimum": 1,
"maximum": 4
},
"durationSeasons": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"difficultyId": {
"$ref": "#/$defs/Id"
},
"modeId": {
"$ref": "#/$defs/Id"
},
"leagueEnabled": {
"type": "boolean"
},
"nationalEnabled": {
"type": "boolean"
}
},
"required": [
"players",
"durationSeasons",
"difficultyId",
"modeId",
"leagueEnabled",
"nationalEnabled"
],
"additionalProperties": false
},
"managers": {
"type": "array",
"items": {
"$ref": "#/$defs/Manager"
},
"minItems": 1,
"maxItems": 4
}
},
"required": [
"setup",
"managers"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "manager.join.begin"
},
"payload": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "manager.join.confirm"
},
"payload": {
"type": "object",
"properties": {
"draftId": {
"$ref": "#/$defs/Id"
},
"name": {
"$ref": "#/$defs/ManagerInputName"
},
"teamId": {
"$ref": "#/$defs/Id"
},
"portraitGuiKey": {
"$ref": "#/$defs/Id"
},
"portraitStyle": {
"enum": [
"photo",
"painted"
]
}
},
"required": [
"draftId",
"name",
"teamId",
"portraitGuiKey",
"portraitStyle"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "manager.join.cancel"
},
"payload": {
"type": "object",
"properties": {
"draftId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"draftId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "manager.resign.commit"
},
"payload": {
"type": "object",
"properties": {
"confirmationToken": {
"$ref": "#/$defs/Id"
},
"confirmed": {
"const": true
}
},
"required": [
"confirmationToken",
"confirmed"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "session.advance"
},
"payload": {
"type": "object",
"properties": {
"continueToken": {
"$ref": "#/$defs/Id"
}
},
"required": [
"continueToken"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "opening.continue"
},
"payload": {
"type": "object",
"properties": {
"presentationId": {
"$ref": "#/$defs/Id"
},
"continueToken": {
"$ref": "#/$defs/Id"
}
},
"required": [
"presentationId",
"continueToken"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "lineup.commit"
},
"payload": {
"$ref": "#/$defs/Lineup"
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "tactics.commit"
},
"payload": {
"$ref": "#/$defs/Tactics"
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "training.commit"
},
"payload": {
"$ref": "#/$defs/Training"
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "camp.book"
},
"payload": {
"type": "object",
"properties": {
"campId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"campId",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "transfer.submit"
},
"payload": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"offerId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
},
"kind": {
"enum": [
"purchase",
"sale",
"loan",
"return",
"poach"
]
},
"fee": {
"$ref": "#/$defs/Money"
},
"salaryMonthly": {
"$ref": "#/$defs/Money"
},
"termMonths": {
"type": "integer",
"minimum": 1,
"maximum": 120
}
},
"required": [
"playerId",
"offerId",
"quoteId",
"kind",
"fee",
"salaryMonthly",
"termMonths"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "transfer.cancel"
},
"payload": {
"type": "object",
"properties": {
"orderId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"orderId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "contract.offer"
},
"payload": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
},
"salaryMonthly": {
"$ref": "#/$defs/Money"
},
"termMonths": {
"type": "integer",
"minimum": 1,
"maximum": 120
}
},
"required": [
"playerId",
"quoteId",
"salaryMonthly",
"termMonths"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "contract.insure"
},
"payload": {
"type": "object",
"properties": {
"playerId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
},
"months": {
"type": "integer",
"minimum": 0,
"maximum": 24
}
},
"required": [
"playerId",
"quoteId",
"months"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "contract.bonus"
},
"payload": {
"type": "object",
"properties": {
"bonusId": {
"$ref": "#/$defs/Id"
},
"amount": {
"$ref": "#/$defs/Money"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"bonusId",
"amount",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "advertising.accept"
},
"payload": {
"type": "object",
"properties": {
"slotId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"slotId",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "budget.commit"
},
"payload": {
"type": "object",
"properties": {
"budgetId": {
"$ref": "#/$defs/Id"
},
"amount": {
"$ref": "#/$defs/Money"
},
"period": {
"enum": [
"month",
"season"
]
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"budgetId",
"amount",
"period",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "bank.commit"
},
"payload": {
"type": "object",
"properties": {
"action": {
"enum": [
"deposit",
"withdraw",
"credit",
"repay",
"buy_stock",
"sell_stock",
"buy_property",
"sell_property"
]
},
"assetId": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"amount": {
"$ref": "#/$defs/Money"
},
"units": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"maximum": 2147483647
},
{
"type": "null"
}
]
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"action",
"assetId",
"amount",
"units",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "stadium.commit"
},
"payload": {
"type": "object",
"properties": {
"projectId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"projectId",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "environment.commit"
},
"payload": {
"type": "object",
"properties": {
"serviceId": {
"$ref": "#/$defs/Id"
},
"stars": {
"type": "integer",
"minimum": 0,
"maximum": 6
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"serviceId",
"stars",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "ticket.commit"
},
"payload": {
"type": "object",
"properties": {
"price": {
"$ref": "#/$defs/Money"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"price",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "friendly.book"
},
"payload": {
"type": "object",
"properties": {
"opponentId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"venue": {
"enum": [
"home",
"away",
"neutral"
]
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"opponentId",
"date",
"venue",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "fixture.reschedule"
},
"payload": {
"type": "object",
"properties": {
"fixtureId": {
"$ref": "#/$defs/Id"
},
"date": {
"$ref": "#/$defs/Date"
},
"quoteId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"fixtureId",
"date",
"quoteId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "toto.submit"
},
"payload": {
"type": "object",
"properties": {
"couponId": {
"$ref": "#/$defs/Id"
},
"quoteId": {
"$ref": "#/$defs/Id"
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/Id"
},
"picks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fixtureId": {
"$ref": "#/$defs/Id"
},
"pick": {
"enum": [
"home",
"draw",
"away"
]
}
},
"required": [
"fixtureId",
"pick"
],
"additionalProperties": false
},
"minItems": 11,
"maxItems": 11
}
},
"required": [
"id",
"picks"
],
"additionalProperties": false
},
"minItems": 1,
"maxItems": 6
}
},
"required": [
"couponId",
"quoteId",
"columns"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "news.update"
},
"payload": {
"type": "object",
"properties": {
"messageId": {
"$ref": "#/$defs/Id"
},
"action": {
"enum": [
"read",
"unread",
"archive",
"trash",
"restore"
]
}
},
"required": [
"messageId",
"action"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "settings.commit"
},
"payload": {
"type": "object",
"properties": {
"settingId": {
"$ref": "#/$defs/Id"
},
"value": {
"type": [
"boolean",
"integer",
"string"
]
}
},
"required": [
"settingId",
"value"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "live.substitute"
},
"payload": {
"type": "object",
"properties": {
"matchId": {
"$ref": "#/$defs/Id"
},
"outPlayerId": {
"$ref": "#/$defs/Id"
},
"inPlayerId": {
"$ref": "#/$defs/Id"
}
},
"required": [
"matchId",
"outPlayerId",
"inPlayerId"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "live.tactics"
},
"payload": {
"$ref": "#/$defs/Tactics"
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "postmatch.continue"
},
"payload": {
"type": "object",
"properties": {
"presentationId": {
"$ref": "#/$defs/Id"
},
"continueToken": {
"$ref": "#/$defs/Id"
}
},
"required": [
"presentationId",
"continueToken"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "career.save"
},
"payload": {
"type": "object",
"properties": {
"slotId": {
"$ref": "#/$defs/Id"
},
"token": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
}
},
"required": [
"slotId",
"token"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"messageType": {
"const": "command"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"careerId": {
"$ref": "#/$defs/Id"
},
"worldId": {
"$ref": "#/$defs/Id"
},
"expectedRevision": {
"$ref": "#/$defs/Revision"
},
"owner": {
"$ref": "#/$defs/Scope"
},
"scopeToken": {
"anyOf": [
{
"$ref": "#/$defs/Id"
},
{
"type": "null"
}
]
},
"kind": {
"const": "career.load"
},
"payload": {
"type": "object",
"properties": {
"slotId": {
"$ref": "#/$defs/Id"
},
"token": {
"$ref": "#/$defs/Id"
}
},
"required": [
"slotId",
"token"
],
"additionalProperties": false
}
},
"required": [
"messageType",
"requestId",
"careerId",
"worldId",
"expectedRevision",
"owner",
"scopeToken",
"kind",
"payload"
],
"additionalProperties": false
}
]
},
"Snapshot": {
"type": "object",
"properties": {
"messageType": {
"const": "snapshot"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"meta": {
"$ref": "#/$defs/Meta"
},
"data": {
"oneOf": [
{
"$ref": "#/$defs/Library"
},
{
"$ref": "#/$defs/Entry"
},
{
"$ref": "#/$defs/Entity"
},
{
"$ref": "#/$defs/Session"
},
{
"$ref": "#/$defs/ManagerArchive"
},
{
"$ref": "#/$defs/ManagerMenu"
},
{
"$ref": "#/$defs/Desktop"
},
{
"$ref": "#/$defs/Squad"
},
{
"$ref": "#/$defs/Lineup"
},
{
"$ref": "#/$defs/Tactics"
},
{
"$ref": "#/$defs/Training"
},
{
"$ref": "#/$defs/Camps"
},
{
"$ref": "#/$defs/Reports"
},
{
"$ref": "#/$defs/Calendar"
},
{
"$ref": "#/$defs/Scheduling"
},
{
"$ref": "#/$defs/Transfer"
},
{
"$ref": "#/$defs/Contracts"
},
{
"$ref": "#/$defs/Bank"
},
{
"$ref": "#/$defs/Balance"
},
{
"$ref": "#/$defs/Advertising"
},
{
"$ref": "#/$defs/Environment"
},
{
"$ref": "#/$defs/Stadium"
},
{
"$ref": "#/$defs/Toto"
},
{
"$ref": "#/$defs/News"
},
{
"$ref": "#/$defs/Settings"
},
{
"$ref": "#/$defs/Files"
},
{
"$ref": "#/$defs/Opening"
},
{
"$ref": "#/$defs/Match"
},
{
"$ref": "#/$defs/Live"
},
{
"$ref": "#/$defs/Postmatch"
},
{
"$ref": "#/$defs/Statistics"
},
{
"$ref": "#/$defs/Almanac"
}
]
}
},
"required": [
"messageType",
"requestId",
"meta",
"data"
],
"additionalProperties": false
},
"Error": {
"type": "object",
"properties": {
"messageType": {
"const": "error"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"code": {
"enum": [
"stale_revision",
"wrong_manager",
"wrong_team",
"wrong_world",
"wrong_career",
"stale_quote",
"wrong_scope",
"insufficient_funds",
"invalid_request",
"unavailable",
"incomplete_history",
"invalid_cursor",
"duplicate_request",
"session_ended",
"confirmation_required",
"unsupported_context"
]
},
"message": {
"$ref": "#/$defs/Text"
},
"currentRevision": {
"$ref": "#/$defs/Revision"
},
"retryable": {
"type": "boolean"
},
"stateChanged": {
"const": false
}
},
"required": [
"messageType",
"requestId",
"code",
"message",
"currentRevision",
"retryable",
"stateChanged"
],
"additionalProperties": false
},
"CommandResult": {
"type": "object",
"properties": {
"messageType": {
"const": "command_result"
},
"requestId": {
"$ref": "#/$defs/Id"
},
"accepted": {
"const": true
},
"previousRevision": {
"$ref": "#/$defs/Revision"
},
"newRevision": {
"$ref": "#/$defs/Revision"
},
"outcome": {
"enum": [
"applied",
"no_change",
"offer_pending",
"offer_rejected",
"career_ended"
]
},
"changedReadKinds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 100
},
"minItems": 0,
"maxItems": 50
},
"ownershipChange": {
"anyOf": [
{
"$ref": "#/$defs/OwnershipChange"
},
{
"type": "null"
}
]
},
"feedback": {
"$ref": "#/$defs/Text"
}
},
"required": [
"messageType",
"requestId",
"accepted",
"previousRevision",
"newRevision",
"outcome",
"changedReadKinds",
"ownershipChange",
"feedback"
],
"additionalProperties": false
}
},
"oneOf": [
{
"$ref": "#/$defs/Query"
},
{
"$ref": "#/$defs/Command"
},
{
"$ref": "#/$defs/Snapshot"
},
{
"$ref": "#/$defs/Error"
},
{
"$ref": "#/$defs/CommandResult"
}
]
}