{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reasonmachines-com/json-schema/reasonmachines-com-computers-list-schema.json",
  "title": "ComputersList",
  "description": "Computers visible to the caller, with available cloud sizes. kind is cloud, mac, cli or worker. A cloud computer's state is ready when booted or parked, starting while it boots or recovers, and busy while it resizes; live=true means booted and awake, live=false means parked, starting or not yet booted. For connected computers, state=ready means available and state=offline means unavailable; live is always false. reason_id identifies a cloud computer's Reason; size is null for connected computers. Connected computers may include owner and yours. Session titles are included only for the caller's own Sessions. Listing never grants execution access or wakes a computer.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reasonmachines-com-openapi.json#/components/schemas/ComputersList",
  "type": "object",
  "properties": {
    "computers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "cloud",
              "mac",
              "cli",
              "worker"
            ]
          },
          "reason_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "size": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "s",
                  "m",
                  "l",
                  "xl"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "os": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "ready",
              "starting",
              "busy",
              "offline"
            ]
          },
          "live": {
            "type": "boolean"
          },
          "unavailable_reason": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "offline",
                  "protocol_unsupported",
                  "worker_update_required",
                  "execution_ineligible",
                  "file_access_only",
                  "revoked"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "this_session": {
            "type": "boolean"
          },
          "sessions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "session_id": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "turn_running": {
                  "type": "boolean"
                }
              },
              "required": [
                "session_id",
                "title",
                "turn_running"
              ],
              "additionalProperties": false
            }
          },
          "rcu_per_hour": {
            "type": [
              "string",
              "null"
            ]
          },
          "keeps_processes": {
            "type": "boolean"
          },
          "previews_resume_on_wake": {
            "type": "boolean"
          },
          "keep_awake_until": {
            "type": [
              "string",
              "null"
            ]
          },
          "move_refusal": {
            "oneOf": [
              {
                "type": "string",
                "enum": [
                  "not_running",
                  "another_sessions_machine"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "yours": {
            "type": "boolean"
          },
          "owner": {
            "type": [
              "string",
              "null"
            ]
          },
          "access": {
            "type": "string",
            "enum": [
              "personal",
              "team",
              "machine"
            ]
          },
          "is_origin_device": {
            "type": "boolean"
          },
          "roots": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "repository": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "direct_operations": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "fs.read",
                      "fs.write",
                      "fs.export",
                      "fs.import",
                      "exec.run",
                      "exec.full",
                      "process.run.v1",
                      "process.full.v1",
                      "computer.use",
                      "browser.use",
                      "simulator.call.v1"
                    ]
                  }
                },
                "user_chrome": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "unavailable_reason": {
                      "oneOf": [
                        {
                          "type": "string",
                          "enum": [
                            "machine_worker",
                            "not_your_computer",
                            "not_mac",
                            "not_enabled",
                            "no_profile_connected",
                            "turn_not_owner"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "available",
                    "unavailable_reason"
                  ],
                  "additionalProperties": false
                },
                "process_limits": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "enum": [
                      "process.run.v1",
                      "process.full.v1"
                    ]
                  },
                  "additionalProperties": {
                    "type": "object",
                    "properties": {
                      "default_timeout_ms": {
                        "type": "number",
                        "const": 600000
                      },
                      "max_timeout_ms": {
                        "type": "integer",
                        "minimum": 1000,
                        "maximum": 1800000
                      }
                    },
                    "required": [
                      "default_timeout_ms",
                      "max_timeout_ms"
                    ],
                    "additionalProperties": false
                  }
                },
                "browser_recording": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "number",
                      "const": 1
                    },
                    "proof_ready": {
                      "type": "boolean",
                      "const": false
                    },
                    "pr_proof_guidance": {
                      "type": "string",
                      "const": "browser_recording is ordinary capture only; its proof_ready=false does not describe PR proof support. Check browser_pr_proof. For video, first use tools.pr.checkVideoAuth with an advertised browser_profile; use tools.pr.prepareProof for the advertised evidence format. Inventory does not establish authentication or verified evidence."
                    }
                  },
                  "required": [
                    "available",
                    "version",
                    "proof_ready"
                  ],
                  "additionalProperties": false
                },
                "browser_pr_proof": {
                  "type": "object",
                  "properties": {
                    "available": {
                      "type": "boolean"
                    },
                    "version": {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "number",
                              "const": 2
                            },
                            {
                              "type": "number",
                              "const": 3
                            }
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "image": {
                      "type": "boolean"
                    },
                    "video": {
                      "type": "boolean"
                    },
                    "profiles": {
                      "maxItems": 16,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^(Default|Profile [0-9]+)$"
                      }
                    }
                  },
                  "required": [
                    "available",
                    "version",
                    "image",
                    "video",
                    "profiles"
                  ],
                  "additionalProperties": false
                },
                "permissions": {
                  "type": "object",
                  "properties": {
                    "read": {
                      "type": "boolean"
                    },
                    "write": {
                      "type": "boolean"
                    },
                    "execute": {
                      "type": "boolean"
                    },
                    "discover_environment": {
                      "type": "boolean"
                    },
                    "expose_mcp": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "read",
                    "write",
                    "execute",
                    "discover_environment",
                    "expose_mcp"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "label",
                "repository",
                "permissions"
              ],
              "additionalProperties": false
            }
          },
          "versions": {
            "type": "object",
            "properties": {
              "latest_cli_versions": {
                "type": "object",
                "properties": {
                  "production": {
                    "type": "string"
                  },
                  "staging": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "worker": {
                "type": "object",
                "properties": {
                  "running_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "installed_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "latest_published_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "comparison": {
                    "type": "string",
                    "enum": [
                      "unknown",
                      "current",
                      "older",
                      "newer"
                    ]
                  }
                },
                "required": [
                  "running_version",
                  "installed_version",
                  "channel",
                  "observed_at",
                  "latest_published_version",
                  "comparison"
                ],
                "additionalProperties": false
              },
              "desktop": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "running_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "installed_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "channel": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "observed_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "latest_published_version": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "comparison": {
                    "type": "string",
                    "enum": [
                      "unknown",
                      "current",
                      "older",
                      "newer"
                    ]
                  },
                  "architecture": {
                    "oneOf": [
                      {
                        "type": "string",
                        "enum": [
                          "arm64",
                          "x64"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "commit": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "started_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "running_version",
                  "installed_version",
                  "channel",
                  "observed_at",
                  "latest_published_version",
                  "comparison",
                  "architecture",
                  "commit",
                  "started_at"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "latest_cli_versions",
              "worker",
              "desktop"
            ],
            "additionalProperties": false
          },
          "desktop_available": {
            "type": "boolean"
          },
          "screen_lock": {
            "type": "string",
            "enum": [
              "locked",
              "unlocked",
              "unknown"
            ]
          },
          "load": {
            "type": "object",
            "properties": {
              "one_minute": {
                "type": "number"
              },
              "cpus": {
                "type": "integer"
              },
              "busy": {
                "type": "boolean"
              },
              "observed_at": {
                "type": "string"
              }
            },
            "required": [
              "one_minute",
              "cpus",
              "busy",
              "observed_at"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "name",
          "kind",
          "reason_id",
          "size",
          "os",
          "state",
          "live",
          "unavailable_reason",
          "this_session",
          "sessions",
          "rcu_per_hour",
          "keeps_processes",
          "previews_resume_on_wake",
          "keep_awake_until"
        ],
        "additionalProperties": false
      }
    },
    "cloud_sizes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "size": {
            "type": "string",
            "enum": [
              "s",
              "m",
              "l",
              "xl"
            ]
          },
          "memory_mb": {
            "type": "number"
          },
          "vcpus": {
            "type": [
              "number",
              "null"
            ]
          },
          "rcu_per_hour": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "size",
          "memory_mb",
          "vcpus",
          "rcu_per_hour"
        ],
        "additionalProperties": false
      }
    },
    "default_cloud_size": {
      "type": "string",
      "enum": [
        "s",
        "m",
        "l",
        "xl"
      ]
    },
    "view_only_count": {
      "type": "integer",
      "minimum": 0
    },
    "desktop_origin": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "missing",
            "unavailable",
            "unauthorized",
            "available"
          ]
        },
        "device_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "unavailable_reason": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "status",
        "device_id",
        "unavailable_reason"
      ],
      "additionalProperties": false
    },
    "machine_selection": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "source": {
          "type": "string",
          "const": "user"
        },
        "target": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "cloud"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "machine"
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 63
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "mac"
                },
                "device_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "root_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "cwd": {
                  "type": "string",
                  "maxLength": 4096
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "in_place"
                  ]
                }
              },
              "required": [
                "kind",
                "device_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "headless"
                },
                "device_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "root_id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "cwd": {
                  "type": "string",
                  "maxLength": 4096
                },
                "isolation": {
                  "type": "string",
                  "enum": [
                    "worktree",
                    "in_place"
                  ]
                },
                "workspace_mode": {
                  "type": "string",
                  "enum": [
                    "managed",
                    "project_root"
                  ]
                },
                "workspace_path": {
                  "type": "string",
                  "maxLength": 4096
                }
              },
              "required": [
                "kind",
                "device_id"
              ],
              "additionalProperties": false
            }
          ]
        }
      },
      "required": [
        "source",
        "target"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "computers",
    "cloud_sizes",
    "default_cloud_size"
  ],
  "additionalProperties": false
}