Компания и доступ · Чтение
Доступ · Просмотр · Операция
access_get_operation
Попробуйте три запроса
Получить данные
- Вы указываетеОбъект
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Доступ / Просмотр / Операция» выполни чтение в текущей компании. Выведи кратко: состояние, результат.
- state
- Состояние
- result
- Результат
Задать параметры
- Вы указываетеЗадача
- ПомощникСхема входа
- Вы получаетеУсловия чтения
Запрос в чат
Покажи, как получить «Доступ / Просмотр / Операция» на учебном примере с action = access_grant_save. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- action
- access_grant_save
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Доступ / Просмотр / Операция» объясни состояние, результат. Отметь отсутствующие значения.
- state
- Состояние
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Recover the immutable result of an access write after a lost response. Never repeats the change. If not_committed, retry the original Action with exactly the same requestId and arguments.
Параметры запроса
- action
- Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты access_grant_save, access_grant_revoke, access_connection_save, access_connection_revoke, access_position_save
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- state
- Whether the original protected mutation committed. обязательно по схеме · string · варианты completed, not_committed
- result
- Original committed grant or connection, or null. Read current access separately before another edit. обязательно по схеме · null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"access_grant_save",
"access_grant_revoke",
"access_connection_save",
"access_connection_revoke",
"access_position_save"
],
"description": "Original protected access write Action."
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable operation ID. Reuse the exact arguments after an uncertain response."
}
},
"required": [
"action",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"completed",
"not_committed"
],
"description": "Whether the original protected mutation committed."
},
"result": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"properties": {
"positionId": {
"description": "positionId",
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
{
"type": "null"
}
]
},
"uid": {
"$ref": "#/$defs/_mcp0"
},
"employeeId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing native employee UID or protected alias."
},
"active": {
"type": "boolean",
"description": "Whether the protected assignment is enabled."
},
"permissions": {
"maxItems": 512,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$"
},
"description": "Complete replacement permission ceiling; may not exceed current administrator and OAuth scopes."
},
"locationIds": {
"$ref": "#/$defs/_mcp1"
},
"allLocations": {
"type": "boolean",
"description": "Whether all company locations are allowed; cannot exceed the caller ceiling."
},
"modules": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Complete replacement enabled modules within the caller ceiling."
},
"integrations": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Complete replacement enabled integrations within the caller ceiling."
},
"allowedClientIds": {
"default": null,
"description": "Registered OAuth client allowlist; null means unrestricted within the administrator ceiling.",
"anyOf": [
{
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 2048,
"pattern": "^[^\\s\\x00-\\x1f\\x7f]+$"
}
},
{
"type": "null"
}
]
},
"companyId": {
"$ref": "#/$defs/_mcp2"
},
"version": {
"default": 0,
"description": "Current optimistic concurrency version.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"revocationVersion": {
"$ref": "#/$defs/_mcp3"
}
},
"required": [
"uid",
"employeeId",
"active",
"permissions",
"locationIds",
"allLocations",
"modules",
"integrations",
"allowedClientIds",
"companyId",
"version",
"revocationVersion"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"uid": {
"$ref": "#/$defs/_mcp0"
},
"companyId": {
"$ref": "#/$defs/_mcp2"
},
"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": {
"$ref": "#/$defs/_mcp1"
},
"version": {
"default": 0,
"description": "Current optimistic concurrency version.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"revocationVersion": {
"$ref": "#/$defs/_mcp3"
}
},
"required": [
"uid",
"companyId",
"clientId",
"active",
"blocked",
"managed",
"scopes",
"allLocations",
"locationIds",
"version",
"revocationVersion"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"active": {
"type": "boolean",
"description": "Whether employees bound to this Position may use its permissions."
},
"permissions": {
"maxItems": 512,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 100,
"pattern": "^[A-Za-z0-9_.:-]+$"
},
"description": "Complete replacement Position permission ceiling, selected from the existing access capability catalog."
},
"modules": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled modules within the administrator ceiling."
},
"integrations": {
"maxItems": 80,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Enabled integrations within the administrator ceiling."
},
"allLocations": {
"type": "boolean",
"description": "Whether all company locations are allowed, within the administrator ceiling."
},
"locationIds": {
"maxItems": 200,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"description": "Exact permitted company location identifiers."
},
"companyId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Authenticated company identity."
},
"positionId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Existing native Firebase Position identifier."
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Current Position access policy version."
}
},
"required": [
"active",
"permissions",
"modules",
"integrations",
"allLocations",
"locationIds",
"companyId",
"positionId",
"version"
],
"additionalProperties": false
}
]
},
{
"type": "null"
}
],
"description": "Original committed grant or connection, or null. Read current access separately before another edit."
}
},
"required": [
"state",
"result"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact Firebase account UID; must have protected membership in the connected company."
},
"_mcp1": {
"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."
},
"_mcp2": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Company resolved from the authenticated connection."
},
"_mcp3": {
"default": 0,
"description": "Monotonic revocation epoch; revoked tokens cannot revive.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
}
}