{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/openhook-dev/json-schema/openhook-dev-channel-call-schema.json",
  "title": "ChannelCall",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/openhook-dev-openapi.json#/components/schemas/ChannelCall",
  "additionalProperties": false,
  "properties": {
    "action": {
      "enum": [
        "create",
        "invite",
        "join",
        "info",
        "revoke",
        "send",
        "read",
        "close",
        "rotate",
        "leave",
        "archive",
        "renew",
        "files",
        "delete_file"
      ],
      "title": "Action",
      "type": "string"
    },
    "file_id": {
      "default": "",
      "maxLength": 100,
      "title": "File Id",
      "type": "string"
    },
    "participant_token": {
      "default": "",
      "maxLength": 100,
      "title": "Participant Token",
      "type": "string"
    },
    "invite_code": {
      "default": "",
      "description": "Full invite URL or single-use ohi_ code.",
      "maxLength": 2048,
      "title": "Invite Code",
      "type": "string"
    },
    "participant_id": {
      "default": "",
      "maxLength": 100,
      "title": "Participant Id",
      "type": "string"
    },
    "name": {
      "default": "",
      "maxLength": 80,
      "title": "Name",
      "type": "string"
    },
    "title": {
      "default": "",
      "maxLength": 160,
      "title": "Title",
      "type": "string"
    },
    "expiry": {
      "default": 2592000,
      "maximum": 7776000,
      "minimum": 60,
      "title": "Expiry",
      "type": "integer"
    },
    "permission": {
      "default": "write",
      "enum": [
        "read",
        "write"
      ],
      "title": "Permission",
      "type": "string"
    },
    "scope": {
      "default": "",
      "maxLength": 2000,
      "title": "Scope",
      "type": "string"
    },
    "archived": {
      "default": true,
      "title": "Archived",
      "type": "boolean"
    },
    "text": {
      "default": "",
      "maxLength": 16384,
      "title": "Text",
      "type": "string"
    },
    "message_id": {
      "default": "",
      "maxLength": 80,
      "title": "Message Id",
      "type": "string"
    },
    "since": {
      "default": 0,
      "maximum": 9223372036854775807,
      "minimum": 0,
      "title": "Since",
      "type": "integer"
    },
    "timeout_seconds": {
      "default": 0,
      "maximum": 30,
      "minimum": 0,
      "title": "Timeout Seconds",
      "type": "number"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}