{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nerdit-ai/json-schema/nerdit-ai-device-link-response-schema.json",
  "title": "DeviceLinkResponse",
  "description": "The two artifacts, where to take one of them, and how long they last.\n\n``device_code`` is the daemon's poll credential and is never displayed;\n``user_code`` is what the terminal prints for a human to carry. Both leave\nthis process exactly once, in this response, and neither is stored: the row\nkeeps only ``sha256_hex`` of each (D-X16-O3).\n\n``verification_uri_complete`` carries the user code in a **fragment**\n(D-X16-O24), so the one-click link cannot deposit the secret in an access\nlog, a CDN log, a ``Referer`` header or a shared-link history the way\n``?user_code=`` would. ``credential_fingerprint`` is the same eight-hex\nprefix the console will show beside the approval, so an operator standing at\nthe terminal can check that the screen is describing *this* machine\n(D-X16-O4 — an aid for the operator who has the terminal, never a defence\nagainst a phished stranger).",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nerdit-ai-openapi.json#/components/schemas/DeviceLinkResponse",
  "properties": {
    "device_code": {
      "type": "string",
      "title": "Device Code"
    },
    "user_code": {
      "type": "string",
      "title": "User Code"
    },
    "verification_uri": {
      "type": "string",
      "title": "Verification Uri"
    },
    "verification_uri_complete": {
      "type": "string",
      "title": "Verification Uri Complete"
    },
    "credential_fingerprint": {
      "type": "string",
      "title": "Credential Fingerprint"
    },
    "expires_in": {
      "type": "integer",
      "title": "Expires In"
    },
    "interval": {
      "type": "integer",
      "title": "Interval"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "device_code",
    "user_code",
    "verification_uri",
    "verification_uri_complete",
    "credential_fingerprint",
    "expires_in",
    "interval"
  ]
}