MCP Control
Компания и доступ · Изменение

Доступ · Подключения · Отзыв

access_connection_revoke
Папки документов

Попробуйте три запроса

Подготовить
  1. Вы указываетеClientid
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Доступ / Подключения / Отзыв». Для изменения нужны clientId, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
clientId
Параметр
expectedVersion
Текущая версия
uid
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Доступ / Подключения / Отзыв» с параметром clientId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
clientId
DEMO-101
expectedVersion
4
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Доступ / Подключения / Отзыв» по исходному ответу. Покажи companyId, uid. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

Описание разработчика

Block a specific company member OAuth connection, clear its scopes and advance its revocation epoch. Other connections remain unchanged.

Параметры запроса
clientId
Exact registered OAuth client ID; never a display name. обязательно по схеме · string · до символов 2048
expectedVersion
Exact current version; null only when creating a previously absent record. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
companyId
Company resolved from the authenticated connection. обязательно по схеме · string · до символов 128
uid
Exact Firebase account UID; must have protected membership in the connected company. обязательно по схеме · string · до символов 128
connection
Committed protected connection. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа access_connection_revoke
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "clientId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
      "description": "Exact registered OAuth client ID; never a display name."
    },
    "expectedVersion": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Exact current version; null only when creating a previously absent record."
    },
    "uid": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable operation ID. Reuse the exact arguments after an uncertain response."
    }
  },
  "required": [
    "clientId",
    "expectedVersion",
    "uid",
    "requestId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "companyId": {
      "$ref": "#/$defs/_mcp0"
    },
    "uid": {
      "$ref": "#/$defs/_mcp1"
    },
    "connection": {
      "type": "object",
      "properties": {
        "uid": {
          "$ref": "#/$defs/_mcp1"
        },
        "companyId": {
          "$ref": "#/$defs/_mcp0"
        },
        "clientId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2048,
          "pattern": "^[^\\s\\x00-\\x1f\\x7f]+$",
          "description": "Exact registered OAuth client ID; never a display name."
        },
        "active": {
          "type": "boolean",
          "description": "Whether the protected assignment is enabled."
        },
        "blocked": {
          "default": false,
          "description": "Whether this connection is explicitly blocked.",
          "type": "boolean"
        },
        "managed": {
          "default": false,
          "description": "Whether an administrator configured this connection.",
          "type": "boolean"
        },
        "scopes": {
          "maxItems": 512,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          },
          "description": "Currently consented scopes within its ceiling."
        },
        "scopeCeiling": {
          "description": "Allowed OAuth scopes; does not create user consent or enlarge existing token scopes.",
          "maxItems": 512,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[A-Za-z0-9_.:-]+$"
          }
        },
        "allLocations": {
          "type": "boolean",
          "description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
        },
        "locationIds": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "pattern": "^[A-Za-z0-9_~:@+.-]+$"
          },
          "description": "Exact native locations within the current administrative ceiling."
        },
        "version": {
          "default": 0,
          "description": "Current optimistic concurrency version.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "revocationVersion": {
          "default": 0,
          "description": "Monotonic revocation epoch; revoked tokens cannot revive.",
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "uid",
        "companyId",
        "clientId",
        "active",
        "blocked",
        "managed",
        "scopes",
        "allLocations",
        "locationIds",
        "version",
        "revocationVersion"
      ],
      "additionalProperties": false,
      "description": "Committed protected connection."
    }
  },
  "required": [
    "companyId",
    "uid",
    "connection"
  ],
  "additionalProperties": false,
  "$defs": {
    "_mcp0": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Company resolved from the authenticated connection."
    },
    "_mcp1": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Exact Firebase account UID; must have protected membership in the connected company."
    }
  }
}