feat(scum): add versioned gift grants

This commit is contained in:
npc0-hue
2026-07-28 16:40:35 +08:00
parent 4527175a6f
commit e2d0bc0595
26 changed files with 1224 additions and 14 deletions
@@ -3,27 +3,31 @@
"title": "SCUMRewardDeliverPayload",
"type": "object",
"additionalProperties": false,
"required": ["playerId", "itemId", "quantity"],
"required": ["grantId", "playerId", "items"],
"properties": {
"playerId": {
"type": "string",
"maxLength": 96,
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"itemId": {
"grantId": {
"type": "string",
"maxLength": 96,
"pattern": "^[A-Za-z0-9_.:-]{1,96}$"
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"reason": {
"type": "string",
"minLength": 1,
"maxLength": 200
"items": {
"type": "array",
"minItems": 1,
"maxItems": 8,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["catalogItemKey", "quantity"],
"properties": {
"catalogItemKey": { "type": "string", "maxLength": 64, "pattern": "^[a-z0-9-]{1,64}$" },
"quantity": { "type": "integer", "minimum": 1, "maximum": 100 }
}
}
}
}
}