{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://github.com/GameCult/CultLib/contracts/cultnet/cultmesh.verse-catalog-response.schema.json", "title": "CultMesh Verse Catalog Response", "type": "object", "required": ["schemaVersion", "messageId", "verses"], "additionalProperties": false, "$defs": { "compatibility": { "type": "object", "required": ["transportVersion", "rulesHash", "compatibleVerseIds", "requiredPluginIds", "optionalPluginIds"], "additionalProperties": false, "properties": { "transportVersion": { "type": "string", "minLength": 1 }, "rulesHash": { "type": "string", "minLength": 1 }, "compatibleVerseIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "requiredPluginIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "optionalPluginIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true } } }, "authorityRoute": { "type": "object", "required": ["authorityRuntimeId", "endpoint", "protocolIds", "priority", "generation"], "additionalProperties": false, "properties": { "authorityRuntimeId": { "type": "string", "minLength": 1 }, "endpoint": { "type": "string", "minLength": 1 }, "protocolIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "priority": { "type": "integer", "minimum": 0 }, "generation": { "type": "string", "minLength": 1 }, "certificate": { "anyOf": [{ "$ref": "#/$defs/routeCertificate" }, { "type": "null" }] } } }, "routeCertificate": { "type": "object", "required": ["providerKeyId", "providerPublicKeyX", "providerPublicKeyY", "odinKeyId", "issuedAtUnixMilliseconds", "expiresAtUnixMilliseconds", "signature"], "additionalProperties": false, "properties": { "providerKeyId": { "type": "string", "minLength": 1 }, "providerPublicKeyX": { "type": "string", "minLength": 1 }, "providerPublicKeyY": { "type": "string", "minLength": 1 }, "odinKeyId": { "type": "string", "minLength": 1 }, "issuedAtUnixMilliseconds": { "type": "integer", "minimum": 0 }, "expiresAtUnixMilliseconds": { "type": "integer", "minimum": 1 }, "signature": { "type": "string", "minLength": 1 } } }, "verse": { "type": "object", "required": ["verseId", "displayName", "authorityModel", "compatibility", "discoveryEndpoints", "authorityRuntimeIds"], "additionalProperties": false, "properties": { "verseId": { "type": "string", "minLength": 1 }, "displayName": { "type": "string", "minLength": 1 }, "authorityModel": { "type": "string", "minLength": 1 }, "compatibility": { "$ref": "#/$defs/compatibility" }, "discoveryEndpoints": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "authorityRuntimeIds": { "type": "array", "items": { "type": "string", "minLength": 1 }, "uniqueItems": true }, "authorityRoutes": { "type": "array", "items": { "$ref": "#/$defs/authorityRoute" } }, "parentVerseId": { "type": "string", "minLength": 1 }, "description": { "type": "string" } } } }, "properties": { "schemaVersion": { "const": "cultmesh.verse_catalog_response.v0" }, "messageId": { "type": "string", "minLength": 1 }, "verses": { "type": "array", "items": { "$ref": "#/$defs/verse" } } } }