Оборудование · Чтение
Оборудование · Просмотр · Flow · Отправка
equipment_get_flow_dispatch
Попробуйте три запроса
Получить данные
- Вы указываетеУстройство
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Оборудование / Просмотр / Flow / Отправка» выполни чтение по выбранной записи (устройство). Выведи кратко: состояние, observationId.
- state
- Состояние
- observationId
- Поле ответа
- flowId
- Сценарий
Задать параметры
- Вы указываетеУстройство
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Оборудование / Просмотр / Flow / Отправка» на учебном примере с deviceId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- deviceId
- DEMO-101
- comment
- Проверено на учебной записи
- commitConfiguredConsumables
- true
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Оборудование / Просмотр / Flow / Отправка» объясни состояние, observationId. Отметь отсутствующие значения.
- state
- Состояние
- observationId
- Поле ответа
- flowId
- Сценарий
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Read native Flow dispatch state for the exact original equipment_record_observation arguments. Rechecks current employee/location access through the immutable SQL receipt. An uncertain run is never resent automatically; retry the exact original create request only when state is not_queued.
Параметры запроса
- deviceId
- Exact equipment_devices identifier in this workspace. Its existing equipment and establishment determine the target; the caller cannot substitute another location. обязательно по схеме · string · до символов 128
- comment
- Human observation about this device. Does not replace a required checklist, photo, signature or manager approval. обязательно по схеме · string · до символов 4000
- measurement
- Include only for a device configured for manual numeric entry. The server locks the device and records its current limits with this value. Omit to retain the existing comment-only operation. необязательно · object
- checklist
- Use only when a checklist is configured. Its configuration, company, target and all evidence requirements are locked and verified before one native EquipmentLog record is committed. необязательно · object
- evidence
- Native photo/signature references. Files stay in existing storage; the model never receives upload credentials. Required evidence cannot be replaced by a comment. необязательно · object
- commitConfiguredConsumables
- Required opt-in for a device with configured consumables. Atomically records the observation and its native write_offs stock movement; the device, storage, products and default quantities are resolved from current company configuration; consumableQuantities can supply actual quantities for this observation. Requires sufficient posted stock. Omit for devices without consumables and for historical requests. необязательно · boolean
- consumableQuantities
- Actual positive quantity for every configured consumable line, in configuration order and native product units. Requires commitConfiguredConsumables=true. Use the revision from equipment_get_observation_context. Only quantities can change; product and warehouse stay configured. Up to 8 decimal places; defaults remain unchanged. необязательно · object
- commitConfiguredFlow
- Explicitly run the current Device.flow through the native Flow dispatcher after this observation commits. Use the exact configured Flow ID; a deterministic outbox records dispatch separately from the SQL receipt. необязательно · object
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- state
- Current deterministic native Flow outbox state. not_queued means the SQL intent committed but the outbox is absent; retry the exact original create request. обязательно по схеме · string · варианты not_recorded, not_queued, pending, running, completed, failed, uncertain
- observationId
- Exact committed native observation ID, or null before SQL commit. обязательно по схеме · null
- flowId
- Flow bound by the committed SQL receipt, or null before commit. обязательно по схеме · null
- dispatchId
- Deterministic outbox ID, or null before commit. обязательно по схеме · null
- runId
- Native Flow run correlation ID after the dispatcher claims the outbox. обязательно по схеме · string / null
- error
- Safe dispatcher error code when execution was not confirmed. обязательно по схеме · string / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"deviceId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact equipment_devices identifier in this workspace. Its existing equipment and establishment determine the target; the caller cannot substitute another location."
},
"comment": {
"type": "string",
"minLength": 1,
"maxLength": 4000,
"description": "Human observation about this device. Does not replace a required checklist, photo, signature or manager approval."
},
"measurement": {
"description": "Include only for a device configured for manual numeric entry. The server locks the device and records its current limits with this value. Omit to retain the existing comment-only operation.",
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Actual manually observed numeric value. Do not estimate or substitute an expected value."
},
"unit": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"pattern": "^[^\\x00-\\x1f\\x7f]+$",
"description": "Caller-reported unit, for example °C. Supply the reading in the same units as the configured numeric limits. The native device has no authoritative unit field: the server cannot verify or convert this label."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"checklist": {
"description": "Use only when a checklist is configured. Its configuration, company, target and all evidence requirements are locked and verified before one native EquipmentLog record is committed.",
"type": "object",
"properties": {
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Exact configuration revision from equipment_get_observation_context. Refresh all pages after a conflict."
},
"completedItemIds": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical native identifier, never a document path."
},
"description": "IDs of every native checklist item actually checked by the employee. Never infer physical inspection or mark unchecked items complete. IDs must match the entire configured checklist; order is not significant for storage."
}
},
"required": [
"expectedRevision",
"completedItemIds"
],
"additionalProperties": false
},
"evidence": {
"type": "object",
"properties": {
"photos": {
"description": "Actual employee-supplied photos for this observation. The backend verifies existing company-owned image objects before recording their native URLs.",
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"maxLength": 4000,
"format": "uri",
"description": "Existing public company image URL from the native upload/file picker, in this deployment's Ingridients bucket. No base64, private download token, arbitrary host or generated substitute for physical evidence."
}
},
"signature": {
"description": "Existing signature image supplied by the signer through the native UI. Never generate, infer or reuse a signature without their instruction. Storage validation does not establish signer identity or legal consent.",
"type": "string",
"maxLength": 4000,
"format": "uri"
}
},
"additionalProperties": false,
"description": "Native photo/signature references. Files stay in existing storage; the model never receives upload credentials. Required evidence cannot be replaced by a comment."
},
"commitConfiguredConsumables": {
"description": "Required opt-in for a device with configured consumables. Atomically records the observation and its native write_offs stock movement; the device, storage, products and default quantities are resolved from current company configuration; consumableQuantities can supply actual quantities for this observation. Requires sufficient posted stock. Omit for devices without consumables and for historical requests.",
"type": "boolean",
"const": true
},
"consumableQuantities": {
"description": "Actual positive quantity for every configured consumable line, in configuration order and native product units. Requires commitConfiguredConsumables=true. Use the revision from equipment_get_observation_context. Only quantities can change; product and warehouse stay configured. Up to 8 decimal places; defaults remain unchanged.",
"type": "object",
"properties": {
"expectedRevision": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"description": "Exact full Device and Equipment revision from the observation context."
},
"items": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "integer",
"minimum": 0,
"maximum": 99,
"description": "Zero-based position of the configured consumable line."
},
"productId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Unchanged native Product ID at this configured line."
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000000,
"description": "Actual quantity used in this product unit, positive and at most 8 decimal places."
}
},
"required": [
"index",
"productId",
"quantity"
],
"additionalProperties": false,
"description": "One configured consumable with its actual reported usage."
},
"description": "Every configured line exactly once, in original order; products and storage cannot be substituted."
}
},
"required": [
"expectedRevision",
"items"
],
"additionalProperties": false
},
"commitConfiguredFlow": {
"description": "Explicitly run the current Device.flow through the native Flow dispatcher after this observation commits. Use the exact configured Flow ID; a deterministic outbox records dispatch separately from the SQL receipt.",
"type": "object",
"properties": {
"flowId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Exact current Device.flow identifier; use the configured native Flow, not a caller-selected alternative."
}
},
"required": [
"flowId"
],
"additionalProperties": false
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Unique stable request identifier. Reuse the exact device and comment when checking or retrying this observation."
}
},
"required": [
"deviceId",
"comment",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"not_recorded",
"not_queued",
"pending",
"running",
"completed",
"failed",
"uncertain"
],
"description": "Current deterministic native Flow outbox state. not_queued means the SQL intent committed but the outbox is absent; retry the exact original create request."
},
"observationId": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Exact committed native observation ID, or null before SQL commit."
},
"flowId": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Flow bound by the committed SQL receipt, or null before commit."
},
"dispatchId": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Deterministic outbox ID, or null before commit."
},
"runId": {
"description": "Native Flow run correlation ID after the dispatcher claims the outbox.",
"type": [
"string",
"null"
]
},
"error": {
"description": "Safe dispatcher error code when execution was not confirmed.",
"type": [
"string",
"null"
]
}
},
"required": [
"state",
"observationId",
"flowId",
"dispatchId",
"runId",
"error"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$",
"description": "Canonical native identifier, never a document path."
}
}
}