{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omnara-com/json-schema/omnara-com-machine-register-request-schema.json",
  "title": "MachineRegisterRequest",
  "description": "Request to register or re-register a daemon machine.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/omnara-com-openapi.json#/components/schemas/MachineRegisterRequest",
  "properties": {
    "machine_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Machine Id",
      "description": "Existing machine identifier when re-registering"
    },
    "machine_name": {
      "type": "string",
      "title": "Machine Name",
      "description": "Friendly name unique per user"
    },
    "hostname": {
      "type": "string",
      "title": "Hostname",
      "description": "OS hostname of the machine"
    },
    "platform": {
      "type": "string",
      "title": "Platform",
      "description": "Operating system platform (e.g. linux, darwin)"
    },
    "architecture": {
      "type": "string",
      "title": "Architecture",
      "description": "CPU architecture (e.g. x86_64, arm64)"
    },
    "daemon_version": {
      "type": "string",
      "title": "Daemon Version",
      "description": "Semantic version of the running daemon"
    },
    "directories": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Directories",
      "description": "Absolute paths reported by the daemon"
    },
    "metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Metadata",
      "description": "Arbitrary key-value metadata about the machine"
    }
  },
  "type": "object",
  "required": [
    "machine_name",
    "hostname",
    "platform",
    "architecture",
    "daemon_version"
  ]
}