{
  "$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:list_actions",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "contextRef": {
      "$ref": "#/$defs/EntityRef"
    },
    "cursor": {
      "anyOf": [
        {
          "maxLength": 512,
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "interactionId": {
      "maxLength": 512,
      "minLength": 1,
      "type": "string"
    },
    "limit": {
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "mode": {
      "enum": [
        "available",
        "discoverable"
      ]
    },
    "target": {
      "$ref": "#/$defs/Target"
    }
  },
  "required": [
    "interactionId"
  ],
  "type": "object"
}
