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
@@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMPlayerGiftNotificationPayload",
"type": "object",
"additionalProperties": false,
"required": ["playerId", "message"],
"properties": {
"playerId": { "type": "string", "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"message": { "type": "string", "minLength": 1, "maxLength": 200 }
}
}
@@ -0,0 +1,8 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMPlayerGiftNotificationResult",
"type": "object",
"additionalProperties": false,
"required": ["accepted"],
"properties": { "accepted": { "type": "boolean" }, "message": { "type": "string", "maxLength": 200 } }
}
@@ -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 }
}
}
}
}
}