protocol-SubverseInfo

JSON Schema, Draft/2019-09

https://json-schema.org/draft/2019-09

{
	"$id": "https://root-interface.se/schemas/schema_MsgAnnouncement",
	"$schema": "https://json-schema.org/draft/2019-09/schema",
	"type" : "object",
	"required" : [ "announcement", "_v" ],
	"properties" : {
		"announcement" : {
			"type" : "object"
		},
		"_v": { "$ref": "definitions_Discovery#/definitions/_v" }
	}
}
JSON example
{
	"id": "53C2A451-D3E7-4657-932D-22EBF4A823D8",
	"_msg": { "id": "15169a65-94fe-449a-9164-a2e2bdd78c56", "discovery": { "graphql": "query { expanse { ... } }", "ttl_msec": 5000 }, "referer": ["subverse-protocol-map", "4b1ad967-8154-416f-a744-989db452bd76"], "dt": "2023-04-28T10:13:11.642Z" },
	"referer": ["tx-sl", "D41EDF64-6BF9-40D0-B30C-CC6A798B67F2"],
	"dt": "2023-04-28T10:13:11Z",
	announcement: {
		expanse : {
			subverse: {
				name : "OpenSimulator",
				uri : "http://opensimulator.org",
				favicon : "https://upload.wikimedia.org/wikipedia/commons/5/50/Opensimulator_logo200x160.png",
				map_url : "http://opensimulator.org/wiki/Grid_List"
			},
			protocols: [
				{	name: "Second Life protocol", attr: "0r" }
			]
		}
	},
	"_v" : <VERSION_STR>
}


Subverse/Instances

JSON Schema, Draft/2019-09

https://json-schema.org/draft/2019-09

{
	"$id": "https://root-interface.se/schemas/schema_expanse_subverse",
	"$schema": "https://json-schema.org/draft/2019-09/schema",
	"type" : "object",
	"required" : [ "subverse", "protocols" ],
	"properties" : {
		"subverse" : {
			"type" : "object",
			"allOf": [{ "$ref": "definitions_Discovery#/definitions/unique-id" }],
			"required" : [ "map_url" ],
			"properties" : {
				"map_url" : { "type" : "string" }
			}
		},
		"instances" : { "$ref": "definitions_Discovery#/definitions/instances" },
		"platforms" : { "$ref": "definitions_Discovery#/definitions/platforms" },
		"protocols": { "$ref": "definitions_Discovery#/definitions/protocols" }
	}
}
  • protocols

    • name — name of the protocol; optional @version number appended

    • attr

      • 0 — the protocol is native to the subverse; no translator is required

      • r — reading of the protocol is supported; the subverse uses the protocol to speak

      • w — writing of the protocol is supported; the protocol can be used to speak to the subverse


JSON example
{
	"expanse" : {
		subverse : {
			"name": "Decentraland",
			"uri" : "decentraland.org",
			map_url : "https://decentraland.org/map",
			"favicon" : "",
			info : {},
		},
		instances : [
			{
				name : "",
				uri : "",
				info : {}
			},
			{
				name : "",
				uri : "",
				info : {}
			},
		],
		platforms : [],
		"protocols": []
	}
}


JSON Schema, Draft/2019-09

https://json-schema.org/draft/2019-09

{
	"$id": "https://root-interface.se/schemas/schema_expanse_instances",
	"$schema": "https://json-schema.org/draft/2019-09/schema",
	"type" : "object",
	"required" : ["instances"],
	"properties" : {
		"instances" : { "$ref": "definitions_Discovery#/definitions/instances" },
		"subverse" : {
			"type" : "object",
			"required": [ "name", "uri" ],
			"properties": {
				"name": { "type" : "string" },
				"uri": { "type" : "string" }
			},
			"additionalProperties": false
		},
		"platforms" : { "$ref": "definitions_Discovery#/definitions/platforms" },
		"protocols": { "$ref": "definitions_Discovery#/definitions/protocols" }

	}
}


JSON example
{
	"expanse" : {
		instances : [
			{
				name : "",
				uri : "",
				favicon : "",
				info : {}
			},
			{
				name : "",
				uri : "",
			},
		],
		subverse : {
			"name": "Decentraland",
			"uri" : "decentraland.org"
		},
		platforms : [],
		"protocols": []
	}
}