Предметные инструменты · pull

Операции модуля pull

pull_site_pull_m116_writeИзменение

Действия модуля pull.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Закрытие своего канала обновлений

pull_own_channel_close

Действия модуля pull.

expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Отправка события в свой канал обновлений

pull_own_channel_event

Действия модуля pull.

message
строка · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1
    },
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "message",
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Открытие своего канала обновлений

pull_own_channel_open

Действия модуля pull.

expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Получение публичного канала обновлений

pull_own_public_resolve

Действия модуля pull.

expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "expected_revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Изменение своих настроек push-уведомлений

pull_own_push_status_set

Действия модуля pull.

enabled
логическое значение · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "enabled": {
      "type": "boolean"
    },
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "enabled",
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Удаление своего токена уведомлений

pull_own_token_delete

Действия модуля pull.

token_id
целое число · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "token_id": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2147483647
    },
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "token_id",
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание

Регистрация своего токена уведомлений

pull_own_token_register

Действия модуля pull.

device_id
строка · обязательный параметр
device_name
строка · обязательный параметр
device_type
строка · обязательный параметр
device_token
строка · обязательный параметр
expected_revision
строка · обязательный параметр
request_id
строка · обязательный параметр
confirm
логическое значение · обязательный параметр
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "device_id": {
      "type": "string",
      "maxLength": 50,
      "pattern": "^[a-zA-Z0-9_-]{1,50}$"
    },
    "device_name": {
      "type": "string",
      "maxLength": 50,
      "minLength": 1
    },
    "device_type": {
      "type": "string",
      "enum": [
        "APPLE",
        "GOOGLE",
        "GOOGLE/REV2",
        "HUAWEI"
      ]
    },
    "device_token": {
      "type": "string",
      "maxLength": 255,
      "minLength": 16
    },
    "expected_revision": {
      "type": "string",
      "maxLength": 64,
      "pattern": "^[a-f0-9]{64}$"
    },
    "request_id": {
      "type": "string",
      "maxLength": 32,
      "pattern": "^[a-f0-9]{32}$"
    },
    "confirm": {
      "type": "boolean"
    }
  },
  "required": [
    "device_id",
    "device_name",
    "device_type",
    "device_token",
    "expected_revision",
    "request_id",
    "confirm"
  ],
  "additionalProperties": false
}

Скачать исходное примечание