Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

316 KB
Raw Blame
{
  "$comment": "Generated from apps/cua-spaces-web/src/bridge/contracts/shapes.ts by `pnpm contract:shapes`; do not edit. JSON Schema keywords; every $ref is #/$defs/<name>.",
  "$defs": {
    "AboutInput": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "build": {
          "type": "string"
        },
        "os": {
          "type": "string"
        },
        "updater": {
          "type": "boolean"
        },
        "autoCheck": {
          "type": "boolean"
        },
        "autoInstall": {
          "type": "boolean"
        },
        "channel": {
          "enum": [
            "stable",
            "nightly"
          ]
        },
        "lastCheck": {
          "type": [
            "string",
            "null"
          ]
        },
        "checking": {
          "type": "boolean"
        }
      },
      "required": [
        "platform",
        "version",
        "build",
        "os",
        "updater",
        "autoCheck",
        "autoInstall",
        "channel",
        "lastCheck",
        "checking"
      ]
    },
    "AgentDetailInput": {
      "type": "object",
      "properties": {
        "home": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "size": {
                "type": "number"
              }
            },
            "required": [
              "path",
              "name",
              "size"
            ]
          }
        },
        "routines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "title",
              "label",
              "enabled"
            ]
          }
        },
        "grants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "agent": {
                "type": "string"
              },
              "machine": {
                "type": "string"
              },
              "revoked": {
                "type": "boolean"
              }
            },
            "required": [
              "agent",
              "machine",
              "revoked"
            ]
          }
        },
        "audit": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "tsMs": {
                "type": "number"
              },
              "action": {
                "type": "string"
              },
              "principal": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "tsMs",
              "action",
              "principal",
              "path",
              "detail"
            ]
          }
        },
        "thisMachine": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "home",
        "routines",
        "grants",
        "audit",
        "thisMachine"
      ]
    },
    "AgentKeysReport": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "addedMs": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "addedMs"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "env": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "label",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        },
        "insecure": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available",
        "unavailable"
      ]
    },
    "AgentMember": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "handle": {
          "type": "string"
        },
        "harness": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "activity": {
          "type": [
            "string",
            "null"
          ]
        },
        "failure": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "class": {
              "enum": [
                "needs_connect",
                "error"
              ]
            },
            "provider": {
              "type": [
                "string",
                "null"
              ]
            },
            "message": {
              "type": "string"
            },
            "retryable": {
              "type": "boolean"
            }
          },
          "required": [
            "class",
            "provider",
            "message",
            "retryable"
          ]
        },
        "sessions": {
          "type": "number"
        },
        "rights": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "task": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admins",
                    "members"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "control": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admins",
                    "members"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "approve": {
              "anyOf": [
                {
                  "enum": [
                    "owner",
                    "admins",
                    "members"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          "required": [
            "task",
            "control",
            "approve"
          ]
        },
        "youCan": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "task": {
              "type": "boolean"
            },
            "control": {
              "type": "boolean"
            },
            "approve": {
              "type": "boolean"
            }
          },
          "required": [
            "task",
            "control",
            "approve"
          ]
        },
        "heldBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "identity": {
          "anyOf": [
            {
              "$ref": "#/$defs/MemberIdentity"
            },
            {
              "type": "null"
            }
          ]
        },
        "dm": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "unread": {
              "type": "number"
            },
            "last": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "seq": {
                  "type": "number"
                },
                "tsMs": {
                  "type": "number"
                },
                "text": {
                  "type": "string"
                },
                "author": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "enum": [
                        "person",
                        "agent",
                        "system"
                      ]
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "identity": {
                      "anyOf": [
                        {
                          "$ref": "#/$defs/MemberIdentity"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "name"
                  ]
                }
              },
              "required": [
                "seq",
                "tsMs",
                "text",
                "author"
              ]
            }
          },
          "required": [
            "unread",
            "last"
          ]
        },
        "needsYou": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "seq": {
                "type": "number"
              },
              "kind": {
                "enum": [
                  "approval",
                  "question"
                ]
              },
              "text": {
                "type": "string"
              },
              "tsMs": {
                "type": "number"
              }
            },
            "required": [
              "seq",
              "kind",
              "text",
              "tsMs"
            ]
          }
        }
      },
      "required": [
        "name",
        "harness",
        "status",
        "activity",
        "sessions",
        "rights",
        "youCan",
        "heldBy",
        "identity"
      ]
    },
    "AgentOpenFile": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "binary": {
          "type": "boolean"
        },
        "versions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "modifiedMs": {
                "type": "number"
              },
              "deleted": {
                "type": "boolean"
              },
              "latest": {
                "type": "boolean"
              }
            },
            "required": [
              "version",
              "modifiedMs",
              "deleted",
              "latest"
            ]
          }
        }
      },
      "required": [
        "path",
        "text",
        "binary",
        "versions"
      ]
    },
    "AgentSetupRow": {
      "type": "object",
      "properties": {
        "agent": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "installed": {
          "type": "boolean"
        },
        "configured": {
          "type": "boolean"
        },
        "detail": {
          "type": "string"
        },
        "skillsInstalled": {
          "type": "number"
        },
        "skillsTotal": {
          "type": "number"
        },
        "mcpConfig": {
          "type": [
            "string",
            "null"
          ]
        },
        "skillsDir": {
          "type": [
            "string",
            "null"
          ]
        },
        "signIn": {
          "type": [
            "string",
            "null"
          ]
        },
        "signedIn": {
          "type": "boolean"
        }
      },
      "required": [
        "agent",
        "name",
        "installed",
        "configured",
        "detail",
        "skillsInstalled",
        "skillsTotal",
        "mcpConfig",
        "skillsDir",
        "signIn",
        "signedIn"
      ]
    },
    "BulkResults": {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "ok": {
                "type": "boolean"
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "ok"
            ]
          }
        }
      },
      "required": [
        "results"
      ]
    },
    "CatalogEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "hostPath": {
          "type": [
            "string",
            "null"
          ]
        },
        "hostAppId": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "capability": {
          "enum": [
            "full",
            "install_only",
            "unsupported"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "moves": {
          "type": "array",
          "items": {
            "enum": [
              "app_only",
              "app_with_files",
              "app_with_state"
            ]
          }
        },
        "providerId": {
          "type": [
            "string",
            "null"
          ]
        },
        "sensitiveGroups": {
          "type": "array",
          "items": {
            "enum": [
              "sign_ins",
              "passwords",
              "history"
            ]
          }
        },
        "installSource": {
          "type": [
            "string",
            "null"
          ]
        },
        "installId": {
          "type": [
            "string",
            "null"
          ]
        },
        "installVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "launchBin": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastUsedMs": {
          "type": [
            "number",
            "null"
          ]
        },
        "json": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "hostPath",
        "hostAppId",
        "version",
        "capability",
        "reason",
        "moves",
        "providerId",
        "installSource",
        "installId",
        "installVersion",
        "launchBin",
        "lastUsedMs",
        "json"
      ]
    },
    "CiConnectAnswer": {
      "type": "object",
      "properties": {
        "state": {
          "enum": [
            "waiting",
            "connected",
            "sign_in",
            "failed"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        },
        "login": {
          "type": "string"
        }
      },
      "required": [
        "state"
      ]
    },
    "CiGithub": {
      "type": "object",
      "properties": {
        "connected": {
          "type": "boolean"
        },
        "mode": {
          "type": "string"
        },
        "login": {
          "type": "string"
        },
        "choose_url": {
          "type": "string"
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "connected",
        "mode",
        "login",
        "choose_url"
      ]
    },
    "CiJob": {
      "type": "object",
      "properties": {
        "job_key": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "queued_ms": {
          "type": "number"
        },
        "wait_ms": {
          "type": [
            "number",
            "null"
          ]
        },
        "run_ms": {
          "type": [
            "number",
            "null"
          ]
        },
        "cost_micros": {
          "type": [
            "number",
            "null"
          ]
        },
        "all_in_micros": {
          "type": [
            "number",
            "null"
          ]
        },
        "start_mode": {
          "type": "string"
        },
        "machine": {
          "type": "string"
        },
        "machine_type": {
          "type": "string"
        },
        "cloud": {
          "type": "string"
        },
        "spot": {
          "type": "boolean"
        },
        "log_pool": {
          "type": "string"
        },
        "log_slot": {
          "type": "string"
        }
      },
      "required": [
        "job_key",
        "name",
        "repo",
        "state",
        "queued_ms",
        "start_mode",
        "machine",
        "machine_type",
        "cloud",
        "spot",
        "log_pool",
        "log_slot"
      ]
    },
    "CiOverview": {
      "type": "object",
      "properties": {
        "generated_ms": {
          "type": "number"
        },
        "setup": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CiSetupStep"
          }
        },
        "github": {
          "$ref": "#/$defs/CiGithub"
        },
        "repositories": {
          "type": "object",
          "properties": {
            "used": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "jobs_7d": {
                    "type": "number"
                  }
                },
                "required": [
                  "name",
                  "jobs_7d"
                ]
              }
            },
            "all": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "allowed": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "name",
                  "allowed"
                ]
              }
            }
          },
          "required": [
            "used",
            "all"
          ]
        },
        "usage": {
          "type": "object",
          "properties": {
            "starts_24h": {
              "type": "number"
            },
            "jobs_7d": {
              "type": "number"
            },
            "pass_rate_7d": {
              "type": [
                "number",
                "null"
              ]
            },
            "spend_7d_micros": {
              "type": "number"
            }
          },
          "required": [
            "starts_24h",
            "jobs_7d",
            "pass_rate_7d",
            "spend_7d_micros"
          ]
        },
        "jobs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CiJob"
          }
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CiTarget"
          }
        },
        "budget": {
          "type": "object",
          "properties": {
            "month_committed_micros": {
              "type": "number"
            },
            "monthly_micros": {
              "type": "number"
            },
            "state": {
              "type": "string"
            }
          },
          "required": [
            "month_committed_micros",
            "monthly_micros",
            "state"
          ]
        }
      },
      "required": [
        "generated_ms",
        "setup",
        "github",
        "repositories",
        "usage",
        "jobs",
        "targets",
        "budget"
      ]
    },
    "CiPilotClass": {
      "type": "object",
      "properties": {
        "class": {
          "type": "string"
        },
        "phase": {
          "type": "string"
        },
        "jobs_seen": {
          "type": "number"
        },
        "warm_now": {
          "type": "number"
        },
        "idle_ttl_secs": {
          "type": "number"
        },
        "spot": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "class",
        "phase",
        "jobs_seen",
        "warm_now",
        "idle_ttl_secs",
        "spot",
        "reasons"
      ]
    },
    "CiSetupStep": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "state",
        "detail"
      ]
    },
    "CiTarget": {
      "type": "object",
      "properties": {
        "target": {
          "type": "string"
        },
        "goal": {
          "type": "string"
        },
        "warm": {
          "type": [
            "number",
            "null"
          ]
        },
        "autopilot": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "classes": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/CiPilotClass"
              }
            }
          },
          "required": [
            "classes"
          ]
        }
      },
      "required": [
        "target",
        "goal"
      ]
    },
    "CliInstallPlan": {
      "type": "object",
      "properties": {
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "target": {
          "type": "string"
        },
        "binDir": {
          "type": "string"
        },
        "method": {
          "enum": [
            "symlink",
            "copy",
            null
          ]
        },
        "installed": {
          "type": "boolean"
        },
        "upToDate": {
          "type": "boolean"
        },
        "installedVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "bundledVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "shadowedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "onPath": {
          "type": "boolean"
        },
        "pathProfile": {
          "type": [
            "string",
            "null"
          ]
        },
        "pathLine": {
          "type": [
            "string",
            "null"
          ]
        },
        "found": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "target",
        "binDir",
        "installed",
        "upToDate",
        "onPath"
      ]
    },
    "CloudProviderWire": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "tier": {
          "type": "string"
        },
        "connected": {
          "type": "boolean"
        },
        "default": {
          "type": "boolean"
        },
        "credentials": {
          "type": "object",
          "properties": {
            "found": {
              "type": "boolean"
            },
            "source": {
              "type": "string"
            }
          },
          "required": [
            "found"
          ]
        },
        "account": {
          "type": "string"
        },
        "profile": {
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "zone": {
          "type": "string"
        },
        "project": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "ttl_hours": {
          "type": "number"
        },
        "kinds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "image": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "supported": {
                "type": "boolean"
              }
            },
            "required": [
              "image",
              "kind",
              "supported"
            ]
          }
        },
        "auth": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "budget_usd_month": {
          "type": "number"
        },
        "max_size": {
          "type": "string"
        },
        "spent_month": {
          "type": "number"
        },
        "running": {
          "type": "number"
        },
        "approval": {
          "type": "string"
        },
        "holders": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approval_agent": {
          "type": "string"
        },
        "pending_budget_usd_month": {
          "type": [
            "number",
            "null"
          ]
        },
        "pending_max_size": {
          "type": "string"
        },
        "can_approve": {
          "type": "boolean"
        },
        "suggest_auth": {
          "type": "string"
        },
        "issue": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "title",
        "tier",
        "connected"
      ]
    },
    "ComputerResources": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "online": {
          "type": "boolean"
        },
        "sampledAtMs": {
          "type": "number"
        },
        "cpuCount": {
          "type": "number"
        },
        "cpuPercent": {
          "type": "number"
        },
        "loadAverage1m": {
          "type": "number"
        },
        "memoryTotal": {
          "type": "number"
        },
        "memoryUsed": {
          "type": "number"
        },
        "diskTotal": {
          "type": "number"
        },
        "diskFree": {
          "type": "number"
        },
        "spacesCount": {
          "type": "number"
        },
        "spacesRunning": {
          "type": "number"
        },
        "spacesCpuAllocated": {
          "type": "number"
        },
        "spacesMemoryAllocated": {
          "type": "number"
        },
        "spacesMemoryUsed": {
          "type": "number"
        },
        "spacesDiskBytes": {
          "type": "number"
        },
        "spacesDiskExact": {
          "type": "boolean"
        },
        "warning": {
          "$ref": "#/$defs/DiskWarning"
        }
      },
      "required": [
        "id",
        "name",
        "online",
        "sampledAtMs",
        "cpuCount",
        "cpuPercent",
        "loadAverage1m",
        "memoryTotal",
        "memoryUsed",
        "diskTotal",
        "diskFree",
        "spacesCount",
        "spacesRunning",
        "spacesCpuAllocated",
        "spacesMemoryAllocated",
        "spacesMemoryUsed",
        "spacesDiskBytes",
        "spacesDiskExact",
        "warning"
      ]
    },
    "ConnectionReport": {
      "type": "object",
      "properties": {
        "agents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ConnectionRow"
          }
        },
        "checked_at_ms": {
          "type": "number"
        }
      },
      "required": [
        "agents",
        "checked_at_ms"
      ]
    },
    "ConnectionRow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "installed": {
          "type": "boolean"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "previous_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "signed_in": {
          "enum": [
            "yes",
            "no",
            "unknown",
            "expired"
          ]
        },
        "sign_in": {
          "type": [
            "string",
            "null"
          ]
        },
        "mcp": {
          "enum": [
            "ok",
            "missing",
            "broken",
            "stale",
            "unsupported"
          ]
        },
        "mcp_config": {
          "type": [
            "string",
            "null"
          ]
        },
        "signin_imported": {
          "type": "boolean"
        },
        "signin_import": {
          "enum": [
            "ok",
            "expired",
            "missing",
            "unsupported"
          ]
        },
        "state": {
          "enum": [
            "connected",
            "attention",
            "not_connected",
            "not_installed"
          ]
        },
        "problem": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "line": {
              "type": "string"
            },
            "action": {
              "enum": [
                "reconnect",
                "sign_in",
                "install",
                "disconnect",
                "none"
              ]
            }
          },
          "required": [
            "line",
            "action"
          ]
        },
        "checked_at_ms": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "name",
        "installed",
        "version",
        "previous_version",
        "signed_in",
        "sign_in",
        "mcp",
        "mcp_config",
        "signin_imported",
        "signin_import",
        "state",
        "problem",
        "checked_at_ms"
      ]
    },
    "ConnectResult": {
      "type": "object",
      "properties": {
        "agent": {
          "type": "string"
        },
        "tools_ok": {
          "type": "boolean"
        },
        "tools_line": {
          "type": [
            "string",
            "null"
          ]
        },
        "sign_in": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "imported": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "source": {
                  "type": "string"
                },
                "env": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "expires_ms": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "added_ms": {
                  "type": "number"
                }
              },
              "required": [
                "source",
                "env",
                "label",
                "expires_ms",
                "added_ms"
              ]
            },
            "refused": {
              "type": [
                "string",
                "null"
              ]
            },
            "line": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "imported",
            "refused",
            "line"
          ]
        }
      },
      "required": [
        "agent",
        "tools_ok",
        "tools_line",
        "sign_in"
      ]
    },
    "CrashReportingConfig": {
      "type": "object",
      "properties": {
        "allowed": {
          "type": "boolean"
        },
        "dsn": {
          "type": "string"
        },
        "release": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "shell": {
          "type": "string"
        },
        "crashTest": {
          "enum": [
            "ui"
          ]
        }
      },
      "required": [
        "allowed",
        "dsn",
        "release",
        "environment",
        "shell"
      ]
    },
    "CreateFix": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "action": {
          "enum": [
            "copy-command",
            "open-url",
            "details"
          ]
        },
        "value": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "label",
        "action"
      ]
    },
    "CreatingElsewhere": {
      "type": "object",
      "properties": {
        "machineId": {
          "type": "string"
        },
        "machineName": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "os": {
          "type": "string"
        },
        "phase": {
          "type": "string"
        },
        "percent": {
          "type": "number"
        }
      },
      "required": [
        "machineId",
        "machineName",
        "name",
        "os",
        "phase",
        "percent"
      ]
    },
    "DefaultSpace": {
      "type": "object",
      "properties": {
        "space": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason": {
          "type": "string"
        },
        "defaultSpace": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultOnline": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "order": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "space": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "online": {
                "type": "boolean"
              },
              "role": {
                "type": "string"
              }
            },
            "required": [
              "space",
              "name",
              "online",
              "role"
            ]
          }
        }
      },
      "required": [
        "space",
        "reason",
        "defaultSpace",
        "defaultOnline",
        "order"
      ]
    },
    "DevicesInput": {
      "type": "object",
      "properties": {
        "devices": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "enrolledUntil": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "lastSeen": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "current": {
                "type": "boolean"
              },
              "platform": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "audit": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ts": {
                "type": "number"
              },
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "ts",
              "kind"
            ]
          }
        },
        "localDeviceId": {
          "type": [
            "string",
            "null"
          ]
        },
        "pendingCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "enforceAfter": {
          "type": [
            "number",
            "null"
          ]
        },
        "machineNames": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "machines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "confirmed": {
                "type": "boolean"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "readError": {
          "type": [
            "string",
            "null"
          ]
        },
        "deviceName": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "DiskWarning": {
      "type": "object",
      "properties": {
        "level": {
          "enum": [
            "ok",
            "low",
            "critical"
          ]
        },
        "free": {
          "type": "number"
        },
        "total": {
          "type": "number"
        },
        "threshold": {
          "type": "number"
        }
      },
      "required": [
        "level",
        "free",
        "total",
        "threshold"
      ]
    },
    "DriveCheckInput": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "reachable": {
          "type": "boolean"
        },
        "authorized": {
          "type": "boolean"
        },
        "versioning": {
          "type": "boolean"
        },
        "detail": {
          "type": [
            "string",
            "null"
          ]
        },
        "applied": {
          "type": "boolean"
        }
      },
      "required": [
        "ok",
        "reachable",
        "authorized",
        "versioning",
        "applied"
      ]
    },
    "DriveMountInput": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "state": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "path": {
          "type": [
            "string",
            "null"
          ]
        },
        "volume_name": {
          "type": "string"
        },
        "detail": {
          "type": [
            "string",
            "null"
          ]
        },
        "settings_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "volume_errors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "space": {
                "type": "string"
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "space",
              "error"
            ]
          }
        }
      },
      "required": [
        "state",
        "method"
      ]
    },
    "DriverLiveTest": {
      "type": "object",
      "properties": {
        "passed": {
          "type": "boolean"
        },
        "atMs": {
          "type": "number"
        },
        "failure": {
          "type": [
            "string",
            "null"
          ]
        },
        "tookMs": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "passed",
        "atMs",
        "failure"
      ]
    },
    "DriverPermission": {
      "type": "object",
      "properties": {
        "id": {
          "enum": [
            "screen",
            "accessibility"
          ]
        },
        "granted": {
          "type": "boolean"
        },
        "settingsUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "granted",
        "settingsUrl"
      ]
    },
    "DriverStatus": {
      "type": "object",
      "properties": {
        "machineId": {
          "type": "string"
        },
        "machineName": {
          "type": "string"
        },
        "thisMachine": {
          "type": "boolean"
        },
        "state": {
          "enum": [
            "ready",
            "starting",
            "stopped",
            "paused",
            "needs-permission",
            "failed"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "update": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "version": {
              "type": "string"
            },
            "note": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "version",
            "note"
          ]
        },
        "lastTest": {
          "anyOf": [
            {
              "$ref": "#/$defs/DriverLiveTest"
            },
            {
              "type": "null"
            }
          ]
        },
        "lastError": {
          "type": [
            "string",
            "null"
          ]
        },
        "permissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DriverPermission"
          }
        },
        "appName": {
          "type": [
            "string",
            "null"
          ]
        },
        "apps": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "on": {
                "type": "boolean"
              },
              "own": {
                "type": "boolean"
              },
              "bringsOwn": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "name",
              "on",
              "own",
              "bringsOwn"
            ]
          }
        },
        "activity": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "app": {
                "type": "string"
              },
              "target": {
                "type": "string"
              }
            },
            "required": [
              "app",
              "target"
            ]
          }
        },
        "canPause": {
          "type": "boolean"
        }
      },
      "required": [
        "machineId",
        "machineName",
        "thisMachine",
        "state",
        "version",
        "update",
        "lastTest",
        "lastError",
        "permissions",
        "apps",
        "activity",
        "canPause"
      ]
    },
    "DriveStorageInput": {
      "type": "object",
      "properties": {
        "backend": {
          "type": "string"
        },
        "fs_path": {
          "type": "string"
        },
        "s3": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "has_keys": {
          "type": "boolean"
        }
      },
      "required": [
        "backend",
        "fs_path",
        "has_keys"
      ]
    },
    "Experiments": {
      "type": "object",
      "properties": {
        "cuaVolume": {
          "type": "boolean"
        },
        "secureSpaces": {
          "type": "boolean"
        },
        "childSpaces": {
          "type": "boolean"
        },
        "askFirst": {
          "type": "boolean"
        },
        "ciRunners": {
          "type": "boolean"
        },
        "tcpShares": {
          "type": "boolean"
        },
        "mobile": {
          "type": "boolean"
        },
        "warmPools": {
          "type": "boolean"
        }
      }
    },
    "GithubReport": {
      "type": "object",
      "properties": {
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "source": {
                "enum": [
                  "saved",
                  "env",
                  "gh",
                  "git"
                ]
              },
              "login": {
                "type": "string"
              },
              "envName": {
                "type": "string"
              },
              "line": {
                "type": "string"
              },
              "problem": {
                "type": "boolean"
              },
              "warning": {
                "type": "string"
              },
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "login": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "chosen": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "login",
                    "active",
                    "selected",
                    "chosen",
                    "valid",
                    "scopes"
                  ]
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "enum": [
                        "saved",
                        "env",
                        "gh",
                        "git"
                      ]
                    },
                    "used": {
                      "type": "boolean"
                    },
                    "present": {
                      "type": "boolean"
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "used",
                    "present",
                    "line"
                  ]
                }
              }
            },
            "required": [
              "host",
              "enabled",
              "line",
              "problem",
              "accounts",
              "sources"
            ]
          }
        },
        "ghFound": {
          "type": "boolean"
        },
        "ghOld": {
          "type": "boolean"
        },
        "canSave": {
          "type": "boolean"
        },
        "scannedMs": {
          "type": "number"
        }
      },
      "required": [
        "hosts",
        "ghFound",
        "ghOld",
        "canSave",
        "scannedMs"
      ]
    },
    "GpuChoice": {
      "type": "object",
      "properties": {
        "runtime": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "experimental": {
          "type": "boolean"
        },
        "supported": {
          "type": "boolean"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "learnMore": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "runtime",
        "id",
        "label",
        "experimental",
        "supported"
      ]
    },
    "HostStatus": {
      "type": "object",
      "properties": {
        "configured": {
          "type": "boolean"
        },
        "mode": {
          "enum": [
            "relay",
            "direct",
            null
          ]
        },
        "relayUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "directUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "machineId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "sharing": {
          "type": "boolean"
        },
        "service": {
          "type": "object",
          "properties": {
            "installed": {
              "type": "boolean"
            },
            "running": {
              "type": "boolean"
            },
            "kind": {
              "type": "string"
            },
            "detail": {
              "type": "string"
            }
          },
          "required": [
            "installed",
            "running",
            "kind"
          ]
        },
        "online": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "clients": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "streams": {
                "type": "number"
              },
              "since": {
                "type": "number"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "instructions": {
                "type": "string"
              },
              "settingsUrl": {
                "type": "string"
              },
              "granted": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "label"
            ]
          }
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "shareDesktop": {
          "type": "boolean"
        },
        "provideSpaces": {
          "type": "boolean"
        },
        "maxSpaces": {
          "type": "number"
        },
        "maxMacosVms": {
          "type": "number"
        },
        "maxMemoryGb": {
          "type": "number"
        },
        "maxDiskGb": {
          "type": "number"
        },
        "maxRunMinutes": {
          "type": "number"
        },
        "usedMemoryGb": {
          "type": "number"
        },
        "usedDiskGb": {
          "type": "number"
        },
        "totalMemoryGb": {
          "type": "number"
        },
        "totalDiskGb": {
          "type": "number"
        },
        "recentAccess": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "atMs": {
                "type": "number"
              },
              "via": {
                "type": "string"
              },
              "who": {
                "type": "string"
              },
              "what": {
                "type": "string"
              }
            },
            "required": [
              "atMs",
              "via",
              "who",
              "what"
            ]
          }
        },
        "accessLogError": {
          "type": [
            "string",
            "null"
          ]
        },
        "providedSpaces": {
          "type": "array",
          "items": {}
        },
        "spacesAudit": {
          "type": "array",
          "items": {}
        },
        "spacesAuditError": {
          "type": [
            "string",
            "null"
          ]
        },
        "pausedSignedOut": {
          "type": "boolean"
        },
        "owner": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "account": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "display": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "progress": {
          "type": [
            "string",
            "null"
          ]
        },
        "appName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "configured",
        "sharing",
        "service",
        "clients",
        "permissions"
      ]
    },
    "KeyvaultOverview": {
      "type": "object",
      "properties": {
        "availability": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "status": {},
        "serverVerified": {
          "type": "boolean"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {},
              "provider_id": {
                "type": "string"
              },
              "app_display": {
                "type": "string"
              },
              "key": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "kind",
              "provider_id",
              "app_display",
              "key"
            ]
          }
        },
        "namesVisible": {
          "type": "boolean"
        },
        "itemsTotal": {
          "type": "number"
        },
        "pending": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "grants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "rules": {
          "type": "array",
          "items": {}
        },
        "deliveries": {
          "type": "array",
          "items": {}
        },
        "audit": {
          "type": "array",
          "items": {}
        },
        "auditVerification": {},
        "partialErrors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "dismissed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "availability",
        "serverVerified",
        "items",
        "namesVisible",
        "itemsTotal",
        "pending",
        "grants",
        "rules",
        "deliveries",
        "audit",
        "partialErrors"
      ]
    },
    "KvGrant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "request_id": {
          "type": "string"
        },
        "caller_fp": {
          "type": "string"
        },
        "caller_display": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "targets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "actions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_ms": {
          "type": "number"
        },
        "not_after_ms": {
          "type": "number"
        },
        "uses_left": {
          "type": [
            "number",
            "null"
          ]
        },
        "revoked": {
          "type": "boolean"
        },
        "agent": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "request_id",
        "caller_fp",
        "caller_display",
        "items",
        "targets",
        "actions",
        "created_ms",
        "not_after_ms",
        "revoked"
      ]
    },
    "LocalStatus": {
      "type": "object",
      "properties": {
        "available": {
          "type": "boolean"
        },
        "backends": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "containerImage": {
          "type": "string"
        },
        "macosImage": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "fix": {
          "anyOf": [
            {
              "$ref": "#/$defs/RuntimeFix"
            },
            {
              "type": "null"
            }
          ]
        },
        "hostArch": {
          "type": "string"
        },
        "storage": {
          "anyOf": [
            {
              "$ref": "#/$defs/LocalStorage"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "available",
        "backends",
        "error"
      ]
    },
    "LocalStorage": {
      "type": "object",
      "properties": {
        "reserveBytes": {
          "type": "number"
        },
        "linuxRuntimeDownloadBytes": {
          "type": "number"
        },
        "lume": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "availableBytes": {
              "type": "number"
            },
            "totalBytes": {
              "type": "number"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "availableBytes",
            "totalBytes",
            "name"
          ]
        },
        "qemu": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "availableBytes": {
              "type": "number"
            },
            "totalBytes": {
              "type": "number"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "availableBytes",
            "totalBytes",
            "name"
          ]
        },
        "container": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "availableBytes": {
              "type": "number"
            },
            "totalBytes": {
              "type": "number"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "availableBytes",
            "totalBytes",
            "name"
          ]
        },
        "pulled": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "reserveBytes",
        "lume",
        "qemu",
        "container",
        "pulled"
      ]
    },
    "LoginItemReport": {
      "type": "object",
      "properties": {
        "status": {
          "enum": [
            "enabled",
            "notRegistered",
            "requiresApproval",
            "notFound"
          ]
        },
        "providesSpaces": {
          "type": "boolean"
        },
        "runsAgents": {
          "type": "boolean"
        }
      },
      "required": [
        "status",
        "providesSpaces",
        "runsAgents"
      ]
    },
    "MachineAccessNotice": {
      "type": "object",
      "properties": {
        "kind": {
          "enum": [
            "enrolled",
            "grace",
            "needs-enrollment",
            "waiting",
            "due",
            "revoked"
          ]
        },
        "status": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "actionLabel": {
          "type": "string"
        }
      },
      "required": [
        "kind",
        "status",
        "text",
        "actionLabel"
      ]
    },
    "MachinePageRow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "online": {
          "type": "boolean"
        },
        "os": {
          "type": "string"
        },
        "via": {
          "type": "string"
        },
        "current": {
          "type": "boolean"
        },
        "device": {
          "type": [
            "string",
            "null"
          ]
        },
        "deviceOnly": {
          "type": "boolean"
        },
        "spaceId": {
          "type": [
            "string",
            "null"
          ]
        },
        "stoppedSharing": {
          "type": "boolean"
        },
        "lastSeen": {
          "type": [
            "number",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "spaces": {
          "type": "number"
        },
        "spacesLabel": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "online",
        "os",
        "via",
        "current",
        "device",
        "deviceOnly",
        "spaceId",
        "stoppedSharing",
        "lastSeen",
        "status",
        "spaces",
        "spacesLabel"
      ]
    },
    "MachineRow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "via": {
          "type": "string"
        },
        "online": {
          "type": "boolean"
        },
        "os": {
          "type": "string"
        },
        "limits": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "resource": {
                "type": "string"
              },
              "used": {
                "type": "number"
              },
              "limit": {
                "type": "number"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "resource",
              "used",
              "limit",
              "reason"
            ]
          }
        },
        "current": {
          "type": "boolean"
        },
        "model": {
          "type": "string"
        },
        "arch": {
          "type": "string"
        },
        "detail": {
          "type": "string"
        },
        "lastSeen": {
          "type": [
            "number",
            "null"
          ]
        },
        "host": {
          "anyOf": [
            {
              "$ref": "#/$defs/HostStatus"
            },
            {
              "type": "null"
            }
          ]
        },
        "device": {
          "type": "boolean"
        },
        "deviceState": {
          "type": "string"
        },
        "hostname": {
          "type": "string"
        },
        "presence": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "accessNotice": {
          "anyOf": [
            {
              "$ref": "#/$defs/MachineAccessNotice"
            },
            {
              "type": "null"
            }
          ]
        },
        "merged": {
          "type": "boolean"
        },
        "status": {
          "type": "string"
        },
        "spacesLabel": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "via",
        "online",
        "os",
        "limits"
      ]
    },
    "MachinesView": {
      "type": "object",
      "properties": {
        "summary": {
          "type": "string"
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "collapsed": {
                "type": "boolean"
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "removeAll": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "confirm": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "message": {
                        "type": "string"
                      },
                      "confirmLabel": {
                        "type": "string"
                      },
                      "cancelLabel": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "message",
                      "confirmLabel",
                      "cancelLabel"
                    ]
                  },
                  "removes": {
                    "type": "array",
                    "items": {
                      "$ref": "#/$defs/MachinesViewRemove"
                    }
                  }
                },
                "required": [
                  "label",
                  "confirm",
                  "removes"
                ]
              }
            },
            "required": [
              "id",
              "title",
              "collapsed",
              "ids"
            ]
          }
        },
        "machines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "badge": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "line": {
                "type": "string"
              },
              "online": {
                "type": "boolean"
              },
              "health": {
                "type": "string"
              },
              "healthTarget": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "issuesTitle": {
                "type": "string"
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "level": {
                      "type": "string"
                    },
                    "text": {
                      "type": "string"
                    },
                    "action": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "hostAction": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "appUpdate": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "label"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "level",
                    "text"
                  ]
                }
              },
              "os": {
                "type": "string"
              },
              "current": {
                "type": "boolean"
              },
              "team": {
                "type": "boolean"
              },
              "status": {
                "type": "string"
              },
              "sharedBy": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "rename": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "target": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "title": {
                    "type": "string"
                  },
                  "confirmLabel": {
                    "type": "string"
                  }
                },
                "required": [
                  "target",
                  "id",
                  "title",
                  "confirmLabel"
                ]
              },
              "notice": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "noticeAction": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "type": "string"
                  },
                  "destructive": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "id",
                  "label",
                  "destructive"
                ]
              },
              "toggles": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "help": {
                      "type": "string"
                    },
                    "on": {
                      "type": "boolean"
                    },
                    "editable": {
                      "type": "boolean"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "actions": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "setup": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "label",
                    "help",
                    "on",
                    "editable",
                    "enabled",
                    "actions"
                  ]
                }
              },
              "togglesNote": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "spacesTitle": {
                "type": "string"
              },
              "spaces": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "os": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "running": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "os",
                    "status",
                    "running"
                  ]
                }
              },
              "desktop": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "os": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "running": {
                    "type": "boolean"
                  },
                  "label": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "os",
                  "status",
                  "running",
                  "label"
                ]
              },
              "spacesEmpty": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "newSpace": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "on": {
                    "type": "string"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "help": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "label",
                  "on",
                  "enabled"
                ]
              },
              "detailsTitle": {
                "type": "string"
              },
              "details": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ]
                }
              },
              "remove": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/MachinesViewRemove"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "name",
              "line",
              "online",
              "os",
              "current",
              "team",
              "status",
              "toggles",
              "spacesTitle",
              "spaces",
              "newSpace",
              "detailsTitle",
              "details"
            ]
          }
        },
        "order": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "clouds": {
          "type": "object",
          "properties": {
            "group": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "rows": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "logo": {
                        "type": "string"
                      },
                      "line": {
                        "type": "string"
                      },
                      "health": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "logo",
                      "line",
                      "health"
                    ]
                  }
                },
                "connectLabel": {
                  "type": "string"
                }
              },
              "required": [
                "title",
                "rows",
                "connectLabel"
              ]
            },
            "pages": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "logo": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "health": {
                    "type": "string"
                  },
                  "issuesTitle": {
                    "type": "string"
                  },
                  "issues": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "level": {
                          "type": "string"
                        },
                        "text": {
                          "type": "string"
                        },
                        "action": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "label": {
                              "type": "string"
                            },
                            "url": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "label"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "level",
                        "text"
                      ]
                    }
                  },
                  "spend": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "amount": {
                        "type": "string"
                      },
                      "ofBudget": {
                        "type": "string"
                      },
                      "resets": {
                        "type": "string"
                      },
                      "percent": {
                        "type": "number"
                      },
                      "tone": {
                        "type": "string"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "amount",
                      "ofBudget",
                      "resets",
                      "percent",
                      "tone",
                      "note"
                    ]
                  },
                  "running": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "machines": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "by": {
                              "type": "string"
                            },
                            "cost": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "by",
                            "cost"
                          ]
                        }
                      }
                    },
                    "required": [
                      "title",
                      "machines"
                    ]
                  },
                  "token": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "lock": {
                        "type": "string"
                      },
                      "note": {
                        "type": "string"
                      },
                      "holdersLabel": {
                        "type": "string"
                      },
                      "holders": {
                        "type": "string"
                      },
                      "revokeLabel": {
                        "type": "string"
                      },
                      "revokeHelp": {
                        "type": "string"
                      },
                      "replace": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "label"
                        ]
                      }
                    },
                    "required": [
                      "title",
                      "lock",
                      "note",
                      "holdersLabel",
                      "holders",
                      "revokeLabel",
                      "revokeHelp",
                      "replace"
                    ]
                  },
                  "settingsTitle": {
                    "type": "string"
                  },
                  "settings": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "help": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "label",
                        "help",
                        "value"
                      ]
                    }
                  },
                  "limits": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "label"
                    ]
                  },
                  "switchAuth": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "type": "string"
                      },
                      "url": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "label"
                    ]
                  },
                  "approval": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "title": {
                        "type": "string"
                      },
                      "intro": {
                        "type": "string"
                      },
                      "rows": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "label": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "label",
                            "value"
                          ]
                        }
                      },
                      "note": {
                        "type": "string"
                      },
                      "approveLabel": {
                        "type": "string"
                      },
                      "denyLabel": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "title",
                      "intro",
                      "rows",
                      "note",
                      "approveLabel",
                      "denyLabel"
                    ]
                  },
                  "disconnect": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "properties": {
                      "label": {
                        "type": "string"
                      },
                      "confirm": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string"
                          },
                          "message": {
                            "type": "string"
                          },
                          "confirmLabel": {
                            "type": "string"
                          },
                          "cancelLabel": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "title",
                          "message",
                          "confirmLabel",
                          "cancelLabel"
                        ]
                      },
                      "delete": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "label",
                      "confirm",
                      "delete"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "logo",
                  "status",
                  "health",
                  "issuesTitle",
                  "issues",
                  "settingsTitle",
                  "settings"
                ]
              }
            }
          },
          "required": [
            "group",
            "pages"
          ]
        }
      },
      "required": [
        "summary",
        "groups",
        "machines"
      ]
    },
    "MachinesViewRemove": {
      "type": "object",
      "properties": {
        "label": {
          "type": "string"
        },
        "enabled": {
          "type": "boolean"
        },
        "help": {
          "type": [
            "string",
            "null"
          ]
        },
        "host": {
          "type": "boolean"
        },
        "machine": {
          "type": [
            "string",
            "null"
          ]
        },
        "device": {
          "type": [
            "string",
            "null"
          ]
        },
        "confirm": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "message": {
              "type": "string"
            },
            "confirmLabel": {
              "type": "string"
            },
            "cancelLabel": {
              "type": "string"
            }
          },
          "required": [
            "title",
            "message",
            "confirmLabel",
            "cancelLabel"
          ]
        }
      },
      "required": [
        "label",
        "enabled",
        "host",
        "confirm"
      ]
    },
    "MemberIdentity": {
      "type": "object",
      "properties": {
        "origin": {
          "enum": [
            "space",
            "external"
          ]
        },
        "handle": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "collides": {
          "type": "boolean"
        },
        "icon": {
          "type": [
            "string",
            "null"
          ]
        },
        "harness": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "reported": {
              "type": "boolean"
            }
          },
          "required": [
            "id",
            "version",
            "reported"
          ]
        },
        "owner": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ]
        },
        "device": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ]
        },
        "joined": {
          "type": "object",
          "properties": {
            "method": {
              "enum": [
                "started",
                "prompt",
                "setup"
              ]
            },
            "atMs": {
              "type": [
                "number",
                "null"
              ]
            },
            "by": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          },
          "required": [
            "method",
            "atMs",
            "by"
          ]
        },
        "state": {
          "enum": [
            "active",
            "pending"
          ]
        },
        "lastSeenMs": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "origin",
        "handle",
        "displayName",
        "collides",
        "icon",
        "harness",
        "owner",
        "device",
        "joined",
        "state",
        "lastSeenMs"
      ]
    },
    "NetworkEvent": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string"
        },
        "dst": {
          "type": "string"
        },
        "proto": {
          "type": [
            "string",
            "null"
          ]
        },
        "count": {
          "type": "number"
        },
        "lastUnix": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "reason",
        "dst",
        "count"
      ]
    },
    "NewSpaceOptions": {
      "type": "object",
      "properties": {
        "local": {
          "anyOf": [
            {
              "$ref": "#/$defs/LocalStatus"
            },
            {
              "type": "null"
            }
          ]
        },
        "gpus": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/GpuChoice"
          }
        },
        "experiments": {
          "$ref": "#/$defs/Experiments"
        },
        "maxCpus": {
          "type": [
            "number",
            "null"
          ]
        },
        "env": {
          "anyOf": [
            {
              "$ref": "#/$defs/WizardEnv"
            },
            {
              "type": "null"
            }
          ]
        },
        "macosVmsRunning": {
          "type": [
            "number",
            "null"
          ]
        },
        "pending": {
          "type": "boolean"
        }
      },
      "required": [
        "local",
        "gpus",
        "experiments",
        "maxCpus"
      ]
    },
    "NotificationInput": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "atMs": {
          "type": "number"
        },
        "agent": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "read": {
          "type": "boolean"
        },
        "space": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "atMs",
        "kind",
        "title",
        "body"
      ]
    },
    "PairingCode": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "installSh": {
          "type": [
            "string",
            "null"
          ]
        },
        "installPowershell": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "enum": [
            "active",
            "used",
            "revoked",
            "expired"
          ]
        },
        "team": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "number"
        },
        "expiresAt": {
          "type": "number"
        },
        "usedAt": {
          "type": [
            "number",
            "null"
          ]
        },
        "machine": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "code",
        "url",
        "installSh",
        "installPowershell",
        "state",
        "team",
        "createdAt",
        "expiresAt",
        "usedAt",
        "machine"
      ]
    },
    "PresenceCursor": {
      "type": "object",
      "properties": {
        "displayId": {
          "type": "string"
        },
        "windowId": {
          "type": "string"
        },
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "visible": {
          "type": "boolean"
        },
        "pressed": {
          "type": "boolean"
        },
        "shape": {
          "type": "string"
        },
        "shapeSource": {
          "type": "string"
        },
        "atMs": {
          "type": "number"
        },
        "receivedMs": {
          "type": "number"
        }
      },
      "required": [
        "displayId",
        "x",
        "y",
        "visible",
        "pressed",
        "shape",
        "shapeSource",
        "atMs",
        "receivedMs"
      ]
    },
    "PresenceParticipant": {
      "type": "object",
      "properties": {
        "participantId": {
          "type": "string"
        },
        "principalId": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "color": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "required": [
        "participantId",
        "principalId",
        "displayName",
        "color",
        "kind"
      ]
    },
    "RecentThread": {
      "type": "object",
      "properties": {
        "agent": {
          "enum": [
            "claude-code",
            "openai-codex",
            "hermes"
          ]
        },
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "cwd": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastActiveMs": {
          "type": "number"
        },
        "resume": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "agent",
        "id",
        "title",
        "cwd",
        "lastActiveMs",
        "resume"
      ]
    },
    "RemoteWindow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "appName": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "visible": {
          "type": "boolean"
        },
        "appId": {
          "type": "string"
        },
        "targetEpoch": {
          "type": "number"
        },
        "widthPx": {
          "type": [
            "number",
            "null"
          ]
        },
        "heightPx": {
          "type": [
            "number",
            "null"
          ]
        },
        "pid": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "appName",
        "title",
        "visible",
        "appId",
        "targetEpoch"
      ]
    },
    "RepoCacheView": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "repos": {
          "type": "number"
        },
        "bytes": {
          "type": "number"
        },
        "capBytes": {
          "type": "number"
        },
        "sizeSetting": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "week": {
          "type": "string"
        },
        "hits": {
          "type": "number"
        },
        "misses": {
          "type": "number"
        },
        "secondsSaved": {
          "type": "number"
        }
      },
      "required": [
        "enabled",
        "repos",
        "bytes",
        "capBytes",
        "sizeSetting",
        "summary",
        "week",
        "hits",
        "misses",
        "secondsSaved"
      ]
    },
    "RuntimeFix": {
      "type": "object",
      "properties": {
        "action": {
          "enum": [
            "install-docker",
            "start-docker",
            null
          ]
        },
        "label": {
          "type": "string"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "busy": {
          "type": "boolean"
        },
        "termsUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "action",
        "label",
        "note",
        "busy",
        "termsUrl"
      ]
    },
    "RuntimePathCheck": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "exists": {
          "type": "boolean"
        },
        "executable": {
          "type": "boolean"
        },
        "tool": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "minVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "expected": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "guests": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "path",
        "exists",
        "executable",
        "expected"
      ]
    },
    "RuntimesInput": {
      "type": "object",
      "properties": {
        "os": {
          "enum": [
            "macos",
            "windows",
            "linux",
            "unknown",
            null
          ]
        },
        "hostArch": {
          "type": [
            "string",
            "null"
          ]
        },
        "localBackends": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "localDetails": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ]
        },
        "kinds": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "source": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "path": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "detected": {
                "type": [
                  "array",
                  "null"
                ],
                "items": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "path": {
                      "type": "string"
                    },
                    "version": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "guests": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "tool",
                    "name",
                    "path"
                  ]
                }
              },
              "check": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/RuntimePathCheck"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "kind"
            ]
          }
        }
      }
    },
    "SessionSnapshot": {
      "type": "object",
      "properties": {
        "account": {
          "type": "object",
          "properties": {
            "configured": {
              "type": "boolean"
            },
            "authMode": {
              "enum": [
                "user",
                "client-credentials",
                "static-token",
                "none"
              ]
            },
            "clientId": {
              "type": "string"
            },
            "identity": {
              "type": "string"
            }
          },
          "required": [
            "configured",
            "authMode"
          ]
        },
        "onboarding": {
          "type": "object",
          "properties": {
            "completed": {
              "type": "boolean"
            },
            "mode": {
              "enum": [
                "client",
                "host",
                null
              ]
            },
            "installerMode": {
              "enum": [
                "client",
                "host",
                null
              ]
            }
          },
          "required": [
            "completed"
          ]
        },
        "daemon": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "connected": {
              "type": "boolean"
            },
            "version": {
              "type": "string"
            },
            "socketPath": {
              "type": "string"
            },
            "loopbackUrl": {
              "type": "string"
            },
            "error": {
              "type": "string"
            }
          },
          "required": [
            "connected"
          ]
        },
        "hostSignIn": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "userCode": {
              "type": [
                "string",
                "null"
              ]
            },
            "url": {
              "type": [
                "string",
                "null"
              ]
            },
            "opened": {
              "type": "boolean"
            }
          },
          "required": [
            "userCode",
            "url"
          ]
        },
        "hostSignInFailure": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "reason": {
              "type": "string"
            },
            "message": {
              "type": "string"
            },
            "detail": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "reason",
            "message",
            "detail"
          ]
        }
      },
      "required": [
        "account",
        "onboarding",
        "daemon"
      ]
    },
    "SettingsSnapshot": {
      "type": "object",
      "properties": {
        "values": {
          "type": "object",
          "properties": {
            "theme": {
              "enum": [
                "system",
                "light",
                "dark"
              ]
            },
            "menuBar": {
              "type": "boolean"
            },
            "hotkey": {
              "type": "string"
            },
            "telemetry": {
              "type": "boolean"
            },
            "defaultLocation": {
              "type": "string"
            },
            "launchAtLogin": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "updateChannel": {
              "enum": [
                "stable",
                "nightly",
                null
              ]
            },
            "autoConnect": {
              "type": "boolean"
            },
            "tips": {
              "type": "object",
              "properties": {
                "off": {
                  "type": "boolean"
                },
                "done": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "off",
                "done"
              ]
            },
            "notchPinned": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "agentMenu": {
              "type": "object",
              "properties": {
                "shown": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "hidden": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "seen": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "shown",
                "hidden",
                "seen"
              ]
            }
          },
          "required": [
            "theme",
            "menuBar",
            "hotkey",
            "telemetry",
            "defaultLocation",
            "launchAtLogin",
            "updateChannel"
          ]
        },
        "defaultLocation": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "value": {
              "type": "string"
            },
            "source": {
              "enum": [
                "env",
                "config",
                "default"
              ]
            },
            "env": {
              "type": "string"
            },
            "path": {
              "type": "string"
            }
          },
          "required": [
            "value",
            "source",
            "path"
          ]
        },
        "telemetry": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "source": {
              "type": "string"
            },
            "sourceKind": {
              "type": "string"
            },
            "noticeShown": {
              "type": "boolean"
            },
            "noticeText": {
              "type": "string"
            },
            "docsUrl": {
              "type": "string"
            }
          },
          "required": [
            "enabled",
            "source",
            "sourceKind",
            "noticeShown",
            "noticeText",
            "docsUrl"
          ]
        },
        "hostSettings": {
          "type": "object",
          "properties": {
            "runtimes": {
              "anyOf": [
                {
                  "$ref": "#/$defs/RuntimesInput"
                },
                {
                  "type": "null"
                }
              ]
            },
            "autoConnect": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "overflow": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "keyvaultAutoWipe": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "keyvaultUnlockPrompt": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "keyvaultSiteIcons": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "keyvaultProtection": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                },
                "required": [
                  "label",
                  "value"
                ]
              }
            }
          }
        },
        "globalShortcut": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "label": {
              "type": "string"
            },
            "registered": {
              "type": "boolean"
            }
          },
          "required": [
            "label",
            "registered"
          ]
        },
        "accountUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "cli": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "installed": {
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "installed"
          ]
        }
      },
      "required": [
        "values",
        "defaultLocation",
        "telemetry"
      ]
    },
    "ShareEntry": {
      "type": "object",
      "properties": {
        "who": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "connected": {
          "type": "boolean"
        }
      },
      "required": [
        "who",
        "role"
      ]
    },
    "ShareRemoval": {
      "type": "object",
      "properties": {
        "who": {
          "type": "string"
        },
        "machineName": {
          "type": "string"
        }
      },
      "required": [
        "who",
        "machineName"
      ]
    },
    "SpaceAccess": {
      "type": "object",
      "properties": {
        "kind": {
          "enum": [
            "mine",
            "withMe",
            "team"
          ]
        },
        "role": {
          "enum": [
            "owner",
            "editor",
            "viewer"
          ]
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "teamName": {
          "type": [
            "string",
            "null"
          ]
        },
        "place": {
          "type": "string"
        },
        "people": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "who": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "role": {
                "enum": [
                  "editor",
                  "viewer"
                ]
              },
              "team": {
                "type": "boolean"
              }
            },
            "required": [
              "who",
              "role"
            ]
          }
        },
        "canPower": {
          "type": "boolean"
        },
        "canTeleport": {
          "type": "boolean"
        },
        "canShare": {
          "type": "boolean"
        },
        "canRename": {
          "type": "boolean"
        },
        "canDelete": {
          "type": "boolean"
        },
        "canLeave": {
          "type": "boolean"
        }
      },
      "required": [
        "kind",
        "role",
        "place",
        "people",
        "canPower",
        "canTeleport",
        "canShare",
        "canRename",
        "canDelete",
        "canLeave"
      ]
    },
    "SpaceNetwork": {
      "type": "object",
      "properties": {
        "preset": {
          "type": "string"
        },
        "localhostPorts": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "allLocalhostPorts": {
          "type": "boolean"
        },
        "allow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "deny": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "customBase": {
          "type": "string"
        },
        "via": {
          "type": [
            "string",
            "null"
          ]
        },
        "topologyJson": {
          "type": "string"
        },
        "widenedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "summary": {
          "type": "string"
        },
        "widenings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "enforcement": {
          "type": "string"
        },
        "point": {
          "type": "string"
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "parent": {
          "type": [
            "string",
            "null"
          ]
        },
        "root": {
          "type": [
            "string",
            "null"
          ]
        },
        "alwaysBlocked": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "noticePending": {
          "type": "boolean"
        },
        "clipboard": {
          "type": "string"
        },
        "volume": {
          "type": "string"
        }
      },
      "required": [
        "preset",
        "summary",
        "enforcement",
        "point",
        "noticePending",
        "clipboard",
        "volume"
      ]
    },
    "SpaceProgress": {
      "type": "object",
      "properties": {
        "phase": {
          "type": "string"
        },
        "permille": {
          "type": "number"
        },
        "label": {
          "type": "string"
        },
        "error": {
          "type": "string"
        },
        "transfer": {
          "type": "string"
        },
        "cancellable": {
          "type": "boolean"
        },
        "cancelling": {
          "type": "boolean"
        },
        "retrying": {
          "type": "boolean"
        },
        "fix": {
          "$ref": "#/$defs/CreateFix"
        }
      },
      "required": [
        "phase",
        "permille",
        "label"
      ]
    },
    "SpaceResources": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "powerState": {
          "enum": [
            "running",
            "stopped",
            "suspended",
            ""
          ]
        },
        "cpuAllocated": {
          "type": "number"
        },
        "memoryAllocated": {
          "type": "number"
        },
        "diskAllocated": {
          "type": "number"
        },
        "usage": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "cpuCount": {
              "type": "number"
            },
            "cpuPercent": {
              "type": "number"
            },
            "loadAverage1m": {
              "type": "number"
            },
            "memoryUsed": {
              "type": "number"
            },
            "memoryTotal": {
              "type": "number"
            },
            "memoryLimited": {
              "type": "boolean"
            },
            "diskUsed": {
              "type": "number"
            },
            "diskTotal": {
              "type": [
                "number",
                "null"
              ]
            },
            "diskLimited": {
              "type": "boolean"
            }
          },
          "required": [
            "cpuCount",
            "cpuPercent",
            "loadAverage1m",
            "memoryUsed",
            "memoryTotal",
            "memoryLimited",
            "diskUsed",
            "diskTotal",
            "diskLimited"
          ]
        },
        "diskOnHost": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "bytes": {
              "type": [
                "number",
                "null"
              ]
            },
            "allocated": {
              "type": "number"
            },
            "sharesSpace": {
              "type": "boolean"
            }
          },
          "required": [
            "bytes",
            "allocated",
            "sharesSpace"
          ]
        },
        "base": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "key": {
              "type": "string"
            },
            "image": {
              "type": "string"
            },
            "bytes": {
              "type": [
                "number",
                "null"
              ]
            },
            "sharedWith": {
              "type": "number"
            }
          },
          "required": [
            "key",
            "image",
            "bytes",
            "sharedWith"
          ]
        }
      },
      "required": [
        "id",
        "powerState",
        "cpuAllocated",
        "memoryAllocated",
        "diskAllocated",
        "usage",
        "diskOnHost"
      ]
    },
    "SpaceRow": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "hostProgress": {
          "$ref": "#/$defs/SpaceProgress"
        },
        "name": {
          "type": "string"
        },
        "provider": {
          "enum": [
            "local",
            "direct",
            "relay"
          ]
        },
        "spacesdVersion": {
          "type": "string"
        },
        "features": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "addedAt": {
          "type": "string"
        },
        "os": {
          "enum": [
            "macos",
            "windows",
            "linux",
            "unknown"
          ]
        },
        "osName": {
          "type": "string"
        },
        "osPrettyName": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "imageDigest": {
          "type": "string"
        },
        "kind": {
          "enum": [
            "container",
            "vm"
          ]
        },
        "arch": {
          "type": "string"
        },
        "reachable": {
          "type": "boolean"
        },
        "error": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "hostName": {
          "type": "string"
        },
        "power": {
          "type": "string"
        },
        "powerState": {
          "type": "string"
        },
        "stopReason": {
          "type": "string"
        },
        "cloud": {
          "type": "string"
        },
        "cloudPlace": {
          "type": "string"
        },
        "cloudDelete": {
          "type": "string"
        },
        "sharing": {
          "$ref": "#/$defs/SpaceSharingFacts"
        }
      },
      "required": [
        "id",
        "name",
        "provider",
        "spacesdVersion",
        "features",
        "reachable"
      ]
    },
    "SpaceService": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "command": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "restarts": {
          "type": "number"
        },
        "lastEnd": {
          "type": "string"
        },
        "probeError": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "command",
        "state",
        "restarts",
        "lastEnd",
        "probeError"
      ]
    },
    "SpaceSharingFacts": {
      "type": "object",
      "properties": {
        "ownerId": {
          "type": "string"
        },
        "ownerEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerName": {
          "type": [
            "string",
            "null"
          ]
        },
        "role": {
          "type": "string"
        },
        "team": {
          "type": [
            "string",
            "null"
          ]
        },
        "teamName": {
          "type": [
            "string",
            "null"
          ]
        },
        "editors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "viewers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "teams": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            },
            "required": [
              "key",
              "name",
              "role"
            ]
          }
        }
      },
      "required": [
        "ownerId",
        "role"
      ]
    },
    "SpacesSettings": {
      "type": "object",
      "properties": {
        "defaultSpace": {
          "type": [
            "string",
            "null"
          ]
        },
        "fallback": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "fallbackOn": {
          "type": "boolean"
        },
        "updatedAt": {
          "type": "number"
        }
      },
      "required": [
        "defaultSpace",
        "fallback",
        "fallbackOn",
        "updatedAt"
      ]
    },
    "StartupState": {
      "type": "object",
      "properties": {
        "phase": {
          "enum": [
            "starting",
            "needsKeychain",
            "waitingForKeychain",
            "keychainDenied",
            "startFailed",
            "ready"
          ]
        },
        "slow": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "actions": {
          "type": "array",
          "items": {
            "enum": [
              "allowAccess",
              "tryAgain",
              "signInAgain"
            ]
          }
        }
      },
      "required": [
        "phase",
        "slow",
        "title",
        "body",
        "actions"
      ]
    },
    "StorageInput": {
      "type": "object",
      "properties": {
        "os": {
          "enum": [
            "macos",
            "windows",
            "linux",
            "unknown"
          ]
        },
        "home": {
          "type": [
            "string",
            "null"
          ]
        },
        "storage": {
          "anyOf": [
            {
              "$ref": "#/$defs/DriveStorageInput"
            },
            {
              "type": "null"
            }
          ]
        },
        "mount": {
          "anyOf": [
            {
              "$ref": "#/$defs/DriveMountInput"
            },
            {
              "type": "null"
            }
          ]
        },
        "cache": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "size_bytes": {
              "type": "number"
            },
            "capacity_bytes": {
              "type": "number"
            }
          },
          "required": [
            "size_bytes",
            "capacity_bytes"
          ]
        }
      },
      "required": [
        "os",
        "home",
        "storage",
        "mount",
        "cache"
      ]
    },
    "TeamsList": {
      "type": "object",
      "properties": {
        "teams": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "alias": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "role": {
                "type": "string"
              },
              "plan": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "alias",
              "name",
              "role",
              "plan"
            ]
          }
        },
        "currentTeamId": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "teams",
        "currentTeamId"
      ]
    },
    "TelemetryLinkNotice": {
      "type": "object",
      "properties": {
        "due": {
          "type": "boolean"
        },
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "okLabel": {
          "type": "string"
        },
        "turnOffLabel": {
          "type": "string"
        },
        "detailsLabel": {
          "type": "string"
        },
        "docsUrl": {
          "type": "string"
        }
      },
      "required": [
        "due",
        "title",
        "body",
        "okLabel",
        "turnOffLabel",
        "detailsLabel",
        "docsUrl"
      ]
    },
    "ThreadEntry": {
      "type": "object",
      "properties": {
        "seq": {
          "type": "number"
        },
        "id": {
          "type": "string"
        },
        "tsMs": {
          "type": "number"
        },
        "author": {
          "type": "object",
          "properties": {
            "kind": {
              "enum": [
                "person",
                "agent",
                "system"
              ]
            },
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "identity": {
              "anyOf": [
                {
                  "$ref": "#/$defs/MemberIdentity"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "kind",
            "id",
            "name"
          ]
        },
        "kind": {
          "enum": [
            "message",
            "task_update",
            "approval",
            "answer",
            "system",
            "join_request"
          ]
        },
        "text": {
          "type": "string"
        },
        "mentions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "replyTo": {
          "type": [
            "number",
            "null"
          ]
        },
        "task": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "to": {
              "type": "string"
            },
            "session": {
              "type": [
                "number",
                "null"
              ]
            }
          },
          "required": [
            "to",
            "session"
          ]
        },
        "attachments": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "size": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "mime": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "path",
              "name",
              "size",
              "mime"
            ]
          }
        },
        "approval": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "action": {
              "type": "string"
            },
            "details": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "card": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": {}
            }
          },
          "required": [
            "action",
            "details",
            "state"
          ]
        },
        "answer": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "approval": {
              "type": "number"
            },
            "approve": {
              "type": "boolean"
            },
            "note": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "approval",
            "approve",
            "note"
          ]
        },
        "noteFor": {
          "type": [
            "number",
            "null"
          ]
        },
        "update": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "task": {
              "type": "number"
            },
            "state": {
              "enum": [
                "queued",
                "claimed",
                "working",
                "done",
                "failed"
              ]
            },
            "session": {
              "type": [
                "number",
                "null"
              ]
            },
            "note": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "task",
            "state",
            "session",
            "note"
          ]
        },
        "runsOnKeysOf": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "name"
          ]
        },
        "event": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "kind": {
              "enum": [
                "member_joined",
                "member_removed",
                "name_refused",
                "rate_limited"
              ]
            },
            "member": {
              "anyOf": [
                {
                  "$ref": "#/$defs/MemberIdentity"
                },
                {
                  "type": "null"
                }
              ]
            },
            "by": {
              "type": [
                "object",
                "null"
              ],
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name"
              ]
            }
          },
          "required": [
            "kind",
            "member",
            "by"
          ]
        },
        "joinRequest": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "member": {
              "anyOf": [
                {
                  "$ref": "#/$defs/MemberIdentity"
                },
                {
                  "type": "null"
                }
              ]
            },
            "canTask": {
              "enum": [
                "owner",
                "members"
              ]
            },
            "state": {
              "type": "string"
            },
            "codeId": {
              "type": "string"
            },
            "youCanAnswer": {
              "type": "boolean"
            }
          },
          "required": [
            "member",
            "canTask",
            "state",
            "codeId",
            "youCanAnswer"
          ]
        },
        "view": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "kind": {
              "enum": [
                "desktop",
                "window"
              ]
            },
            "app": {
              "type": [
                "string",
                "null"
              ]
            },
            "title": {
              "type": [
                "string",
                "null"
              ]
            },
            "windowId": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "kind",
            "app",
            "title",
            "windowId"
          ]
        },
        "failure": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "class": {
              "enum": [
                "needs_connect",
                "error"
              ]
            },
            "provider": {
              "type": [
                "string",
                "null"
              ]
            },
            "message": {
              "type": "string"
            },
            "retryable": {
              "type": "boolean"
            }
          },
          "required": [
            "class",
            "provider",
            "message",
            "retryable"
          ]
        },
        "fanoutOf": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "seq",
        "id",
        "tsMs",
        "author",
        "kind",
        "text",
        "mentions",
        "replyTo",
        "task",
        "attachments",
        "approval",
        "answer",
        "noteFor",
        "update",
        "runsOnKeysOf",
        "event"
      ]
    },
    "TreeBudget": {
      "type": "object",
      "properties": {
        "root": {
          "type": "string"
        },
        "set": {
          "$ref": "#/$defs/TreeBudgetLimits"
        },
        "maxSpaces": {
          "type": "number"
        },
        "maxVcpus": {
          "type": "number"
        },
        "maxMemoryMb": {
          "type": "number"
        },
        "usdPerHour": {
          "type": "number"
        },
        "usdTotal": {
          "type": [
            "number",
            "null"
          ]
        },
        "spaces": {
          "type": "number"
        },
        "vcpus": {
          "type": "number"
        },
        "memoryMb": {
          "type": "number"
        },
        "usdPerHourUsed": {
          "type": "number"
        },
        "usdSpent": {
          "type": "number"
        }
      },
      "required": [
        "root",
        "set",
        "maxSpaces",
        "maxVcpus",
        "maxMemoryMb",
        "usdPerHour",
        "spaces",
        "vcpus",
        "memoryMb",
        "usdPerHourUsed",
        "usdSpent"
      ]
    },
    "TreeBudgetLimits": {
      "type": "object",
      "properties": {
        "maxSpaces": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxVcpus": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxMemoryMb": {
          "type": [
            "number",
            "null"
          ]
        },
        "usdPerHour": {
          "type": [
            "number",
            "null"
          ]
        },
        "usdTotal": {
          "type": [
            "number",
            "null"
          ]
        }
      }
    },
    "TreeNode": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "parent": {
          "type": [
            "string",
            "null"
          ]
        },
        "depth": {
          "type": "number"
        },
        "children": {
          "type": "boolean"
        },
        "home": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "depth",
        "children"
      ]
    },
    "UpdateState": {
      "type": "object",
      "properties": {
        "status": {
          "enum": [
            "idle",
            "checking",
            "available",
            "downloading",
            "downloaded",
            "error"
          ]
        },
        "currentVersion": {
          "type": "string"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "percent": {
          "type": [
            "number",
            "null"
          ]
        },
        "notesUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "status",
        "currentVersion",
        "version",
        "percent",
        "notesUrl",
        "message"
      ]
    },
    "VolumeOverview": {
      "type": "object",
      "properties": {
        "os": {
          "enum": [
            "macos",
            "windows",
            "linux",
            "unknown"
          ]
        },
        "home": {
          "type": [
            "string",
            "null"
          ]
        },
        "requests": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "principal": {
                "type": "string"
              },
              "prefix": {
                "type": "string"
              },
              "mode": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "principal",
              "prefix",
              "mode",
              "reason"
            ]
          }
        },
        "grants": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "principal": {
                "type": "string"
              },
              "prefix": {
                "type": "string"
              },
              "mode": {
                "type": "string"
              },
              "revoked": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "principal",
              "prefix",
              "mode"
            ]
          }
        },
        "mount": {
          "anyOf": [
            {
              "$ref": "#/$defs/DriveMountInput"
            },
            {
              "type": "null"
            }
          ]
        },
        "sync": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "device_id": {
              "type": "string"
            },
            "device_name": {
              "type": "string"
            },
            "feed": {
              "type": "string"
            }
          },
          "required": [
            "device_id",
            "device_name",
            "feed"
          ]
        }
      },
      "required": [
        "os",
        "home",
        "requests",
        "grants",
        "mount",
        "sync"
      ]
    },
    "WizardEnv": {
      "type": "object",
      "properties": {
        "defaultLocation": {
          "enum": [
            "local",
            "yours",
            "host"
          ]
        },
        "localAvailable": {
          "type": "boolean"
        },
        "localReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "localBackends": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "localDetails": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "maxCpus": {
          "type": "number"
        },
        "hostArch": {
          "type": [
            "string",
            "null"
          ]
        },
        "storage": {
          "anyOf": [
            {
              "$ref": "#/$defs/LocalStorage"
            },
            {
              "type": "null"
            }
          ]
        },
        "clouds": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "isDefault": {
                "type": "boolean"
              },
              "ttlHours": {
                "type": "number"
              },
              "offers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "image": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "supported": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "image",
                    "kind",
                    "supported"
                  ]
                }
              }
            },
            "required": [
              "name",
              "title",
              "label",
              "isDefault",
              "ttlHours",
              "offers"
            ]
          }
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "via": {
                "type": "string"
              },
              "online": {
                "type": "boolean"
              },
              "os": {
                "type": "string"
              },
              "limits": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "resource": {
                      "type": "string"
                    },
                    "used": {
                      "type": "number"
                    },
                    "limit": {
                      "type": "number"
                    },
                    "reason": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "resource",
                    "used",
                    "limit",
                    "reason"
                  ]
                }
              }
            },
            "required": [
              "id",
              "name",
              "via",
              "online",
              "os",
              "limits"
            ]
          }
        },
        "experiments": {
          "$ref": "#/$defs/Experiments"
        },
        "gpus": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/GpuChoice"
          }
        },
        "nameSeed": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "defaultLocation",
        "localAvailable",
        "maxCpus"
      ]
    },
    "WkCatalogEntry": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "hostPath": {
          "type": [
            "string",
            "null"
          ]
        },
        "hostAppId": {
          "type": [
            "string",
            "null"
          ]
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "capability": {
          "enum": [
            "full",
            "installOnly",
            "unsupported"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "moves": {
          "type": "array",
          "items": {
            "enum": [
              "appOnly",
              "appWithFiles",
              "appWithState"
            ]
          }
        },
        "providerId": {
          "type": [
            "string",
            "null"
          ]
        },
        "sensitiveGroups": {
          "type": "array",
          "items": {
            "enum": [
              "signIns",
              "passwords",
              "history"
            ]
          }
        },
        "installSource": {
          "type": [
            "string",
            "null"
          ]
        },
        "installId": {
          "type": [
            "string",
            "null"
          ]
        },
        "installVersion": {
          "type": [
            "string",
            "null"
          ]
        },
        "launchBin": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastUsedMs": {
          "type": [
            "number",
            "null"
          ]
        },
        "json": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "hostPath",
        "hostAppId",
        "version",
        "capability",
        "reason",
        "moves",
        "providerId",
        "sensitiveGroups",
        "installSource",
        "installId",
        "installVersion",
        "launchBin",
        "lastUsedMs",
        "json"
      ]
    },
    "WkCreateOptions": {
      "type": "object",
      "properties": {
        "local": {
          "$ref": "#/$defs/LocalStatus"
        },
        "gpus": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/GpuChoice"
          }
        },
        "experiments": {
          "$ref": "#/$defs/Experiments"
        },
        "maxCpus": {
          "type": [
            "number",
            "null"
          ]
        },
        "env": {
          "$ref": "#/$defs/WizardEnv"
        },
        "macosVmsRunning": {
          "type": [
            "number",
            "null"
          ]
        },
        "pending": {
          "type": "boolean"
        }
      },
      "required": [
        "local",
        "gpus",
        "experiments",
        "maxCpus",
        "env"
      ]
    },
    "WkHostState": {
      "type": "object",
      "properties": {
        "configured": {
          "type": "boolean"
        },
        "mode": {
          "type": [
            "string",
            "null"
          ]
        },
        "relayUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "directUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "machineId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "sharing": {
          "type": "boolean"
        },
        "serviceInstalled": {
          "type": "boolean"
        },
        "serviceRunning": {
          "type": "boolean"
        },
        "serviceKind": {
          "type": "string"
        },
        "online": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "clients": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "streams": {
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ]
          }
        },
        "permissions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "settingsUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "instructions": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "granted": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "title",
              "granted"
            ]
          }
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "shareDesktop": {
          "type": "boolean"
        },
        "provideSpaces": {
          "type": "boolean"
        },
        "maxSpaces": {
          "type": "number"
        },
        "maxMacosVms": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxMemoryGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxDiskGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "maxRunMinutes": {
          "type": [
            "number",
            "null"
          ]
        },
        "usedMemoryGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "usedDiskGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "totalMemoryGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "totalDiskGb": {
          "type": [
            "number",
            "null"
          ]
        },
        "recentAccess": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "object",
            "properties": {
              "atMs": {
                "type": "number"
              },
              "via": {
                "type": "string"
              },
              "who": {
                "type": "string"
              },
              "what": {
                "type": "string"
              }
            },
            "required": [
              "atMs",
              "via",
              "who",
              "what"
            ]
          }
        },
        "accessLogError": {
          "type": [
            "string",
            "null"
          ]
        },
        "providedSpaces": {
          "type": [
            "array",
            "null"
          ],
          "items": {}
        },
        "spacesAudit": {
          "type": [
            "array",
            "null"
          ],
          "items": {}
        },
        "spacesAuditError": {
          "type": [
            "string",
            "null"
          ]
        },
        "pausedSignedOut": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "owner": {
          "type": [
            "string",
            "null"
          ]
        },
        "ownerEmail": {
          "type": [
            "string",
            "null"
          ]
        },
        "account": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": [
                "string",
                "null"
              ]
            },
            "email": {
              "type": [
                "string",
                "null"
              ]
            },
            "display": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "progress": {
          "type": [
            "string",
            "null"
          ]
        },
        "appName": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "configured",
        "sharing",
        "serviceInstalled",
        "serviceRunning",
        "serviceKind",
        "clients",
        "permissions",
        "shareDesktop",
        "provideSpaces",
        "maxSpaces"
      ]
    },
    "WkKeyvault": {
      "type": "object",
      "properties": {
        "availability": {
          "type": "string"
        },
        "overview": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ]
              }
            },
            "pending": {
              "type": "array",
              "items": {}
            },
            "grants": {
              "type": "array",
              "items": {}
            }
          },
          "required": [
            "items",
            "pending",
            "grants"
          ]
        },
        "dismissed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "busy": {
          "type": "boolean"
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "availability",
        "busy",
        "error"
      ]
    },
    "WkMachines": {
      "type": "object",
      "properties": {
        "thisMachine": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "status": {
              "type": "string"
            },
            "statusText": {
              "type": "string"
            },
            "detail": {
              "type": "string"
            }
          },
          "required": [
            "status",
            "statusText",
            "detail"
          ]
        },
        "devices": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "rows": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "platform": {
                    "type": "string"
                  },
                  "current": {
                    "type": "boolean"
                  },
                  "detail": {
                    "type": "string"
                  },
                  "lastSeen": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "platform",
                  "current"
                ]
              }
            }
          },
          "required": [
            "rows"
          ]
        },
        "signedIn": {
          "type": "boolean"
        },
        "host": {
          "anyOf": [
            {
              "$ref": "#/$defs/WkHostState"
            },
            {
              "type": "null"
            }
          ]
        },
        "hostnames": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "presence": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "boolean"
          }
        },
        "deviceStates": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {
            "type": "string"
          }
        },
        "accessNotice": {
          "anyOf": [
            {
              "$ref": "#/$defs/MachineAccessNotice"
            },
            {
              "type": "null"
            }
          ]
        },
        "rows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/MachinePageRow"
          }
        },
        "view": {
          "anyOf": [
            {
              "$ref": "#/$defs/MachinesView"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "devices",
        "signedIn"
      ]
    },
    "WkOnboarding": {
      "type": "object",
      "properties": {
        "completed": {
          "type": "boolean"
        },
        "mode": {
          "enum": [
            "client",
            "host"
          ]
        }
      },
      "required": [
        "completed",
        "mode"
      ]
    },
    "WkSession": {
      "type": "object",
      "properties": {
        "identity": {
          "type": [
            "string",
            "null"
          ]
        },
        "signedIn": {
          "type": "boolean"
        },
        "cloudConfigured": {
          "type": "boolean"
        },
        "signIn": {
          "anyOf": [
            {
              "enum": [
                "idle",
                "starting"
              ]
            },
            {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "userCode": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "opened": {
                  "type": "boolean"
                },
                "reason": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "detail": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          ]
        },
        "signInUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "identity",
        "signedIn",
        "cloudConfigured",
        "signIn"
      ]
    },
    "WkSettings": {
      "type": "object",
      "properties": {
        "page": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "sections": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "enabled": {
                          "type": "boolean"
                        },
                        "help": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "value": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "options": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string"
                              },
                              "label": {
                                "type": "string"
                              },
                              "active": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "id",
                              "label",
                              "active"
                            ]
                          }
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "label",
                        "enabled",
                        "options"
                      ]
                    }
                  }
                },
                "required": [
                  "id",
                  "rows"
                ]
              }
            }
          },
          "required": [
            "title",
            "sections"
          ]
        },
        "updateChannel": {
          "enum": [
            "stable",
            "nightly",
            null
          ]
        },
        "globalShortcut": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "label": {
              "type": "string"
            },
            "registered": {
              "type": "boolean"
            }
          },
          "required": [
            "label",
            "registered"
          ]
        },
        "accountUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "cli": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "name": {
              "type": "string"
            },
            "installed": {
              "type": "boolean"
            }
          },
          "required": [
            "name",
            "installed"
          ]
        },
        "tips": {
          "type": "object",
          "properties": {
            "off": {
              "type": "boolean"
            },
            "done": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "off",
            "done"
          ]
        },
        "notchPinned": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "agentMenu": {
          "type": "object",
          "properties": {
            "shown": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "hidden": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "seen": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "shown",
            "hidden",
            "seen"
          ]
        },
        "runtimes": {
          "anyOf": [
            {
              "$ref": "#/$defs/RuntimesInput"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "page"
      ]
    },
    "WkSpace": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "os": {
          "enum": [
            "macos",
            "windows",
            "linux",
            "unknown"
          ]
        },
        "status": {
          "enum": [
            "local",
            "running",
            "approval",
            "suspended",
            "provisioning",
            "deleting"
          ]
        },
        "detail": {
          "type": "string"
        },
        "lastUsedAt": {
          "type": "number"
        },
        "startedAt": {
          "type": [
            "number",
            "null"
          ]
        },
        "provider": {
          "enum": [
            "local",
            "direct",
            "relay",
            null
          ]
        },
        "sdk": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "features": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "spacesdVersion": {
              "type": "string"
            },
            "reachable": {
              "type": "boolean"
            },
            "error": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "features",
            "spacesdVersion",
            "reachable"
          ]
        },
        "osName": {
          "type": [
            "string",
            "null"
          ]
        },
        "osPrettyName": {
          "type": [
            "string",
            "null"
          ]
        },
        "image": {
          "type": [
            "string",
            "null"
          ]
        },
        "imageDigest": {
          "type": [
            "string",
            "null"
          ]
        },
        "kind": {
          "enum": [
            "container",
            "vm",
            null
          ]
        },
        "arch": {
          "type": [
            "string",
            "null"
          ]
        },
        "host": {
          "type": [
            "string",
            "null"
          ]
        },
        "hostName": {
          "type": [
            "string",
            "null"
          ]
        },
        "power": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "control": {
              "type": "string"
            },
            "off": {
              "type": "boolean"
            },
            "turningOn": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "error": {
              "type": [
                "string",
                "null"
              ]
            },
            "stopReason": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "control",
            "off"
          ]
        },
        "cloud": {
          "type": [
            "string",
            "null"
          ]
        },
        "cloudPlace": {
          "type": [
            "string",
            "null"
          ]
        },
        "cloudDelete": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "anyOf": [
            {
              "$ref": "#/$defs/SpaceAccess"
            },
            {
              "type": "null"
            }
          ]
        },
        "progress": {
          "anyOf": [
            {
              "$ref": "#/$defs/SpaceProgress"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "name",
        "os",
        "status",
        "detail",
        "lastUsedAt"
      ]
    },
    "WkSpaces": {
      "type": "object",
      "properties": {
        "loaded": {
          "type": "boolean"
        },
        "selectedId": {
          "type": [
            "string",
            "null"
          ]
        },
        "spaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "space": {
                "$ref": "#/$defs/WkSpace"
              },
              "deleting": {
                "type": "boolean"
              }
            },
            "required": [
              "space",
              "deleting"
            ]
          }
        },
        "rosterError": {
          "type": [
            "string",
            "null"
          ]
        },
        "daemonNotice": {
          "type": [
            "string",
            "null"
          ]
        },
        "incomplete": {
          "type": "boolean"
        },
        "reaching": {
          "type": "number"
        },
        "stale": {
          "type": "boolean"
        },
        "creatingElsewhere": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CreatingElsewhere"
          }
        }
      },
      "required": [
        "loaded",
        "selectedId",
        "spaces"
      ]
    }
  },
  "ops": {
    "about.checkNow": {
      "$ref": "#/$defs/AboutInput"
    },
    "about.get": {
      "$ref": "#/$defs/AboutInput"
    },
    "about.set": {
      "$ref": "#/$defs/AboutInput"
    },
    "agentKeys.check": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.fromShell": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.list": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.remove": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.rename": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.set": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agentKeys.shell": {
      "type": "object",
      "properties": {
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "names"
      ]
    },
    "agentKeys.use": {
      "$ref": "#/$defs/AgentKeysReport"
    },
    "agents.addRoutine": {
      "type": "null"
    },
    "agents.allowComputer": {
      "type": "null"
    },
    "agents.configure": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.connect": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectResult"
      }
    },
    "agents.detail": {
      "$ref": "#/$defs/AgentDetailInput"
    },
    "agents.disconnect": {
      "type": "object",
      "properties": {
        "removed_sign_ins": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "removed_sign_ins"
      ]
    },
    "agents.events": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "running",
            "idle",
            "failed",
            "crashed",
            "unknown"
          ]
        },
        "phase": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "seq": {
                "type": "number"
              },
              "ts_ms": {
                "type": "number"
              },
              "turn": {
                "type": "number"
              },
              "kind": {
                "type": "string"
              },
              "category": {
                "enum": [
                  "message",
                  "user",
                  "activity",
                  "hidden"
                ]
              }
            },
            "required": [
              "seq",
              "ts_ms",
              "turn",
              "kind",
              "category"
            ]
          }
        },
        "cursor": {
          "type": "number"
        },
        "caught_up": {
          "type": "boolean"
        }
      },
      "required": [
        "run_id",
        "status",
        "phase",
        "events",
        "cursor",
        "caught_up"
      ]
    },
    "agents.list": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "harness": {
            "type": "string"
          },
          "space": {
            "type": "string"
          },
          "paused": {
            "type": "boolean"
          },
          "spaceState": {
            "type": "string"
          },
          "runId": {
            "type": [
              "string",
              "null"
            ]
          },
          "savedMs": {
            "type": "number"
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "harness",
          "space",
          "paused",
          "spaceState",
          "savedMs"
        ]
      }
    },
    "agents.message": {
      "type": "object",
      "properties": {
        "delivered": {
          "type": "boolean"
        },
        "run_id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "running",
            "idle",
            "failed",
            "crashed",
            "unknown"
          ]
        },
        "phase": {
          "type": "string"
        }
      },
      "required": [
        "delivered",
        "run_id",
        "status",
        "phase"
      ]
    },
    "agents.pause": {
      "type": "null"
    },
    "agents.readFile": {
      "$ref": "#/$defs/AgentOpenFile"
    },
    "agents.recentThreads": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RecentThread"
      }
    },
    "agents.removeRoutine": {
      "type": "null"
    },
    "agents.restoreFile": {
      "type": "null"
    },
    "agents.resume": {
      "type": "null"
    },
    "agents.revokeComputer": {
      "type": "null"
    },
    "agents.runs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "status": {
            "enum": [
              "running",
              "idle",
              "failed",
              "crashed",
              "unknown"
            ]
          },
          "reason": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "createdAt": {
            "type": [
              "number",
              "null"
            ]
          },
          "phase": {
            "type": "string"
          },
          "turn": {
            "type": "number"
          },
          "needsYou": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "detail"
            ]
          }
        },
        "required": [
          "runId",
          "agent",
          "status",
          "reason",
          "summary",
          "createdAt",
          "phase",
          "turn"
        ]
      }
    },
    "agents.setRoutine": {
      "type": "null"
    },
    "agents.setup": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.setupDriver": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "target": {
            "type": "string"
          },
          "item": {
            "type": "string"
          },
          "change": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "agents",
          "target",
          "item",
          "change",
          "detail"
        ]
      }
    },
    "agents.signIn": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.signInStart": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "code": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url",
        "code"
      ]
    },
    "agents.signInWait": {
      "type": "object",
      "properties": {
        "imported": {},
        "refused": {},
        "line": {}
      },
      "required": [
        "imported",
        "refused",
        "line"
      ]
    },
    "agents.start": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string"
        },
        "agent": {
          "type": "string"
        }
      },
      "required": [
        "run_id",
        "agent"
      ]
    },
    "agents.status": {
      "$ref": "#/$defs/ConnectionReport"
    },
    "agents.threadHistory": {
      "type": "object",
      "properties": {
        "thread": {
          "$ref": "#/$defs/RecentThread"
        },
        "messages": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "key": {
                "type": "string"
              },
              "role": {
                "enum": [
                  "person",
                  "agent"
                ]
              },
              "text": {
                "type": "string"
              },
              "tsMs": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "cut": {
                "type": "boolean"
              }
            },
            "required": [
              "key",
              "role",
              "text",
              "tsMs",
              "cut"
            ]
          }
        },
        "earlierOmitted": {
          "type": "number"
        }
      },
      "required": [
        "thread",
        "messages",
        "earlierOmitted"
      ]
    },
    "budget.get": {
      "$ref": "#/$defs/TreeBudget"
    },
    "budget.set": {
      "$ref": "#/$defs/TreeBudget"
    },
    "checklist.get": {
      "type": "object",
      "properties": {
        "state": {
          "type": "object",
          "properties": {
            "done": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "dismissed": {
              "type": "boolean"
            },
            "shown": {
              "type": "boolean"
            },
            "skipped": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "done",
            "dismissed",
            "shown",
            "skipped"
          ]
        }
      },
      "required": [
        "state"
      ]
    },
    "checklist.send": {
      "type": "object",
      "properties": {
        "state": {
          "type": "object",
          "properties": {
            "done": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "dismissed": {
              "type": "boolean"
            },
            "shown": {
              "type": "boolean"
            },
            "skipped": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "done",
            "dismissed",
            "shown",
            "skipped"
          ]
        }
      },
      "required": [
        "state"
      ]
    },
    "children.set": {
      "type": "null"
    },
    "ci.connect": {
      "$ref": "#/$defs/CiConnectAnswer"
    },
    "ci.connectCancel": {
      "type": "null"
    },
    "ci.connectToken": {
      "$ref": "#/$defs/CiConnectAnswer"
    },
    "ci.goal": {
      "type": "object",
      "properties": {
        "goal": {
          "type": "string"
        },
        "applied": {
          "type": "boolean"
        }
      },
      "required": [
        "goal",
        "applied"
      ]
    },
    "ci.log": {
      "type": "object",
      "properties": {
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "at_ms": {
                "type": "number"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "at_ms",
              "text"
            ]
          }
        }
      },
      "required": [
        "lines"
      ]
    },
    "ci.overview": {
      "$ref": "#/$defs/CiOverview"
    },
    "ci.repositories": {
      "type": "object",
      "properties": {
        "changed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "cli.install": {
      "$ref": "#/$defs/CliInstallPlan"
    },
    "cli.plan": {
      "anyOf": [
        {
          "$ref": "#/$defs/CliInstallPlan"
        },
        {
          "type": "null"
        }
      ]
    },
    "clouds.approve": {
      "type": "null"
    },
    "clouds.connect": {
      "$ref": "#/$defs/CloudProviderWire"
    },
    "clouds.disconnect": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "disconnected": {
          "type": "boolean"
        }
      },
      "required": [
        "provider",
        "disconnected"
      ]
    },
    "clouds.status": {
      "type": "object",
      "properties": {
        "default_on": {
          "type": "string"
        },
        "can_approve": {
          "type": "boolean"
        },
        "providers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CloudProviderWire"
          }
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "sandbox": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "started_by": {
                "type": "string"
              },
              "cost_usd": {
                "type": "number"
              }
            },
            "required": [
              "provider",
              "id",
              "type"
            ]
          }
        }
      },
      "required": [
        "providers"
      ]
    },
    "clouds.test": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "ok": {
          "type": "boolean"
        },
        "account": {
          "type": "string"
        },
        "checks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "ok": {
                "type": "boolean"
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "ok"
            ]
          }
        }
      },
      "required": [
        "provider",
        "ok",
        "checks"
      ]
    },
    "crashReporting.config": {
      "$ref": "#/$defs/CrashReportingConfig"
    },
    "devices.approve": {
      "type": "null"
    },
    "devices.checkEnrolled": {
      "type": "boolean"
    },
    "devices.confirmMachine": {
      "type": "null"
    },
    "devices.createPairingCode": {
      "$ref": "#/$defs/PairingCode"
    },
    "devices.enroll": {
      "type": "object",
      "properties": {
        "enrolled": {
          "type": "boolean"
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "enrolled",
        "code"
      ]
    },
    "devices.get": {
      "$ref": "#/$defs/DevicesInput"
    },
    "devices.pairingCodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PairingCode"
      }
    },
    "devices.rename": {
      "type": "null"
    },
    "devices.revoke": {
      "type": "null"
    },
    "devices.revokePairingCode": {
      "type": "null"
    },
    "driver.config": {
      "type": "object",
      "additionalProperties": {}
    },
    "driver.list": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "machineId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "enum": [
              "macos",
              "windows",
              "linux"
            ]
          },
          "thisMachine": {
            "type": "boolean"
          },
          "state": {
            "enum": [
              "ready",
              "starting",
              "stopped",
              "paused",
              "needs-permission",
              "failed"
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "update": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "machineId",
          "name",
          "os",
          "thisMachine",
          "state",
          "version",
          "update"
        ]
      }
    },
    "driver.pause": {
      "type": "null"
    },
    "driver.permissions": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "appName": {
          "type": "string"
        },
        "permissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DriverPermission"
          }
        }
      },
      "required": [
        "appName",
        "permissions"
      ]
    },
    "driver.setApp": {
      "type": "null"
    },
    "driver.setConfig": {
      "type": "object",
      "additionalProperties": {}
    },
    "driver.setup": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriverStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "driver.status": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriverStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "driver.test": {
      "$ref": "#/$defs/DriverLiveTest"
    },
    "driver.update": {
      "type": "null"
    },
    "experiments.get": {
      "$ref": "#/$defs/Experiments"
    },
    "experiments.set": {
      "$ref": "#/$defs/Experiments"
    },
    "github.enable": {
      "$ref": "#/$defs/GithubReport"
    },
    "github.rescan": {
      "$ref": "#/$defs/GithubReport"
    },
    "github.status": {
      "$ref": "#/$defs/GithubReport"
    },
    "github.use": {
      "$ref": "#/$defs/GithubReport"
    },
    "host.action": {
      "$ref": "#/$defs/HostStatus"
    },
    "host.joinWithCode": {
      "$ref": "#/$defs/HostStatus"
    },
    "host.limits": {
      "$ref": "#/$defs/HostStatus"
    },
    "host.openSettings": {
      "type": "null"
    },
    "host.setUp": {
      "$ref": "#/$defs/HostStatus"
    },
    "host.status": {
      "$ref": "#/$defs/HostStatus"
    },
    "keyvault.approve": {
      "$ref": "#/$defs/KvGrant"
    },
    "keyvault.delete": {
      "type": "null"
    },
    "keyvault.deny": {
      "type": "null"
    },
    "keyvault.dismiss": {
      "type": "null"
    },
    "keyvault.overview": {
      "$ref": "#/$defs/KeyvaultOverview"
    },
    "keyvault.revokeGrant": {
      "type": "number"
    },
    "keyvault.run": {
      "type": "null"
    },
    "keyvault.setDisabled": {
      "type": "null"
    },
    "keyvault.setUnattended": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      }
    },
    "keyvault.setup": {
      "type": "object",
      "properties": {
        "recoveryKey": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "keyvault.showItems": {
      "$ref": "#/$defs/KeyvaultOverview"
    },
    "keyvault.unlock": {
      "type": "null"
    },
    "links.approve": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "enum": [
            "private",
            "team",
            "public"
          ]
        },
        "kind": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "createdAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "expiresAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "tcpConnectWith": {
          "type": [
            "string",
            "null"
          ]
        },
        "tcpAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "route": {
          "type": [
            "string",
            "null"
          ]
        },
        "routeLine": {
          "type": [
            "string",
            "null"
          ]
        },
        "allow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "waiting": {
          "enum": [
            "approval",
            "consent",
            null
          ]
        },
        "waitingText": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "url",
        "name",
        "access",
        "kind",
        "target",
        "owner",
        "createdAtUnix",
        "expiresAtUnix"
      ]
    },
    "links.create": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "enum": [
            "private",
            "team",
            "public"
          ]
        },
        "kind": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "createdAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "expiresAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "tcpConnectWith": {
          "type": [
            "string",
            "null"
          ]
        },
        "tcpAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "route": {
          "type": [
            "string",
            "null"
          ]
        },
        "routeLine": {
          "type": [
            "string",
            "null"
          ]
        },
        "allow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "waiting": {
          "enum": [
            "approval",
            "consent",
            null
          ]
        },
        "waitingText": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "url",
        "name",
        "access",
        "kind",
        "target",
        "owner",
        "createdAtUnix",
        "expiresAtUnix"
      ]
    },
    "links.deny": {
      "type": "object",
      "properties": {
        "denied": {
          "type": "string"
        }
      },
      "required": [
        "denied"
      ]
    },
    "links.list": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "access": {
                "enum": [
                  "private",
                  "team",
                  "public"
                ]
              },
              "kind": {
                "type": "string"
              },
              "target": {
                "type": "string"
              },
              "owner": {
                "type": "string"
              },
              "createdAtUnix": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "expiresAtUnix": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "tcpConnectWith": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tcpAddress": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "route": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "routeLine": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "allow": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "waiting": {
                "enum": [
                  "approval",
                  "consent",
                  null
                ]
              },
              "waitingText": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "url",
              "name",
              "access",
              "kind",
              "target",
              "owner",
              "createdAtUnix",
              "expiresAtUnix"
            ]
          }
        }
      },
      "required": [
        "links"
      ]
    },
    "links.stop": {
      "type": "object",
      "properties": {
        "stopped": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "stopped"
      ]
    },
    "loginItem.get": {
      "$ref": "#/$defs/LoginItemReport"
    },
    "loginItem.openSettings": {
      "type": "null"
    },
    "loginItem.set": {
      "$ref": "#/$defs/LoginItemReport"
    },
    "machines.checkHealth": {
      "type": "null"
    },
    "machines.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MachineRow"
      }
    },
    "machines.remove": {
      "type": "null"
    },
    "machines.rename": {
      "type": "null"
    },
    "network.ackNotice": {
      "type": "null"
    },
    "network.get": {
      "$ref": "#/$defs/SpaceNetwork"
    },
    "network.log": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkEvent"
      }
    },
    "network.set": {
      "type": "object",
      "properties": {
        "applied": {
          "enum": [
            "now",
            "next_start"
          ]
        }
      },
      "required": [
        "applied"
      ]
    },
    "notifications.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NotificationInput"
      }
    },
    "notifications.markAllRead": {
      "type": "null"
    },
    "notifications.markRead": {
      "type": "null"
    },
    "nudges.answer": {
      "type": "null"
    },
    "nudges.pending": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "atMs": {
            "type": "number"
          },
          "expiresMs": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "agent",
          "action",
          "atMs",
          "expiresMs"
        ]
      }
    },
    "presence.join": {
      "type": "object",
      "properties": {
        "handle": {
          "type": "string"
        },
        "me": {
          "$ref": "#/$defs/PresenceParticipant"
        },
        "members": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "participant": {
                "$ref": "#/$defs/PresenceParticipant"
              },
              "cursor": {
                "$ref": "#/$defs/PresenceCursor"
              }
            },
            "required": [
              "participant"
            ]
          }
        },
        "delayMs": {
          "type": "number"
        },
        "datagrams": {
          "type": "boolean"
        }
      },
      "required": [
        "handle",
        "me",
        "members",
        "delayMs",
        "datagrams"
      ]
    },
    "presence.leave": {
      "type": "null"
    },
    "presence.publish": {
      "type": "null"
    },
    "relay.usage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "metered": {
          "type": "boolean"
        },
        "period": {
          "type": "string"
        },
        "plan": {
          "type": "string"
        },
        "team": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "seats": {
              "type": "number"
            }
          },
          "required": [
            "id",
            "seats"
          ]
        },
        "liveSessions": {
          "type": "number"
        },
        "liveSessionsLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "hoursUsed": {
          "type": "number"
        },
        "hoursLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "myHoursUsed": {
          "type": "number"
        },
        "softLimitReached": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "upgradeUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "metered",
        "period",
        "plan",
        "team",
        "liveSessions",
        "liveSessionsLimit",
        "hoursUsed",
        "hoursLimit",
        "myHoursUsed",
        "softLimitReached",
        "reasons",
        "upgradeUrl"
      ]
    },
    "repoCache.clear": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "repoCache.get": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "repoCache.set": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "resources.get": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sequence": {
          "type": "number"
        },
        "sampledAtMs": {
          "type": "number"
        },
        "thisMac": {
          "$ref": "#/$defs/ComputerResources"
        },
        "spaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SpaceResources"
          }
        },
        "computers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComputerResources"
          }
        },
        "warning": {
          "$ref": "#/$defs/DiskWarning"
        }
      },
      "required": [
        "sequence",
        "sampledAtMs",
        "thisMac",
        "spaces",
        "computers",
        "warning"
      ]
    },
    "runtimes.browse": {
      "type": "object",
      "properties": {
        "path": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "path"
      ]
    },
    "runtimes.check": {
      "$ref": "#/$defs/RuntimePathCheck"
    },
    "services.control": {
      "type": "null"
    },
    "services.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SpaceService"
      }
    },
    "session.completeOnboarding": {
      "type": "null"
    },
    "session.get": {
      "$ref": "#/$defs/SessionSnapshot"
    },
    "session.openExternal": {
      "type": "null"
    },
    "session.resetOnboarding": {
      "type": "null"
    },
    "session.signIn": {
      "type": "object",
      "properties": {
        "method": {
          "enum": [
            "browser",
            "device"
          ]
        },
        "userCode": {
          "type": "string"
        },
        "verificationUri": {
          "type": "string"
        }
      },
      "required": [
        "verificationUri"
      ]
    },
    "session.signOut": {
      "type": "null"
    },
    "settings.choose": {
      "$ref": "#/$defs/SettingsSnapshot"
    },
    "settings.get": {
      "$ref": "#/$defs/SettingsSnapshot"
    },
    "settings.set": {
      "$ref": "#/$defs/SettingsSnapshot"
    },
    "shares.edge.remove": {
      "type": "object",
      "properties": {
        "ended": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "ended"
      ]
    },
    "shares.settings.get": {
      "type": "object",
      "properties": {
        "landing": {
          "enum": [
            "auto",
            "only_my_cloud",
            "allow_relay"
          ]
        },
        "relayFallback": {
          "type": "boolean"
        },
        "dailyCapMib": {
          "type": "number"
        },
        "defaultAllow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approveAgentShares": {
          "type": "boolean"
        },
        "alwaysAllowSpaces": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "edgeConsent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "usedToday": {
          "type": "number"
        },
        "edgeCloud": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeHost": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeMonthlyUsd": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "landing",
        "relayFallback",
        "dailyCapMib",
        "defaultAllow",
        "approveAgentShares",
        "alwaysAllowSpaces",
        "edgeConsent",
        "usedToday",
        "edgeCloud",
        "edgeHost",
        "edgeMonthlyUsd"
      ]
    },
    "shares.settings.set": {
      "type": "object",
      "properties": {
        "landing": {
          "enum": [
            "auto",
            "only_my_cloud",
            "allow_relay"
          ]
        },
        "relayFallback": {
          "type": "boolean"
        },
        "dailyCapMib": {
          "type": "number"
        },
        "defaultAllow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approveAgentShares": {
          "type": "boolean"
        },
        "alwaysAllowSpaces": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "edgeConsent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "usedToday": {
          "type": "number"
        },
        "edgeCloud": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeHost": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeMonthlyUsd": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "landing",
        "relayFallback",
        "dailyCapMib",
        "defaultAllow",
        "approveAgentShares",
        "alwaysAllowSpaces",
        "edgeConsent",
        "usedToday",
        "edgeCloud",
        "edgeHost",
        "edgeMonthlyUsd"
      ]
    },
    "sharing.ackRemovals": {
      "type": "null"
    },
    "sharing.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "sharing.removals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareRemoval"
      }
    },
    "sharing.share": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "sharing.unshare": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "spaces.add": {
      "$ref": "#/$defs/SpaceRow"
    },
    "spaces.cancelCreate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "state": {
          "enum": [
            "cancelled",
            "not_creating",
            "already_created"
          ]
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "state",
        "message"
      ]
    },
    "spaces.chooseFiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spaces.create": {
      "$ref": "#/$defs/SpaceRow"
    },
    "spaces.createOptions": {
      "$ref": "#/$defs/NewSpaceOptions"
    },
    "spaces.delete": {
      "type": "string"
    },
    "spaces.deleteMany": {
      "$ref": "#/$defs/BulkResults"
    },
    "spaces.droppedFiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spaces.fixRuntime": {
      "type": "null"
    },
    "spaces.leave": {
      "$ref": "#/$defs/BulkResults"
    },
    "spaces.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SpaceRow"
      }
    },
    "spaces.open": {
      "type": "null"
    },
    "spaces.openStream": {
      "type": "object",
      "properties": {
        "wsUrl": {
          "type": "string"
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "wsUrl",
        "expiresAt"
      ]
    },
    "spaces.rename": {
      "type": "null"
    },
    "spaces.resolveDefault": {
      "anyOf": [
        {
          "$ref": "#/$defs/DefaultSpace"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.sendFiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "dest": {
            "type": "string"
          },
          "bytes": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "dest",
          "bytes"
        ]
      }
    },
    "spaces.setAccess": {
      "type": "null"
    },
    "spaces.setPower": {
      "type": "object",
      "properties": {
        "space": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "power": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "space",
        "state",
        "power",
        "message"
      ]
    },
    "spaces.setSettings": {
      "anyOf": [
        {
          "$ref": "#/$defs/SpacesSettings"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/SpacesSettings"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.thumbnail": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "capturedAtMs": {
          "type": "number"
        }
      },
      "required": [
        "url",
        "capturedAtMs"
      ]
    },
    "spaces.tree": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TreeNode"
      }
    },
    "spaces.usage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "memoryUsed": {
          "type": "number"
        },
        "memoryTotal": {
          "type": "number"
        },
        "memoryLimited": {
          "type": "boolean"
        },
        "diskUsed": {
          "type": "number"
        },
        "diskTotal": {
          "type": "number"
        },
        "diskLimited": {
          "type": "boolean"
        }
      },
      "required": [
        "memoryUsed",
        "memoryTotal",
        "memoryLimited",
        "diskUsed",
        "diskTotal",
        "diskLimited"
      ]
    },
    "spaces.windows": {
      "type": "object",
      "properties": {
        "windows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemoteWindow"
          }
        },
        "display": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "widthPx": {
              "type": "number"
            },
            "heightPx": {
              "type": "number"
            }
          },
          "required": [
            "widthPx",
            "heightPx"
          ]
        },
        "open": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "windows",
        "display"
      ]
    },
    "startup.act": {
      "$ref": "#/$defs/StartupState"
    },
    "startup.get": {
      "$ref": "#/$defs/StartupState"
    },
    "storage.get": {
      "$ref": "#/$defs/StorageInput"
    },
    "storage.run": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriveCheckInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "stream.pip": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "teams.list": {
      "$ref": "#/$defs/TeamsList"
    },
    "telemetry.acknowledgeLinkNotice": {
      "type": "null"
    },
    "telemetry.linkNotice": {
      "anyOf": [
        {
          "$ref": "#/$defs/TelemetryLinkNotice"
        },
        {
          "type": "null"
        }
      ]
    },
    "telemetry.track": {
      "type": "null"
    },
    "teleport.catalog": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogEntry"
      }
    },
    "teleport.entryForPath": {
      "$ref": "#/$defs/CatalogEntry"
    },
    "teleport.icon": {
      "type": [
        "string",
        "null"
      ]
    },
    "teleport.plan": {
      "type": "object",
      "properties": {
        "app": {
          "$ref": "#/$defs/CatalogEntry"
        },
        "spaceId": {
          "type": "string"
        },
        "moves": {
          "enum": [
            "app_only",
            "app_with_files",
            "app_with_state"
          ]
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "summary"
            ]
          }
        },
        "consent": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "enum": [
                  "install",
                  "file",
                  "folder",
                  "state",
                  "secret"
                ]
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "bytes": {
                "type": "number"
              },
              "sensitive": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "key",
              "label",
              "detail",
              "bytes",
              "sensitive"
            ]
          }
        },
        "sensitive": {
          "type": "boolean"
        },
        "totalBytes": {
          "type": "number"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "relayUnsealed": {
          "type": "boolean"
        },
        "json": {
          "type": "string"
        }
      },
      "required": [
        "app",
        "spaceId",
        "moves",
        "steps",
        "consent",
        "sensitive",
        "totalBytes",
        "warnings",
        "json"
      ]
    },
    "teleport.readiness": {
      "type": "object",
      "properties": {
        "provider_id": {
          "type": "string"
        },
        "app_display": {
          "type": "string"
        },
        "keyvault_initialized": {
          "type": "boolean"
        },
        "keyvault_unlocked": {
          "type": "boolean"
        },
        "profile": {
          "type": [
            "string",
            "null"
          ]
        },
        "default_profile": {
          "type": [
            "string",
            "null"
          ]
        },
        "profiles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dir": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "account": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "last_used": {
                "type": "boolean"
              }
            },
            "required": [
              "dir",
              "name",
              "last_used"
            ]
          }
        },
        "files": {
          "type": "object",
          "properties": {
            "state": {
              "enum": [
                "granted",
                "denied",
                "unknown"
              ]
            },
            "say": {
              "type": "string"
            }
          },
          "required": [
            "state",
            "say"
          ]
        },
        "tabs": {
          "type": "object",
          "properties": {
            "state": {
              "enum": [
                "granted",
                "denied",
                "unknown"
              ]
            },
            "say": {
              "type": "string"
            }
          },
          "required": [
            "state",
            "say"
          ]
        },
        "profile_empty": {
          "type": "boolean"
        }
      },
      "required": [
        "provider_id",
        "app_display",
        "keyvault_initialized",
        "keyvault_unlocked",
        "profiles",
        "files",
        "tabs",
        "profile_empty"
      ]
    },
    "teleport.remembered": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "teleport.remoteWindows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RemoteWindow"
      }
    },
    "teleport.run": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        },
        "installed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "imported": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "skipped": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "launched": {
          "type": "boolean"
        }
      },
      "required": [
        "appId",
        "installed",
        "sent",
        "imported",
        "skipped",
        "launched"
      ]
    },
    "teleport.sites": {
      "type": "object",
      "properties": {
        "provider_id": {
          "type": "string"
        },
        "app_display": {
          "type": "string"
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string"
              },
              "cookies": {
                "type": "number"
              },
              "session_cookies": {
                "type": "number"
              },
              "local_storage": {
                "type": "number"
              },
              "passwords": {
                "type": "number"
              },
              "signin": {
                "type": "boolean"
              },
              "identity_provider": {
                "type": "boolean"
              },
              "unavailable": {
                "type": "number"
              },
              "unavailable_reason": {
                "type": "string"
              }
            },
            "required": [
              "domain"
            ]
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "provider_id",
        "app_display",
        "domains"
      ]
    },
    "teleport.streamWindow": {
      "type": "null"
    },
    "teleport.thumbnail": {
      "type": [
        "string",
        "null"
      ]
    },
    "teleport.windows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "windowId": {
            "type": "number"
          },
          "appId": {
            "type": "string"
          },
          "appName": {
            "type": "string"
          },
          "windowTitle": {
            "type": "string"
          },
          "supported": {
            "type": "boolean"
          },
          "bundlePath": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "windowId",
          "appId",
          "appName",
          "windowTitle",
          "supported"
        ]
      }
    },
    "thread.agentAdd": {
      "anyOf": [
        {
          "$ref": "#/$defs/AgentMember"
        },
        {
          "type": "null"
        }
      ]
    },
    "thread.agentRemove": {
      "type": "null"
    },
    "thread.joinCodeCancel": {
      "type": "null"
    },
    "thread.joinCodeCreate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "line": {
          "type": "string"
        },
        "expiresAtMs": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "code",
        "url",
        "line",
        "expiresAtMs"
      ]
    },
    "thread.joinCodeList": {
      "type": "object",
      "properties": {
        "codes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "createdAtMs": {
                "type": "number"
              },
              "expiresAtMs": {
                "type": "number"
              },
              "state": {
                "enum": [
                  "open",
                  "pending_approval",
                  "redeemed",
                  "denied",
                  "expired",
                  "cancelled"
                ]
              },
              "canTask": {
                "enum": [
                  "owner",
                  "members"
                ]
              },
              "askBeforeJoin": {
                "type": "boolean"
              },
              "createdBy": {
                "type": [
                  "object",
                  "null"
                ],
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name"
                ]
              },
              "memberHandle": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "createdAtMs",
              "expiresAtMs",
              "state",
              "canTask",
              "askBeforeJoin",
              "createdBy",
              "memberHandle"
            ]
          }
        }
      },
      "required": [
        "codes"
      ]
    },
    "thread.members": {
      "type": "object",
      "properties": {
        "members": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentMember"
          }
        }
      },
      "required": [
        "members"
      ]
    },
    "thread.post": {
      "anyOf": [
        {
          "$ref": "#/$defs/ThreadEntry"
        },
        {
          "type": "null"
        }
      ]
    },
    "thread.read": {
      "type": "object",
      "properties": {
        "entries": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ThreadEntry"
          }
        },
        "live": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            },
            "agents": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "agent": {
                    "type": "string"
                  },
                  "stage": {
                    "type": "string"
                  },
                  "sinceMs": {
                    "type": "number"
                  },
                  "text": {
                    "type": "string"
                  }
                },
                "required": [
                  "agent",
                  "stage"
                ]
              }
            }
          },
          "required": [
            "key",
            "agents"
          ]
        },
        "cursor": {
          "type": "number"
        },
        "caughtUp": {
          "type": "boolean"
        },
        "unread": {
          "type": "number"
        },
        "readSeq": {
          "type": [
            "number",
            "null"
          ]
        },
        "me": {
          "type": [
            "string",
            "null"
          ]
        },
        "hasMoreBefore": {
          "type": "boolean"
        },
        "role": {
          "enum": [
            "owner",
            "admin",
            "member",
            "guest",
            "agent",
            null
          ]
        }
      },
      "required": [
        "entries",
        "live",
        "cursor",
        "caughtUp",
        "unread",
        "readSeq",
        "me",
        "hasMoreBefore",
        "role"
      ]
    },
    "thread.setRights": {
      "anyOf": [
        {
          "$ref": "#/$defs/AgentMember"
        },
        {
          "type": "null"
        }
      ]
    },
    "thread.settings": {
      "type": "object",
      "properties": {
        "askBeforeJoin": {
          "type": "boolean"
        }
      },
      "required": [
        "askBeforeJoin"
      ]
    },
    "update.get": {
      "$ref": "#/$defs/UpdateState"
    },
    "update.install": {
      "$ref": "#/$defs/UpdateState"
    },
    "volume.approve": {
      "type": "null"
    },
    "volume.deny": {
      "type": "null"
    },
    "volume.mount": {
      "$ref": "#/$defs/DriveMountInput"
    },
    "volume.overview": {
      "$ref": "#/$defs/VolumeOverview"
    },
    "volume.resolve": {
      "type": "null"
    },
    "volume.reveal": {
      "type": "null"
    },
    "volume.revoke": {
      "type": "null"
    },
    "volume.storage": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriveStorageInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "volume.storageSet": {
      "$ref": "#/$defs/DriveCheckInput"
    },
    "volume.unmount": {
      "$ref": "#/$defs/DriveMountInput"
    }
  },
  "webkit": {
    "about.checkNow": {
      "$ref": "#/$defs/AboutInput"
    },
    "about.get": {
      "$ref": "#/$defs/AboutInput"
    },
    "about.set": {
      "$ref": "#/$defs/AboutInput"
    },
    "agentKeys.check": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.fromShell": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.list": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.remove": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.rename": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.set": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agentKeys.shell": {
      "type": "object",
      "properties": {
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "names"
      ]
    },
    "agentKeys.use": {
      "type": "object",
      "properties": {
        "keys": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              },
              "last4": {
                "type": "string"
              },
              "added_ms": {
                "type": "number"
              },
              "expired": {
                "type": "boolean"
              },
              "label": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "required": [
              "provider",
              "env",
              "last4",
              "added_ms"
            ]
          }
        },
        "uses": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "slot": {
                "type": "string"
              }
            },
            "required": [
              "provider",
              "env"
            ]
          }
        },
        "providers": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "env": {
                "type": "string"
              },
              "label": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "env"
            ]
          }
        },
        "available": {
          "type": "boolean"
        },
        "unavailable": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "keys",
        "providers",
        "available"
      ]
    },
    "agents.addRoutine": {
      "type": "null"
    },
    "agents.allowComputer": {
      "type": "null"
    },
    "agents.configure": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.connect": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConnectResult"
      }
    },
    "agents.detail": {
      "$ref": "#/$defs/AgentDetailInput"
    },
    "agents.disconnect": {
      "type": "object",
      "properties": {
        "removed_sign_ins": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "removed_sign_ins"
      ]
    },
    "agents.events": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "running",
            "idle",
            "failed",
            "crashed",
            "unknown"
          ]
        },
        "phase": {
          "type": "string"
        },
        "events": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "seq": {
                "type": "number"
              },
              "ts_ms": {
                "type": "number"
              },
              "turn": {
                "type": "number"
              },
              "kind": {
                "type": "string"
              },
              "category": {
                "enum": [
                  "message",
                  "user",
                  "activity",
                  "hidden"
                ]
              }
            },
            "required": [
              "seq",
              "ts_ms",
              "turn",
              "kind",
              "category"
            ]
          }
        },
        "cursor": {
          "type": "number"
        },
        "caught_up": {
          "type": "boolean"
        }
      },
      "required": [
        "run_id",
        "status",
        "phase",
        "events",
        "cursor",
        "caught_up"
      ]
    },
    "agents.list": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "harness": {
            "type": "string"
          },
          "space": {
            "type": "string"
          },
          "paused": {
            "type": "boolean"
          },
          "spaceState": {
            "type": "string"
          },
          "runId": {
            "type": [
              "string",
              "null"
            ]
          },
          "savedMs": {
            "type": "number"
          },
          "lastError": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "name",
          "harness",
          "space",
          "paused",
          "spaceState",
          "savedMs"
        ]
      }
    },
    "agents.message": {
      "type": "object",
      "properties": {
        "delivered": {
          "type": "boolean"
        },
        "run_id": {
          "type": "string"
        },
        "status": {
          "enum": [
            "running",
            "idle",
            "failed",
            "crashed",
            "unknown"
          ]
        },
        "phase": {
          "type": "string"
        }
      },
      "required": [
        "delivered",
        "run_id",
        "status",
        "phase"
      ]
    },
    "agents.pause": {},
    "agents.readFile": {
      "$ref": "#/$defs/AgentOpenFile"
    },
    "agents.removeRoutine": {
      "type": "null"
    },
    "agents.restoreFile": {
      "type": "null"
    },
    "agents.resume": {},
    "agents.revokeComputer": {
      "type": "null"
    },
    "agents.runs": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "status": {
            "enum": [
              "running",
              "idle",
              "failed",
              "crashed",
              "unknown"
            ]
          },
          "reason": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "createdAt": {
            "type": [
              "number",
              "null"
            ]
          },
          "phase": {
            "type": "string"
          },
          "turn": {
            "type": "number"
          },
          "needsYou": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "title": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "title",
              "detail"
            ]
          }
        },
        "required": [
          "runId",
          "agent",
          "status",
          "reason",
          "summary",
          "createdAt",
          "phase",
          "turn"
        ]
      }
    },
    "agents.setRoutine": {
      "type": "null"
    },
    "agents.setup": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.setupDriver": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "agents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "target": {
            "type": "string"
          },
          "item": {
            "type": "string"
          },
          "change": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "agents",
          "target",
          "item",
          "change",
          "detail"
        ]
      }
    },
    "agents.signIn": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AgentSetupRow"
      }
    },
    "agents.signInStart": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "code": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "url",
        "code"
      ]
    },
    "agents.signInWait": {
      "type": "object",
      "properties": {
        "imported": {},
        "refused": {},
        "line": {}
      },
      "required": [
        "imported",
        "refused",
        "line"
      ]
    },
    "agents.start": {
      "type": "object",
      "properties": {
        "run_id": {
          "type": "string"
        },
        "agent": {
          "type": "string"
        }
      },
      "required": [
        "run_id",
        "agent"
      ]
    },
    "agents.status": {
      "$ref": "#/$defs/ConnectionReport"
    },
    "app.info": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "experiments": {
          "$ref": "#/$defs/Experiments"
        },
        "methods": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "platform",
        "host",
        "version",
        "experiments",
        "methods"
      ]
    },
    "budget.get": {
      "$ref": "#/$defs/TreeBudget"
    },
    "budget.set": {
      "$ref": "#/$defs/TreeBudget"
    },
    "checklist.get": {
      "type": "object",
      "properties": {
        "state": {
          "type": "object",
          "properties": {
            "done": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "dismissed": {
              "type": "boolean"
            },
            "shown": {
              "type": "boolean"
            },
            "skipped": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "done",
            "dismissed",
            "shown",
            "skipped"
          ]
        }
      },
      "required": [
        "state"
      ]
    },
    "checklist.send": {
      "type": "object",
      "properties": {
        "state": {
          "type": "object",
          "properties": {
            "done": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "dismissed": {
              "type": "boolean"
            },
            "shown": {
              "type": "boolean"
            },
            "skipped": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "done",
            "dismissed",
            "shown",
            "skipped"
          ]
        }
      },
      "required": [
        "state"
      ]
    },
    "children.set": {
      "type": "object",
      "properties": {}
    },
    "ci.connect": {
      "$ref": "#/$defs/CiConnectAnswer"
    },
    "ci.connectCancel": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string"
        }
      },
      "required": [
        "state"
      ]
    },
    "ci.connectToken": {
      "$ref": "#/$defs/CiConnectAnswer"
    },
    "ci.goal": {
      "type": "object",
      "properties": {
        "goal": {
          "type": "string"
        },
        "applied": {
          "type": "boolean"
        }
      },
      "required": [
        "goal",
        "applied"
      ]
    },
    "ci.log": {
      "type": "object",
      "properties": {
        "lines": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "at_ms": {
                "type": "number"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "at_ms",
              "text"
            ]
          }
        }
      },
      "required": [
        "lines"
      ]
    },
    "ci.overview": {
      "$ref": "#/$defs/CiOverview"
    },
    "ci.repositories": {
      "type": "object",
      "properties": {
        "changed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "cli.install": {
      "$ref": "#/$defs/CliInstallPlan"
    },
    "cli.plan": {
      "anyOf": [
        {
          "$ref": "#/$defs/CliInstallPlan"
        },
        {
          "type": "null"
        }
      ]
    },
    "clouds.approve": {
      "type": "null"
    },
    "clouds.connect": {
      "$ref": "#/$defs/CloudProviderWire"
    },
    "clouds.disconnect": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "disconnected": {
          "type": "boolean"
        }
      },
      "required": [
        "provider",
        "disconnected"
      ]
    },
    "clouds.status": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "default_on": {
          "type": "string"
        },
        "can_approve": {
          "type": "boolean"
        },
        "providers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CloudProviderWire"
          }
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "provider": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "type": {
                "type": "string"
              },
              "sandbox": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "started_by": {
                "type": "string"
              },
              "cost_usd": {
                "type": "number"
              }
            },
            "required": [
              "provider",
              "id",
              "type"
            ]
          }
        }
      },
      "required": [
        "providers"
      ]
    },
    "clouds.test": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string"
        },
        "ok": {
          "type": "boolean"
        },
        "account": {
          "type": "string"
        },
        "checks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "ok": {
                "type": "boolean"
              },
              "detail": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "ok"
            ]
          }
        }
      },
      "required": [
        "provider",
        "ok",
        "checks"
      ]
    },
    "crashReporting.config": {
      "$ref": "#/$defs/CrashReportingConfig"
    },
    "devices.approve": {
      "type": "null"
    },
    "devices.checkEnrolled": {
      "type": "boolean"
    },
    "devices.confirmMachine": {
      "type": "null"
    },
    "devices.createPairingCode": {
      "$ref": "#/$defs/PairingCode"
    },
    "devices.enroll": {
      "type": "object",
      "properties": {
        "enrolled": {
          "type": "boolean"
        },
        "code": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "enrolled",
        "code"
      ]
    },
    "devices.get": {
      "$ref": "#/$defs/DevicesInput"
    },
    "devices.pairingCodes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PairingCode"
      }
    },
    "devices.rename": {
      "type": "null"
    },
    "devices.revoke": {
      "type": "null"
    },
    "devices.revokePairingCode": {
      "type": "null"
    },
    "driver.list": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "machineId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "os": {
            "enum": [
              "macos",
              "windows",
              "linux"
            ]
          },
          "thisMachine": {
            "type": "boolean"
          },
          "state": {
            "enum": [
              "ready",
              "starting",
              "stopped",
              "paused",
              "needs-permission",
              "failed"
            ]
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "update": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "machineId",
          "name",
          "os",
          "thisMachine",
          "state",
          "version",
          "update"
        ]
      }
    },
    "driver.pause": {
      "type": "null"
    },
    "driver.permissions": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "appName": {
          "type": "string"
        },
        "permissions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DriverPermission"
          }
        }
      },
      "required": [
        "appName",
        "permissions"
      ]
    },
    "driver.setApp": {
      "type": "null"
    },
    "driver.setup": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriverStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "driver.status": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriverStatus"
        },
        {
          "type": "null"
        }
      ]
    },
    "driver.test": {
      "$ref": "#/$defs/DriverLiveTest"
    },
    "github.enable": {
      "type": "object",
      "properties": {
        "gh": {
          "type": "object",
          "properties": {
            "found": {
              "type": "boolean"
            },
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "old": {
              "type": "boolean"
            }
          },
          "required": [
            "found",
            "old"
          ]
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "source": {
                "enum": [
                  "saved",
                  "env",
                  "gh",
                  "git",
                  null
                ]
              },
              "login": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "env_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "line": {
                "type": "string"
              },
              "problem": {
                "type": "boolean"
              },
              "warning": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "login": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "chosen": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "login",
                    "active",
                    "selected",
                    "chosen",
                    "valid",
                    "scopes"
                  ]
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "enum": [
                        "saved",
                        "env",
                        "gh",
                        "git"
                      ]
                    },
                    "used": {
                      "type": "boolean"
                    },
                    "present": {
                      "type": "boolean"
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "used",
                    "present",
                    "line"
                  ]
                }
              }
            },
            "required": [
              "host",
              "enabled",
              "line",
              "problem",
              "accounts",
              "sources"
            ]
          }
        },
        "can_save": {
          "type": "boolean"
        },
        "scanned_ms": {
          "type": "number"
        }
      },
      "required": [
        "gh",
        "hosts",
        "can_save",
        "scanned_ms"
      ]
    },
    "github.rescan": {
      "type": "object",
      "properties": {
        "gh": {
          "type": "object",
          "properties": {
            "found": {
              "type": "boolean"
            },
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "old": {
              "type": "boolean"
            }
          },
          "required": [
            "found",
            "old"
          ]
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "source": {
                "enum": [
                  "saved",
                  "env",
                  "gh",
                  "git",
                  null
                ]
              },
              "login": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "env_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "line": {
                "type": "string"
              },
              "problem": {
                "type": "boolean"
              },
              "warning": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "login": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "chosen": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "login",
                    "active",
                    "selected",
                    "chosen",
                    "valid",
                    "scopes"
                  ]
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "enum": [
                        "saved",
                        "env",
                        "gh",
                        "git"
                      ]
                    },
                    "used": {
                      "type": "boolean"
                    },
                    "present": {
                      "type": "boolean"
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "used",
                    "present",
                    "line"
                  ]
                }
              }
            },
            "required": [
              "host",
              "enabled",
              "line",
              "problem",
              "accounts",
              "sources"
            ]
          }
        },
        "can_save": {
          "type": "boolean"
        },
        "scanned_ms": {
          "type": "number"
        }
      },
      "required": [
        "gh",
        "hosts",
        "can_save",
        "scanned_ms"
      ]
    },
    "github.status": {
      "type": "object",
      "properties": {
        "gh": {
          "type": "object",
          "properties": {
            "found": {
              "type": "boolean"
            },
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "old": {
              "type": "boolean"
            }
          },
          "required": [
            "found",
            "old"
          ]
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "source": {
                "enum": [
                  "saved",
                  "env",
                  "gh",
                  "git",
                  null
                ]
              },
              "login": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "env_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "line": {
                "type": "string"
              },
              "problem": {
                "type": "boolean"
              },
              "warning": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "login": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "chosen": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "login",
                    "active",
                    "selected",
                    "chosen",
                    "valid",
                    "scopes"
                  ]
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "enum": [
                        "saved",
                        "env",
                        "gh",
                        "git"
                      ]
                    },
                    "used": {
                      "type": "boolean"
                    },
                    "present": {
                      "type": "boolean"
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "used",
                    "present",
                    "line"
                  ]
                }
              }
            },
            "required": [
              "host",
              "enabled",
              "line",
              "problem",
              "accounts",
              "sources"
            ]
          }
        },
        "can_save": {
          "type": "boolean"
        },
        "scanned_ms": {
          "type": "number"
        }
      },
      "required": [
        "gh",
        "hosts",
        "can_save",
        "scanned_ms"
      ]
    },
    "github.use": {
      "type": "object",
      "properties": {
        "gh": {
          "type": "object",
          "properties": {
            "found": {
              "type": "boolean"
            },
            "version": {
              "type": [
                "string",
                "null"
              ]
            },
            "old": {
              "type": "boolean"
            }
          },
          "required": [
            "found",
            "old"
          ]
        },
        "hosts": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "host": {
                "type": "string"
              },
              "enabled": {
                "type": "boolean"
              },
              "source": {
                "enum": [
                  "saved",
                  "env",
                  "gh",
                  "git",
                  null
                ]
              },
              "login": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "env_name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "line": {
                "type": "string"
              },
              "problem": {
                "type": "boolean"
              },
              "warning": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "accounts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "login": {
                      "type": "string"
                    },
                    "active": {
                      "type": "boolean"
                    },
                    "selected": {
                      "type": "boolean"
                    },
                    "chosen": {
                      "type": "boolean"
                    },
                    "valid": {
                      "type": "boolean"
                    },
                    "scopes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "login",
                    "active",
                    "selected",
                    "chosen",
                    "valid",
                    "scopes"
                  ]
                }
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "enum": [
                        "saved",
                        "env",
                        "gh",
                        "git"
                      ]
                    },
                    "used": {
                      "type": "boolean"
                    },
                    "present": {
                      "type": "boolean"
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "used",
                    "present",
                    "line"
                  ]
                }
              }
            },
            "required": [
              "host",
              "enabled",
              "line",
              "problem",
              "accounts",
              "sources"
            ]
          }
        },
        "can_save": {
          "type": "boolean"
        },
        "scanned_ms": {
          "type": "number"
        }
      },
      "required": [
        "gh",
        "hosts",
        "can_save",
        "scanned_ms"
      ]
    },
    "host.action": {
      "anyOf": [
        {
          "$ref": "#/$defs/WkHostState"
        },
        {
          "type": "null"
        }
      ]
    },
    "host.joinWithCode": {
      "anyOf": [
        {
          "$ref": "#/$defs/WkHostState"
        },
        {
          "type": "null"
        }
      ]
    },
    "host.limits": {
      "anyOf": [
        {
          "$ref": "#/$defs/WkHostState"
        },
        {
          "type": "null"
        }
      ]
    },
    "host.openSettings": {
      "type": "null"
    },
    "host.setUp": {
      "anyOf": [
        {
          "$ref": "#/$defs/WkHostState"
        },
        {
          "type": "null"
        }
      ]
    },
    "host.status": {
      "anyOf": [
        {
          "$ref": "#/$defs/WkHostState"
        },
        {
          "type": "null"
        }
      ]
    },
    "keyvault.approve": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "requestId": {
          "type": "string"
        },
        "items": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "requestId",
        "items"
      ]
    },
    "keyvault.delete": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.deny": {},
    "keyvault.dismiss": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.get": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.lock": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.revokeGrant": {
      "type": "number"
    },
    "keyvault.run": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.setDisabled": {},
    "keyvault.setup": {
      "type": "object",
      "properties": {
        "recoveryKey": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "keyvault.showItems": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.unlock": {
      "$ref": "#/$defs/WkKeyvault"
    },
    "keyvault.unlockVault": {},
    "links.approve": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "enum": [
            "private",
            "team",
            "public"
          ]
        },
        "kind": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "createdAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "expiresAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "tcpConnectWith": {
          "type": [
            "string",
            "null"
          ]
        },
        "tcpAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "route": {
          "type": [
            "string",
            "null"
          ]
        },
        "routeLine": {
          "type": [
            "string",
            "null"
          ]
        },
        "allow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "waiting": {
          "enum": [
            "approval",
            "consent",
            null
          ]
        },
        "waitingText": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "url",
        "name",
        "access",
        "kind",
        "target",
        "owner",
        "createdAtUnix",
        "expiresAtUnix"
      ]
    },
    "links.create": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "access": {
          "enum": [
            "private",
            "team",
            "public"
          ]
        },
        "kind": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "owner": {
          "type": "string"
        },
        "createdAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "expiresAtUnix": {
          "type": [
            "number",
            "null"
          ]
        },
        "tcpConnectWith": {
          "type": [
            "string",
            "null"
          ]
        },
        "tcpAddress": {
          "type": [
            "string",
            "null"
          ]
        },
        "route": {
          "type": [
            "string",
            "null"
          ]
        },
        "routeLine": {
          "type": [
            "string",
            "null"
          ]
        },
        "allow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "waiting": {
          "enum": [
            "approval",
            "consent",
            null
          ]
        },
        "waitingText": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "url",
        "name",
        "access",
        "kind",
        "target",
        "owner",
        "createdAtUnix",
        "expiresAtUnix"
      ]
    },
    "links.deny": {
      "type": "object",
      "properties": {
        "denied": {
          "type": "string"
        }
      },
      "required": [
        "denied"
      ]
    },
    "links.list": {
      "type": "object",
      "properties": {
        "links": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "access": {
                "enum": [
                  "private",
                  "team",
                  "public"
                ]
              },
              "kind": {
                "type": "string"
              },
              "target": {
                "type": "string"
              },
              "owner": {
                "type": "string"
              },
              "createdAtUnix": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "expiresAtUnix": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "tcpConnectWith": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "tcpAddress": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "route": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "routeLine": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "allow": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "waiting": {
                "enum": [
                  "approval",
                  "consent",
                  null
                ]
              },
              "waitingText": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "url",
              "name",
              "access",
              "kind",
              "target",
              "owner",
              "createdAtUnix",
              "expiresAtUnix"
            ]
          }
        }
      },
      "required": [
        "links"
      ]
    },
    "links.stop": {
      "type": "object",
      "properties": {
        "stopped": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "stopped"
      ]
    },
    "loginItem.get": {
      "$ref": "#/$defs/LoginItemReport"
    },
    "loginItem.openSettings": {
      "type": "null"
    },
    "loginItem.set": {
      "$ref": "#/$defs/LoginItemReport"
    },
    "machines.checkHealth": {
      "type": "null"
    },
    "machines.list": {
      "$ref": "#/$defs/WkMachines"
    },
    "machines.remove": {
      "type": "null"
    },
    "machines.rename": {
      "type": "null"
    },
    "network.ackNotice": {
      "type": "object",
      "properties": {}
    },
    "network.get": {
      "$ref": "#/$defs/SpaceNetwork"
    },
    "network.log": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NetworkEvent"
      }
    },
    "network.set": {
      "type": "object",
      "properties": {
        "applied": {
          "enum": [
            "now",
            "next_start"
          ]
        }
      },
      "required": [
        "applied"
      ]
    },
    "notifications.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NotificationInput"
      }
    },
    "notifications.markAllRead": {
      "type": "null"
    },
    "notifications.markRead": {
      "type": "null"
    },
    "nudges.answer": {
      "type": "null"
    },
    "nudges.pending": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "agent": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "atMs": {
            "type": "number"
          },
          "expiresMs": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "agent",
          "action",
          "atMs",
          "expiresMs"
        ]
      }
    },
    "onboarding.complete": {
      "$ref": "#/$defs/WkOnboarding"
    },
    "onboarding.get": {
      "$ref": "#/$defs/WkOnboarding"
    },
    "onboarding.reset": {
      "$ref": "#/$defs/WkOnboarding"
    },
    "relay.usage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "metered": {
          "type": "boolean"
        },
        "period": {
          "type": "string"
        },
        "plan": {
          "type": "string"
        },
        "team": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "seats": {
              "type": "number"
            }
          },
          "required": [
            "id",
            "seats"
          ]
        },
        "liveSessions": {
          "type": "number"
        },
        "liveSessionsLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "hoursUsed": {
          "type": "number"
        },
        "hoursLimit": {
          "type": [
            "number",
            "null"
          ]
        },
        "myHoursUsed": {
          "type": "number"
        },
        "softLimitReached": {
          "type": "boolean"
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "upgradeUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "metered",
        "period",
        "plan",
        "team",
        "liveSessions",
        "liveSessionsLimit",
        "hoursUsed",
        "hoursLimit",
        "myHoursUsed",
        "softLimitReached",
        "reasons",
        "upgradeUrl"
      ]
    },
    "repoCache.clear": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "repoCache.get": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "repoCache.set": {
      "$ref": "#/$defs/RepoCacheView"
    },
    "resources.get": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "sequence": {
          "type": "number"
        },
        "sampledAtMs": {
          "type": "number"
        },
        "thisMac": {
          "$ref": "#/$defs/ComputerResources"
        },
        "spaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SpaceResources"
          }
        },
        "computers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ComputerResources"
          }
        },
        "warning": {
          "$ref": "#/$defs/DiskWarning"
        }
      },
      "required": [
        "sequence",
        "sampledAtMs",
        "thisMac",
        "spaces",
        "computers",
        "warning"
      ]
    },
    "runtimes.browse": {
      "type": "object",
      "properties": {
        "path": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "path"
      ]
    },
    "runtimes.check": {
      "$ref": "#/$defs/RuntimePathCheck"
    },
    "services.control": {
      "type": "object",
      "properties": {}
    },
    "services.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SpaceService"
      }
    },
    "session.get": {
      "$ref": "#/$defs/WkSession"
    },
    "session.signIn": {
      "$ref": "#/$defs/WkSession"
    },
    "session.signOut": {
      "$ref": "#/$defs/WkSession"
    },
    "settings.choose": {
      "$ref": "#/$defs/WkSettings"
    },
    "settings.get": {
      "$ref": "#/$defs/WkSettings"
    },
    "settings.update": {
      "$ref": "#/$defs/WkSettings"
    },
    "shares.edge.remove": {
      "type": "object",
      "properties": {
        "ended": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "ended"
      ]
    },
    "shares.settings.get": {
      "type": "object",
      "properties": {
        "landing": {
          "enum": [
            "auto",
            "only_my_cloud",
            "allow_relay"
          ]
        },
        "relayFallback": {
          "type": "boolean"
        },
        "dailyCapMib": {
          "type": "number"
        },
        "defaultAllow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approveAgentShares": {
          "type": "boolean"
        },
        "alwaysAllowSpaces": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "edgeConsent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "usedToday": {
          "type": "number"
        },
        "edgeCloud": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeHost": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeMonthlyUsd": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "landing",
        "relayFallback",
        "dailyCapMib",
        "defaultAllow",
        "approveAgentShares",
        "alwaysAllowSpaces",
        "edgeConsent",
        "usedToday",
        "edgeCloud",
        "edgeHost",
        "edgeMonthlyUsd"
      ]
    },
    "shares.settings.set": {
      "type": "object",
      "properties": {
        "landing": {
          "enum": [
            "auto",
            "only_my_cloud",
            "allow_relay"
          ]
        },
        "relayFallback": {
          "type": "boolean"
        },
        "dailyCapMib": {
          "type": "number"
        },
        "defaultAllow": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "approveAgentShares": {
          "type": "boolean"
        },
        "alwaysAllowSpaces": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "edgeConsent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "usedToday": {
          "type": "number"
        },
        "edgeCloud": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeHost": {
          "type": [
            "string",
            "null"
          ]
        },
        "edgeMonthlyUsd": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "landing",
        "relayFallback",
        "dailyCapMib",
        "defaultAllow",
        "approveAgentShares",
        "alwaysAllowSpaces",
        "edgeConsent",
        "usedToday",
        "edgeCloud",
        "edgeHost",
        "edgeMonthlyUsd"
      ]
    },
    "sharing.ackRemovals": {
      "type": "null"
    },
    "sharing.list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "sharing.removals": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareRemoval"
      }
    },
    "sharing.share": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "sharing.unshare": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ShareEntry"
      }
    },
    "spaces.add": {
      "$ref": "#/$defs/WkSpace"
    },
    "spaces.cancelCreate": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "state": {
          "enum": [
            "cancelled",
            "not_creating",
            "already_created"
          ]
        },
        "message": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "state",
        "message"
      ]
    },
    "spaces.chooseFiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spaces.create": {
      "$ref": "#/$defs/WkSpace"
    },
    "spaces.createOptions": {
      "$ref": "#/$defs/WkCreateOptions"
    },
    "spaces.delete": {
      "$ref": "#/$defs/WkSpaces"
    },
    "spaces.deleteMany": {
      "$ref": "#/$defs/BulkResults"
    },
    "spaces.droppedFiles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "spaces.leave": {
      "$ref": "#/$defs/BulkResults"
    },
    "spaces.list": {
      "$ref": "#/$defs/WkSpaces"
    },
    "spaces.open": {
      "type": "null"
    },
    "spaces.rename": {
      "type": "object",
      "properties": {}
    },
    "spaces.resolveDefault": {
      "anyOf": [
        {
          "$ref": "#/$defs/DefaultSpace"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.sendFiles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "dest": {
            "type": "string"
          },
          "bytes": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "dest",
          "bytes"
        ]
      }
    },
    "spaces.setAccess": {
      "type": "object",
      "properties": {}
    },
    "spaces.setPower": {
      "$ref": "#/$defs/WkSpaces"
    },
    "spaces.setSettings": {
      "anyOf": [
        {
          "$ref": "#/$defs/SpacesSettings"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.settings": {
      "anyOf": [
        {
          "$ref": "#/$defs/SpacesSettings"
        },
        {
          "type": "null"
        }
      ]
    },
    "spaces.thumbnail": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "url": {
          "type": "string"
        },
        "capturedAtMs": {
          "type": "number"
        }
      },
      "required": [
        "url",
        "capturedAtMs"
      ]
    },
    "spaces.tree": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TreeNode"
      }
    },
    "spaces.usage": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "memoryUsed": {
          "type": "number"
        },
        "memoryTotal": {
          "type": "number"
        },
        "memoryLimited": {
          "type": "boolean"
        },
        "diskUsed": {
          "type": "number"
        },
        "diskTotal": {
          "type": "number"
        },
        "diskLimited": {
          "type": "boolean"
        }
      },
      "required": [
        "memoryUsed",
        "memoryTotal",
        "memoryLimited",
        "diskUsed",
        "diskTotal",
        "diskLimited"
      ]
    },
    "spaces.windows": {
      "type": "object",
      "properties": {
        "windows": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RemoteWindow"
          }
        },
        "display": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "widthPx": {
              "type": "number"
            },
            "heightPx": {
              "type": "number"
            }
          },
          "required": [
            "widthPx",
            "heightPx"
          ]
        },
        "open": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "windows",
        "display"
      ]
    },
    "startup.act": {
      "$ref": "#/$defs/StartupState"
    },
    "startup.get": {
      "$ref": "#/$defs/StartupState"
    },
    "storage.get": {
      "$ref": "#/$defs/StorageInput"
    },
    "storage.run": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriveCheckInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "stream.pip": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "teams.list": {
      "$ref": "#/$defs/TeamsList"
    },
    "telemetry.acknowledgeLinkNotice": {
      "type": "null"
    },
    "telemetry.linkNotice": {
      "anyOf": [
        {
          "$ref": "#/$defs/TelemetryLinkNotice"
        },
        {
          "type": "null"
        }
      ]
    },
    "telemetry.track": {
      "type": "null"
    },
    "teleport.catalog": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WkCatalogEntry"
      }
    },
    "teleport.entryForPath": {
      "$ref": "#/$defs/WkCatalogEntry"
    },
    "teleport.icon": {
      "type": [
        "string",
        "null"
      ]
    },
    "teleport.plan": {
      "type": "object",
      "properties": {
        "app": {
          "$ref": "#/$defs/WkCatalogEntry"
        },
        "spaceId": {
          "type": "string"
        },
        "moves": {
          "enum": [
            "appOnly",
            "appWithFiles",
            "appWithState"
          ]
        },
        "steps": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "summary"
            ]
          }
        },
        "consent": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "enum": [
                  "install",
                  "file",
                  "folder",
                  "state",
                  "secret"
                ]
              },
              "key": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "detail": {
                "type": "string"
              },
              "bytes": {
                "type": "number"
              },
              "sensitive": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "key",
              "label",
              "detail",
              "bytes",
              "sensitive"
            ]
          }
        },
        "sensitive": {
          "type": "boolean"
        },
        "totalBytes": {
          "type": "number"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "relayUnsealed": {
          "type": "boolean"
        },
        "json": {
          "type": "string"
        }
      },
      "required": [
        "app",
        "spaceId",
        "moves",
        "steps",
        "consent",
        "sensitive",
        "totalBytes",
        "warnings",
        "relayUnsealed",
        "json"
      ]
    },
    "teleport.readiness": {
      "type": "object",
      "properties": {
        "providerId": {
          "type": "string"
        },
        "appDisplay": {
          "type": "string"
        },
        "keyvaultInitialized": {
          "type": "boolean"
        },
        "keyvaultUnlocked": {
          "type": "boolean"
        },
        "profile": {
          "type": [
            "string",
            "null"
          ]
        },
        "defaultProfile": {
          "type": [
            "string",
            "null"
          ]
        },
        "profiles": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "dir": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "account": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lastUsed": {
                "type": "boolean"
              }
            },
            "required": [
              "dir",
              "name",
              "lastUsed"
            ]
          }
        },
        "files": {
          "type": "object",
          "properties": {
            "state": {
              "enum": [
                "granted",
                "denied",
                "unknown"
              ]
            },
            "say": {
              "type": "string"
            }
          },
          "required": [
            "state",
            "say"
          ]
        },
        "tabs": {
          "type": "object",
          "properties": {
            "state": {
              "enum": [
                "granted",
                "denied",
                "unknown"
              ]
            },
            "say": {
              "type": "string"
            }
          },
          "required": [
            "state",
            "say"
          ]
        },
        "profileEmpty": {
          "type": "boolean"
        }
      },
      "required": [
        "providerId",
        "appDisplay",
        "keyvaultInitialized",
        "keyvaultUnlocked",
        "profiles",
        "files",
        "tabs",
        "profileEmpty"
      ]
    },
    "teleport.remembered": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "teleport.remoteWindows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RemoteWindow"
      }
    },
    "teleport.run": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        },
        "installed": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "sent": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "imported": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "skipped": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "launched": {
          "type": "boolean"
        }
      },
      "required": [
        "appId",
        "installed",
        "sent",
        "imported",
        "skipped",
        "launched"
      ]
    },
    "teleport.sites": {
      "type": "object",
      "properties": {
        "providerId": {
          "type": "string"
        },
        "appDisplay": {
          "type": "string"
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string"
              },
              "cookies": {
                "type": "number"
              },
              "sessionCookies": {
                "type": "number"
              },
              "localStorage": {
                "type": "number"
              },
              "passwords": {
                "type": "number"
              },
              "signin": {
                "type": "boolean"
              },
              "identityProvider": {
                "type": "boolean"
              },
              "unavailable": {
                "type": "number"
              },
              "unavailableReason": {
                "type": "string"
              }
            },
            "required": [
              "domain",
              "cookies",
              "sessionCookies",
              "localStorage",
              "passwords",
              "signin",
              "identityProvider",
              "unavailable",
              "unavailableReason"
            ]
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "providerId",
        "appDisplay",
        "domains",
        "notes"
      ]
    },
    "teleport.streamWindow": {
      "type": "null"
    },
    "teleport.thumbnail": {
      "type": [
        "string",
        "null"
      ]
    },
    "teleport.windows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "windowId": {
            "type": "number"
          },
          "appId": {
            "type": "string"
          },
          "appName": {
            "type": "string"
          },
          "windowTitle": {
            "type": "string"
          },
          "supported": {
            "type": "boolean"
          },
          "bundlePath": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "windowId",
          "appId",
          "appName",
          "windowTitle",
          "supported"
        ]
      }
    },
    "update.get": {
      "$ref": "#/$defs/UpdateState"
    },
    "update.install": {
      "$ref": "#/$defs/UpdateState"
    },
    "volume.approve": {
      "type": "null"
    },
    "volume.deny": {
      "type": "null"
    },
    "volume.mount": {
      "$ref": "#/$defs/DriveMountInput"
    },
    "volume.overview": {
      "$ref": "#/$defs/VolumeOverview"
    },
    "volume.resolve": {
      "type": "null"
    },
    "volume.reveal": {
      "type": "null"
    },
    "volume.revoke": {
      "type": "null"
    },
    "volume.storage": {
      "anyOf": [
        {
          "$ref": "#/$defs/DriveStorageInput"
        },
        {
          "type": "null"
        }
      ]
    },
    "volume.storageSet": {
      "$ref": "#/$defs/DriveCheckInput"
    },
    "volume.unmount": {
      "$ref": "#/$defs/DriveMountInput"
    },
    "window.setBackgroundColor": {
      "type": "null"
    },
    "window.setDragRegions": {
      "type": "null"
    },
    "window.setDropTargets": {
      "type": "null"
    }
  },
  "webkitUnshaped": {
    "agents.recentThreads": "the daemon tool's JSON as-is (agent_threads, agent_thread_read); ops/agent-threads.ts maps it for every host",
    "agents.threadHistory": "the daemon tool's JSON as-is (agent_threads, agent_thread_read); ops/agent-threads.ts maps it for every host",
    "driver.config": "the driver's get_config JSON as-is; bridge/driver.ts reads only the keys it knows",
    "driver.setConfig": "the driver's get_config JSON as-is, after the change",
    "thread.agentAdd": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.agentRemove": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.joinCodeCancel": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.joinCodeCreate": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.joinCodeList": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.members": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.post": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.read": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.setRights": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host",
    "thread.settings": "the daemon tool's JSON as-is (thread_read, thread_post, agent_members, agent_set_rights, agent_add, agent_remove, thread_join_code_create, thread_join_code_list, thread_join_code_cancel, thread_settings); ops/thread.ts maps it for every host"
  }
}