{
  "$ref": "#/definitions/HelloMessage",
  "definitions": {
    "HelloMessage": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "const": "hello"
        },
        "protocolVersion": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1
        },
        "sessionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "url": {
          "type": "string",
          "maxLength": 4096
        },
        "title": {
          "type": "string",
          "maxLength": 512
        },
        "projectId": {
          "$ref": "#/definitions/HelloMessage/properties/sessionId"
        },
        "adapters": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 128
          },
          "maxItems": 32
        },
        "token": {
          "type": "string",
          "maxLength": 512
        },
        "platform": {
          "type": "string",
          "enum": [
            "web",
            "webview",
            "native",
            "service"
          ]
        },
        "channels": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "ui",
              "net",
              "state",
              "signal",
              "log",
              "route",
              "storage",
              "time",
              "visual"
            ]
          },
          "maxItems": 32
        },
        "commands": {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 512
          },
          "maxItems": 32
        },
        "contractParts": {
          "type": "object",
          "properties": {
            "commands": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 128
            },
            "events": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 128
            },
            "actions": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "maxItems": 128
            }
          },
          "required": [
            "commands",
            "events",
            "actions"
          ],
          "additionalProperties": false
        },
        "hasCapabilities": {
          "type": "boolean"
        },
        "captureBodies": {
          "type": "boolean"
        },
        "sourceMapping": {
          "type": "boolean"
        },
        "sdkVersion": {
          "type": "string",
          "maxLength": 128
        },
        "contract": {
          "type": "string",
          "maxLength": 128
        },
        "redactKeys": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "maxItems": 64
        }
      },
      "required": [
        "kind",
        "protocolVersion",
        "sessionId",
        "url",
        "title",
        "adapters"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
