{
  "profile": "open-alert-draft/0.20",
  "description": "Структурная XML-грамматика. До XML-разбора требуется строгий UTF-8 без BOM, деклараций и NUL; автоопределение другой кодировки запрещено. XSD применяется совместно с байтовыми и межполевыми ограничениями нормативного текста, в том числе mode=test требует purpose=technical. Для session.start и readiness.get обязательны полная форма выбранного режима и согласованные длительности; для audio.prepare — число отсчетов только у записи, точные поля маршрута и допустимые сочетания буфера. Автоматы владения и исполнения проверяются отдельно от структуры XML.",
  "actions": {
    "transfer.capabilities": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        []
      ],
      "bootId": false,
      "fields": {},
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported"
      ]
    },
    "transfer.hello": {
      "cmdSeq": false,
      "epoch": true,
      "forms": [
        [
          "transfer"
        ]
      ],
      "bootId": true,
      "fields": {
        "transfer": {
          "allowed": [
            "id",
            "kind"
          ],
          "required": [
            "id",
            "kind"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "resultExpired",
        "unsafeState",
        "notFound",
        "staleAttachment"
      ]
    },
    "firmware.cancel": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "upload"
        ]
      ],
      "bootId": true,
      "fields": {
        "upload": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault"
      ]
    },
    "profiles.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "resourceId",
            "snapshotId",
            "cursor"
          ],
          "required": [
            "resourceId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "notFound",
        "unsupported",
        "snapshotExpired"
      ]
    },
    "programs.list": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "programId",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "snapshotExpired"
      ]
    },
    "audio.prepare": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "stream"
        ]
      ],
      "bootId": true,
      "fields": {
        "stream": {
          "allowed": [
            "source",
            "codec",
            "packetMs",
            "ssrc",
            "firstSeq",
            "firstTimestamp",
            "totalSamples"
          ],
          "required": [
            "source",
            "codec",
            "packetMs",
            "ssrc",
            "firstSeq",
            "firstTimestamp"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "unsafeState"
      ]
    },
    "audio.state": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "mediaId"
          ],
          "required": [
            "mediaId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound"
      ]
    },
    "audio.finish": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "stream"
        ]
      ],
      "bootId": true,
      "fields": {
        "stream": {
          "allowed": [
            "mediaId",
            "lastPacketIndex",
            "sampleCount"
          ],
          "required": [
            "mediaId",
            "lastPacketIndex",
            "sampleCount"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "unsafeState"
      ]
    },
    "audio.discard": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "prepared"
        ]
      ],
      "bootId": true,
      "fields": {
        "prepared": {
          "allowed": [
            "mediaId"
          ],
          "required": [
            "mediaId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "unsafeState"
      ]
    },
    "content.begin": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "content",
          "transfer"
        ]
      ],
      "bootId": true,
      "fields": {
        "content": {
          "allowed": [
            "id",
            "revision",
            "codec",
            "bytes",
            "sampleCount",
            "hashAlgorithm",
            "hash"
          ],
          "required": [
            "id",
            "revision",
            "codec",
            "bytes",
            "sampleCount",
            "hashAlgorithm",
            "hash"
          ]
        },
        "transfer": {
          "allowed": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ],
          "required": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsafeState",
        "noSpace",
        "storageFault"
      ]
    },
    "content.commit": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "upload"
        ]
      ],
      "bootId": true,
      "fields": {
        "upload": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "unsafeState",
        "storageFault"
      ]
    },
    "content.status": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "uploadId"
          ],
          "required": [
            "uploadId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "storageFault"
      ]
    },
    "content.cancel": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "upload"
        ]
      ],
      "bootId": true,
      "fields": {
        "upload": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault"
      ]
    },
    "media.hello": {
      "cmdSeq": false,
      "epoch": true,
      "forms": [
        [
          "stream"
        ]
      ],
      "bootId": true,
      "fields": {
        "stream": {
          "allowed": [
            "mediaId"
          ],
          "required": [
            "mediaId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "notFound",
        "resultExpired"
      ]
    },
    "audio.group.prepare": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "group"
        ]
      ],
      "bootId": true,
      "fields": {
        "group": {
          "allowed": [
            "id",
            "revision",
            "streamId",
            "source",
            "key",
            "totalSamples"
          ],
          "required": [
            "id",
            "revision",
            "streamId",
            "source"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsafeState",
        "notFound",
        "sourceUnavailable"
      ]
    },
    "protocol.hello": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "hello"
        ]
      ],
      "bootId": false,
      "fields": {
        "hello": {
          "allowed": [
            "clientId"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden"
      ]
    },
    "readiness.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "plan"
        ],
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "plan": {
          "allowed": [
            "mode",
            "configRevision",
            "capabilityRevision",
            "maxDurationMs"
          ],
          "required": [
            "mode",
            "configRevision",
            "capabilityRevision",
            "maxDurationMs"
          ]
        },
        "selection": {
          "allowed": [
            "snapshotId",
            "cursor"
          ],
          "required": [
            "snapshotId",
            "cursor"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "snapshotExpired"
      ]
    },
    "content.describe": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "contentId",
            "revision",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "snapshotExpired",
        "storageFault"
      ]
    },
    "device.describe": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        []
      ],
      "bootId": false,
      "fields": {},
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy"
      ]
    },
    "device.capabilities": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [],
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "snapshotId",
            "cursor"
          ],
          "required": [
            "snapshotId",
            "cursor"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "snapshotExpired",
        "notFound"
      ]
    },
    "device.state": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [],
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "snapshotId",
            "cursor"
          ],
          "required": [
            "snapshotId",
            "cursor"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "snapshotExpired"
      ]
    },
    "inventory.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "pointId",
            "resourceId",
            "ouId",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "notFound",
        "snapshotExpired"
      ]
    },
    "sensors.read": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "notFound",
        "snapshotExpired"
      ]
    },
    "diagnostics.read": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "scope",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "snapshotExpired"
      ]
    },
    "tests.list": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "testId",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "snapshotExpired"
      ]
    },
    "log.read": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "afterSeq",
            "limit"
          ],
          "required": [
            "afterSeq",
            "limit"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "cursorExpired"
      ]
    },
    "poll.start": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "poll"
        ]
      ],
      "bootId": false,
      "fields": {
        "poll": {
          "allowed": [
            "clientOperationId",
            "deadlineMs",
            "refresh"
          ],
          "required": [
            "clientOperationId",
            "deadlineMs",
            "refresh"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "conflict"
      ]
    },
    "poll.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "operationId",
            "snapshotId",
            "cursor"
          ],
          "required": [
            "operationId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "snapshotExpired"
      ]
    },
    "poll.cancel": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "poll"
        ]
      ],
      "bootId": false,
      "fields": {
        "poll": {
          "allowed": [
            "operationId",
            "clientOperationId"
          ],
          "required": [
            "operationId",
            "clientOperationId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound"
      ]
    },
    "control.acquire": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "control"
        ]
      ],
      "bootId": true,
      "fields": {
        "control": {
          "allowed": [
            "acquireSeq",
            "instanceId",
            "purpose"
          ],
          "required": [
            "acquireSeq",
            "instanceId",
            "purpose"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "conflict",
        "resultExpired",
        "unsafeState",
        "storageFault"
      ]
    },
    "control.resume": {
      "cmdSeq": false,
      "epoch": true,
      "forms": [
        [
          "control"
        ]
      ],
      "bootId": true,
      "fields": {
        "control": {
          "allowed": [
            "acquireSeq",
            "instanceId",
            "attachSeq"
          ],
          "required": [
            "acquireSeq",
            "instanceId",
            "attachSeq"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "storageFault"
      ]
    },
    "control.release": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        []
      ],
      "bootId": true,
      "fields": {},
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsafeState",
        "storageFault"
      ]
    },
    "channel.ping": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        []
      ],
      "bootId": true,
      "fields": {},
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment"
      ]
    },
    "session.start": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "session"
        ]
      ],
      "bootId": true,
      "fields": {
        "session": {
          "allowed": [
            "mode",
            "purpose",
            "acceptBeforeMs",
            "maxDurationMs",
            "configRevision",
            "capabilityRevision"
          ],
          "required": [
            "mode",
            "purpose",
            "acceptBeforeMs",
            "maxDurationMs",
            "configRevision",
            "capabilityRevision"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsupported",
        "startWindowExpired",
        "startBlockedByCancel",
        "sourceUnavailable",
        "unsafeState",
        "notFound",
        "storageFault"
      ]
    },
    "session.stop": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "session"
        ]
      ],
      "bootId": true,
      "fields": {
        "session": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault"
      ]
    },
    "session.cancel": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "session"
        ]
      ],
      "bootId": true,
      "fields": {
        "session": {
          "allowed": [
            "startSeq"
          ],
          "required": [
            "startSeq"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "storageFault",
        "startBlockedByCancel"
      ]
    },
    "session.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": true,
      "fields": {
        "selection": {
          "allowed": [
            "sessionId",
            "startSeq",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "notFound",
        "resultExpired",
        "snapshotExpired"
      ]
    },
    "command.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": true,
      "fields": {
        "selection": {
          "allowed": [
            "controlEpoch",
            "cmdSeq"
          ],
          "required": [
            "controlEpoch",
            "cmdSeq"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "resultExpired",
        "staleEpoch"
      ]
    },
    "events.read": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "events"
        ]
      ],
      "bootId": false,
      "fields": {
        "events": {
          "allowed": [
            "bootId",
            "afterSeq"
          ],
          "required": [
            "bootId",
            "afterSeq"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy"
      ]
    },
    "config.get": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "configId",
            "transactionId",
            "snapshotId",
            "cursor"
          ],
          "required": []
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "snapshotExpired",
        "storageFault"
      ]
    },
    "config.stage": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "transaction",
          "transfer"
        ]
      ],
      "bootId": true,
      "fields": {
        "transaction": {
          "allowed": [
            "id",
            "baseRevision",
            "totalBytes",
            "hashAlgorithm",
            "hash"
          ],
          "required": [
            "id",
            "baseRevision",
            "totalBytes",
            "hashAlgorithm",
            "hash"
          ]
        },
        "transfer": {
          "allowed": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ],
          "required": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "noSpace",
        "storageFault",
        "unsafeState"
      ]
    },
    "config.commit": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "transaction"
        ]
      ],
      "bootId": true,
      "fields": {
        "transaction": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault",
        "unsafeState"
      ]
    },
    "config.cancel": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "transaction"
        ]
      ],
      "bootId": true,
      "fields": {
        "transaction": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault"
      ]
    },
    "network.stage": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "network"
        ]
      ],
      "bootId": true,
      "fields": {
        "network": {
          "allowed": [
            "id",
            "address",
            "prefix",
            "gateway",
            "confirmMs"
          ],
          "required": [
            "id",
            "address",
            "prefix",
            "gateway",
            "confirmMs"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsafeState",
        "storageFault"
      ]
    },
    "network.confirm": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "network"
        ]
      ],
      "bootId": true,
      "fields": {
        "network": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "confirmationWindowExpired",
        "storageFault"
      ]
    },
    "network.cancel": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "network"
        ]
      ],
      "bootId": true,
      "fields": {
        "network": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "notFound",
        "storageFault"
      ]
    },
    "time.set": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "clock"
        ]
      ],
      "bootId": true,
      "fields": {
        "clock": {
          "allowed": [
            "utcMs",
            "errorMs"
          ],
          "required": [
            "utcMs",
            "errorMs"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired"
      ]
    },
    "firmware.begin": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "image",
          "transfer"
        ]
      ],
      "bootId": true,
      "fields": {
        "image": {
          "allowed": [
            "id",
            "deviceKind",
            "hardwareRevision",
            "version",
            "bytes",
            "hashAlgorithm",
            "hash",
            "signature",
            "keyId"
          ],
          "required": [
            "id",
            "deviceKind",
            "hardwareRevision",
            "version",
            "bytes",
            "hashAlgorithm",
            "hash",
            "signature",
            "keyId"
          ]
        },
        "transfer": {
          "allowed": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ],
          "required": [
            "profile",
            "blockBytes",
            "windowBlocks",
            "windowRoundTripMaxMs"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "incompatible",
        "noSpace",
        "unsafeState",
        "storageFault"
      ]
    },
    "firmware.verify": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "upload"
        ]
      ],
      "bootId": true,
      "fields": {
        "upload": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "incomplete",
        "invalidSignature",
        "incompatible",
        "rollbackDenied",
        "unsafeState",
        "notFound",
        "storageFault"
      ]
    },
    "firmware.commit": {
      "cmdSeq": true,
      "epoch": true,
      "forms": [
        [
          "upload"
        ]
      ],
      "bootId": true,
      "fields": {
        "upload": {
          "allowed": [
            "id"
          ],
          "required": [
            "id"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "staleEpoch",
        "staleAttachment",
        "conflict",
        "resultExpired",
        "unsafeState",
        "incompatible",
        "incomplete",
        "notFound",
        "storageFault"
      ]
    },
    "firmware.status": {
      "cmdSeq": false,
      "epoch": false,
      "forms": [
        [
          "selection"
        ]
      ],
      "bootId": false,
      "fields": {
        "selection": {
          "allowed": [
            "operationId"
          ],
          "required": [
            "operationId"
          ]
        }
      },
      "errors": [
        "invalidArgument",
        "unsupportedVersion",
        "incompatibleProfile",
        "forbidden",
        "staleBoot",
        "busy",
        "unsupported",
        "notFound",
        "resultExpired",
        "storageFault"
      ]
    }
  },
  "elements": {
    "alarm": {
      "attributes": {
        "alarmId": {
          "type": "id"
        },
        "changedAtMs": {
          "type": "uint64"
        },
        "conditionId": {
          "type": "text"
        },
        "continuity": {
          "type": "text"
        },
        "freshness": {
          "enum": [
            "fresh",
            "stale",
            "never"
          ]
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "pointId": {
          "type": "text"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "critical"
          ]
        },
        "state": {
          "type": "text"
        },
        "validity": {
          "enum": [
            "valid",
            "invalid",
            "unavailable"
          ]
        }
      },
      "children": []
    },
    "audio": {
      "attributes": {
        "bufferedMs": {
          "type": "uint64"
        },
        "duplicatePackets": {
          "type": "uint64"
        },
        "emittedSamples": {
          "type": "uint64"
        },
        "lastPacketAtMs": {
          "type": "uint64"
        },
        "latePackets": {
          "type": "uint64"
        },
        "lostPackets": {
          "type": "uint64"
        },
        "mediaId": {
          "type": "id"
        },
        "receivedPackets": {
          "type": "uint64"
        },
        "sessionId": {
          "type": "id"
        },
        "state": {
          "type": "text"
        }
      },
      "children": [
        "clock",
        "groupStats"
      ]
    },
    "buffer": {
      "attributes": {
        "initialMs": {
          "type": "uint64"
        },
        "maxMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "cancellation": {
      "attributes": {
        "activeMatch": {
          "type": "bool"
        },
        "history": {
          "type": "text"
        },
        "lateStartBlocked": {
          "type": "bool"
        },
        "startSeq": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "cancelled": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "operationId": {
          "type": "id"
        }
      },
      "children": []
    },
    "capabilities": {
      "attributes": {
        "capabilityRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "bool"
        },
        "snapshotId": {
          "type": "id"
        }
      },
      "children": [
        "command",
        "limit",
        "mode",
        "resource",
        "mediaProfile"
      ]
    },
    "channel": {
      "attributes": {
        "leaseRemainingMs": {
          "type": "uint64"
        },
        "uptimeMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "check": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "phase": {
          "type": "text"
        },
        "reason": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "status": {
          "type": "text"
        }
      },
      "children": []
    },
    "clock": {
      "attributes": {
        "utcMs": {
          "type": "uint64"
        },
        "errorMs": {
          "type": "uint64"
        },
        "sourceSamples": {
          "type": "uint64"
        },
        "concealedSamples": {
          "type": "uint64"
        },
        "rateCorrectionPpm": {
          "type": "text"
        },
        "state": {
          "type": "text"
        }
      },
      "children": []
    },
    "command": {
      "attributes": {
        "action": {
          "type": "text"
        },
        "cmdSeq": {
          "type": "uint64"
        },
        "name": {
          "type": "text"
        },
        "state": {
          "type": "text"
        }
      },
      "children": [
        "response"
      ]
    },
    "committed": {
      "attributes": {
        "appliedRevision": {
          "type": "uint64"
        },
        "configRevision": {
          "type": "uint64"
        },
        "id": {
          "type": "text"
        }
      },
      "children": []
    },
    "completion": {
      "attributes": {
        "state": {
          "enum": [
            "pending",
            "complete",
            "interrupted",
            "unknown"
          ]
        }
      },
      "children": []
    },
    "condition": {
      "attributes": {
        "code": {
          "type": "text"
        },
        "effect": {
          "enum": [
            "none",
            "degraded",
            "failed",
            "unknown"
          ]
        },
        "id": {
          "type": "text"
        },
        "mode": {
          "type": "text"
        },
        "pointId": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "critical"
          ]
        }
      },
      "children": []
    },
    "configuration": {
      "attributes": {
        "appliedRevision": {
          "type": "uint64"
        },
        "configRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "bool"
        },
        "onControlLoss": {
          "enum": [
            "stop",
            "finish"
          ]
        },
        "snapshotId": {
          "type": "id"
        }
      },
      "children": [
        "entry",
        "transaction"
      ]
    },
    "content": {
      "attributes": {
        "bytes": {
          "type": "uint64"
        },
        "codec": {
          "type": "text"
        },
        "hash": {
          "type": "text"
        },
        "hashAlgorithm": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        },
        "sampleCount": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        }
      },
      "children": []
    },
    "contents": {
      "attributes": {
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "text"
        },
        "snapshotId": {
          "type": "id"
        },
        "capabilityRevision": {
          "type": "uint64"
        }
      },
      "children": [
        "content",
        "verification"
      ]
    },
    "control": {
      "attributes": {
        "acquireSeq": {
          "type": "uint64"
        },
        "attachSeq": {
          "type": "uint64"
        },
        "controlEpoch": {
          "type": "id"
        },
        "current": {
          "type": "bool"
        },
        "highWater": {
          "type": "uint64"
        },
        "idleDeadlineMs": {
          "type": "uint64"
        },
        "instanceId": {
          "type": "id"
        },
        "leaseRemainingMs": {
          "type": "uint64"
        },
        "purpose": {
          "type": "text"
        }
      },
      "children": []
    },
    "device": {
      "attributes": {
        "deviceId": {
          "type": "id"
        },
        "kind": {
          "type": "text"
        },
        "manufacturer": {
          "type": "text"
        },
        "securityPolicy": {
          "type": "text"
        },
        "softwareDeveloper": {
          "type": "text"
        },
        "uptimeMs": {
          "type": "uint64"
        },
        "version": {
          "type": "text"
        }
      },
      "children": []
    },
    "diagnostics": {
      "attributes": {
        "more": {
          "type": "bool"
        },
        "snapshotId": {
          "type": "id"
        },
        "uptimeMs": {
          "type": "uint64"
        }
      },
      "children": [
        "metric"
      ]
    },
    "discarded": {
      "attributes": {
        "mediaId": {
          "type": "id"
        }
      },
      "children": []
    },
    "entry": {
      "attributes": {
        "atMs": {
          "type": "text"
        },
        "code": {
          "type": "text"
        },
        "facet": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "level": {
          "type": "text"
        },
        "part": {
          "type": "uint64"
        },
        "parts": {
          "type": "uint64"
        },
        "seq": {
          "type": "text"
        },
        "sessionId": {
          "type": "id"
        },
        "text": {
          "type": "text"
        },
        "type": {
          "type": "text"
        },
        "value": {
          "type": "text"
        }
      },
      "children": []
    },
    "enum": {
      "attributes": {
        "code": {
          "type": "text"
        },
        "label": {
          "type": "text"
        },
        "pointId": {
          "type": "text"
        }
      },
      "children": []
    },
    "error": {
      "attributes": {
        "cancelSeq": {
          "type": "uint64"
        },
        "code": {
          "enum": [
            "incompatibleProfile",
            "staleAttachment",
            "unsupportedVersion",
            "unsupported",
            "invalidArgument",
            "forbidden",
            "staleBoot",
            "staleEpoch",
            "busy",
            "unsafeState",
            "startWindowExpired",
            "confirmationWindowExpired",
            "startBlockedByCancel",
            "conflict",
            "resultExpired",
            "notFound",
            "snapshotExpired",
            "cursorExpired",
            "sourceUnavailable",
            "storageFault",
            "incompatible",
            "incomplete",
            "noSpace",
            "invalidSignature",
            "rollbackDenied"
          ]
        },
        "detail": {
          "enum": [
            "roleDenied",
            "scopeDenied",
            "ownerMismatch",
            "ownershipHeld",
            "executionActive",
            "localControl",
            "serviceActive",
            "capacityExhausted",
            "requestMismatch",
            "configRevisionMismatch",
            "capabilityRevisionMismatch",
            "bindingChanged",
            "contentRevisionMismatch",
            "instanceMismatch",
            "operationStateMismatch"
          ]
        },
        "resource": {
          "type": "text"
        }
      },
      "children": []
    },
    "event": {
      "attributes": {
        "atMs": {
          "type": "text"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "eventSeq": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "seq": {
          "type": "uint64"
        },
        "sessionId": {
          "type": "id"
        },
        "stateRevision": {
          "type": "uint64"
        },
        "type": {
          "enum": [
            "session.started",
            "session.finished",
            "resource.changed",
            "sensor.qualityChanged",
            "inventory.changed",
            "alarm.raised",
            "alarm.cleared",
            "alarm.qualityChanged",
            "session.execution",
            "session.fault"
          ]
        }
      },
      "children": [
        "alarm",
        "execution",
        "fault",
        "point",
        "resource",
        "session"
      ]
    },
    "events": {
      "attributes": {
        "afterSeq": {
          "type": "uint64"
        },
        "bootId": {
          "type": "id"
        },
        "gap": {
          "type": "bool"
        },
        "more": {
          "type": "bool"
        },
        "nextSeq": {
          "type": "uint64"
        },
        "oldestSeq": {
          "type": "uint64"
        }
      },
      "children": [
        "event"
      ]
    },
    "evidence": {
      "attributes": {
        "observedAtMs": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "validity": {
          "enum": [
            "valid",
            "invalid",
            "unavailable"
          ]
        },
        "pointId": {
          "type": "text"
        },
        "required": {
          "type": "bool"
        },
        "validUntilMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "execution": {
      "attributes": {
        "criterionId": {
          "type": "text"
        },
        "evidence": {
          "enum": [
            "none",
            "commandSent",
            "reportedMode",
            "electrical",
            "acoustic",
            "localConfirmation"
          ]
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "passIndex": {
          "type": "uint64"
        },
        "resourceId": {
          "type": "text"
        },
        "sessionId": {
          "type": "id"
        },
        "sourceId": {
          "type": "text"
        },
        "stageIndex": {
          "type": "uint64"
        },
        "status": {
          "enum": [
            "pending",
            "confirmed",
            "notExecuted",
            "unknown"
          ]
        }
      },
      "children": []
    },
    "executionCriterion": {
      "attributes": {
        "criterionId": {
          "type": "text"
        },
        "evidence": {
          "enum": [
            "none",
            "commandSent",
            "reportedMode",
            "electrical",
            "acoustic",
            "localConfirmation"
          ]
        },
        "maxAgeMs": {
          "type": "uint64"
        },
        "mode": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "sourceId": {
          "type": "text"
        }
      },
      "children": []
    },
    "fault": {
      "attributes": {
        "alarmId": {
          "type": "id"
        },
        "clearedAtMs": {
          "type": "uint64"
        },
        "code": {
          "type": "text"
        },
        "conditionId": {
          "type": "text"
        },
        "effect": {
          "enum": [
            "none",
            "degraded",
            "failed",
            "unknown"
          ]
        },
        "id": {
          "type": "text"
        },
        "occurredAtMs": {
          "type": "uint64"
        },
        "passIndex": {
          "type": "uint64"
        },
        "resourceId": {
          "type": "text"
        },
        "sessionId": {
          "type": "id"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "critical"
          ]
        },
        "stageIndex": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "firmware": {
      "attributes": {
        "operationId": {
          "type": "id"
        },
        "progressBytes": {
          "type": "text"
        },
        "reason": {
          "type": "text"
        },
        "receivedBytes": {
          "type": "uint64"
        },
        "remainingBudgetMs": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        },
        "version": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "group": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "key": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        },
        "source": {
          "type": "text"
        },
        "streamId": {
          "type": "id"
        },
        "totalSamples": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "hello": {
      "attributes": {
        "clientId": {
          "type": "id"
        },
        "deviceId": {
          "type": "id"
        },
        "security": {
          "type": "text"
        },
        "selectedProfile": {
          "type": "text"
        }
      },
      "children": [
        "profile"
      ]
    },
    "image": {
      "attributes": {
        "bytes": {
          "type": "uint64"
        },
        "deviceKind": {
          "type": "text"
        },
        "hardwareRevision": {
          "type": "text"
        },
        "hash": {
          "type": "text"
        },
        "hashAlgorithm": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "keyId": {
          "type": "text"
        },
        "signature": {
          "type": "text"
        },
        "version": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "info": {
      "attributes": {
        "protocolName": {
          "enum": [
            "Открытый протокол систем оповещения"
          ],
          "required": true
        }
      },
      "children": []
    },
    "inventory": {
      "attributes": {
        "bindingGeneration": {
          "type": "uint64"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "bool"
        },
        "snapshotId": {
          "type": "id"
        }
      },
      "children": [
        "condition",
        "enum",
        "point",
        "threshold"
      ]
    },
    "limit": {
      "attributes": {
        "name": {
          "type": "text"
        },
        "value": {
          "type": "text"
        }
      },
      "children": []
    },
    "log": {
      "attributes": {
        "gap": {
          "type": "bool"
        },
        "more": {
          "type": "bool"
        },
        "nextSeq": {
          "type": "uint64"
        },
        "oldestSeq": {
          "type": "uint64"
        }
      },
      "children": [
        "entry"
      ]
    },
    "metric": {
      "attributes": {
        "name": {
          "type": "text"
        },
        "type": {
          "type": "text"
        },
        "unit": {
          "type": "text"
        },
        "value": {
          "type": "text"
        }
      },
      "children": []
    },
    "mode": {
      "attributes": {
        "id": {
          "type": "text"
        }
      },
      "children": []
    },
    "network": {
      "attributes": {
        "address": {
          "type": "text"
        },
        "confirmMs": {
          "type": "uint64"
        },
        "gateway": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "prefix": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        }
      },
      "children": []
    },
    "observation": {
      "attributes": {
        "freshness": {
          "enum": [
            "fresh",
            "stale",
            "never"
          ]
        },
        "id": {
          "type": "text"
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "phase": {
          "type": "text"
        },
        "pointId": {
          "type": "text"
        },
        "reason": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "sourceId": {
          "type": "text"
        },
        "sourceKind": {
          "enum": [
            "localInput",
            "ouReply",
            "controllerMetric",
            "derived"
          ]
        },
        "type": {
          "type": "text"
        },
        "validity": {
          "enum": [
            "valid",
            "invalid",
            "unavailable"
          ]
        },
        "value": {
          "type": "bool"
        }
      },
      "children": []
    },
    "operation": {
      "attributes": {
        "id": {
          "type": "text"
        }
      },
      "children": []
    },
    "ownership": {
      "attributes": {
        "state": {
          "enum": [
            "free",
            "held",
            "detached",
            "draining",
            "blocked",
            "released"
          ]
        },
        "principalId": {
          "type": "id"
        },
        "controlEpoch": {
          "type": "id"
        },
        "idleDeadlineMs": {
          "type": "uint64"
        },
        "purpose": {
          "enum": [
            "real",
            "exercise",
            "technical",
            "maintenance"
          ]
        }
      },
      "children": []
    },
    "parameter": {
      "attributes": {
        "name": {
          "type": "text"
        },
        "part": {
          "type": "uint64"
        },
        "parts": {
          "type": "uint64"
        },
        "type": {
          "type": "text"
        },
        "value": {
          "type": "text"
        }
      },
      "children": []
    },
    "plan": {
      "attributes": {
        "capabilityRevision": {
          "type": "uint64"
        },
        "configRevision": {
          "type": "uint64"
        },
        "maxDurationMs": {
          "type": "uint64"
        },
        "mode": {
          "type": "text"
        }
      },
      "children": [
        "program",
        "recording",
        "resources",
        "siren",
        "stream",
        "test"
      ]
    },
    "point": {
      "attributes": {
        "changedAtMs": {
          "type": "uint64"
        },
        "evaluatedAtMs": {
          "type": "uint64"
        },
        "facet": {
          "type": "text"
        },
        "freshness": {
          "enum": [
            "fresh",
            "stale",
            "never"
          ]
        },
        "id": {
          "type": "text"
        },
        "kind": {
          "type": "text"
        },
        "maxAgeMs": {
          "type": "uint64"
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "ouId": {
          "type": "text"
        },
        "presence": {
          "enum": [
            "present",
            "absent",
            "expectedMissing",
            "unknown"
          ]
        },
        "readMethod": {
          "type": "text"
        },
        "reason": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "sampleSeq": {
          "type": "uint64"
        },
        "scale": {
          "type": "uint64"
        },
        "sourceId": {
          "type": "text"
        },
        "sourceKind": {
          "enum": [
            "localInput",
            "ouReply",
            "controllerMetric",
            "derived"
          ]
        },
        "support": {
          "type": "text"
        },
        "type": {
          "type": "text"
        },
        "unit": {
          "type": "text"
        },
        "validity": {
          "enum": [
            "valid",
            "invalid",
            "unavailable"
          ]
        },
        "value": {
          "type": "bool"
        }
      },
      "children": []
    },
    "poll": {
      "attributes": {
        "clientOperationId": {
          "type": "id"
        },
        "complete": {
          "type": "bool"
        },
        "deadlineMs": {
          "type": "uint64"
        },
        "evaluatedAtMs": {
          "type": "uint64"
        },
        "expectedCount": {
          "type": "uint64"
        },
        "more": {
          "type": "bool"
        },
        "operationId": {
          "type": "id"
        },
        "refresh": {
          "type": "text"
        },
        "snapshotId": {
          "type": "id"
        },
        "state": {
          "type": "text"
        }
      },
      "children": [
        "point"
      ]
    },
    "prepared": {
      "attributes": {
        "capabilityRevision": {
          "type": "uint64"
        },
        "configRevision": {
          "type": "uint64"
        },
        "expiresAtMs": {
          "type": "uint64"
        },
        "mediaId": {
          "type": "id"
        }
      },
      "children": []
    },
    "profile": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "revision": {
          "type": "uint64",
          "minimum": "1",
          "maximum": "18446744073709551615"
        },
        "kind": {
          "enum": [
            "vau",
            "siren"
          ]
        }
      },
      "children": []
    },
    "profiles": {
      "attributes": {
        "bindingGeneration": {
          "type": "uint64"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "bool"
        },
        "resourceId": {
          "type": "text"
        },
        "snapshotId": {
          "type": "id"
        }
      },
      "children": [
        "executionCriterion",
        "parameter",
        "profile"
      ]
    },
    "program": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        }
      },
      "children": []
    },
    "readiness": {
      "attributes": {
        "cursor": {
          "type": "token"
        },
        "evaluatedAtMs": {
          "type": "uint64"
        },
        "more": {
          "type": "text"
        },
        "snapshotId": {
          "type": "id"
        },
        "stateRevision": {
          "type": "uint64"
        },
        "validUntilMs": {
          "type": "uint64"
        }
      },
      "children": [
        "evidence",
        "resource",
        "summary"
      ]
    },
    "ready": {
      "attributes": {
        "blockBytes": {
          "type": "uint64"
        },
        "id": {
          "type": "text"
        },
        "mediaId": {
          "type": "id"
        },
        "receivedBytes": {
          "type": "uint64"
        },
        "remainingBudgetMs": {
          "type": "uint64"
        },
        "windowBlocks": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "recording": {
      "attributes": {
        "contentId": {
          "type": "text"
        },
        "hash": {
          "type": "text"
        },
        "hashAlgorithm": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        }
      },
      "children": []
    },
    "recovery": {
      "attributes": {
        "state": {
          "enum": [
            "reconciling",
            "ready",
            "localInterventionRequired"
          ]
        }
      },
      "children": []
    },
    "released": {
      "attributes": {
        "controlEpoch": {
          "type": "id"
        },
        "released": {
          "type": "bool"
        }
      },
      "children": []
    },
    "request": {
      "attributes": {
        "action": {
          "enum": [
            "transfer.capabilities",
            "transfer.hello",
            "firmware.cancel",
            "profiles.get",
            "programs.list",
            "audio.prepare",
            "audio.state",
            "audio.finish",
            "audio.discard",
            "content.begin",
            "content.commit",
            "content.status",
            "content.cancel",
            "media.hello",
            "audio.group.prepare",
            "protocol.hello",
            "readiness.get",
            "content.describe",
            "device.describe",
            "device.capabilities",
            "device.state",
            "inventory.get",
            "sensors.read",
            "diagnostics.read",
            "tests.list",
            "log.read",
            "poll.start",
            "poll.get",
            "poll.cancel",
            "control.acquire",
            "control.resume",
            "control.release",
            "channel.ping",
            "session.start",
            "session.stop",
            "session.cancel",
            "session.get",
            "command.get",
            "events.read",
            "config.get",
            "config.stage",
            "config.commit",
            "config.cancel",
            "network.stage",
            "network.confirm",
            "network.cancel",
            "time.set",
            "firmware.begin",
            "firmware.verify",
            "firmware.commit",
            "firmware.status"
          ],
          "required": true
        },
        "bootId": {
          "type": "id"
        },
        "cmdSeq": {
          "type": "uint64"
        },
        "controlEpoch": {
          "type": "id"
        },
        "id": {
          "type": "text",
          "required": true
        },
        "profile": {
          "type": "text",
          "required": true
        },
        "v": {
          "type": "uint64",
          "required": true
        }
      },
      "children": [
        "clock",
        "content",
        "control",
        "events",
        "group",
        "hello",
        "image",
        "network",
        "plan",
        "poll",
        "prepared",
        "selection",
        "session",
        "stream",
        "transaction",
        "transfer",
        "upload"
      ]
    },
    "resource": {
      "attributes": {
        "bindingGeneration": {
          "type": "uint64"
        },
        "conflictGroup": {
          "type": "text"
        },
        "evidence": {
          "enum": [
            "none",
            "commandSent",
            "reportedMode",
            "electrical",
            "acoustic",
            "localConfirmation"
          ]
        },
        "id": {
          "type": "text"
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "ouId": {
          "type": "text"
        },
        "output": {
          "type": "text"
        },
        "state": {
          "type": "text"
        },
        "reason": {
          "type": "text"
        }
      },
      "children": []
    },
    "resources": {
      "attributes": {},
      "children": [
        "resource"
      ]
    },
    "response": {
      "attributes": {
        "bootId": {
          "type": "id",
          "required": true
        },
        "profile": {
          "type": "text",
          "required": true
        },
        "status": {
          "enum": [
            "ok",
            "accepted",
            "error"
          ],
          "required": true
        },
        "to": {
          "type": "text",
          "required": true
        },
        "v": {
          "type": "uint64",
          "required": true
        }
      },
      "children": [
        "audio",
        "cancellation",
        "cancelled",
        "capabilities",
        "channel",
        "clock",
        "command",
        "committed",
        "configuration",
        "content",
        "contents",
        "control",
        "device",
        "diagnostics",
        "discarded",
        "error",
        "events",
        "firmware",
        "hello",
        "info",
        "inventory",
        "log",
        "network",
        "operation",
        "poll",
        "prepared",
        "profiles",
        "readiness",
        "ready",
        "released",
        "result",
        "session",
        "snapshot",
        "staged",
        "state",
        "tests",
        "transfer",
        "upload"
      ]
    },
    "result": {
      "attributes": {
        "checkCount": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "evaluatedAtMs": {
          "type": "uint64"
        },
        "executionCount": {
          "type": "uint64",
          "minimum": "0",
          "maximum": "512"
        },
        "faultCount": {
          "type": "uint64",
          "minimum": "0",
          "maximum": "65535"
        },
        "mode": {
          "type": "text"
        },
        "more": {
          "type": "bool"
        },
        "observationCount": {
          "type": "uint64"
        },
        "resourceCount": {
          "type": "uint64",
          "minimum": "1",
          "maximum": "4"
        },
        "snapshotId": {
          "type": "id"
        },
        "stateRevision": {
          "type": "uint64"
        }
      },
      "children": [
        "check",
        "completion",
        "execution",
        "fault",
        "observation",
        "resource",
        "session",
        "stageResult",
        "timeline"
      ]
    },
    "route": {
      "attributes": {
        "delivery": {
          "type": "text"
        },
        "destinationAddress": {
          "type": "text"
        },
        "destinationPort": {
          "type": "uint64",
          "minimum": "1",
          "maximum": "65535"
        },
        "sourceAddress": {
          "type": "text"
        },
        "sourcePort": {
          "type": "uint64",
          "minimum": "1",
          "maximum": "65535"
        },
        "transport": {
          "type": "text"
        },
        "ttl": {
          "type": "uint64",
          "minimum": "1",
          "maximum": "255"
        }
      },
      "children": []
    },
    "selection": {
      "attributes": {
        "afterSeq": {
          "type": "uint64"
        },
        "cmdSeq": {
          "type": "uint64"
        },
        "contentId": {
          "type": "text"
        },
        "controlEpoch": {
          "type": "id"
        },
        "cursor": {
          "type": "token"
        },
        "limit": {
          "type": "uint64"
        },
        "mediaId": {
          "type": "id"
        },
        "operationId": {
          "type": "id"
        },
        "pointId": {
          "type": "text"
        },
        "programId": {
          "type": "text"
        },
        "resourceId": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        },
        "scope": {
          "type": "text"
        },
        "sessionId": {
          "type": "id"
        },
        "snapshotId": {
          "type": "id"
        },
        "startSeq": {
          "type": "uint64"
        },
        "testId": {
          "type": "text"
        },
        "transactionId": {
          "type": "text"
        },
        "uploadId": {
          "type": "text"
        }
      },
      "children": [
        "point"
      ]
    },
    "session": {
      "attributes": {
        "acceptBeforeMs": {
          "type": "uint64"
        },
        "acceptedAtMs": {
          "type": "uint64"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "configRevision": {
          "type": "uint64"
        },
        "id": {
          "type": "text"
        },
        "maxDurationMs": {
          "type": "uint64"
        },
        "mode": {
          "enum": [
            "siren",
            "recording",
            "test",
            "program",
            "stream"
          ]
        },
        "onControlLoss": {
          "enum": [
            "stop",
            "finish"
          ]
        },
        "purpose": {
          "enum": [
            "real",
            "exercise",
            "technical"
          ]
        },
        "reason": {
          "enum": [
            "completed",
            "operatorStop",
            "controlLostStop",
            "maxDurationExceeded",
            "prepareTimeout",
            "stopDispatchTimeout",
            "stopConfirmTimeout",
            "sourceUnavailable",
            "driverFault",
            "storageFault",
            "contentMismatch",
            "mediaIncomplete",
            "hardwareProtection",
            "testFailed",
            "stopUnconfirmed",
            "observationLost",
            "recoveryUncertain",
            "mediaClockFault",
            "equipmentFault",
            "programAborted"
          ]
        },
        "result": {
          "enum": [
            "succeeded",
            "failed",
            "cancelled",
            "unknown"
          ]
        },
        "startSeq": {
          "type": "uint64"
        },
        "state": {
          "enum": [
            "starting",
            "running",
            "stopping",
            "finished"
          ]
        }
      },
      "children": [
        "program",
        "recording",
        "resources",
        "siren",
        "stream",
        "test"
      ]
    },
    "siren": {
      "attributes": {
        "durationMs": {
          "type": "uint64"
        },
        "pattern": {
          "type": "text"
        },
        "stopMode": {
          "type": "text"
        }
      },
      "children": []
    },
    "snapshot": {
      "attributes": {
        "bindingGeneration": {
          "type": "uint64"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "complete": {
          "type": "bool"
        },
        "evaluatedAtMs": {
          "type": "uint64"
        },
        "eventSeq": {
          "type": "uint64"
        },
        "more": {
          "type": "bool"
        },
        "snapshotId": {
          "type": "id"
        },
        "stateRevision": {
          "type": "uint64"
        }
      },
      "children": [
        "point"
      ]
    },
    "stageResult": {
      "attributes": {
        "finishedAtMs": {
          "type": "uint64"
        },
        "passIndex": {
          "type": "uint64"
        },
        "reason": {
          "enum": [
            "completed",
            "operatorStop",
            "controlLostStop",
            "maxDurationExceeded",
            "prepareTimeout",
            "stopDispatchTimeout",
            "stopConfirmTimeout",
            "sourceUnavailable",
            "driverFault",
            "storageFault",
            "contentMismatch",
            "mediaIncomplete",
            "hardwareProtection",
            "testFailed",
            "stopUnconfirmed",
            "observationLost",
            "recoveryUncertain",
            "mediaClockFault",
            "equipmentFault",
            "programAborted"
          ]
        },
        "result": {
          "type": "text"
        },
        "runningAtMs": {
          "type": "uint64"
        },
        "stageIndex": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        },
        "stoppingAtMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "staged": {
      "attributes": {
        "expiresAtMs": {
          "type": "uint64"
        },
        "id": {
          "type": "text"
        }
      },
      "children": []
    },
    "state": {
      "attributes": {
        "alarmCount": {
          "type": "uint64"
        },
        "capabilityRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "eventSeq": {
          "type": "uint64"
        },
        "more": {
          "type": "bool"
        },
        "resourceCount": {
          "type": "uint64"
        },
        "sessionCount": {
          "type": "uint64",
          "minimum": "0",
          "maximum": "1"
        },
        "snapshotId": {
          "type": "id"
        },
        "stateRevision": {
          "type": "uint64"
        },
        "uptimeMs": {
          "type": "uint64"
        }
      },
      "children": [
        "alarm",
        "configuration",
        "ownership",
        "recovery",
        "resource",
        "session"
      ]
    },
    "stream": {
      "attributes": {
        "codec": {
          "type": "text"
        },
        "firstSeq": {
          "type": "uint64"
        },
        "firstTimestamp": {
          "type": "uint64"
        },
        "lastPacketIndex": {
          "type": "uint64"
        },
        "mediaId": {
          "type": "id"
        },
        "packetMs": {
          "type": "uint64"
        },
        "sampleCount": {
          "type": "uint64"
        },
        "source": {
          "type": "text"
        },
        "ssrc": {
          "type": "text"
        },
        "totalSamples": {
          "type": "uint64"
        }
      },
      "children": [
        "buffer",
        "resources",
        "route"
      ]
    },
    "summary": {
      "attributes": {
        "reason": {
          "type": "text"
        },
        "state": {
          "type": "text"
        }
      },
      "children": []
    },
    "test": {
      "attributes": {
        "effects": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "kind": {
          "type": "text"
        },
        "maxDurationMs": {
          "type": "uint64"
        },
        "resourceId": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        },
        "stopBeginMs": {
          "type": "uint64"
        },
        "stopConfirmMs": {
          "type": "uint64"
        },
        "testId": {
          "type": "text"
        },
        "testRevision": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "tests": {
      "attributes": {
        "capabilityRevision": {
          "type": "uint64"
        },
        "cursor": {
          "type": "token"
        },
        "more": {
          "type": "bool"
        },
        "snapshotId": {
          "type": "id"
        }
      },
      "children": [
        "test"
      ]
    },
    "threshold": {
      "attributes": {
        "conditionId": {
          "type": "text"
        },
        "hysteresis": {
          "type": "uint64"
        },
        "operator": {
          "type": "text"
        },
        "pointId": {
          "type": "text"
        },
        "severity": {
          "enum": [
            "info",
            "warning",
            "critical"
          ]
        },
        "value": {
          "type": "text"
        }
      },
      "children": []
    },
    "timeline": {
      "attributes": {
        "finishedAtMs": {
          "type": "uint64"
        },
        "prepareDeadlineMs": {
          "type": "uint64"
        },
        "runDeadlineMs": {
          "type": "uint64"
        },
        "runningAtMs": {
          "type": "uint64"
        },
        "sessionId": {
          "type": "id"
        },
        "stopBeginDeadlineMs": {
          "type": "uint64"
        },
        "stopConfirmDeadlineMs": {
          "type": "uint64"
        },
        "stopIssuedAtMs": {
          "type": "uint64"
        },
        "stopRequestedAtMs": {
          "type": "uint64"
        },
        "stoppingAtMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "transaction": {
      "attributes": {
        "baseRevision": {
          "type": "uint64"
        },
        "hash": {
          "type": "text"
        },
        "hashAlgorithm": {
          "type": "text"
        },
        "id": {
          "type": "text"
        },
        "receivedBytes": {
          "type": "uint64"
        },
        "remainingBudgetMs": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        },
        "totalBytes": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "transfer": {
      "attributes": {
        "blockBytes": {
          "type": "uint64"
        },
        "id": {
          "type": "text"
        },
        "kind": {
          "type": "text"
        },
        "maxBlockBytes": {
          "type": "uint64"
        },
        "maxInFlightBytes": {
          "type": "uint64"
        },
        "maxWindowBlocks": {
          "type": "uint64"
        },
        "port": {
          "type": "uint64"
        },
        "profile": {
          "type": "text"
        },
        "windowBlocks": {
          "type": "uint64"
        },
        "windowRoundTripMaxMs": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "upload": {
      "attributes": {
        "id": {
          "type": "text"
        },
        "receivedBytes": {
          "type": "uint64"
        },
        "remainingBudgetMs": {
          "type": "uint64"
        },
        "state": {
          "type": "text"
        },
        "totalBytes": {
          "type": "uint64"
        }
      },
      "children": []
    },
    "verification": {
      "attributes": {
        "contentId": {
          "type": "text"
        },
        "revision": {
          "type": "text"
        },
        "state": {
          "type": "text"
        },
        "observedAtMs": {
          "type": "uint64"
        },
        "sourceId": {
          "type": "text"
        },
        "actualHash": {
          "type": "text"
        }
      },
      "children": []
    },
    "mediaProfile": {
      "attributes": {
        "id": {
          "type": "text",
          "required": true
        },
        "security": {
          "type": "text",
          "required": true
        },
        "codec": {
          "type": "text",
          "required": true
        },
        "packetMs": {
          "type": "text",
          "required": true
        }
      },
      "children": []
    },
    "groupStats": {
      "attributes": {
        "recoveredParts": {
          "type": "uint64",
          "required": true
        },
        "receivedParityParts": {
          "type": "uint64",
          "required": true
        },
        "missingDataParts": {
          "type": "uint64",
          "required": true
        }
      },
      "children": []
    }
  }
}
