# airdress.token.*

{/* 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.token` family. How to read a section, and what
each audience means, is on the [event reference](/events/) page.

## `airdress.token.minted`

Owner info

A resource token was minted from the host CLI. Never the token: it is a bearer credential. Credential metadata, so not on the bus.

**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.
- Not functions bound to this operator's events: it is kept off that path as too frequent or too internal. A subscription with a function target still receives it.

**Versions**

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

**Data**

| Field | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| `actor` | string | yes |  |
| `public_key` | string | yes |  |
| `scope` | string | yes |  |
| `ttl_secs` | integer (uint64) | yes |  |

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

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "A resource token was minted from the host CLI. Never the token: it is a bearer credential. Credential metadata, so not on the bus.",
  "properties": {
    "actor": {
      "type": "string"
    },
    "public_key": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "ttl_secs": {
      "format": "uint64",
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "actor",
    "public_key",
    "scope",
    "ttl_secs"
  ],
  "title": "TokenMinted",
  "type": "object"
}
```

</details>

## `airdress.token.root_key_created`

Owner info

This operator created its token root key. The public half only; key material, so not on the bus.

**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.
- Not functions bound to this operator's events: it is kept off that path as too frequent or too internal. A subscription with a function target still receives it.

**Versions**

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

**Data**

| Field | Type | Required | Description |
| ----- | ---- | -------- | ----------- |
| `path` | string | yes |  |
| `public_key` | string | yes |  |

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

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "This operator created its token root key. The public half only; key material, so not on the bus.",
  "properties": {
    "path": {
      "type": "string"
    },
    "public_key": {
      "type": "string"
    }
  },
  "required": [
    "path",
    "public_key"
  ],
  "title": "TokenRootKeyCreated",
  "type": "object"
}
```

</details>