# airdress.device.*

{/* Generated by scripts/generate-event-reference.mjs from https://schemas.airdress.co/operator/events/v1.json (operator v0.1.138).
    Do not edit by hand: run `pnpm generate:event-reference` and commit the result. */}

The events in the `airdress.device` family. How to read a section, and what
each audience means, is on the [event reference](/events/) page.

## `airdress.device.delegation_only.refused`

Owner warn Functions

A delegation-only device tried something only a root-holding device or the owner may do: deciding for other devices (`action`), or an owner-only route (`action` `owner_route`, with its `path`).

**Audience: owner.** About the airdress as a whole. Only the owner receives it: the owner's devices and the owner's subscriptions.

**Where it goes**

- **The operator's journal**, as one log line at this level, and **the event log**, where `airdress events tail` reads it.
- **Subscriptions** that name it, within its audience.
- **Functions bound to this operator's events** (`source: operator`).

**Versions**

- Version 1: first carried by operator v0.1.138.

**Data**

| Field | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| `action` | string | yes |  |
| `enrollment` | string or null | no |  |
| `path` | string or null | no |  |

<details>
<summary>JSON Schema</summary>

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "A delegation-only device tried something only a root-holding device or the owner may do: deciding for other devices (`action`), or an owner-only route (`action` `owner_route`, with its `path`).",
  "properties": {
    "action": {
      "type": "string"
    },
    "enrollment": {
      "format": "uuid",
      "type": [
        "string",
        "null"
      ]
    },
    "path": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "action"
  ],
  "title": "DelegationOnlyRefused",
  "type": "object"
}
```

</details>

## `airdress.device.sub_user.refused`

Owner warn Functions

A sub-user's device tried to decide on the owner's root (cancel or approve a reset), and was refused.

**Audience: owner.** About the airdress as a whole. Only the owner receives it: the owner's devices and the owner's subscriptions.

**Where it goes**

- **The operator's journal**, as one log line at this level, and **the event log**, where `airdress events tail` reads it.
- **Subscriptions** that name it, within its audience.
- **Functions bound to this operator's events** (`source: operator`).

**Versions**

- Version 1: first carried by operator v0.1.138.

**Data**

| Field | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| `action` | string | yes |  |
| `enrollment` | string (uuid) | yes |  |

<details>
<summary>JSON Schema</summary>

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "A sub-user's device tried to decide on the owner's root (cancel or approve a reset), and was refused.",
  "properties": {
    "action": {
      "type": "string"
    },
    "enrollment": {
      "format": "uuid",
      "type": "string"
    }
  },
  "required": [
    "action",
    "enrollment"
  ],
  "title": "SubUserDeviceRefused",
  "type": "object"
}
```

</details>