Add SCUM world query assets

This commit is contained in:
npc0-hue
2026-08-13 09:20:42 +08:00
parent bad09df3e2
commit e313081204
18 changed files with 471 additions and 3 deletions
@@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMFlagsReadParameters",
"type": "object",
"additionalProperties": false,
"required": ["limit", "offset"],
"properties": {
"limit": { "type": "integer", "minimum": 1, "maximum": 200 },
"offset": { "type": "integer", "minimum": 0, "maximum": 1000000 }
}
}
@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMFlagsReadResult",
"type": "object",
"additionalProperties": false,
"required": ["rows"],
"properties": {
"rows": {
"type": "array",
"maxItems": 200,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["flagElementId", "baseElementId", "baseId", "ownerProfileId", "ownerExternalPlayerId", "ownerDisplayName", "ownerSquadId", "ownerSquadName", "flagX", "flagY", "flagZ", "territoryX", "territoryY", "territoryZ"],
"properties": {
"flagElementId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"baseElementId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"baseId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"ownerProfileId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"ownerExternalPlayerId": { "type": ["string", "null"], "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"ownerDisplayName": { "type": ["string", "null"], "minLength": 1, "maxLength": 80 },
"ownerSquadId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"ownerSquadName": { "type": ["string", "null"], "minLength": 1, "maxLength": 80 },
"flagX": { "type": ["number", "null"] },
"flagY": { "type": ["number", "null"] },
"flagZ": { "type": ["number", "null"] },
"territoryX": { "type": ["number", "null"] },
"territoryY": { "type": ["number", "null"] },
"territoryZ": { "type": ["number", "null"] }
}
}
}
}
}
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMPositionsReadParameters",
"type": "object",
"additionalProperties": false,
"required": ["subjectType", "limit", "offset"],
"properties": {
"subjectType": { "enum": ["all", "player", "vehicle", "flag"] },
"limit": { "type": "integer", "minimum": 1, "maximum": 500 },
"offset": { "type": "integer", "minimum": 0, "maximum": 1000000 }
}
}
@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMPositionsReadResult",
"type": "object",
"additionalProperties": false,
"required": ["rows"],
"properties": {
"rows": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["subjectType", "subjectId", "externalPlayerId", "profileId", "prisonerId", "entityId", "vehicleEntityId", "vehicleAssetId", "flagElementId", "x", "y", "z", "sourceTimeValue", "sourceTimeKind"],
"properties": {
"subjectType": { "enum": ["player", "vehicle", "flag"] },
"subjectId": { "type": "string", "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"externalPlayerId": { "type": ["string", "null"], "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"profileId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"prisonerId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"entityId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"vehicleEntityId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"vehicleAssetId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"flagElementId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"x": { "type": ["number", "null"] },
"y": { "type": ["number", "null"] },
"z": { "type": ["number", "null"] },
"sourceTimeValue": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"sourceTimeKind": { "type": ["string", "null"], "enum": ["prisoner.last_save_time", null] }
}
}
}
}
}
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMSquadMembersReadParameters",
"type": "object",
"additionalProperties": false,
"required": ["squadId", "limit", "offset"],
"properties": {
"squadId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"limit": { "type": "integer", "minimum": 1, "maximum": 500 },
"offset": { "type": "integer", "minimum": 0, "maximum": 1000000 }
}
}
@@ -0,0 +1,30 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMSquadMembersReadResult",
"type": "object",
"additionalProperties": false,
"required": ["rows"],
"properties": {
"rows": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["squadId", "userProfileId", "rankCode", "rankMeaning", "isLeader", "externalPlayerId", "idType", "provider", "displayName", "profileType"],
"properties": {
"squadId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"userProfileId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"rankCode": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"rankMeaning": { "type": ["string", "null"], "minLength": 1, "maxLength": 32 },
"isLeader": { "type": ["boolean", "null"] },
"externalPlayerId": { "type": ["string", "null"], "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"idType": { "type": ["string", "null"], "minLength": 1, "maxLength": 32 },
"provider": { "type": ["string", "null"], "minLength": 1, "maxLength": 32 },
"displayName": { "type": ["string", "null"], "minLength": 1, "maxLength": 80 },
"profileType": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 }
}
}
}
}
}
@@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMSquadsReadParameters",
"type": "object",
"additionalProperties": false,
"required": ["limit", "offset"],
"properties": {
"limit": { "type": "integer", "minimum": 1, "maximum": 100 },
"offset": { "type": "integer", "minimum": 0, "maximum": 1000000 }
}
}
@@ -0,0 +1,27 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMSquadsReadResult",
"type": "object",
"additionalProperties": false,
"required": ["rows"],
"properties": {
"rows": {
"type": "array",
"maxItems": 100,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["squadId", "squadName", "memberCount", "leaderProfileId", "leaderExternalPlayerId", "leaderRankCode", "leaderRankMeaning"],
"properties": {
"squadId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"squadName": { "type": ["string", "null"], "minLength": 1, "maxLength": 80 },
"memberCount": { "type": "integer", "minimum": 0, "maximum": 1000 },
"leaderProfileId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"leaderExternalPlayerId": { "type": ["string", "null"], "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"leaderRankCode": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"leaderRankMeaning": { "type": ["string", "null"], "minLength": 1, "maxLength": 32 }
}
}
}
}
}
@@ -0,0 +1,11 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMVehiclesReadParameters",
"type": "object",
"additionalProperties": false,
"required": ["limit", "offset"],
"properties": {
"limit": { "type": "integer", "minimum": 1, "maximum": 500 },
"offset": { "type": "integer", "minimum": 0, "maximum": 1000000 }
}
}
@@ -0,0 +1,31 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SCUMVehiclesReadResult",
"type": "object",
"additionalProperties": false,
"required": ["rows"],
"properties": {
"rows": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"additionalProperties": false,
"required": ["vehicleEntityId", "entityId", "vehicleAssetId", "isVehicleFunctional", "vehicleLabel", "ownerProfileId", "ownerExternalPlayerId", "ownerSquadId", "x", "y", "z"],
"properties": {
"vehicleEntityId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"entityId": { "type": "integer", "minimum": 0, "maximum": 2147483647 },
"vehicleAssetId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"isVehicleFunctional": { "type": ["integer", "null"], "minimum": 0, "maximum": 1 },
"vehicleLabel": { "type": ["string", "null"], "minLength": 1, "maxLength": 120 },
"ownerProfileId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"ownerExternalPlayerId": { "type": ["string", "null"], "minLength": 1, "maxLength": 96, "pattern": "^[A-Za-z0-9_.:-]{1,96}$" },
"ownerSquadId": { "type": ["integer", "null"], "minimum": 0, "maximum": 2147483647 },
"x": { "type": ["number", "null"] },
"y": { "type": ["number", "null"] },
"z": { "type": ["number", "null"] }
}
}
}
}
}