{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wavehouse-cloud/json-schema/wavehouse-cloud-create-udpdevice-output-schema.json",
  "title": "CreateUDPDeviceOutput",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wavehouse-cloud-openapi.json#/components/schemas/CreateUDPDeviceOutput",
  "additionalProperties": false,
  "properties": {
    "bytes_per_second": {
      "description": "bytes per second the edge accepts; 0 is unlimited",
      "format": "int64",
      "type": "integer"
    },
    "content_encoding": {
      "description": "gzip or zstd when the device compresses; empty otherwise",
      "enum": [
        "",
        "gzip",
        "zstd"
      ],
      "type": "string"
    },
    "content_type": {
      "description": "the media type the payload is posted to the engine under",
      "type": "string"
    },
    "created_at": {
      "format": "date-time",
      "type": "string"
    },
    "created_by": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "expires_at": {
      "description": "absent when the device does not expire",
      "format": "date-time",
      "type": "string"
    },
    "id": {
      "description": "16 hex characters — the 8 bytes that lead every datagram",
      "type": "string"
    },
    "key": {
      "description": "the device's key, hex — shown ONCE and never retrievable again. Absent for the none suite, which has no key",
      "type": "string"
    },
    "last_seen_at": {
      "description": "batched: it trails live traffic by up to a minute",
      "format": "date-time",
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "nonce_len": {
      "enum": [
        0,
        4,
        8,
        12,
        16,
        24
      ],
      "format": "int64",
      "type": "integer"
    },
    "project_id": {
      "description": "the project the device sends to",
      "pattern": "^[6789bcdfghjkmnpqrtwz]{20}$",
      "type": "string"
    },
    "rate_per_second": {
      "description": "datagrams per second the edge accepts; 0 is unlimited",
      "format": "double",
      "type": "number"
    },
    "revoked_at": {
      "description": "present once revoked",
      "format": "date-time",
      "type": "string"
    },
    "status": {
      "description": "active | disabled | revoked | expired",
      "type": "string"
    },
    "suite": {
      "enum": [
        "none",
        "hmac-sha1-96",
        "aes128-cbc-hmac-sha1-96",
        "hmac-sha256-128",
        "aes128-gcm",
        "aes256-gcm",
        "chacha20-poly1305",
        "xchacha20-poly1305"
      ],
      "type": "string"
    },
    "table": {
      "description": "empty until set with update-udp-device; until then the edge drops the device's datagrams unanswered",
      "type": "string"
    }
  },
  "required": [
    "id",
    "project_id",
    "name",
    "suite",
    "nonce_len",
    "content_type",
    "table",
    "rate_per_second",
    "bytes_per_second",
    "enabled",
    "status",
    "created_at"
  ],
  "type": "object"
}