Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
401 changes: 155 additions & 246 deletions docs/schema/lobby.md

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions schema/compiled.json
Original file line number Diff line number Diff line change
Expand Up @@ -3705,6 +3705,13 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle.",
"type": "object",
"patternProperties": {
"^.*$": { "type": "number" }
}
},
"tags": {
"type": "object",
"patternProperties": {
Expand Down Expand Up @@ -4766,6 +4773,18 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle. Set to null to remove.",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [
{ "type": "number" },
{ "type": "null" }
]
}
}
},
"tags": {
"description": "Set to null to remove a tag",
"type": "object",
Expand Down Expand Up @@ -5037,6 +5056,18 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle. Set to null to remove.",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [
{ "type": "number" },
{ "type": "null" }
]
}
}
},
"tags": {
"type": "object",
"patternProperties": {
Expand Down
5 changes: 5 additions & 0 deletions schema/lobby/create/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle.",
"type": "object",
"patternProperties": { "^.*$": { "type": "number" } }
},
"tags": {
"type": "object",
"patternProperties": {
Expand Down
9 changes: 9 additions & 0 deletions schema/lobby/update/request.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle. Set to null to remove.",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [{ "type": "number" }, { "type": "null" }]
}
}
},
"tags": {
"description": "Set to null to remove a tag",
"type": "object",
Expand Down
9 changes: 9 additions & 0 deletions schema/lobby/updated/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@
}
}
},
"restrictions": {
"description": "unit restrictions for the battle. Set to null to remove.",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [{ "type": "number" }, { "type": "null" }]
}
}
},
"tags": {
"type": "object",
"patternProperties": {
Expand Down
5 changes: 5 additions & 0 deletions src/schema/lobby/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export default defineEndpoint({
})
)
),
restrictions: Type.Optional(
Type.Record(Type.String(), Type.Number(), {
description: "unit restrictions for the battle.",
})
),
tags: Type.Optional(Type.Record(Type.String(), Type.Object({}))),
}),
},
Expand Down
5 changes: 5 additions & 0 deletions src/schema/lobby/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export default defineEndpoint({
{ description: "Set to null to remove a game option" }
)
),
restrictions: Type.Optional(
Type.Record(Type.String(), Nullable(Type.Number()), {
description: "unit restrictions for the battle. Set to null to remove.",
})
),
tags: Type.Optional(
Type.Record(Type.String(), Nullable(Type.Object({})), {
description: "Set to null to remove a tag",
Expand Down
5 changes: 5 additions & 0 deletions src/schema/lobby/updated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ export default defineEndpoint({
)
)
),
restrictions: Type.Optional(
Type.Record(Type.String(), Nullable(Type.Number()), {
description: "unit restrictions for the battle. Set to null to remove.",
})
),
tags: Type.Optional(Type.Record(Type.String(), Nullable(Type.Object({})))),
allyTeamConfig: Type.Optional(
Type.Record(
Expand Down