{
  "$defs": {
    "EntityRef": {
      "additionalProperties": false,
      "properties": {
        "entityId": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/Target"
        }
      },
      "required": [
        "target",
        "entityId"
      ],
      "type": "object"
    },
    "Target": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "instanceId": {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "enum": [
            "jellybox",
            "jellyhub"
          ]
        }
      },
      "required": [
        "kind",
        "id",
        "instanceId"
      ],
      "type": "object"
    }
  },
  "$id": "urn:jellybox:protocol:1.0:describe_actions",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "actionRefs": {
      "items": {
        "$ref": "#/$defs/EntityRef"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
    },
    "interactionId": {
      "maxLength": 512,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "interactionId",
    "actionRefs"
  ],
  "type": "object"
}
